parent
cefc59c6a3
commit
e1656d45c9
Binary file not shown.
Binary file not shown.
@ -0,0 +1,72 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit bash-completion-r1 distutils-r1 multiprocessing
|
||||
|
||||
MY_P=aws-cli-${PV}
|
||||
DESCRIPTION="Universal Command Line Environment for AWS"
|
||||
HOMEPAGE="
|
||||
https://github.com/aws/aws-cli/
|
||||
https://pypi.org/project/awscli/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/aws/aws-cli/archive/${PV}.tar.gz
|
||||
-> ${MY_P}.gh.tar.gz
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
|
||||
|
||||
# botocore is x.(y+2).(z-1)
|
||||
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(( $(ver_cut 3-) - 1 ))"
|
||||
RDEPEND="
|
||||
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
||||
dev-python/colorama[${PYTHON_USEDEP}]
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/rsa[${PYTHON_USEDEP}]
|
||||
>=dev-python/s3transfer-0.6.0[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
!app-admin/awscli-bin
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/pytest-forked[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
# do not rely on bundled deps in botocore (sic!)
|
||||
find -name '*.py' -exec sed -i \
|
||||
-e 's:from botocore[.]vendored import:import:' \
|
||||
-e 's:from botocore[.]vendored[.]:from :' \
|
||||
{} + || die
|
||||
# strip overzealous upper bounds on requirements
|
||||
sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# integration tests require AWS credentials and Internet access
|
||||
epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
newbashcomp bin/aws_bash_completer aws
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
newins bin/aws_zsh_completer.sh _aws
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
||||
rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,9 +1,9 @@
|
||||
DIST vscode-1.70.1-amd64.tar.gz 119738468 BLAKE2B 7944f5fbaec4d935b71626c3c9fc8abe504510748309024d373913cde7887652e5e2c6176201d18c14e131664031feae6af4b2b75f79a11bf0625869143f6b8a SHA512 6f44acd886ded96d92627587c3c5b23fd629f8e151690e7e205eb4cb594cb1e73c582b15f847afe4c72b80e8fdb08dca165bd8840bbb770647e075b3ca9626e9
|
||||
DIST vscode-1.70.1-arm.tar.gz 100809684 BLAKE2B d45cb42134cac7156af0c5108ec70dda7e50d529daf37e352288ec299f6fa53617c260f80bb03a921da837ec706dd2078a2a17dac60255b61dffad5c253e93f5 SHA512 184728e2969d9d00d94eaaa344164ddc536c0fde6267a142ea35157ecc6befa6f1532f35e879345f27a853d05248bb678f2b666c1e07db9651d90e019ecfeb9a
|
||||
DIST vscode-1.70.1-arm64.tar.gz 114897540 BLAKE2B 9728a77a9b012352f5f85a236f3cde60ff11ba52a03836feff4ed35f8dcd0101a8924ecae0dfc0ebbf27aa396be649d2c2f013a15341829f2b0e70f491d2eec2 SHA512 0840d16599d6f83922ec8adce84e59b62fbcf61b704d2898215c0a67e4b87461c5a31288a57559cf9ec382882fe5f14512927670082b044a7d1152c80a78a642
|
||||
DIST vscode-1.70.2-amd64.tar.gz 119730258 BLAKE2B 3d9098ea2bfea299eca56eac56c4b503b3cb504350009891d508da99cd1644e4290fabeb7fe9a1128f9606fea7c227d0de2b125af0e63086c62005895bdfc5f5 SHA512 aeaeab1c6a67f211e1e7b4132c10e12577663914b519b68d1971d81d8c20cbf80e02921d4b3ac2e6bda97c76984a76961a9a96cfe8480026d731498377dfc4bf
|
||||
DIST vscode-1.70.2-arm.tar.gz 100796924 BLAKE2B b59d96166dcfca06666f8efe84f0e8c81d9c94ed5d9cbe2e4e1ddef0590ff67dd4d31cdb9a15950026519d98b6d542c9f9993398b473c6bace5371cb7898bde3 SHA512 4e60480dabdf8100be9e6db269ba2603e3c730b94437bbd1f8e8535bbfad2694c3c717ad97776181bd10a95c40840c25a8af928e5ce3952b0b6761437e9c1055
|
||||
DIST vscode-1.70.2-arm64.tar.gz 114896722 BLAKE2B df09413b7a56274e0c9408a774d43cb15fd01b94447044558f9e51d0d03a7d99941efd78e85c5a602659f27cc013e32327f52f31d1ebfe338f6be26d2e6d60ab SHA512 bf0ceb5a8bbfb20c8a7c08d2a4179d78bba161bbf54582ad4d3821387ee1b090d191dac791cb446fa7439e185708aad2c6fa2f5997f4e92df99a692a7b8f5b38
|
||||
DIST vscode-1.71.0-amd64.tar.gz 120011495 BLAKE2B 21fe7b9b51d1e2707d93db638a2deb0c8f38f70f5270a66b42d8ab9feedaabec06c1ac0ac971b22ab5b602856511ab8236c385ea1c51cc6f670a31f1dd65393a SHA512 113d089f51a863d0f70abe0e12aa6639e26bb7a9abe69053cfaee64de270bfd83b9f257746116fa43b05bb2f18f5aae654e4e5d3d1b677a38193b0c7605c3475
|
||||
DIST vscode-1.71.0-arm.tar.gz 101274306 BLAKE2B 305e1559141d0a382de63046b240b36d24c88597a93b68b2cea04dea9d6217a51f42cbe9f7470660754fabf02d9a2ccc95f1b6a36800fbfd9a23e5d946373ca1 SHA512 cd4189e21f1c343cb48dc49db3f5b546e64914e13bcd0799d6991e0bc3225b65577167a1dff64819bfa832d309a67c958af2f7fc67463901f9c331c26c1f6865
|
||||
DIST vscode-1.71.0-arm64.tar.gz 110195894 BLAKE2B 92ad4f63535922c54ce8de7c6db152abdeb3e894d71807deea04f23c4debf8d441ddfa2f4c958a4975282d01bb1da4135a338b1c8ba17e430bad51bee860c32f SHA512 72c4ff1c2a62d609e5a3bbe29c2b36fef267c7e3b0c8af904ea9fcaf67625a91bc7de8c4e0d4570f8b98990e87b579149be9a15ca4284ed87c1cf0b1b48eaecd
|
||||
DIST vscode-1.71.1-amd64.tar.gz 120014241 BLAKE2B 95268c8fd7ec5aec98baf496ac07f380fe80ec95264ddbc1f38003cb185ae7f70e8e0168eb079b2bbf3c7c97e14f634be603e5d267b8672426b59d80f6cf6183 SHA512 b09d5b8e2e4fd90ab548cf03d16409dcac3a083ecf82639eee235f169d14cb224ca66b47acf5f4cc080a9bc3ca9f12785e5bbd4be405e5ba56c7fc47de31e91b
|
||||
DIST vscode-1.71.1-arm.tar.gz 101249342 BLAKE2B 60c0dcaa3badbde83a3c426268b7484f7d1dd9b56c9aed510e8383f362d7b662f093e6d94ec0abf513839f5f03e852e2c3c661c2787128ff1baf27750a210df4 SHA512 66ed8e396572ecb2040727aa2989b163e51838bdbd9388e8c85e1618ed227add47904773e309bf26e5d40d039cb2e338f55f9306929b8c2602f3caadf8889608
|
||||
DIST vscode-1.71.1-arm64.tar.gz 110197541 BLAKE2B dc042fb9325dce6d3c9dfe6ce2f650319a7eb30eb799c46a0563ab6049c7777ff814f94f97ff835d557eccf39051f68440850936f3ce9a3692ccefce9b4fa3b7 SHA512 8f57c5298d8389d51600893f545103c1101d956bce3bbb9f8334d11847254c31ff3367387d9a78c6546597c3cf6647fa5fd045976b1e1fddb14ac7a338763a1b
|
||||
DIST vscode-1.71.2-amd64.tar.gz 120012826 BLAKE2B 4e93141ebacc39e47600b9919175e206f4b9d26134657b0f70137d35ab75582846783a3a6f4642e6b9f6a5c64f258efdef3fd480b08a6261bef68eed2e081ca0 SHA512 4ea93a95c009f1b6a816b47374e68f49b43d3bad195de612912f488a83eb48d63382c480fbaff0efa1baa738bd50aa6dbd8244d56870dd27e1592d043778d156
|
||||
DIST vscode-1.71.2-arm.tar.gz 101261361 BLAKE2B 563faefdc0132b41f50166f84f7e508cd34f4e6609d47ce2966a17083f6b28e5c302faff8374060c74137d05f691bcf1120abb4c6111333b9317306691a00bcb SHA512 50821062437cbcc662791bc1c9f5004cbbfb2455de768ac205fcb9019b3e5775d24ca39cc60ed3280fb67b026c86f4ee117995e2826f2b7a6defc81169f53585
|
||||
DIST vscode-1.71.2-arm64.tar.gz 110174916 BLAKE2B 8f14bd5df25a64c5872b3044c5d66810b88af6d496f159788651f9177525999747713888814c125189c817a814db41e165a754dfd5a689b21b507eea1572673d SHA512 978c0c613ec2d74278de829b158dcc4983fd9ffe86ddcab92968df7fa8d08fef29f9b1126b65fbe15864c72f6169106ba5da505e8d038de67896a00ab426182a
|
||||
|
@ -1,9 +1,6 @@
|
||||
DIST vscodium-1.70.1.22229-amd64.tar.gz 119469285 BLAKE2B 0f21c7576a144f20b9744d7192d2186dd49679a8dbe110c904b839a16f486edcda0c6fd6c2bc63abd995e14c56239bc84f95b89ef3a8232a8b429578c9216550 SHA512 4a74ecf5b60b59630814f7e908867d9fbe10622c1bb5b5054fe96c47dab7c5e12044de82c353a679d7779c65f36fff92a10453e39742f9a5ab727baa8821c224
|
||||
DIST vscodium-1.70.1.22229-arm.tar.gz 101292874 BLAKE2B d2cfcdf00a9eb1c65b7426a4e479ba15baeffb39d79622e37655d7814b1c62c072906e96bcf28d306331540fa39140a0f3594a267cc66176e2d7f7b1e81ac543 SHA512 9e607c576f79a59a23ff641742ccd6559318a5a37e047780762c78a0f4c7f632fc477aa733e4805022a77e615e17bfacd2cd99cbf00aa1959211705389126300
|
||||
DIST vscodium-1.70.1.22229-arm64.tar.gz 117342125 BLAKE2B c924b7b9af67613d61ae7a334d422627de7cface80e27da06f5a7be905e1b28d360225f7790917951e350fff315ab2315b5235f6d1f99b8ba54afa584f80e1a8 SHA512 ceff9924e1dc8af7efb77979c67108aa9bf7d48c984da514ab8ef238d1a5690ab6946bc2fa71c8e2d1f4daf8ac7aca78fd7cf210591bace31cbf3ff487b72339
|
||||
DIST vscodium-1.70.2.22230-amd64.tar.gz 119462089 BLAKE2B 85bbf6638cea72e66b795e4fe33b8fa2815bc05d1feb98d549e6999b09fe4b0f4b1718423b35714e35724c4645a4136df529d7e43a8be83c810ac156b63a52fb SHA512 0830645e671bb9ebdef7c7abba5c3cdf934468621bfe2537ccd10fba64c1278fde381373fe0fc99484dfd9c382b72298695d5d89702414705c29ed270a41a3f4
|
||||
DIST vscodium-1.70.2.22230-arm.tar.gz 101302938 BLAKE2B c062a33ed58b3d322266ae0ce9825c3aa126f5f8feff4e9c53dc5fc5fcb94b43ec61c0b9cd814f222c74426740734b7570e88c7d54bc11e9bcfd12b0cc761186 SHA512 dea101d8ef45912ee5fd39cb57e90dba9079bc466ddcd8828fcf91ac1d2f792e158d72592a3a657a328e2f4130bfd80e5b084c5457ba32221adee1045f07fdc9
|
||||
DIST vscodium-1.70.2.22230-arm64.tar.gz 117323455 BLAKE2B 9e2706c5e99f2ed0343ac8b036d519f8adef56c5cd9f8bd219a80cd6d20c49b6d62a4e31d283329daa6147462d6ef526a9f86faaaf017f6a903e7a7a9b392256 SHA512 ed766d2e15e70ae639bb9f42d4877a6f2c0f4984f1a8693c895452b4043dd00a617f5b3739941bd3142332a677cb569383156c7a20d35a072e3177eb5a3457a0
|
||||
DIST vscodium-1.71.0.22245-amd64.tar.gz 119418373 BLAKE2B aecb45c00e67d0b6a62560797f02c34f521660fb67526cb77943113c99d8b39b2ac97b12d1b9b8fad85654b4dfa59fb9a5e28f13ddf2deae71e18e0fcfcf92bd SHA512 a284a17e56a09e29b4a1ad6aec3e4e68bc6d6a8d92f0d6744bdc2f708c0acbe4393c9724c4c2eb6256c7198518d48cd0fde3237424bec020887f1b0e28742276
|
||||
DIST vscodium-1.71.0.22245-arm.tar.gz 101458849 BLAKE2B 008b95419df2e1e02876b7b7c8bfe567b3291eccca7de418ab899716163a68b536febd6329119f4532017e20c274d479e788a3d3d5bb8d1b3af92fc96afe42f0 SHA512 0700d85e8db1733d3d80ddeaca68132bdeccd7dfc89cda923103739db9d00305087a6544639d4ed802c75eeb2887a998f1b4154d7d0be4db5d11da40e34325be
|
||||
DIST vscodium-1.71.0.22245-arm64.tar.gz 112480037 BLAKE2B 730fe3e6564c7c72ddd9bbcc8e13f2ceb298eeb598267d38858660c5e99a0e490916b335096e59bda4cea278d19b00b54cd91f32e7933a7853ee32a6de631361 SHA512 b545b77e7e95ea5b7022310ec8fa50ed290aa7002f0f6c925a10f28eba07cf20ae18ada3f7b37f6aa1ebcc4a2eea76246ef4c511c12b8fa952f3ecadda92ff8f
|
||||
DIST vscodium-1.71.2.22258-amd64.tar.gz 119405578 BLAKE2B dc6275d923dd48db78f6d9fdd219de822d16ba312fbcda3b1c5764f73321f38ddb62a338dfbde59df8f9e86b00011e71d9dd432e392b98b2f6eb19699df12df2 SHA512 5f3f8cbdac8aa3c8c9c4a954c62dffe8764db048fb4e8e5cb679ee9e7b68bf32a572093302ba035eea3358a7c3b18b40b5080ce04d24ef1558f858aa4d29f4f9
|
||||
DIST vscodium-1.71.2.22258-arm.tar.gz 101454282 BLAKE2B b3ef1f4c1d16cba4ffe1cad177bb31611b2a5fc94a8b6b47629bdb570617245ebb5c0e417240ea4e7cd6ac643e031914b1786179de4653f707b522e0491bd944 SHA512 64d5fc48f0de1358cc30a2200d60c8a739bf579058f280e1bb4dd2c2db0241169d7bc4404b8b631554e4ecf764dc2587db31c81af73116019dbef15a4cf675ea
|
||||
DIST vscodium-1.71.2.22258-arm64.tar.gz 112485387 BLAKE2B 879f16278a1b221283ef1f217634e589aaa37afad295c26ddb005fcca0df20bbc2c2c80b8c8f59d1dfff9bd33bbcbe8a27482996a4426c776e4a23d0a754ca0e SHA512 9bb531e3f08be4d5578fbc68c51c0a2e7797a2c89602f3133729b12bac3ca1ad48cc16ed71049ed6cdf4aef74a0ce518108d757de7fee175470cdba97b54712a
|
||||
|
@ -1,117 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit desktop pax-utils xdg
|
||||
|
||||
DESCRIPTION="A community-driven, freely-licensed binary distribution of Microsoft's VSCode"
|
||||
HOMEPAGE="https://vscodium.com/"
|
||||
SRC_URI="
|
||||
amd64? ( https://github.com/VSCodium/${PN}/releases/download/${PV}/VSCodium-linux-x64-${PV}.tar.gz -> ${P}-amd64.tar.gz )
|
||||
arm? ( https://github.com/VSCodium/${PN}/releases/download/${PV}/VSCodium-linux-armhf-${PV}.tar.gz -> ${P}-arm.tar.gz )
|
||||
arm64? ( https://github.com/VSCodium/${PN}/releases/download/${PV}/VSCodium-linux-arm64-${PV}.tar.gz -> ${P}-arm64.tar.gz )
|
||||
"
|
||||
|
||||
RESTRICT="strip bindist"
|
||||
|
||||
LICENSE="
|
||||
Apache-2.0
|
||||
BSD
|
||||
BSD-1
|
||||
BSD-2
|
||||
BSD-4
|
||||
CC-BY-4.0
|
||||
ISC
|
||||
LGPL-2.1+
|
||||
MIT
|
||||
MPL-2.0
|
||||
openssl
|
||||
PYTHON
|
||||
TextMate-bundle
|
||||
Unlicense
|
||||
UoI-NCSA
|
||||
W3C
|
||||
"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~arm ~arm64"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
app-accessibility/at-spi2-atk:2
|
||||
app-accessibility/at-spi2-core:2
|
||||
app-crypt/libsecret[crypt]
|
||||
dev-libs/atk
|
||||
dev-libs/expat
|
||||
dev-libs/glib:2
|
||||
dev-libs/nspr
|
||||
dev-libs/nss
|
||||
media-libs/alsa-lib
|
||||
media-libs/mesa
|
||||
net-print/cups
|
||||
sys-apps/dbus
|
||||
x11-libs/cairo
|
||||
x11-libs/gdk-pixbuf:2
|
||||
x11-libs/gtk+:3
|
||||
x11-libs/libdrm
|
||||
x11-libs/libX11
|
||||
x11-libs/libxcb
|
||||
x11-libs/libXcomposite
|
||||
x11-libs/libXdamage
|
||||
x11-libs/libXext
|
||||
x11-libs/libXfixes
|
||||
x11-libs/libxkbcommon
|
||||
x11-libs/libxkbfile
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libxshmfence
|
||||
x11-libs/pango
|
||||
"
|
||||
|
||||
QA_PREBUILT="
|
||||
/opt/vscodium/chrome_crashpad_handler
|
||||
/opt/vscodium/chrome-sandbox
|
||||
/opt/vscodium/codium
|
||||
/opt/vscodium/libEGL.so
|
||||
/opt/vscodium/libffmpeg.so
|
||||
/opt/vscodium/libGLESv2.so
|
||||
/opt/vscodium/libvk_swiftshader.so
|
||||
/opt/vscodium/libvulkan.so*
|
||||
/opt/vscodium/resources/app/extensions/*
|
||||
/opt/vscodium/resources/app/node_modules.asar.unpacked/*
|
||||
/opt/vscodium/swiftshader/libEGL.so
|
||||
/opt/vscodium/swiftshader/libGLESv2.so
|
||||
"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_install() {
|
||||
# Cleanup
|
||||
rm "${S}/resources/app/LICENSE.txt" || die
|
||||
|
||||
# Disable update server
|
||||
sed -i "/updateUrl/d" "${S}"/resources/app/product.json || die
|
||||
|
||||
# Install
|
||||
pax-mark m codium
|
||||
insinto "/opt/${PN}"
|
||||
doins -r *
|
||||
fperms +x /opt/${PN}/{,bin/}codium
|
||||
fperms +x /opt/${PN}/chrome_crashpad_handler
|
||||
fperms 4711 /opt/${PN}/chrome-sandbox
|
||||
fperms 755 /opt/${PN}/resources/app/extensions/git/dist/{askpass,git-editor}{,-empty}.sh
|
||||
fperms -R +x /opt/${PN}/resources/app/out/vs/base/node
|
||||
fperms +x /opt/${PN}/resources/app/node_modules.asar.unpacked/@vscode/ripgrep/bin/rg
|
||||
dosym "../../opt/${PN}/bin/codium" "usr/bin/vscodium"
|
||||
dosym "../../opt/${PN}/bin/codium" "usr/bin/codium"
|
||||
domenu "${FILESDIR}/vscodium.desktop"
|
||||
domenu "${FILESDIR}/vscodium-url-handler.desktop"
|
||||
domenu "${FILESDIR}/vscodium-wayland.desktop"
|
||||
domenu "${FILESDIR}/vscodium-url-handler-wayland.desktop"
|
||||
newicon "resources/app/resources/linux/code.png" "vscodium.png"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
elog "When compared to the regular VSCode, VSCodium has a few quirks"
|
||||
elog "More information at: https://github.com/VSCodium/vscodium/blob/master/DOCS.md"
|
||||
}
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST filladapt-2.12.2.el.gz 8535 BLAKE2B 31af33094524bbc1533edad51e2b9b98730af5580abd04d3ff937260a59ac9c5c414b18a08256a4ad0806d4130cc98aaf7f1c4a45ca0f65fd6da24a3602a4387 SHA512 b2ffb9e4c1b0f275ed03dbac8f53f4c07e68c0620d98b14456512ac1e6c1b6a096dd1f350886f07e215101697eda38b0a2dee98a7f61a0fbe136b6f358ac3932
|
||||
DIST filladapt-2.12.el.gz 9267 BLAKE2B 81510bd51808f7aaa4874a1127a74bfc7d35c5f1dca0100694853025fd1bc884d75c2023f0e373eb1fe69cc5d423a48d884b4ff5cfdfc82b161f6a404965b6bd SHA512 31bf3dca48129cc25653827678215eb4c62ff777cfbdf0d71142c0cc3111a078b1af316e121b27be2a47c317cfa440ac00e7fbc2bdf3e8ac7d54748297249328
|
||||
|
@ -0,0 +1,23 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
NEED_EMACS=24.4
|
||||
|
||||
inherit elisp readme.gentoo-r1
|
||||
|
||||
DESCRIPTION="Filladapt enhances the behavior of Emacs' fill functions"
|
||||
HOMEPAGE="http://www.wonderworks.com/
|
||||
https://elpa.gnu.org/packages/filladapt.html"
|
||||
SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${P}.el.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
|
||||
SITEFILE="50${PN}-gentoo.el"
|
||||
DOC_CONTENTS="Filladapt is not enabled as a site default. Add the following
|
||||
lines to your ~/.emacs file to enable adaptive fill by default:
|
||||
\n\t(require 'filladapt)
|
||||
\n\t(setq-default filladapt-mode t)"
|
@ -1,2 +1,2 @@
|
||||
DIST nxml-gentoo-schemas-20220525.tar.xz 8836 BLAKE2B 5506f976b43218d5bb85ae96c31137c51691cef5f3a524d4214584cc0cb1dae26f45b97d636c8361ec06e7bff5cbf2337b8ed82795aba72dd079127db2238ece SHA512 7df23a9d73a09fc26c6e38665d28c3b633d371bf9c84d56b9318045d80ccab23c3b9c115d68efd6733b9048918118612a05405a1a590b41eac4fb7405746b34e
|
||||
DIST nxml-gentoo-schemas-20220730.tar.xz 8856 BLAKE2B 7c08bd09242a30998d6dd535b5143bb920aebaaf209f9acbac734fec258d08711945d58322912f455ef251d59df7f6bad8bec8a758065d67c63cd9dc926950f6 SHA512 91c2183acb3d435e5deca67cb0e9c14fb0af1795a490c8f35076442dcf7f49bff419e3f74d3a34f5790faafd68c643e152ff292c0e994e6ec8f34e4f74efa3fd
|
||||
DIST nxml-gentoo-schemas-20220916.tar.xz 8884 BLAKE2B c10a5d19268ebf28df6d3dd025d83a8c4e6d6c6bafd553ed1a82d1eb3ffc1afc1ce6bc148c0cd93e11d694e59f48a4bcd53990f842533573f7b37b29ff487f79 SHA512 f2e811945d66828e84411fe84d66399ab6b383456d6d8fd611454fe1c91203c4c29766178e2d52158ab5908a2e197109fb322f7cc5324c1fcb40dfa68757cac6
|
||||
|
Binary file not shown.
@ -0,0 +1,36 @@
|
||||
From 2296b4655694744f7c8dcdc9440c21d86e19968e Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Huth <thuth@redhat.com>
|
||||
Date: Wed, 22 Jun 2022 16:03:28 +0200
|
||||
Subject: [PATCH] common-user: Only compile the common user code if have_user
|
||||
is set
|
||||
|
||||
There is no need to waste cycles here if we only compile the system
|
||||
binaries or tools. Additionally, this change is even a hard requirement
|
||||
for building the tools on systems that do not have an entry in the
|
||||
common-user/host/ folder (since common-user/meson.build is trying
|
||||
to add such a path via the include_directories() command).
|
||||
|
||||
Reported-by: Michael Tokarev <mjt@tls.msk.ru>
|
||||
Signed-off-by: Thomas Huth <thuth@redhat.com>
|
||||
Reviewed-by: Zhang Chen <chen.zhang@intel.com>
|
||||
Message-Id: <20220622140328.383961-1-thuth@redhat.com>
|
||||
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
|
||||
---
|
||||
common-user/meson.build | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/common-user/meson.build b/common-user/meson.build
|
||||
index 26212dda5c..ac9de5b9e3 100644
|
||||
--- a/common-user/meson.build
|
||||
+++ b/common-user/meson.build
|
||||
@@ -1,3 +1,7 @@
|
||||
+if not have_user
|
||||
+ subdir_done()
|
||||
+endif
|
||||
+
|
||||
common_user_inc += include_directories('host/' / host_arch)
|
||||
|
||||
user_ss.add(files(
|
||||
--
|
||||
GitLab
|
||||
|
Binary file not shown.
@ -1,3 +1,2 @@
|
||||
DIST ibus-1.5.25.tar.gz 3669787 BLAKE2B 0a568c77d29dfbe0c2c8cdbe8c8ae86b69c7a1a5fa692cf05e9ce13894fcee200c41de91ec0ad88ae9e745e3061b9c92b7fd18641bd297f5bf4a9bc308ace983 SHA512 4b8955a20a1e5a0daf61213817a9697874439866e235e6a7905f5994b145cd5a143e6cfc41f17204a828756baeb8edab70698596731ecebf7f1eea7cc5f36aa6
|
||||
DIST ibus-1.5.26.tar.gz 3715263 BLAKE2B 80eb293b028d431b76c015c6d6d9fea92888554f6f34ec126853df189746d9976569ec2380146187d13337a011668b1f15fc57a95284658c8afc7824a67b5898 SHA512 923607c17114af673dcc36532fb44a278b61161ee1b7d4e01b2e0dcffc40c95eb91c6416acc9c0da0333e933863e15263e9a5ff1e467cfc02b71398d601b9714
|
||||
DIST ibus-1.5.27.tar.gz 3779541 BLAKE2B e98f775cd62036ae02dafd984933343e99390a6a1e77b672feb4bc00dd1d423126227bded2d22b8bc9fa214e572ea906c407658de8ee20e036f8753836d68f46 SHA512 b5f3ae555d19eb780a416383e6351ed2cd8834fcc2bc4ebe4f4a194fc934dd055c5e782f9ec382fb21e1e2103c5409804174a79d192b5494a9018ce9081305e4
|
||||
|
@ -1,194 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
VALA_MIN_API_VERSION="0.34"
|
||||
VALA_MAX_API_VERSION="0.50"
|
||||
VALA_USE_DEPEND="vapigen"
|
||||
|
||||
inherit autotools bash-completion-r1 gnome2-utils python-r1 vala virtualx xdg-utils
|
||||
|
||||
GENTOO_VER=
|
||||
DESCRIPTION="Intelligent Input Bus for Linux / Unix OS"
|
||||
HOMEPAGE="https://github.com/ibus/ibus/wiki"
|
||||
|
||||
[[ -n ${GENTOO_VER} ]] && \
|
||||
GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-gentoo-patches-${GENTOO_VER}.tar.xz"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.gz
|
||||
${GENTOO_PATCHSET_URI}"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~ia64 ppc ppc64 ~riscv sparc x86"
|
||||
IUSE="+X +emoji +gtk +gtk2 +introspection kde nls +python test +unicode vala wayland"
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="emoji? ( gtk )
|
||||
gtk2? ( gtk )
|
||||
kde? ( gtk )
|
||||
python? (
|
||||
${PYTHON_REQUIRED_USE}
|
||||
introspection
|
||||
)
|
||||
test? ( gtk )
|
||||
vala? ( introspection )"
|
||||
|
||||
CDEPEND="app-text/iso-codes
|
||||
dev-libs/glib:2
|
||||
gnome-base/dconf
|
||||
gnome-base/librsvg:2
|
||||
sys-apps/dbus[X?]
|
||||
X? (
|
||||
x11-libs/libX11
|
||||
>=x11-libs/libXfixes-6.0.0
|
||||
!gtk? ( x11-libs/gtk+:2 )
|
||||
)
|
||||
gtk? (
|
||||
x11-libs/gtk+:3
|
||||
x11-libs/libX11
|
||||
x11-libs/libXi
|
||||
gtk2? ( x11-libs/gtk+:2 )
|
||||
)
|
||||
introspection? ( dev-libs/gobject-introspection )
|
||||
kde? ( dev-qt/qtgui:5 )
|
||||
nls? ( virtual/libintl )
|
||||
python? (
|
||||
${PYTHON_DEPS}
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
)
|
||||
wayland? (
|
||||
dev-libs/wayland
|
||||
x11-libs/libxkbcommon
|
||||
)"
|
||||
RDEPEND="${CDEPEND}
|
||||
python? (
|
||||
gtk? (
|
||||
x11-libs/gtk+:3[introspection]
|
||||
)
|
||||
)"
|
||||
DEPEND="${CDEPEND}
|
||||
$(vala_depend)
|
||||
dev-util/glib-utils
|
||||
virtual/pkgconfig
|
||||
x11-misc/xkeyboard-config
|
||||
emoji? (
|
||||
app-i18n/unicode-cldr
|
||||
app-i18n/unicode-emoji
|
||||
)
|
||||
nls? ( sys-devel/gettext )
|
||||
unicode? ( app-i18n/unicode-data )"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-ibusimcontext.patch )
|
||||
|
||||
src_prepare() {
|
||||
vala_src_prepare --ignore-use
|
||||
sed -i "/UCD_DIR=/s/\$with_emoji_annotation_dir/\$with_ucd_dir/" configure.ac
|
||||
if ! has_version 'x11-libs/gtk+:3[wayland]'; then
|
||||
touch ui/gtk3/panelbinding.vala
|
||||
fi
|
||||
if ! use emoji; then
|
||||
touch \
|
||||
tools/main.vala \
|
||||
ui/gtk3/panel.vala
|
||||
fi
|
||||
if ! use kde; then
|
||||
touch ui/gtk3/panel.vala
|
||||
fi
|
||||
if [[ -n ${GENTOO_VER} ]]; then
|
||||
einfo "Try to apply Gentoo specific patch set"
|
||||
eapply "${WORKDIR}"/patches-gentoo/*.patch
|
||||
fi
|
||||
|
||||
# for multiple Python implementations
|
||||
sed -i "s/^\(PYGOBJECT_DIR =\).*/\1/" bindings/Makefile.am
|
||||
# fix for parallel install
|
||||
sed -i "/^if ENABLE_PYTHON2/,/^endif/d" bindings/pygobject/Makefile.am
|
||||
# require user interaction
|
||||
sed -i "/^TESTS += ibus-\(compose\|keypress\)/d" src/tests/Makefile.am
|
||||
|
||||
sed -i "/^bash_completion/d" tools/Makefile.am
|
||||
|
||||
default
|
||||
eautoreconf
|
||||
xdg_environment_reset
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local unicodedir="${EPREFIX}"/usr/share/unicode
|
||||
local python_conf=()
|
||||
if use python; then
|
||||
python_setup
|
||||
python_conf+=(
|
||||
$(use_enable gtk setup)
|
||||
--with-python=${EPYTHON}
|
||||
)
|
||||
else
|
||||
python_conf+=( --disable-setup )
|
||||
fi
|
||||
|
||||
econf \
|
||||
$(use_enable X xim) \
|
||||
$(use_enable emoji emoji-dict) \
|
||||
$(use_with emoji unicode-emoji-dir "${unicodedir}"/emoji) \
|
||||
$(use_with emoji emoji-annotation-dir "${unicodedir}"/cldr/common/annotations) \
|
||||
$(use_enable gtk gtk3) \
|
||||
$(use_enable gtk ui) \
|
||||
$(use_enable gtk2) \
|
||||
$(use_enable introspection) \
|
||||
$(use_enable kde appindicator) \
|
||||
$(use_enable nls) \
|
||||
$(use_enable test tests) \
|
||||
$(use_enable unicode unicode-dict) \
|
||||
$(use_with unicode ucd-dir "${EPREFIX}/usr/share/unicode-data") \
|
||||
$(use_enable vala) \
|
||||
$(use_enable wayland) \
|
||||
"${python_conf[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
unset DBUS_SESSION_BUS_ADDRESS
|
||||
virtx emake -j1 check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
|
||||
if use python; then
|
||||
python_install() {
|
||||
emake -C bindings/pygobject \
|
||||
pyoverridesdir="$(${EPYTHON} -c 'import gi; print(gi._overridesdir)')" \
|
||||
DESTDIR="${D}" \
|
||||
install
|
||||
|
||||
python_optimize
|
||||
}
|
||||
python_foreach_impl python_install
|
||||
fi
|
||||
|
||||
keepdir /usr/share/ibus/engine
|
||||
|
||||
newbashcomp tools/${PN}.bash ${PN}
|
||||
|
||||
insinto /etc/X11/xinit/xinput.d
|
||||
newins xinput-${PN} ${PN}.conf
|
||||
|
||||
# Undo compression of man page
|
||||
find "${ED}"/usr/share/man -type f -name '*.gz' -exec gzip -d {} \; || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use gtk && gnome2_query_immodules_gtk3
|
||||
use gtk2 && gnome2_query_immodules_gtk2
|
||||
xdg_icon_cache_update
|
||||
gnome2_schemas_update
|
||||
dconf update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use gtk && gnome2_query_immodules_gtk3
|
||||
use gtk2 && gnome2_query_immodules_gtk2
|
||||
xdg_icon_cache_update
|
||||
gnome2_schemas_update
|
||||
}
|
@ -1,2 +1,4 @@
|
||||
DIST unicode-data-14.0.0-UCD.zip 6985828 BLAKE2B 2d36d35ded44fe1ad7966dae93e388c8c92d4404c811e495c0b4ea1c6482c4ed1488dff37b608cae230163bc4dd66cf8ec40d5db6e60541cd7719673c91dc5b1 SHA512 17fbfb3ebd3a75227526d87e19feb70c1b0ccee656e421e955aadc88847ed2597437eb8cf19619e2a49470d286b285e219aec18d6b29dab47cfa8317a212b458
|
||||
DIST unicode-data-14.0.0-Unihan.zip 7116482 BLAKE2B feafb77e8a1694efe940be226735f88c2e08be43408b8c12de87b86860d3cfacffb3d7d287e4fbf6b7fcef1055f3fe6b74f312312dd7d1886cbc7a394a7df983 SHA512 1827e512dd1bd27f3553746275dc90e3c3add38590d56da3901eccb56b94fee9e2dd806514a866ca73dfe4770ec585d200a6b6a7a4293c2ff572a2f5b50ef091
|
||||
DIST unicode-data-15.0.0-UCD.zip 7059105 BLAKE2B 5615eeb9a73f9bd36986bd0d8fdc3c22d8b33d6ba36bb79f1d78ead2f4193fd926f1dd939c9c53047efdbd9346937f66e8c7cbf538ea4fe6a4bd5bdc02aa5528 SHA512 442a99694fccf0d1ff6f6236bec2cff7408eef4d9dba575ba4f5dc45cebf4d2b1b30334ef8a843887a0f410b24e0f79f7f30f06a195659def998875981604a6a
|
||||
DIST unicode-data-15.0.0-Unihan.zip 7293545 BLAKE2B 46d8b13ac6970a27d70262d45c703496dd99bff4ac7eefed2003f3f7d02b070461211eb03400f0fe0decfb65a3dccd0973c8da286f9f6fc84681dd263ea366b6 SHA512 d9cf39adebe83ed0fd8d473cf057b8aa8b2362019d9f7ee7afc041501b1bbbe4d13050350ac40ce4a020cd1d64d52548fe262c3b2893934a032e1de8075e964c
|
||||
|
@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Unicode data from unicode.org"
|
||||
HOMEPAGE="https://unicode.org/ucd/"
|
||||
SRC_URI="https://unicode.org/Public/zipped/${PV}/UCD.zip -> ${P}-UCD.zip
|
||||
https://unicode.org/Public/zipped/${PV}/Unihan.zip -> ${P}-Unihan.zip"
|
||||
|
||||
LICENSE="unicode"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
|
||||
DEPEND="app-arch/unzip"
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_unpack() {
|
||||
# Unihan.zip needs to be installed as a zip for reverse deps
|
||||
# https://bugzilla.gnome.org/show_bug.cgi?id=768210
|
||||
unpack ${P}-UCD.zip
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/${PN}
|
||||
doins -r "${S}"/*
|
||||
newins "${DISTDIR}"/${P}-Unihan.zip Unihan.zip
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit qmake-utils desktop
|
||||
|
||||
DESCRIPTION="Free and easy to use diagnostic and adjustment tool for SUBARU® vehicles"
|
||||
HOMEPAGE="https://github.com/Comer352L/FreeSSM"
|
||||
|
||||
GIT_COMMIT="97576c03578ec8564b5db67d59fb52502ad7a932"
|
||||
SRC_URI="https://github.com/Comer352L/FreeSSM/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE="small-resolution"
|
||||
|
||||
RDEPEND="
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtprintsupport:5
|
||||
dev-qt/qtwidgets:5
|
||||
media-libs/libglvnd
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
dev-qt/linguist-tools:5
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${PN}-${GIT_COMMIT}"
|
||||
|
||||
src_configure() {
|
||||
eqmake5 FreeSSM.pro $(usex small-resolution CONFIG+=small-resolution "")
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake release
|
||||
emake translation
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local installdir="/usr/share/${PN}"
|
||||
eqmake5 INSTALLDIR="${D}${installdir}"
|
||||
emake release-install
|
||||
|
||||
make_desktop_entry "${installdir}/${PN}" ${PN} "${installdir}/${PN}.png"
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit qmake-utils desktop
|
||||
|
||||
DESCRIPTION="Free and easy to use diagnostic and adjustment tool for SUBARU® vehicles"
|
||||
HOMEPAGE="https://github.com/Comer352L/FreeSSM"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/Comer352L/FreeSSM.git"
|
||||
else
|
||||
SRC_URI="https://github.com/Comer352L/FreeSSM/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE="small-resolution"
|
||||
|
||||
RDEPEND="
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtprintsupport:5
|
||||
dev-qt/qtwidgets:5
|
||||
media-libs/libglvnd
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
dev-qt/linguist-tools:5
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
eqmake5 FreeSSM.pro $(usex small-resolution CONFIG+=small-resolution "")
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake release
|
||||
emake translation
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local installdir="/usr/share/${PN}"
|
||||
|
||||
eqmake5 INSTALLDIR="${D}${installdir}"
|
||||
emake release-install
|
||||
|
||||
make_desktop_entry "${installdir}/${PN}" ${PN} "${installdir}/${PN}.png"
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST FreeSSM-1.2.5_p20210702.tar.gz 1422551 BLAKE2B d9f3219f225cc2678773a20afa78eee3249a1043f354dfab64eb11debfde8d66b4f0e6fe6b9252e98fccc9b29fb105712fa3da491007f285179fe5060547da20 SHA512 72f8883ee44a056ed3886a7cab5186c45e1f1b571195de9d556805e90d178efd2b25460a7b87c7c4a727807ada04199c2131aef509d8aa0e68eab1b664b63411
|
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>fordfrog@gentoo.org</email>
|
||||
<description>Miroslav Šulc</description>
|
||||
</maintainer>
|
||||
<longdescription>
|
||||
FreeSSM is a free and easy to use diagnostic and adjustment tool for SUBARU®
|
||||
vehicles. It currently supports the models LEGACY®, LIBERTY®, OUTBACK®, BAJA®,
|
||||
IMPREZA®, FORESTER® and TRIBECA® starting with model year 1999 and provides
|
||||
access to the engine and transmission control units.
|
||||
</longdescription>
|
||||
<use>
|
||||
<flag name="small-resolution">Build the app for small resolution screeens</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">Comer352L/FreeSSM</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Binary file not shown.
@ -1,11 +0,0 @@
|
||||
--- a/data/klavaro.desktop.in
|
||||
+++ b/data/klavaro.desktop.in
|
||||
@@ -2,7 +2,7 @@
|
||||
Name=Klavaro
|
||||
_Comment=A very flexible and efficient touch typing tutor.
|
||||
# Translators: these are keywords related to the program. CAI above means Computer Aided Instruction. Feel free to add and/or change the keywords in your language.
|
||||
-_Keywords=keyboard;typing;tutor;CAI
|
||||
+_Keywords=keyboard;typing;tutor;CAI;
|
||||
|
||||
Exec=klavaro
|
||||
Icon=klavaro
|
Binary file not shown.
@ -0,0 +1 @@
|
||||
DIST Endeavour-v42.0.tar.bz2 606645 BLAKE2B f9575eeaa67f837e465cbf8e8790a477c299bea12410ceda3c1f9ab5df69948087c7c8679cee5651eac828b69fe64f2b22ff759c2174f044166b94a25270668c SHA512 6312bad832f864adc3e4e01112efccb9c867b31485460791a1d1cf0d515586e7fdb7dd9dca3790201f764b72c39cff69626794f7020b4b084034fdbd0e07d94a
|
@ -0,0 +1,84 @@
|
||||
From b492285e2a4fafad887df2c4fd2a5bdb53ce39fb Mon Sep 17 00:00:00 2001
|
||||
From: Jamie Murphy <hello@itsjamie.dev>
|
||||
Date: Fri, 5 Aug 2022 18:52:20 -0700
|
||||
Subject: [PATCH] build: Generate enum headers first
|
||||
|
||||
Fixes #380, #398, !120, !110
|
||||
---
|
||||
src/meson.build | 38 +++++++++++++++++++-------------------
|
||||
src/plugins/meson.build | 3 ++-
|
||||
2 files changed, 21 insertions(+), 20 deletions(-)
|
||||
|
||||
diff --git a/src/meson.build b/src/meson.build
|
||||
index deb410a2..8f621e78 100644
|
||||
--- a/src/meson.build
|
||||
+++ b/src/meson.build
|
||||
@@ -16,6 +16,25 @@ vcs_identifier_h = declare_dependency(sources: vcs_tag)
|
||||
|
||||
endeavour_deps += vcs_identifier_h
|
||||
|
||||
+#########
|
||||
+# Enums #
|
||||
+#########
|
||||
+
|
||||
+enum_headers = files(
|
||||
+ join_paths('animation', 'gtd-animation-enums.h'),
|
||||
+)
|
||||
+
|
||||
+enum_types = 'gtd-enum-types'
|
||||
+
|
||||
+gtd_enum_types = gnome.mkenums(
|
||||
+ enum_types,
|
||||
+ sources: enum_headers,
|
||||
+ c_template: enum_types + '.c.template',
|
||||
+ h_template: enum_types + '.h.template'
|
||||
+)
|
||||
+
|
||||
+sources += gtd_enum_types
|
||||
+
|
||||
###########
|
||||
# Plugins #
|
||||
###########
|
||||
@@ -42,25 +61,6 @@ gtd_deps = endeavour_deps + [
|
||||
plugins_dep,
|
||||
]
|
||||
|
||||
-
|
||||
-#########
|
||||
-# Enums #
|
||||
-#########
|
||||
-
|
||||
-enum_headers = files(
|
||||
- join_paths('animation', 'gtd-animation-enums.h'),
|
||||
-)
|
||||
-
|
||||
-enum_types = 'gtd-enum-types'
|
||||
-
|
||||
-sources += gnome.mkenums(
|
||||
- enum_types,
|
||||
- sources: enum_headers,
|
||||
- c_template: enum_types + '.c.template',
|
||||
- h_template: enum_types + '.h.template'
|
||||
-)
|
||||
-
|
||||
-
|
||||
################
|
||||
# Header files #
|
||||
################
|
||||
diff --git a/src/plugins/meson.build b/src/plugins/meson.build
|
||||
index 3d7ac4e4..2a13aff5 100644
|
||||
--- a/src/plugins/meson.build
|
||||
+++ b/src/plugins/meson.build
|
||||
@@ -3,7 +3,8 @@ plugins_incs = [
|
||||
include_directories('..'),
|
||||
]
|
||||
|
||||
-plugins_sources = []
|
||||
+# Ensure enum types header is generated before building plugins
|
||||
+plugins_sources = [ gtd_enum_types[1] ]
|
||||
plugins_deps = [ endeavour_deps ]
|
||||
plugins_ldflags = []
|
||||
plugins_libs = []
|
||||
--
|
||||
2.35.1
|
||||
|
@ -1 +0,0 @@
|
||||
DIST gnome-todo-3.28.1.tar.xz 751448 BLAKE2B 55c4909d35e65a763bd283e55b85dc3a6dc0190c39f3f97c33bde7c071abd8e7a88479ed72733e66bd550133bb683ed9cafb9dff36f41b4f7d6bcb9f889f2a39 SHA512 26371dd2a460656b5b7d323420cfdc3f26c548cabe0bf6a01081a017d68e062fb54164f6d0c5cf5054b59f30be65681dedde450d9b98b88f73c07131cd01f57a
|
@ -1,29 +0,0 @@
|
||||
https://bugs.gentoo.org/832136
|
||||
--- a/data/appdata/meson.build
|
||||
+++ b/data/appdata/meson.build
|
||||
@@ -1,7 +1,6 @@
|
||||
appdata = 'org.gnome.Todo.appdata.xml'
|
||||
|
||||
i18n.merge_file(
|
||||
- appdata,
|
||||
input: appdata + '.in',
|
||||
output: appdata,
|
||||
po_dir: po_dir,
|
||||
--- a/data/meson.build
|
||||
+++ b/data/meson.build
|
||||
@@ -1,7 +1,6 @@
|
||||
desktop = 'org.gnome.Todo.desktop'
|
||||
|
||||
i18n.merge_file(
|
||||
- desktop,
|
||||
type: 'desktop',
|
||||
input: desktop + '.in',
|
||||
output: desktop,
|
||||
@@ -13,7 +12,6 @@ i18n.merge_file(
|
||||
autostart = 'org.gnome.Todo.Autostart.desktop'
|
||||
|
||||
i18n.merge_file(
|
||||
- autostart,
|
||||
type: 'desktop',
|
||||
input: autostart + '.in',
|
||||
output: autostart,
|
@ -1,560 +0,0 @@
|
||||
Taken from Fedora from
|
||||
https://src.fedoraproject.org/rpms/gnome-todo/raw/master/f/gnome-todo-eds-libecal-2.0.patch
|
||||
|
||||
--- a/plugins/eds/gtd-eds-autoptr.h
|
||||
+++ b/plugins/eds/gtd-eds-autoptr.h
|
||||
@@ -23,6 +23,5 @@
|
||||
#include <libecal/libecal.h>
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ECalComponent, g_object_unref);
|
||||
-G_DEFINE_AUTOPTR_CLEANUP_FUNC (ECalComponentId, e_cal_component_free_id);
|
||||
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (ECalComponentId, e_cal_component_id_free);
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ECalClient, g_object_unref);
|
||||
-G_DEFINE_AUTOPTR_CLEANUP_FUNC (ESource, g_object_unref);
|
||||
--- a/plugins/eds/gtd-provider-eds.c
|
||||
+++ b/plugins/eds/gtd-provider-eds.c
|
||||
@@ -554,6 +554,7 @@ gtd_provider_eds_create_task (GtdProvider *provider,
|
||||
|
||||
e_cal_client_create_object (client,
|
||||
e_cal_component_get_icalcomponent (component),
|
||||
+ E_CAL_OPERATION_FLAG_NONE,
|
||||
NULL,
|
||||
(GAsyncReadyCallback) on_task_created_cb,
|
||||
new_task);
|
||||
@@ -587,6 +588,7 @@ gtd_provider_eds_update_task (GtdProvider *provider,
|
||||
e_cal_client_modify_object (client,
|
||||
e_cal_component_get_icalcomponent (component),
|
||||
E_CAL_OBJ_MOD_THIS,
|
||||
+ E_CAL_OPERATION_FLAG_NONE,
|
||||
NULL,
|
||||
(GAsyncReadyCallback) on_task_modified_cb,
|
||||
task);
|
||||
@@ -616,9 +618,10 @@ gtd_provider_eds_remove_task (GtdProvider *provider,
|
||||
gtd_object_push_loading (GTD_OBJECT (provider));
|
||||
|
||||
e_cal_client_remove_object (client,
|
||||
- id->uid,
|
||||
- id->rid,
|
||||
+ e_cal_component_id_get_uid (id),
|
||||
+ e_cal_component_id_get_rid (id),
|
||||
E_CAL_OBJ_MOD_THIS,
|
||||
+ E_CAL_OPERATION_FLAG_NONE,
|
||||
NULL,
|
||||
(GAsyncReadyCallback) on_task_removed_cb,
|
||||
provider);
|
||||
--- a/plugins/eds/gtd-task-eds.c
|
||||
+++ b/plugins/eds/gtd-task-eds.c
|
||||
@@ -46,19 +46,19 @@ static GParamSpec *properties [N_PROPS];
|
||||
*/
|
||||
|
||||
static GDateTime*
|
||||
-convert_icaltime (const icaltimetype *date)
|
||||
+convert_icaltime (const ICalTime *date)
|
||||
{
|
||||
GDateTime *dt;
|
||||
|
||||
if (!date)
|
||||
return NULL;
|
||||
|
||||
- dt = g_date_time_new_utc (date->year,
|
||||
- date->month,
|
||||
- date->day,
|
||||
- date->is_date ? 0 : date->hour,
|
||||
- date->is_date ? 0 : date->minute,
|
||||
- date->is_date ? 0 : date->second);
|
||||
+ dt = g_date_time_new_utc (i_cal_time_get_year (date),
|
||||
+ i_cal_time_get_month (date),
|
||||
+ i_cal_time_get_day (date),
|
||||
+ i_cal_time_is_date (date) ? 0 : i_cal_time_get_hour (date),
|
||||
+ i_cal_time_is_date (date) ? 0 : i_cal_time_get_minute (date),
|
||||
+ i_cal_time_is_date (date) ? 0 : i_cal_time_get_second (date));
|
||||
|
||||
return dt;
|
||||
}
|
||||
@@ -67,19 +67,20 @@ static void
|
||||
set_description (GtdTaskEds *self,
|
||||
const gchar *description)
|
||||
{
|
||||
- ECalComponentText text;
|
||||
+ ECalComponentText *text;
|
||||
GSList note;
|
||||
|
||||
- text.value = description && *description ? description : "";
|
||||
- text.altrep = NULL;
|
||||
+ text = e_cal_component_text_new (description ? description : "", NULL);
|
||||
|
||||
- note.data = &text;
|
||||
+ note.data = text;
|
||||
note.next = NULL;
|
||||
|
||||
g_clear_pointer (&self->description, g_free);
|
||||
self->description = g_strdup (description);
|
||||
|
||||
- e_cal_component_set_description_list (self->component, ¬e);
|
||||
+ e_cal_component_set_descriptions (self->component, (description && *description) ? ¬e : NULL);
|
||||
+
|
||||
+ e_cal_component_text_free (text);
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -90,7 +91,7 @@ setup_description (GtdTaskEds *self)
|
||||
GSList *l;
|
||||
|
||||
/* concatenates the multiple descriptions a task may have */
|
||||
- e_cal_component_get_description_list (self->component, &text_list);
|
||||
+ text_list = e_cal_component_get_descriptions (self->component);
|
||||
|
||||
for (l = text_list; l != NULL; l = l->next)
|
||||
{
|
||||
@@ -105,21 +106,21 @@ setup_description (GtdTaskEds *self)
|
||||
{
|
||||
carrier = g_strconcat (desc,
|
||||
"\n",
|
||||
- text->value,
|
||||
+ e_cal_component_text_get_value (text),
|
||||
NULL);
|
||||
g_free (desc);
|
||||
desc = carrier;
|
||||
}
|
||||
else
|
||||
{
|
||||
- desc = g_strdup (text->value);
|
||||
+ desc = g_strdup (e_cal_component_text_get_value (text));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
set_description (self, desc);
|
||||
|
||||
- e_cal_component_free_text_list (text_list);
|
||||
+ g_slist_free_full (text_list, e_cal_component_text_free);
|
||||
}
|
||||
|
||||
|
||||
@@ -138,7 +139,7 @@ gtd_task_eds_get_uid (GtdObject *object)
|
||||
self = GTD_TASK_EDS (object);
|
||||
|
||||
if (self->component)
|
||||
- e_cal_component_get_uid (self->component, &uid);
|
||||
+ uid = e_cal_component_get_uid (self->component);
|
||||
else
|
||||
uid = NULL;
|
||||
|
||||
@@ -159,7 +160,7 @@ gtd_task_eds_set_uid (GtdObject *object,
|
||||
if (!self->component)
|
||||
return;
|
||||
|
||||
- e_cal_component_get_uid (self->component, ¤t_uid);
|
||||
+ current_uid = e_cal_component_get_uid (self->component);
|
||||
|
||||
if (g_strcmp0 (current_uid, uid) != 0)
|
||||
{
|
||||
@@ -177,7 +178,7 @@ gtd_task_eds_set_uid (GtdObject *object,
|
||||
static gboolean
|
||||
gtd_task_eds_get_complete (GtdTask *task)
|
||||
{
|
||||
- icalproperty_status status;
|
||||
+ ICalPropertyStatus status;
|
||||
GtdTaskEds *self;
|
||||
gboolean completed;
|
||||
|
||||
@@ -185,8 +186,8 @@ gtd_task_eds_get_complete (GtdTask *task)
|
||||
|
||||
self = GTD_TASK_EDS (task);
|
||||
|
||||
- e_cal_component_get_status (self->component, &status);
|
||||
- completed = status == ICAL_STATUS_COMPLETED;
|
||||
+ status = e_cal_component_get_status (self->component);
|
||||
+ completed = status == I_CAL_STATUS_COMPLETED;
|
||||
|
||||
return completed;
|
||||
}
|
||||
@@ -195,8 +196,8 @@ static void
|
||||
gtd_task_eds_set_complete (GtdTask *task,
|
||||
gboolean complete)
|
||||
{
|
||||
- icalproperty_status status;
|
||||
- icaltimetype *dt;
|
||||
+ ICalPropertyStatus status;
|
||||
+ ICalTime *dt;
|
||||
GtdTaskEds *self;
|
||||
gint percent;
|
||||
|
||||
@@ -209,54 +210,54 @@ gtd_task_eds_set_complete (GtdTask *task,
|
||||
percent = 100;
|
||||
status = ICAL_STATUS_COMPLETED;
|
||||
|
||||
- dt = g_new0 (icaltimetype, 1);
|
||||
- dt->year = g_date_time_get_year (now);
|
||||
- dt->month = g_date_time_get_month (now);
|
||||
- dt->day = g_date_time_get_day_of_month (now);
|
||||
- dt->hour = g_date_time_get_hour (now);
|
||||
- dt->minute = g_date_time_get_minute (now);
|
||||
- dt->second = g_date_time_get_seconds (now);
|
||||
- dt->zone = icaltimezone_get_utc_timezone ();
|
||||
+ dt = i_cal_time_new_null_time ();
|
||||
+ i_cal_time_set_date (dt,
|
||||
+ g_date_time_get_year (now),
|
||||
+ g_date_time_get_month (now),
|
||||
+ g_date_time_get_day_of_month (now));
|
||||
+ i_cal_time_set_time (dt,
|
||||
+ g_date_time_get_hour (now),
|
||||
+ g_date_time_get_minute (now),
|
||||
+ g_date_time_get_seconds (now));
|
||||
+ i_cal_time_set_timezone (dt, i_cal_timezone_get_utc_timezone ());
|
||||
|
||||
/* convert timezone
|
||||
*
|
||||
* FIXME: This does not do anything until we have an ical
|
||||
* timezone associated with the task
|
||||
*/
|
||||
- icaltimezone_convert_time (dt, NULL, icaltimezone_get_utc_timezone ());
|
||||
+ i_cal_time_convert_timezone (dt, NULL, i_cal_timezone_get_utc_timezone ());
|
||||
}
|
||||
else
|
||||
{
|
||||
dt = NULL;
|
||||
percent = 0;
|
||||
- status = ICAL_STATUS_NEEDSACTION;
|
||||
+ status = I_CAL_STATUS_NEEDSACTION;
|
||||
}
|
||||
|
||||
- e_cal_component_set_percent_as_int (self->component, percent);
|
||||
+ e_cal_component_set_percent_complete (self->component, percent);
|
||||
e_cal_component_set_status (self->component, status);
|
||||
e_cal_component_set_completed (self->component, dt);
|
||||
|
||||
- if (dt)
|
||||
- e_cal_component_free_icaltimetype (dt);
|
||||
+ g_clear_object (&dt);
|
||||
}
|
||||
|
||||
static GDateTime*
|
||||
gtd_task_eds_get_creation_date (GtdTask *task)
|
||||
{
|
||||
- icaltimetype *idt;
|
||||
+ ICalTime *idt;
|
||||
GtdTaskEds *self;
|
||||
GDateTime *dt;
|
||||
|
||||
self = GTD_TASK_EDS (task);
|
||||
- idt = NULL;
|
||||
dt = NULL;
|
||||
|
||||
- e_cal_component_get_created (self->component, &idt);
|
||||
+ idt = e_cal_component_get_created (self->component);
|
||||
|
||||
if (idt)
|
||||
dt = convert_icaltime (idt);
|
||||
|
||||
- g_clear_pointer (&idt, e_cal_component_free_icaltimetype);
|
||||
+ g_clear_object (&idt);
|
||||
|
||||
return dt;
|
||||
}
|
||||
@@ -286,7 +287,7 @@ gtd_task_eds_set_description (GtdTask *task,
|
||||
static GDateTime*
|
||||
gtd_task_eds_get_due_date (GtdTask *task)
|
||||
{
|
||||
- ECalComponentDateTime comp_dt;
|
||||
+ ECalComponentDateTime *comp_dt;
|
||||
GtdTaskEds *self;
|
||||
GDateTime *date;
|
||||
|
||||
@@ -294,10 +295,12 @@ gtd_task_eds_get_due_date (GtdTask *task)
|
||||
|
||||
self = GTD_TASK_EDS (task);
|
||||
|
||||
- e_cal_component_get_due (self->component, &comp_dt);
|
||||
+ comp_dt = e_cal_component_get_due (self->component);
|
||||
+ if (!comp_dt)
|
||||
+ return NULL;
|
||||
|
||||
- date = convert_icaltime (comp_dt.value);
|
||||
- e_cal_component_free_datetime (&comp_dt);
|
||||
+ date = convert_icaltime (e_cal_component_datetime_get_value (comp_dt));
|
||||
+ e_cal_component_datetime_free (comp_dt);
|
||||
|
||||
return date;
|
||||
}
|
||||
@@ -317,11 +320,10 @@ gtd_task_eds_set_due_date (GtdTask *task,
|
||||
|
||||
if (dt != current_dt)
|
||||
{
|
||||
- ECalComponentDateTime comp_dt;
|
||||
- icaltimetype *idt;
|
||||
+ ECalComponentDateTime *comp_dt;
|
||||
+ ICalTime *idt;
|
||||
|
||||
- comp_dt.value = NULL;
|
||||
- comp_dt.tzid = NULL;
|
||||
+ comp_dt = NULL;
|
||||
idt = NULL;
|
||||
|
||||
if (!current_dt ||
|
||||
@@ -329,36 +331,34 @@ gtd_task_eds_set_due_date (GtdTask *task,
|
||||
dt &&
|
||||
g_date_time_compare (current_dt, dt) != 0))
|
||||
{
|
||||
- idt = g_new0 (icaltimetype, 1);
|
||||
+ idt = i_cal_time_new_null_time ();
|
||||
|
||||
g_date_time_ref (dt);
|
||||
|
||||
/* Copy the given dt */
|
||||
- idt->year = g_date_time_get_year (dt);
|
||||
- idt->month = g_date_time_get_month (dt);
|
||||
- idt->day = g_date_time_get_day_of_month (dt);
|
||||
- idt->hour = g_date_time_get_hour (dt);
|
||||
- idt->minute = g_date_time_get_minute (dt);
|
||||
- idt->second = g_date_time_get_seconds (dt);
|
||||
- idt->is_date = (idt->hour == 0 &&
|
||||
- idt->minute == 0 &&
|
||||
- idt->second == 0);
|
||||
-
|
||||
- comp_dt.tzid = g_strdup ("UTC");
|
||||
+ i_cal_time_set_date (idt,
|
||||
+ g_date_time_get_year (dt),
|
||||
+ g_date_time_get_month (dt),
|
||||
+ g_date_time_get_day_of_month (dt));
|
||||
+ i_cal_time_set_time (idt,
|
||||
+ g_date_time_get_hour (dt),
|
||||
+ g_date_time_get_minute (dt),
|
||||
+ g_date_time_get_seconds (dt));
|
||||
+ i_cal_time_set_is_date (idt,
|
||||
+ i_cal_time_get_hour (idt) == 0 &&
|
||||
+ i_cal_time_get_minute (idt) == 0 &&
|
||||
+ i_cal_time_get_second (idt) == 0);
|
||||
|
||||
- comp_dt.value = idt;
|
||||
+ comp_dt = e_cal_component_datetime_new_take (idt, g_strdup ("UTC"));
|
||||
|
||||
- e_cal_component_set_due (self->component, &comp_dt);
|
||||
+ e_cal_component_set_due (self->component, comp_dt);
|
||||
|
||||
- e_cal_component_free_datetime (&comp_dt);
|
||||
+ e_cal_component_datetime_free (comp_dt);
|
||||
|
||||
g_date_time_unref (dt);
|
||||
}
|
||||
else if (!dt)
|
||||
{
|
||||
- idt = NULL;
|
||||
- comp_dt.tzid = NULL;
|
||||
-
|
||||
e_cal_component_set_due (self->component, NULL);
|
||||
}
|
||||
}
|
||||
@@ -369,19 +369,13 @@ gtd_task_eds_set_due_date (GtdTask *task,
|
||||
static gint32
|
||||
gtd_task_eds_get_priority (GtdTask *task)
|
||||
{
|
||||
- g_autofree gint *priority = NULL;
|
||||
GtdTaskEds *self;
|
||||
|
||||
g_assert (GTD_IS_TASK_EDS (task));
|
||||
|
||||
self = GTD_TASK_EDS (task);
|
||||
|
||||
- e_cal_component_get_priority (self->component, &priority);
|
||||
-
|
||||
- if (!priority)
|
||||
- return -1;
|
||||
-
|
||||
- return *priority;
|
||||
+ return e_cal_component_get_priority (self->component);
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -394,29 +388,26 @@ gtd_task_eds_set_priority (GtdTask *task,
|
||||
|
||||
self = GTD_TASK_EDS (task);
|
||||
|
||||
- e_cal_component_set_priority (self->component, &priority);
|
||||
+ e_cal_component_set_priority (self->component, priority);
|
||||
}
|
||||
|
||||
static const gchar*
|
||||
gtd_task_eds_get_title (GtdTask *task)
|
||||
{
|
||||
- ECalComponentText summary;
|
||||
GtdTaskEds *self;
|
||||
|
||||
g_return_val_if_fail (GTD_IS_TASK_EDS (task), NULL);
|
||||
|
||||
self = GTD_TASK_EDS (task);
|
||||
|
||||
- e_cal_component_get_summary (self->component, &summary);
|
||||
-
|
||||
- return summary.value;
|
||||
+ return i_cal_component_get_summary (e_cal_component_get_icalcomponent (self->component));
|
||||
}
|
||||
|
||||
static void
|
||||
gtd_task_eds_set_title (GtdTask *task,
|
||||
const gchar *title)
|
||||
{
|
||||
- ECalComponentText new_summary;
|
||||
+ ECalComponentText *new_summary;
|
||||
GtdTaskEds *self;
|
||||
|
||||
g_return_if_fail (GTD_IS_TASK_EDS (task));
|
||||
@@ -424,10 +415,11 @@ gtd_task_eds_set_title (GtdTask *task,
|
||||
|
||||
self = GTD_TASK_EDS (task);
|
||||
|
||||
- new_summary.value = title;
|
||||
- new_summary.altrep = NULL;
|
||||
+ new_summary = e_cal_component_text_new (title, NULL);
|
||||
|
||||
- e_cal_component_set_summary (self->component, &new_summary);
|
||||
+ e_cal_component_set_summary (self->component, new_summary);
|
||||
+
|
||||
+ e_cal_component_text_free (new_summary);
|
||||
}
|
||||
|
||||
|
||||
@@ -436,10 +428,10 @@ gtd_task_eds_subtask_added (GtdTask *task,
|
||||
GtdTask *subtask)
|
||||
{
|
||||
g_autoptr (GList) subtasks = NULL;
|
||||
- ECalComponentId *id;
|
||||
+ const gchar *uid;
|
||||
ECalComponent *comp;
|
||||
- icalcomponent *ical_comp;
|
||||
- icalproperty *property;
|
||||
+ ICalComponent *ical_comp;
|
||||
+ ICalProperty *property;
|
||||
GtdTaskEds *subtask_self;
|
||||
GtdTaskEds *self;
|
||||
|
||||
@@ -450,17 +442,17 @@ gtd_task_eds_subtask_added (GtdTask *task,
|
||||
/* Hook with parent's :subtask_added */
|
||||
GTD_TASK_CLASS (gtd_task_eds_parent_class)->subtask_added (task, subtask);
|
||||
|
||||
- id = e_cal_component_get_id (self->component);
|
||||
+ uid = e_cal_component_get_uid (self->component);
|
||||
comp = subtask_self->component;
|
||||
ical_comp = e_cal_component_get_icalcomponent (comp);
|
||||
- property = icalcomponent_get_first_property (ical_comp, ICAL_RELATEDTO_PROPERTY);
|
||||
+ property = i_cal_component_get_first_property (ical_comp, I_CAL_RELATEDTO_PROPERTY);
|
||||
|
||||
if (property)
|
||||
- icalproperty_set_relatedto (property, id->uid);
|
||||
+ i_cal_property_set_relatedto (property, uid);
|
||||
else
|
||||
- icalcomponent_add_property (ical_comp, icalproperty_new_relatedto (id->uid));
|
||||
+ i_cal_component_take_property (ical_comp, i_cal_property_new_relatedto (uid));
|
||||
|
||||
- e_cal_component_free_id (id);
|
||||
+ g_clear_object (&property);
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -468,8 +460,8 @@ gtd_task_eds_subtask_removed (GtdTask *task,
|
||||
GtdTask *subtask)
|
||||
{
|
||||
g_autoptr (GList) subtasks = NULL;
|
||||
- icalcomponent *ical_comp;
|
||||
- icalproperty *property;
|
||||
+ ICalComponent *ical_comp;
|
||||
+ ICalProperty *property;
|
||||
GtdTaskEds *subtask_self;
|
||||
|
||||
subtask_self = GTD_TASK_EDS (subtask);
|
||||
@@ -480,12 +472,13 @@ gtd_task_eds_subtask_removed (GtdTask *task,
|
||||
|
||||
/* Remove the parent link from the subtask's component */
|
||||
ical_comp = e_cal_component_get_icalcomponent (subtask_self->component);
|
||||
- property = icalcomponent_get_first_property (ical_comp, ICAL_RELATEDTO_PROPERTY);
|
||||
+ property = i_cal_component_get_first_property (ical_comp, I_CAL_RELATEDTO_PROPERTY);
|
||||
|
||||
if (!property)
|
||||
return;
|
||||
|
||||
- icalcomponent_remove_property (ical_comp, property);
|
||||
+ i_cal_component_remove_property (ical_comp, property);
|
||||
+ g_object_unref (property);
|
||||
}
|
||||
|
||||
|
||||
--- a/plugins/eds/gtd-task-list-eds.c
|
||||
+++ b/plugins/eds/gtd-task-list-eds.c
|
||||
@@ -85,19 +85,19 @@ setup_parent_task (GtdTaskListEds *self,
|
||||
GtdTask *task)
|
||||
{
|
||||
ECalComponent *component;
|
||||
- icalcomponent *ical_comp;
|
||||
- icalproperty *property;
|
||||
+ ICalComponent *ical_comp;
|
||||
+ ICalProperty *property;
|
||||
GtdTask *parent_task;
|
||||
const gchar *parent_uid;
|
||||
|
||||
component = gtd_task_eds_get_component (GTD_TASK_EDS (task));
|
||||
ical_comp = e_cal_component_get_icalcomponent (component);
|
||||
- property = icalcomponent_get_first_property (ical_comp, ICAL_RELATEDTO_PROPERTY);
|
||||
+ property = i_cal_component_get_first_property (ical_comp, I_CAL_RELATEDTO_PROPERTY);
|
||||
|
||||
if (!property)
|
||||
return;
|
||||
|
||||
- parent_uid = icalproperty_get_relatedto (property);
|
||||
+ parent_uid = i_cal_property_get_relatedto (property);
|
||||
parent_task = gtd_task_list_get_task_by_id (GTD_TASK_LIST (self), parent_uid);
|
||||
|
||||
if (parent_task)
|
||||
@@ -112,6 +112,8 @@ setup_parent_task (GtdTaskListEds *self,
|
||||
|
||||
g_ptr_array_add (self->pending_subtasks, data);
|
||||
}
|
||||
+
|
||||
+ g_object_unref (property);
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -161,8 +163,8 @@ on_view_objects_added_cb (ECalClientView *view,
|
||||
GtdTask *task;
|
||||
const gchar *uid;
|
||||
|
||||
- component = e_cal_component_new_from_string (icalcomponent_as_ical_string (l->data));
|
||||
- e_cal_component_get_uid (component, &uid);
|
||||
+ component = e_cal_component_new_from_icalcomponent (i_cal_component_clone (l->data));
|
||||
+ uid = e_cal_component_get_uid (component);
|
||||
|
||||
task = gtd_task_list_get_task_by_id (self, uid);
|
||||
|
||||
@@ -211,8 +213,8 @@ on_view_objects_modified_cb (ECalClientView *view,
|
||||
GtdTask *task;
|
||||
const gchar *uid;
|
||||
|
||||
- component = e_cal_component_new_from_string (icalcomponent_as_ical_string (l->data));
|
||||
- e_cal_component_get_uid (component, &uid);
|
||||
+ component = e_cal_component_new_from_icalcomponent (i_cal_component_clone (l->data));
|
||||
+ uid = e_cal_component_get_uid (component);
|
||||
|
||||
task = gtd_task_list_get_task_by_id (self, uid);
|
||||
|
||||
@@ -244,7 +246,7 @@ on_view_objects_removed_cb (ECalClientView *view,
|
||||
GtdTask *task;
|
||||
|
||||
id = l->data;
|
||||
- task = gtd_task_list_get_task_by_id (self, id->uid);
|
||||
+ task = gtd_task_list_get_task_by_id (self, e_cal_component_id_get_uid (id));
|
||||
|
||||
if (!task)
|
||||
continue;
|
||||
--- a/plugins/eds/meson.build
|
||||
+++ b/plugins/eds/meson.build
|
||||
@@ -8,10 +8,9 @@ plugins_ldflags += ['-Wl,--undefined=gtd_plugin_eds_register_types']
|
||||
################
|
||||
|
||||
eds_plugin_deps = [
|
||||
- dependency('libecal-1.2', version: '>= 3.13.90'),
|
||||
+ dependency('libecal-2.0', version: '>= 3.33.1'),
|
||||
dependency('libedataserver-1.2', version: '>= 3.17.1'),
|
||||
dependency('libedataserverui-1.2', version: '>= 3.17.1'),
|
||||
- dependency('libical', version: '>= 0.43'),
|
||||
]
|
||||
|
||||
eds_plugin_deps += gnome_todo_deps
|
@ -1,2 +1 @@
|
||||
DIST kmymoney-5.1.2.tar.xz 12640912 BLAKE2B 72abd190914eef258e6745ca9835de14bdb2060b0d025f8bdb1bc0e12b773fc891b143fe36adb8b7afcc86498601f6e1a7f9485f9a11c875f4c75bfe01d93738 SHA512 38c60998be4e3ffb49091eb2085b293c2d5265f6582e980d2dc60a66a00862b6afd3e2152c752a9fb14a7bf8b6255a0c39b69b65e2f5c976f23d965e3a1cdf46
|
||||
DIST kmymoney-5.1.3.tar.xz 12647372 BLAKE2B 09580873985bb41c39c649bdb863ee25f4356dfea18b64d45f3b6bd528fd57fc2b5fd32a6541c10ed519da0e905bf6853589e7cab0f4c3b4f2945cd7a3181dba SHA512 2003f25b7df77691e5d3d0f450e0139b1e68336f59a4fc78af751c5b94ecfaf17a39ee1f58ed0c2cda642195c5277fbb63c87e857ebe9a6495dc7f88b9a38794
|
||||
|
@ -1,38 +0,0 @@
|
||||
From a06d2fe154f755c3af1e7f261cd631929b9da998 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?=C3=96mer=20Fad=C4=B1l=20USTA?= <omerusta@gmail.com>
|
||||
Date: Sat, 2 Oct 2021 22:16:06 +0300
|
||||
Subject: [PATCH] Fix Compile for Newer Akonadi Builds
|
||||
|
||||
---
|
||||
kmymoney/mymoney/mymoneycontact.cpp | 11 ++++++++++-
|
||||
1 file changed, 10 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/kmymoney/mymoney/mymoneycontact.cpp b/kmymoney/mymoney/mymoneycontact.cpp
|
||||
index acc3575ef..a32357290 100644
|
||||
--- a/kmymoney/mymoney/mymoneycontact.cpp
|
||||
+++ b/kmymoney/mymoney/mymoneycontact.cpp
|
||||
@@ -8,11 +8,20 @@
|
||||
#include "mymoneycontact.h"
|
||||
|
||||
#ifdef ENABLE_ADDRESSBOOK
|
||||
-#include <KIdentityManagement/IdentityManager>
|
||||
#include <KIdentityManagement/Identity>
|
||||
+#include <KIdentityManagement/IdentityManager>
|
||||
+#include <akonadi_version.h>
|
||||
+
|
||||
+#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 18, 41)
|
||||
+#include <Akonadi/Collection>
|
||||
+#include <Akonadi/ItemFetchScope>
|
||||
+#include <Akonadi/RecursiveItemFetchJob>
|
||||
+#else
|
||||
#include <AkonadiCore/RecursiveItemFetchJob>
|
||||
#include <AkonadiCore/ItemFetchScope>
|
||||
#include <AkonadiCore/Collection>
|
||||
+#endif
|
||||
+
|
||||
#include <KContacts/Addressee>
|
||||
#include <QRegularExpression>
|
||||
#endif
|
||||
--
|
||||
GitLab
|
||||
|
@ -1,135 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
EGIT_BRANCH="5.1"
|
||||
ECM_HANDBOOK="optional"
|
||||
ECM_TEST="forceoptional"
|
||||
KFMIN=5.74.0
|
||||
QTMIN=5.15.2
|
||||
VIRTUALX_REQUIRED="test"
|
||||
VIRTUALDBUS_TEST="true"
|
||||
inherit ecm kde.org optfeature
|
||||
|
||||
DESCRIPTION="Personal finance manager based on KDE Frameworks"
|
||||
HOMEPAGE="https://kmymoney.org/"
|
||||
|
||||
if [[ ${KDE_BUILD_TYPE} = release ]]; then
|
||||
SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz"
|
||||
KEYWORDS="amd64 x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="5"
|
||||
IUSE="activities addressbook calendar hbci holidays"
|
||||
[[ ${KDE_BUILD_TYPE} = live ]] && IUSE+=" experimental"
|
||||
|
||||
RDEPEND="
|
||||
>=app-crypt/gpgme-1.7.1-r1:=[cxx]
|
||||
>=app-office/libalkimia-7.0.0:=
|
||||
dev-db/sqlcipher
|
||||
dev-libs/gmp:0=[cxx(+)]
|
||||
dev-libs/kdiagram:5
|
||||
dev-libs/libgpg-error
|
||||
dev-libs/libofx:=
|
||||
>=dev-qt/qtdbus-${QTMIN}:5
|
||||
>=dev-qt/qtgui-${QTMIN}:5
|
||||
>=dev-qt/qtnetwork-${QTMIN}:5
|
||||
>=dev-qt/qtprintsupport-${QTMIN}:5
|
||||
>=dev-qt/qtsql-${QTMIN}:5
|
||||
>=dev-qt/qtsvg-${QTMIN}:5
|
||||
>=dev-qt/qtwebengine-${QTMIN}:5[widgets]
|
||||
>=dev-qt/qtwidgets-${QTMIN}:5
|
||||
>=dev-qt/qtxml-${QTMIN}:5
|
||||
>=kde-frameworks/karchive-${KFMIN}:5
|
||||
>=kde-frameworks/kcmutils-${KFMIN}:5
|
||||
>=kde-frameworks/kcodecs-${KFMIN}:5
|
||||
>=kde-frameworks/kcompletion-${KFMIN}:5
|
||||
>=kde-frameworks/kconfig-${KFMIN}:5
|
||||
>=kde-frameworks/kconfigwidgets-${KFMIN}:5
|
||||
>=kde-frameworks/kcoreaddons-${KFMIN}:5
|
||||
>=kde-frameworks/ki18n-${KFMIN}:5
|
||||
>=kde-frameworks/kiconthemes-${KFMIN}:5
|
||||
>=kde-frameworks/kio-${KFMIN}:5
|
||||
>=kde-frameworks/kitemmodels-${KFMIN}:5
|
||||
>=kde-frameworks/kitemviews-${KFMIN}:5
|
||||
>=kde-frameworks/kjobwidgets-${KFMIN}:5
|
||||
>=kde-frameworks/knotifications-${KFMIN}:5
|
||||
>=kde-frameworks/kservice-${KFMIN}:5
|
||||
>=kde-frameworks/ktextwidgets-${KFMIN}:5
|
||||
>=kde-frameworks/kwallet-${KFMIN}:5
|
||||
>=kde-frameworks/kwidgetsaddons-${KFMIN}:5
|
||||
>=kde-frameworks/kxmlgui-${KFMIN}:5
|
||||
>=kde-frameworks/sonnet-${KFMIN}:5
|
||||
activities? ( >=kde-frameworks/kactivities-${KFMIN}:5 )
|
||||
addressbook? (
|
||||
kde-apps/akonadi:5
|
||||
kde-apps/kidentitymanagement:5
|
||||
>=kde-frameworks/kcontacts-${KFMIN}:5
|
||||
)
|
||||
calendar? ( dev-libs/libical:= )
|
||||
hbci? (
|
||||
>=dev-qt/qtdeclarative-${QTMIN}:5
|
||||
>=net-libs/aqbanking-6.0.1
|
||||
>=sys-libs/gwenhywfar-5.1.2:=[qt5]
|
||||
)
|
||||
holidays? ( >=kde-frameworks/kholidays-${KFMIN}:5 )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-libs/boost
|
||||
"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-akonadi-21.12.0.patch" )
|
||||
|
||||
pkg_setup() {
|
||||
ecm_pkg_setup
|
||||
|
||||
if [[ ${KDE_BUILD_TYPE} = live ]] && use experimental; then
|
||||
ewarn "USE experimental set: Building unfinished features."
|
||||
ewarn "This *will* chew up your data. You have been warned."
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DENABLE_OFXIMPORTER=ON
|
||||
-DENABLE_WEBENGINE=ON
|
||||
-DENABLE_WEBOOB=OFF # ported to Py3; not yet re-added in Gentoo
|
||||
-DUSE_QT_DESIGNER=OFF
|
||||
$(cmake_use_find_package activities KF5Activities)
|
||||
$(cmake_use_find_package addressbook KF5Akonadi)
|
||||
$(cmake_use_find_package addressbook KF5Contacts)
|
||||
$(cmake_use_find_package addressbook KF5IdentityManagement)
|
||||
-DENABLE_LIBICAL=$(usex calendar)
|
||||
-DENABLE_KBANKING=$(usex hbci)
|
||||
$(cmake_use_find_package holidays KF5Holidays)
|
||||
)
|
||||
[[ ${KDE_BUILD_TYPE} = live ]] &&
|
||||
mycmakeargs+=( -DENABLE_UNFINISHEDFEATURES=$(usex experimental) )
|
||||
|
||||
ecm_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# bug 652636; bug 673052: needs kmymoney installed to succeed
|
||||
local myctestargs=(
|
||||
-E "(reports-chart-test|qsqlcipher-test)"
|
||||
)
|
||||
|
||||
ecm_src_test
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z "${REPLACING_VERSIONS}" ]]; then
|
||||
optfeature "more options for online stock quote retrieval" dev-perl/Finance-Quote
|
||||
fi
|
||||
if has_version "app-office/kmymoney[quotes]"; then
|
||||
elog "Please note: IUSE=quotes flag is gone in ${PN}-5.1.1. ${PN} still"
|
||||
elog "does online stock quote retrieval without it, but dev-perl/Finance-Quote"
|
||||
elog "may provide additional sources. To keep the functionality, run:"
|
||||
elog " emerge --noreplace dev-perl/Finance-Quote"
|
||||
fi
|
||||
ecm_pkg_postinst
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST skrooge-2.27.0.tar.xz 22185204 BLAKE2B 803281a5a5c491d696a43e046d28d9e846a1c8fa3456a5f93da1a2697d6d3a3181311eff50a06fa0190a99561f72afababa0d623bd8b93b22b8704106c48a8ba SHA512 d97ecb852c212d880b2ffc441e1a31915318800c06c386773cf9845f88e7ff4c8cefc72508e5d6c46f6bd1fdd93c0e9f2d2249c3ed05a878fd843a0c6c358d51
|
||||
DIST skrooge-2.28.0.tar.xz 22505268 BLAKE2B 1d514d433a420f23b8320245b098ba8f320e256ae3aa4868d57f5dd03150fc3886ac769f72fc8937f11bc58c8be157549d58b8396a04fa067580483588dd2225 SHA512 593ae4a7232bc688d0119dc6a621c23163a6e4cc9d6f1da592895ab8d37093c3c65e482397558d8620dc33aab796481cc929ebb863ccba168dd3fd01bb3f091f
|
||||
|
@ -1,99 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
ECM_HANDBOOK="optional"
|
||||
ECM_TEST="forceoptional"
|
||||
KFMIN=5.82.0
|
||||
QTMIN=5.15.2
|
||||
VIRTUALX_REQUIRED="test"
|
||||
inherit ecm kde.org
|
||||
|
||||
DESCRIPTION="Personal finances manager, aiming at being simple and intuitive"
|
||||
HOMEPAGE="https://skrooge.org/"
|
||||
|
||||
if [[ ${KDE_BUILD_TYPE} = release ]]; then
|
||||
SRC_URI="mirror://kde/stable/${PN}/${P}.tar.xz"
|
||||
KEYWORDS="amd64 x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="5"
|
||||
IUSE="activities kde ofx"
|
||||
|
||||
# hangs + installs files (also requires KF5DesignerPlugin)
|
||||
RESTRICT="test"
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=app-crypt/qca-2.3.0:2
|
||||
dev-db/sqlcipher
|
||||
dev-libs/grantlee:5
|
||||
>=dev-qt/qtconcurrent-${QTMIN}:5
|
||||
>=dev-qt/qtdbus-${QTMIN}:5
|
||||
>=dev-qt/qtdeclarative-${QTMIN}:5[widgets]
|
||||
>=dev-qt/qtgui-${QTMIN}:5
|
||||
>=dev-qt/qtnetwork-${QTMIN}:5
|
||||
>=dev-qt/qtprintsupport-${QTMIN}:5
|
||||
>=dev-qt/qtscript-${QTMIN}:5
|
||||
>=dev-qt/qtsql-${QTMIN}:5=
|
||||
>=dev-qt/qtsvg-${QTMIN}:5
|
||||
>=dev-qt/qtwebengine-${QTMIN}:5[widgets]
|
||||
>=dev-qt/qtwidgets-${QTMIN}:5
|
||||
>=dev-qt/qtxml-${QTMIN}:5
|
||||
>=kde-frameworks/karchive-${KFMIN}:5
|
||||
>=kde-frameworks/kcompletion-${KFMIN}:5
|
||||
>=kde-frameworks/kconfig-${KFMIN}:5
|
||||
>=kde-frameworks/kconfigwidgets-${KFMIN}:5
|
||||
>=kde-frameworks/kcoreaddons-${KFMIN}:5
|
||||
>=kde-frameworks/kdbusaddons-${KFMIN}:5
|
||||
>=kde-frameworks/ki18n-${KFMIN}:5
|
||||
>=kde-frameworks/kiconthemes-${KFMIN}:5
|
||||
>=kde-frameworks/kio-${KFMIN}:5
|
||||
>=kde-frameworks/kitemviews-${KFMIN}:5
|
||||
>=kde-frameworks/knewstuff-${KFMIN}:5
|
||||
>=kde-frameworks/knotifications-${KFMIN}:5
|
||||
>=kde-frameworks/knotifyconfig-${KFMIN}:5
|
||||
>=kde-frameworks/kparts-${KFMIN}:5
|
||||
>=kde-frameworks/kservice-${KFMIN}:5
|
||||
>=kde-frameworks/ktextwidgets-${KFMIN}:5
|
||||
>=kde-frameworks/kwallet-${KFMIN}:5
|
||||
>=kde-frameworks/kwidgetsaddons-${KFMIN}:5
|
||||
>=kde-frameworks/kxmlgui-${KFMIN}:5
|
||||
activities? ( >=kde-frameworks/kactivities-${KFMIN}:5 )
|
||||
kde? ( >=kde-frameworks/krunner-${KFMIN}:5 )
|
||||
ofx? ( dev-libs/libofx:= )
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
>=kde-frameworks/kguiaddons-${KFMIN}:5
|
||||
>=kde-frameworks/kjobwidgets-${KFMIN}:5
|
||||
>=kde-frameworks/kwindowsystem-${KFMIN}:5
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
>=dev-qt/qtquickcontrols-${QTMIN}:5
|
||||
"
|
||||
BDEPEND="
|
||||
dev-libs/libxslt
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DSKG_WEBENGINE=ON
|
||||
-DSKG_WEBKIT=OFF
|
||||
-DSKG_DESIGNER=OFF
|
||||
$(cmake_use_find_package activities KF5Activities)
|
||||
$(cmake_use_find_package kde KF5Runner)
|
||||
$(cmake_use_find_package ofx LibOfx)
|
||||
-DSKG_BUILD_TEST=$(usex test)
|
||||
)
|
||||
|
||||
ecm_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local mycmakeargs=(
|
||||
-DSKG_BUILD_TEST=ON
|
||||
)
|
||||
ecm_src_test
|
||||
}
|
Binary file not shown.
@ -1,3 +1 @@
|
||||
DIST eix-0.36.3.tar.xz 639864 BLAKE2B f74b7c4087e5145f3a2e6ee8b0034e5104de8ef81ec810f2d9fc75d161181f71396f27dc635466685650182473fdfb542f4cec6509ddee0a3bb0d7d620b7d42d SHA512 9fd7c64df6acf27e9ed07ee77ee7f209fb0fb2db9a3dbbc78c1f5b25e6d4786dffeea64bf8ddee3bfe4fe35445c8173103428e184c966964b2973d5737152679
|
||||
DIST eix-0.36.4.tar.xz 640776 BLAKE2B 32486b6ce5e5d2a32bb6fc8581bbc37da6cef9cac0cecbd3d0cc6db8bf5b6bcb3c0a31e28df462edcf06056d279a88e64b4c526b430ce40a0614c0367710243c SHA512 5b716cbd688bb5d8efadc7d47de9fb3238776ff10b11165abe02623421be82d17f2d51596d3f263219461188aa08974af1b559b4e43c31d9ee0682f21febb049
|
||||
DIST eix-0.36.5.tar.xz 640132 BLAKE2B b997be82e21e3316abc6f06bd120434f2a027d62a3bd97e54e7c6298ee201d9998fb0fda91955f88b1b9bbf15b3c6c0c1d821280508215131cde16d1eef621e7 SHA512 fb86367f34ae30dac10f0ba68a649c8e737f0f66fefb2933e100c63c57b778567753759f28a6b4afd0155430b050ff59297821c7b54fa73c6cd65b0231806d89
|
||||
|
@ -1,104 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools bash-completion-r1 tmpfiles
|
||||
|
||||
DESCRIPTION="Search and query ebuilds"
|
||||
HOMEPAGE="https://github.com/vaeth/eix/"
|
||||
SRC_URI="https://github.com/vaeth/eix/releases/download/v${PV}/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="debug doc nls sqlite"
|
||||
|
||||
DEPEND="
|
||||
nls? ( virtual/libintl )
|
||||
sqlite? ( >=dev-db/sqlite-3:= )"
|
||||
RDEPEND="${DEPEND}
|
||||
>=app-shells/push-2.0-r1
|
||||
>=app-shells/quoter-3.0_p2-r1"
|
||||
BDEPEND="
|
||||
app-arch/xz-utils
|
||||
virtual/pkgconfig
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
pkg_setup() {
|
||||
# remove stale cache file to prevent collisions
|
||||
local old_cache=${EROOT}/var/cache/${PN}
|
||||
if [[ -f ${old_cache} ]]; then
|
||||
rm "${old_cache}" || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i -e "s:/:${EPREFIX}/:" tmpfiles.d/eix.conf || die
|
||||
|
||||
sed -e "/eixf_source=/s:push.sh:cat \"${EPREFIX}/usr/share/push/push.sh\":" \
|
||||
-e "/eixf_source=/s:quoter_pipe.sh:cat \"${EPREFIX}/usr/share/quoter/quoter_pipe.sh\":" \
|
||||
-i src/eix-functions.sh.in || die
|
||||
sed -e "s:'\$(bindir)/eix-functions.sh':cat \\\\\"${EPREFIX}/usr/share/eix/eix-functions\\\\\":" \
|
||||
-i src/Makefile.am || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
$(use_enable debug paranoic-asserts)
|
||||
$(use_enable nls)
|
||||
$(use_with doc extra-doc)
|
||||
$(use_with sqlite)
|
||||
--without-protobuf
|
||||
|
||||
# default configuration
|
||||
$(use_with prefix always-accept-keywords)
|
||||
--with-dep-default
|
||||
--with-required-use-default
|
||||
|
||||
# paths
|
||||
--with-portage-rootpath="${ROOTPATH}"
|
||||
--with-eprefix-default="${EPREFIX}"
|
||||
|
||||
# build a single executable with symlinks
|
||||
--disable-separate-binaries
|
||||
--disable-separate-tools
|
||||
|
||||
# used purely to control/disrespect *FLAGS
|
||||
--disable-debugging
|
||||
--disable-new_dialect
|
||||
--disable-optimization
|
||||
--disable-strong-optimization
|
||||
--disable-security
|
||||
--disable-nopie-security
|
||||
--disable-strong-security
|
||||
)
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dobashcomp bash/eix
|
||||
dotmpfiles tmpfiles.d/eix.conf
|
||||
|
||||
rm -r "${ED}"/usr/bin/eix-functions.sh || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process eix.conf
|
||||
|
||||
local obs=${EROOT}/var/cache/eix.previous
|
||||
if [[ -f ${obs} ]]; then
|
||||
ewarn "Found obsolete ${obs}, please remove it"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
if [[ ! -n ${REPLACED_BY_VERSION} ]]; then
|
||||
rm -rf "${EROOT}/var/cache/${PN}" || die
|
||||
fi
|
||||
}
|
@ -1,104 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools bash-completion-r1 tmpfiles
|
||||
|
||||
DESCRIPTION="Search and query ebuilds"
|
||||
HOMEPAGE="https://github.com/vaeth/eix/"
|
||||
SRC_URI="https://github.com/vaeth/eix/releases/download/v${PV}/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="debug doc nls sqlite"
|
||||
|
||||
DEPEND="
|
||||
nls? ( virtual/libintl )
|
||||
sqlite? ( >=dev-db/sqlite-3:= )"
|
||||
RDEPEND="${DEPEND}
|
||||
>=app-shells/push-2.0-r1
|
||||
>=app-shells/quoter-3.0_p2-r1"
|
||||
BDEPEND="
|
||||
app-arch/xz-utils
|
||||
virtual/pkgconfig
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
pkg_setup() {
|
||||
# remove stale cache file to prevent collisions
|
||||
local old_cache=${EROOT}/var/cache/${PN}
|
||||
if [[ -f ${old_cache} ]]; then
|
||||
rm "${old_cache}" || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i -e "s:/:${EPREFIX}/:" tmpfiles.d/eix.conf || die
|
||||
|
||||
sed -e "/eixf_source=/s:push.sh:cat \"${EPREFIX}/usr/share/push/push.sh\":" \
|
||||
-e "/eixf_source=/s:quoter_pipe.sh:cat \"${EPREFIX}/usr/share/quoter/quoter_pipe.sh\":" \
|
||||
-i src/eix-functions.sh.in || die
|
||||
sed -e "s:'\$(bindir)/eix-functions.sh':cat \\\\\"${EPREFIX}/usr/share/eix/eix-functions\\\\\":" \
|
||||
-i src/Makefile.am || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
$(use_enable debug paranoic-asserts)
|
||||
$(use_enable nls)
|
||||
$(use_with doc extra-doc)
|
||||
$(use_with sqlite)
|
||||
--without-protobuf
|
||||
|
||||
# default configuration
|
||||
$(use_with prefix always-accept-keywords)
|
||||
--with-dep-default
|
||||
--with-required-use-default
|
||||
|
||||
# paths
|
||||
--with-portage-rootpath="${ROOTPATH}"
|
||||
--with-eprefix-default="${EPREFIX}"
|
||||
|
||||
# build a single executable with symlinks
|
||||
--disable-separate-binaries
|
||||
--disable-separate-tools
|
||||
|
||||
# used purely to control/disrespect *FLAGS
|
||||
--disable-debugging
|
||||
--disable-new_dialect
|
||||
--disable-optimization
|
||||
--disable-strong-optimization
|
||||
--disable-security
|
||||
--disable-nopie-security
|
||||
--disable-strong-security
|
||||
)
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dobashcomp bash/eix
|
||||
dotmpfiles tmpfiles.d/eix.conf
|
||||
|
||||
rm -r "${ED}"/usr/bin/eix-functions.sh || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process eix.conf
|
||||
|
||||
local obs=${EROOT}/var/cache/eix.previous
|
||||
if [[ -f ${obs} ]]; then
|
||||
ewarn "Found obsolete ${obs}, please remove it"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
if [[ ! -n ${REPLACED_BY_VERSION} ]]; then
|
||||
rm -rf "${EROOT}/var/cache/${PN}" || die
|
||||
fi
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST iwdevtools-0.11.6.tar.gz 85945 BLAKE2B 61c18ae0ed1c0f7e90d41af485f18f891cdd9ffbaff5437cb9f9ca88622efa0f5acd89ac8596e7d41c25a083a970143f3b226284f4566b0b8ee3718071cd6cbb SHA512 21ffda72945947658bf6867bf83d9b9ad4f6b930d4c2cee3dea551581030668ab286a4c4a07edeae937fd91f4aba08fe8e7c6506459808c4ada38502226b5b26
|
||||
DIST iwdevtools-0.11.7.tar.gz 86578 BLAKE2B 1945f99ab5d516bdef7081e13ecb0921728497f84e5e5248b2ddea78b306f185a0952a664165b4bae6c2089ddd1a4423d26524f42631a53b75fd2749a6994721 SHA512 fe18a88d166f239581bdddb0c719bf1d7789f671df151d87844b1836d134754d731114250ae2a9ef5b1a37a403615c15bbd6174eeeec3fe275e93c32ce6fae5c
|
||||
DIST iwdevtools-0.11.8.tar.gz 86740 BLAKE2B 3c91f39c37f96d0f619f13ff632b89752cd1e1f3307597c0d103d32c4894d183ded3f301e74fbcb87bea2227ba73ca9cf9fdf87087d984c9f095e7d06f903891 SHA512 50457e81cece003d384a2418a486490c43da12f10b466688b221e9dc910b14ccf559834363d970e19e0f85273c17fef8c2b124d3adfbd3a48548192e93108cca
|
||||
|
@ -1,2 +1 @@
|
||||
DIST pfl-3.1.tar.gz 5521 BLAKE2B fdc6e82c5d61d694a188c479b0566aafc507bcc2bbd1f176cd2771586b13de86a43a5d2e156beb4c9b5d10cd718046a05fce099894430c8f3d04c0922078e988 SHA512 b2bf79445a5b15caf339106f376d64accf5aad2c60038ba88180d64ce49e23dc3015efa2fcbeec886ba591cada053dfdc96873bda71b092be4622608062b6dcc
|
||||
DIST pfl-3.2.tar.gz 5373 BLAKE2B 3fcb771a6d67ec7198b83eeeb161d7caea7ccbc3933ff3ef7a48b106e9c86c331f2ac1a4c589135a4f57f40bfcd668f075f17865ff58feb027cd02d90b52bc2a SHA512 e424b5a5c6dbb848057fe357ae98196f2c238351dfe7fd19a9b7f423c245b1372ec270c6b8d2e8265a05a442d7afc2c5feef6dbe5eed5e240e78c88a6748d1d5
|
||||
|
@ -1,51 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DISTUTILS_USE_SETUPTOOLS=no
|
||||
PYTHON_COMPAT=( python3_{7,8,9} )
|
||||
PYTHON_REQ_USE="xml(+)"
|
||||
|
||||
inherit distutils-r1 systemd
|
||||
|
||||
DESCRIPTION="Searchable online file/package database for Gentoo"
|
||||
HOMEPAGE="http://www.portagefilelist.de https://github.com/portagefilelist/client"
|
||||
SRC_URI="https://github.com/portagefilelist/client/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 ~hppa ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
|
||||
IUSE="+network-cron"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
net-misc/curl
|
||||
sys-apps/portage[${PYTHON_USEDEP}]
|
||||
network-cron? ( sys-apps/util-linux[caps] )
|
||||
"
|
||||
|
||||
S="${WORKDIR}/client-${PV}"
|
||||
|
||||
python_install_all() {
|
||||
if use network-cron ; then
|
||||
exeinto /etc/cron.weekly
|
||||
doexe cron/pfl
|
||||
fi
|
||||
|
||||
systemd_dounit systemd/pfl.{service,timer}
|
||||
|
||||
keepdir /var/lib/${PN}
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ! -e "${EROOT}/var/lib/${PN}/pfl.info" ]]; then
|
||||
touch "${EROOT}/var/lib/${PN}/pfl.info" || die
|
||||
fi
|
||||
chown -R portage:portage "${EROOT}/var/lib/${PN}" || die
|
||||
chmod 775 "${EROOT}/var/lib/${PN}" || die
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,28 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
# upstream doesn't do tags much
|
||||
EGIT_COMMIT=220b1d16442eb4b6fafed338ee3b61f698a01e63
|
||||
DESCRIPTION="A configurable HTML Minifier with safety features"
|
||||
HOMEPAGE="https://github.com/mankyd/htmlmin"
|
||||
SRC_URI="
|
||||
https://github.com/mankyd/htmlmin/archive/${EGIT_COMMIT}.tar.gz
|
||||
-> ${P}.gh.tar.gz"
|
||||
S=${WORKDIR}/${PN}-${EGIT_COMMIT}
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~riscv x86"
|
||||
|
||||
distutils_enable_tests setup.py
|
||||
|
||||
src_prepare() {
|
||||
sed '/prune/d' -i MANIFEST.in || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST sigil-1.8.0.tar.gz 21217901 BLAKE2B 78615652859d1f61bab18b1b248d342dc6892943a2310659859ab577981c4452fbaeb567758097427453c8dfe95e42b499616a423b5c11b42238f763ac0653c8 SHA512 1a911aac996d3519f501820f8da9c810db9793063e481a6169288d402ef7e6b797308cf7ca5517162d0eb4d80f38f968627bca676b724ea5be5109c427473c95
|
||||
DIST sigil-1.9.10.tar.gz 25263060 BLAKE2B ef8d6b5552689f0501971563b429efa050456826ee85dbf524ecb1c1931506de95909e3443bc259353c012b3e4a2b6ce3299f20af8e65d07324818a8f208c2a8 SHA512 e328d8e207cff1dc007391c246792c3d53f7b9f078dd87a61088a61a5a192ed85802057b0f2d61b14bcac6094bb1ac2ff74a5096b54d9b82f0c6b2bef7eceb1a
|
||||
DIST sigil-1.9.2.tar.gz 23225656 BLAKE2B 410b2cf1772158aa9b0d499ba54bb7fc176c479acf7e9f48c5113a4e253becab35b6b4aeaa83da249d7c36f824cb1ee9b7a2e95e29c023b37afed9e864f94134 SHA512 fd6a71ce3b05b08651476f86a166d1ccdbecca31b19ecfa31c9d18ebe4daccfd69cf51d687686917c401f4b6e26cc6a57dbae5f9b1d8ba49fe08ccdd0bdf75d7
|
||||
DIST sigil-1.9.20.tar.gz 25139664 BLAKE2B ca0a8ba5ec9b76ea4016766872e7a70d839c2b3f24a658e90e619fd2feb01de74e05e30cdcf53c79ce92196c380da1d348ec2776f77060b18d2c664ff8171c6a SHA512 07aff142f65084b7900b25b089fca1d9a36022e690acaf0db3c7b2eb310a847834baff42884e73bbe6b31ff2dd7f73e76819c5c7a4292578fbea2edcebec5ad1
|
||||
|
@ -0,0 +1,75 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
PYTHON_REQ_USE="tk"
|
||||
|
||||
inherit xdg cmake python-single-r1
|
||||
|
||||
DESCRIPTION="Multi-platform WYSIWYG ebook editor for ePub format"
|
||||
HOMEPAGE="https://sigil-ebook.com/ https://github.com/Sigil-Ebook/Sigil"
|
||||
SRC_URI="https://github.com/Sigil-Ebook/Sigil/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${P^}"
|
||||
|
||||
LICENSE="GPL-3+ Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+plugins system-mathjax"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
app-text/hunspell:=
|
||||
dev-libs/libpcre2:=[pcre16]
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/css-parser[${PYTHON_USEDEP}]
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]')
|
||||
dev-qt/qtconcurrent:5
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtprintsupport:5
|
||||
dev-qt/qtwebengine:5[widgets]
|
||||
dev-qt/qtwidgets:5
|
||||
sys-libs/zlib[minizip]
|
||||
plugins? ( $(python_gen_cond_dep '
|
||||
dev-python/chardet[${PYTHON_USEDEP}]
|
||||
dev-python/cssselect[${PYTHON_USEDEP}]
|
||||
dev-python/dulwich[${PYTHON_USEDEP}]
|
||||
dev-python/html5lib[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/regex[${PYTHON_USEDEP}]') )
|
||||
system-mathjax? ( dev-libs/mathjax )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
dev-qt/linguist-tools:5
|
||||
"
|
||||
|
||||
DOCS=( ChangeLog.txt README.md )
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DTRY_NEWER_FINDPYTHON3=1
|
||||
-DPython3_INCLUDE_DIR="$(python_get_includedir)"
|
||||
-DPython3_LIBRARY="$(python_get_library_path)"
|
||||
-DPython3_EXECUTABLE="${PYTHON}"
|
||||
|
||||
-DINSTALL_BUNDLED_DICTS=0
|
||||
-DSYSTEM_LIBS_REQUIRED=1
|
||||
-DUSE_SYSTEM_LIBS=1
|
||||
-DUSE_QT6=0
|
||||
)
|
||||
use system-mathjax && mycmakeargs+=( -DMATHJAX_DIR="${EPREFIX}"/usr/share/mathjax )
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
python_fix_shebang "${ED}"/usr/share/sigil/
|
||||
python_optimize "${ED}"/usr/share/sigil/
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,3 +1,2 @@
|
||||
DIST godot-3.5-stable.tar.xz 24044340 BLAKE2B 9d77ecdfa6bd90065fff26c2334f13c32bbbc4b26aad111b5aab2563d1e4782457ea6cf2115f1a809e0d8aac3d3ee9a138ad224998068983ad36e54a577d89c3 SHA512 23785e39ccc7e1406c97ee33b5e90f7f397aa907d79d72ed08ea3f4b7e68788030a1bcdd07c9f782a21ee3a84636a2cea47a57dcfc94c24e327fa210ae0515b0
|
||||
DIST godot-4.0-alpha16.tar.xz 31012408 BLAKE2B 6492953945e3f2f77da5dcf042d791dd2dc903e65b787704c8053d1ac61852dd3c1d8f8aa0a383f1c86495c863d1f15f6d5e77e6ecadda7ff87ae7c87bdce810 SHA512 56e87c7a02abf9dee15e89be829046b9335a7c01b7bd3bb38d71b3fe1f262f6e923741c47c2d96b2633b9a16f71882ec87aaf06bad42d4bdf7a429ff2db0b4b1
|
||||
DIST godot-4.0-alpha17.tar.xz 31106496 BLAKE2B 4ac31703dac68a0e204e095c421015632ca8fbbb3dc379cd937f1375ab4c830c89ddeca8f9fe5cb080ea82616c786df4c1bf0d0fa7f52e552d750f1bb2d56a08 SHA512 9840391fbcbaa88b73b3fe8b133f0537c1f2a12eedb8bc0931922cf724a1d815516b7566cfac98787706a6eca6e2a35ecea3d9d14266501c8612dcb929a975d1
|
||||
DIST godot-4.0-beta1.tar.xz 31113892 BLAKE2B b7adc96ea9d19b962833bb3244f464151a08befb1301dbd147f421c8fb649dcb645656e0982aebaec695988c29e763f52456fa7e23a52b64cfddf39866f2c0af SHA512 86babe6bcd960f3e911b309de39145535f8755ffb64ba024315eab253803d78049020a6f7362318b9e29ba27527e479fba95a20db686ec854ba0a377a276d467
|
||||
|
@ -1,256 +0,0 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit bash-completion-r1 desktop python-any-r1 scons-utils toolchain-funcs xdg
|
||||
|
||||
MY_P="${PN}-$(ver_rs 2 -)"
|
||||
|
||||
DESCRIPTION="Multi-platform 2D and 3D game engine with a feature-rich editor"
|
||||
HOMEPAGE="https://godotengine.org/"
|
||||
SRC_URI="https://downloads.tuxfamily.org/godotengine/$(ver_rs 2 /)/${MY_P}.tar.xz"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="
|
||||
MIT
|
||||
Apache-2.0 BSD Boost-1.0 CC0-1.0 Unlicense ZLIB
|
||||
gui? ( CC-BY-4.0 ) tools? ( OFL-1.1 )"
|
||||
SLOT="4"
|
||||
#KEYWORDS="~amd64" # leaving 4 unkeyworded until at least first _beta
|
||||
# Enable roughly same as upstream by default so it works as expected,
|
||||
# except raycast (tools-only heavy dependency), and deprecated.
|
||||
IUSE="
|
||||
+dbus debug deprecated +fontconfig +gui pulseaudio raycast
|
||||
+runner speech test +theora +tools +udev +upnp +webp"
|
||||
RESTRICT="!test? ( test ) !tools? ( test ) !webp? ( test )"
|
||||
|
||||
# dlopen: alsa-lib,dbus,fontconfig,pulseaudio,speech-dispatcher,udev
|
||||
RDEPEND="
|
||||
app-arch/zstd:=
|
||||
dev-games/recastnavigation:=
|
||||
dev-libs/icu:=
|
||||
dev-libs/libpcre2:=[pcre32]
|
||||
media-libs/freetype[brotli,harfbuzz]
|
||||
media-libs/harfbuzz:=[icu]
|
||||
media-libs/libogg
|
||||
media-libs/libpng:=
|
||||
media-libs/libvorbis
|
||||
<net-libs/mbedtls-3:=
|
||||
net-libs/wslay
|
||||
sys-libs/zlib:=
|
||||
fontconfig? ( media-libs/fontconfig )
|
||||
gui? (
|
||||
dev-util/glslang
|
||||
media-libs/alsa-lib
|
||||
media-libs/libglvnd[X]
|
||||
media-libs/vulkan-loader[X]
|
||||
x11-libs/libX11
|
||||
x11-libs/libXcursor
|
||||
x11-libs/libXext
|
||||
x11-libs/libXi
|
||||
x11-libs/libXinerama
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXrender
|
||||
dbus? ( sys-apps/dbus )
|
||||
pulseaudio? ( media-libs/libpulse )
|
||||
tools? ( raycast? ( media-libs/embree:3 ) )
|
||||
udev? ( virtual/udev )
|
||||
)
|
||||
speech? ( app-accessibility/speech-dispatcher )
|
||||
theora? ( media-libs/libtheora )
|
||||
tools? ( app-misc/ca-certificates )
|
||||
upnp? ( net-libs/miniupnpc:= )
|
||||
webp? ( media-libs/libwebp:= )"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
gui? (
|
||||
dev-util/vulkan-headers
|
||||
x11-base/xorg-proto
|
||||
)
|
||||
tools? ( test? ( dev-cpp/doctest ) )"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-4.0-musl.patch
|
||||
"${FILESDIR}"/${PN}-4.0_alpha14-scons.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -i "1,5s/ godot/&${SLOT}/i" misc/dist/linux/godot.6 || die
|
||||
sed -i "/id/s/Godot/&${SLOT}/" misc/dist/linux/org.godotengine.Godot.appdata.xml || die
|
||||
sed -e "s/=godot/&${SLOT}/" -e "/^Name=/s/$/ ${SLOT}/" \
|
||||
-i misc/dist/linux/org.godotengine.Godot.desktop || die
|
||||
|
||||
sed -i "s|pkg-config |$(tc-getPKG_CONFIG) |" platform/linuxbsd/detect.py || die
|
||||
|
||||
# use of builtin_ switches can be messy (see below), delete to be sure
|
||||
local unbundle=(
|
||||
doctest embree freetype glslang graphite harfbuzz icu4c libogg libpng
|
||||
libtheora libvorbis libwebp mbedtls miniupnpc pcre2 recastnavigation
|
||||
volk vulkan/include wslay zlib zstd
|
||||
# certs: unused by generated header, but scons panics if not found
|
||||
)
|
||||
rm -r "${unbundle[@]/#/thirdparty/}" || die
|
||||
|
||||
# do symlinks to avoid too much patching with hardcoded header paths
|
||||
mkdir thirdparty/lib{vorbis,ogg} || die
|
||||
ln -s "${ESYSROOT}"/usr/include thirdparty/zstd || die
|
||||
ln -s "${ESYSROOT}"/usr/include/doctest thirdparty/ || die
|
||||
ln -s "${ESYSROOT}"/usr/include/ogg thirdparty/libogg/ || die
|
||||
ln -s "${ESYSROOT}"/usr/include/vorbis thirdparty/libvorbis/ || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local -x GODOT_VERSION_STATUS=$(ver_cut 3-4) # for dev versions only
|
||||
local -x BUILD_NAME=gentoo # replaces "custom_build" in version string
|
||||
|
||||
local esconsargs=(
|
||||
AR="$(tc-getAR)" CC="$(tc-getCC)" CXX="$(tc-getCXX)"
|
||||
|
||||
progress=no
|
||||
verbose=yes
|
||||
|
||||
deprecated=$(usex deprecated)
|
||||
#execinfo=$(usex !elibc_glibc) # libexecinfo is not packaged
|
||||
fontconfig=$(usex fontconfig)
|
||||
minizip=yes # uses a modified bundled copy
|
||||
opengl3=$(usex gui)
|
||||
pulseaudio=$(usex gui $(usex pulseaudio))
|
||||
speechd=$(usex speech)
|
||||
udev=$(usex gui $(usex udev))
|
||||
use_dbus=$(usex gui $(usex dbus))
|
||||
use_volk=no # unnecessary when linking directly to libvulkan
|
||||
vulkan=$(usex gui) # hard-required and favored by upstream over gles3
|
||||
x11=$(usex gui)
|
||||
|
||||
system_certs_path="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt
|
||||
|
||||
# platform/*/detect.py uses builtin_* switches to check if need
|
||||
# to link with system libraries, but ignores whether the dep is
|
||||
# actually used, so "enable" deleted builtins on disabled deps
|
||||
builtin_certs=no
|
||||
builtin_embree=$(usex !gui yes $(usex !tools yes $(usex !raycast)))
|
||||
builtin_enet=yes # bundled copy is patched for IPv6+DTLS support
|
||||
builtin_freetype=no
|
||||
builtin_glslang=$(usex !gui)
|
||||
builtin_graphite=no
|
||||
builtin_harfbuzz=no
|
||||
builtin_icu=no
|
||||
builtin_libogg=no
|
||||
builtin_libpng=no
|
||||
builtin_libtheora=$(usex !theora)
|
||||
builtin_libvorbis=no
|
||||
builtin_libwebp=$(usex !webp)
|
||||
builtin_mbedtls=no
|
||||
builtin_miniupnpc=$(usex !upnp)
|
||||
builtin_msdfgen=yes # not wired for unbundling nor packaged
|
||||
builtin_pcre2=no
|
||||
builtin_recast=no
|
||||
builtin_rvo2=yes # bundled copy has godot-specific changes
|
||||
builtin_squish=yes # ^ likewise, may not be safe to unbundle
|
||||
builtin_wslay=no
|
||||
builtin_xatlas=yes # not wired for unbundling nor packaged
|
||||
builtin_zlib=no
|
||||
builtin_zstd=no
|
||||
# also bundled but lacking a builtin_* switch:
|
||||
# amd-fsr, basis_universal, cvtt, etcpak, fonts, glad,
|
||||
# jpeg-compressor, meshoptimizer, minimp3, minizip (patched to
|
||||
# seek in archives), noise, oidn, openxr, spirv-reflect, thorvg,
|
||||
# tinyexr, vhacd, vulkan (minus include/) and the misc directory.
|
||||
|
||||
# modules with optional dependencies, "possible" to disable more but
|
||||
# gets messy and breaks all sorts of features (expected enabled)
|
||||
module_glslang_enabled=$(usex gui)
|
||||
module_gridmap_enabled=$(usex deprecated) # fails without deprecated
|
||||
module_mono_enabled=no # unhandled
|
||||
# note raycast is disabled on many arches, see raycast/config.py
|
||||
module_raycast_enabled=$(usex gui $(usex tools $(usex raycast)))
|
||||
module_theora_enabled=$(usex theora)
|
||||
module_upnp_enabled=$(usex upnp)
|
||||
module_webp_enabled=$(usex webp)
|
||||
|
||||
# let *FLAGS handle these, e.g. can pass -flto as-is
|
||||
debug_symbols=no
|
||||
optimize=none
|
||||
use_lto=no
|
||||
use_static_cpp=no
|
||||
)
|
||||
|
||||
if use runner && use tools; then
|
||||
# build alternate faster + ~60% smaller binary for running
|
||||
# games or servers without game development debug paths
|
||||
escons extra_suffix=runner target=release tools=no "${esconsargs[@]}"
|
||||
fi
|
||||
|
||||
esconsargs+=(
|
||||
# debug: debug for godot itself
|
||||
# release_debug: debug for game development
|
||||
# release: no debugging paths, only available with tools=no
|
||||
target=$(usex debug{,} $(usex tools release_debug release))
|
||||
tools=$(usex tools)
|
||||
|
||||
# harmless but note this bakes in --test in the final binary
|
||||
tests=$(usex tools $(usex test))
|
||||
)
|
||||
|
||||
escons extra_suffix=main "${esconsargs[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
xdg_environment_reset
|
||||
bin/godot*.main --headless --test || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local s=godot${SLOT}
|
||||
|
||||
newbin bin/godot*.main ${s}
|
||||
if use runner && use tools; then
|
||||
newbin bin/godot*.runner ${s}-runner
|
||||
else
|
||||
# always available, revdeps shouldn't depend on [runner]
|
||||
dosym ${s} /usr/bin/${s}-runner
|
||||
fi
|
||||
|
||||
newman misc/dist/linux/godot.6 ${s}.6
|
||||
dodoc AUTHORS.md CHANGELOG.md DONORS.md README.md
|
||||
|
||||
if use gui; then
|
||||
newicon icon.svg ${s}.svg
|
||||
newmenu misc/dist/linux/org.godotengine.Godot.desktop \
|
||||
org.godotengine.${s^}.desktop
|
||||
|
||||
insinto /usr/share/metainfo
|
||||
newins misc/dist/linux/org.godotengine.Godot.appdata.xml \
|
||||
org.godotengine.${s^}.appdata.xml
|
||||
|
||||
insinto /usr/share/mime/application
|
||||
newins misc/dist/linux/org.godotengine.Godot.xml \
|
||||
org.godotengine.${s^}.xml
|
||||
fi
|
||||
|
||||
newbashcomp misc/dist/shell/godot.bash-completion ${s}
|
||||
bashcomp_alias ${s}{,-runner}
|
||||
|
||||
insinto /usr/share/fish/vendor_completions.d
|
||||
newins misc/dist/shell/godot.fish ${s}.fish
|
||||
dosym ${s}.fish /usr/share/fish/vendor_completions.d/${s}-runner.fish
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
newins misc/dist/shell/_godot.zsh-completion _${s}
|
||||
dosym _${s} /usr/share/zsh/site-functions/_${s}-runner
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
|
||||
if [[ ! ${REPLACING_VERSIONS} ]] && has_version ${CATEGORY}/${PN}:3; then
|
||||
elog
|
||||
elog "Remember to make backups before opening any Godot <=3.x projects in Godot 4."
|
||||
elog "Automated migration is only partial, and it would be difficult to revert."
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -1,3 +1,2 @@
|
||||
DIST byte-buddy-1.12.12.tar.gz 149937318 BLAKE2B 1a1bd0de97b47ace4c64649da3ae80dcb421a4d46e9b4f66e121accad94a99a2b81fa9aeaca99ae14cf1ef56feff5248d5700d6b056d490563bbc7ae9f07ace9 SHA512 bd8dc5b86ce456d5a907dd23643233bb001c15df5419aeed177d3b4f8054ab172d13244d0b3fef734e8232dfdd9339745d8112fa69e0be566b62459c198bf67a
|
||||
DIST byte-buddy-1.12.13.tar.gz 1721038 BLAKE2B 60aadbbb3b56e5ac2ecc2bb162653b769f4d4b913bd675457ce2fbf12a5777addc4beb2bb2e347d5956dbf1fbe6a6dfce078a29c53b1f1e2a60585670897d4ee SHA512 88c221d0dccb248683069070e498c5d4320f4fce059c45f460e04fbd86c2c596c18a4c7f4e9b3a0480eaf96d93593d1f1af87d894a7c4b3d73511e88a95f4e92
|
||||
DIST byte-buddy-1.12.14.tar.gz 1857258 BLAKE2B 6957246f6689d1bdfdc6277ad752e03df0ae47c62b0afded77c94cdd41e00cc736517d0e4e5d5f8c59be519262a03864cde9bffa4ae53e5a7daeed84a519967f SHA512 5035be16fbdf2f7e8e2c93b87ee5f9adc927a19fd3b7d9fcd262906d8d21532cef8111084c3d6d0b75e101df0bfee19bf9177bc6a7d4b18cf0f26146fba4f147
|
||||
|
@ -1,176 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Skeleton command:
|
||||
# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://github.com/raphw/byte-buddy/archive/byte-buddy-1.12.12.tar.gz --slot 0 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild byte-buddy-1.12.12.ebuild
|
||||
|
||||
EAPI=8
|
||||
|
||||
JAVA_PKG_IUSE="doc source test"
|
||||
MAVEN_ID="net.bytebuddy:byte-buddy-agent:1.12.12"
|
||||
JAVA_TESTING_FRAMEWORKS="junit-4"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="Offers convenience for attaching an agent to the local or a remote VM"
|
||||
HOMEPAGE="https://bytebuddy.net"
|
||||
SRC_URI="https://github.com/raphw/${PN}/archive/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm arm64 ppc64 x86"
|
||||
|
||||
DEPEND="
|
||||
>=virtual/jdk-11:*
|
||||
dev-java/asm:9
|
||||
dev-java/findbugs-annotations:0
|
||||
dev-java/jna:4
|
||||
dev-java/jsr305:0
|
||||
test? (
|
||||
dev-java/mockito:4
|
||||
)
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
>=virtual/jre-1.8:*
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${PN}-${P}"
|
||||
|
||||
JAVA_CLASSPATH_EXTRA="asm-9,findbugs-annotations,jsr305,jna-4"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
# https://github.com/raphw/byte-buddy/blob/byte-buddy-1.12.12/byte-buddy-agent/pom.xml#L132-L165
|
||||
cat > byte-buddy-agent/src/main/java/module-info.java <<-EOF
|
||||
module net.bytebuddy.agent {
|
||||
requires java.instrument;
|
||||
requires static jdk.attach;
|
||||
requires static com.sun.jna;
|
||||
requires static com.sun.jna.platform;
|
||||
requires java.base;
|
||||
exports net.bytebuddy.agent;
|
||||
exports net.bytebuddy.agent.utility.nullability;
|
||||
}
|
||||
EOF
|
||||
|
||||
sed \
|
||||
-e 's:verifyZeroInteractions:verifyNoInteractions:g' \
|
||||
-i byte-buddy-dep/src/test/java/net/bytebuddy/*.java \
|
||||
-i byte-buddy-dep/src/test/java/net/bytebuddy/*/*Test.java \
|
||||
-i byte-buddy-dep/src/test/java/net/bytebuddy/*/*/*Test.java \
|
||||
-i byte-buddy-dep/src/test/java/net/bytebuddy/*/*/*/*Test.java \
|
||||
-i byte-buddy-dep/src/test/java/net/bytebuddy/*/*/*/*/*Test.java \
|
||||
|| die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
einfo "Compiling byte-buddy-agent.jar"
|
||||
JAVA_SRC_DIR="byte-buddy-agent/src/main/java"
|
||||
JAVA_RESOURCE_DIRS="byte-buddy-agent/src/main/resources"
|
||||
JAVA_JAR_FILENAME="byte-buddy-agent.jar"
|
||||
java-pkg-simple_src_compile
|
||||
JAVA_GENTOO_CLASSPATH_EXTRA+=":byte-buddy-agent.jar"
|
||||
rm -r target || die
|
||||
|
||||
# For pkgdiff to compare the content of module-info.class
|
||||
# mkdir -p META-INF/versions/9 || die
|
||||
# cp target/classes/module-info.class META-INF/versions/9/ || die
|
||||
# jar -uf byte-buddy.jar -C . META-INF/versions/9/module-info.class || die
|
||||
|
||||
einfo "Compiling byte-buddy-dep.jar"
|
||||
JAVA_SRC_DIR="byte-buddy-dep/src/main/java"
|
||||
JAVA_RESOURCE_DIRS="byte-buddy-dep/src/main/resources"
|
||||
JAVA_JAR_FILENAME="byte-buddy-dep.jar"
|
||||
java-pkg-simple_src_compile
|
||||
JAVA_GENTOO_CLASSPATH_EXTRA+=":byte-buddy-dep.jar"
|
||||
rm -r target || die
|
||||
|
||||
if use doc; then
|
||||
einfo "Compiling javadocs"
|
||||
JAVA_SRC_DIR=(
|
||||
"byte-buddy-agent/src/main/java"
|
||||
"byte-buddy-dep/src/main/java"
|
||||
)
|
||||
JAVA_JAR_FILENAME="ignoreme.jar"
|
||||
java-pkg-simple_src_compile
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
JAVA_TEST_GENTOO_CLASSPATH="junit-4,mockito-4"
|
||||
|
||||
# einfo "Setting -Djava.library.path"
|
||||
# This would work only after manually adding libjnidispatch.so to /usr/share/jna-4/lib/jna.jar,
|
||||
# done with ( jar -uf /usr/share/jna-4/lib/jna.jar -C . com/sun/jna/linux-x86-64/libjnidispatch )
|
||||
# JAVA_TEST_EXTRA_ARGS=( -Djava.library.path+="$(java-config -i jna-4)" com.sun.jna.Native )
|
||||
# Otherwise fails with:
|
||||
# Exception in thread "main" java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/linux-x86-64/libjnidispatch.so) not found in resource path
|
||||
|
||||
einfo "Testing byte-buddy-agent"
|
||||
JAVA_TEST_SRC_DIR="byte-buddy-agent/src/test/java"
|
||||
# Native library (com/sun/jna/linux-x86-64/libjnidispatch.so) not found in resource path
|
||||
JAVA_TEST_EXCLUDES=( net.bytebuddy.agent.VirtualMachineAttachmentTest )
|
||||
java-pkg-simple_src_test
|
||||
|
||||
einfo "Testing byte-buddy-dep"
|
||||
JAVA_TEST_SRC_DIR="byte-buddy-dep/src/test/java"
|
||||
JAVA_TEST_RESOURCE_DIRS="byte-buddy-dep/src/test/resources"
|
||||
|
||||
# what "mvn test" does with java 17 is:
|
||||
# Tests run: 9836, Failures: 0, Errors: 0, Skipped: 0
|
||||
|
||||
# 1) testTypeVariableTypeAnnotationRuntimeRetention[0](net.bytebuddy.implementation.attribute.MethodAttributeAppenderForInstrumentedMethodTest)
|
||||
# org.mockito.exceptions.verification.NoInteractionsWanted:
|
||||
# --
|
||||
# 2) testTypeVariableTypeAnnotationRuntimeRetention[1](net.bytebuddy.implementation.attribute.MethodAttributeAppenderForInstrumentedMethodTest)
|
||||
# org.mockito.exceptions.verification.NoInteractionsWanted:
|
||||
# --
|
||||
# 3) testAnnotationClassFileRetention(net.bytebuddy.implementation.attribute.TypeAttributeAppenderForInstrumentedTypeDifferentiatingTest)
|
||||
# org.mockito.exceptions.verification.NoInteractionsWanted:
|
||||
# --
|
||||
# 4) testAnnotationByteCodeRetention(net.bytebuddy.implementation.attribute.TypeAttributeAppenderForInstrumentedTypeDifferentiatingTest)
|
||||
# org.mockito.exceptions.verification.NoInteractionsWanted:
|
||||
# --
|
||||
# 5) testAnnotationClassFileRetention(net.bytebuddy.implementation.attribute.TypeAttributeAppenderForInstrumentedTypeTest)
|
||||
# org.mockito.exceptions.verification.NoInteractionsWanted:
|
||||
# --
|
||||
# 6) testAnnotationByteCodeRetention(net.bytebuddy.implementation.attribute.TypeAttributeAppenderForInstrumentedTypeTest)
|
||||
# org.mockito.exceptions.verification.NoInteractionsWanted:
|
||||
# --
|
||||
# 7) testChildSecond(net.bytebuddy.pool.TypePoolDefaultHierarchyTest)
|
||||
# org.mockito.exceptions.verification.NoInteractionsWanted:
|
||||
# --
|
||||
# 8) testNoParameterNameAndModifiers(net.bytebuddy.pool.TypePoolDefaultMethodDescriptionTest)
|
||||
# java.lang.AssertionError:
|
||||
# --
|
||||
# 9) testSimpleApplication(net.bytebuddy.description.type.TypeInitializerTest)
|
||||
# org.mockito.exceptions.verification.NoInteractionsWanted:
|
||||
# --
|
||||
# 10) testRedefinitionChunkedOneFailsResubmit(net.bytebuddy.agent.builder.AgentBuilderDefaultTest)
|
||||
# org.mockito.exceptions.verification.NoInteractionsWanted:
|
||||
JAVA_TEST_EXCLUDES+=(
|
||||
net.bytebuddy.implementation.attribute.MethodAttributeAppenderForInstrumentedMethodTest
|
||||
net.bytebuddy.implementation.attribute.TypeAttributeAppenderForInstrumentedTypeDifferentiatingTest
|
||||
net.bytebuddy.implementation.attribute.TypeAttributeAppenderForInstrumentedTypeTest
|
||||
net.bytebuddy.pool.TypePoolDefaultHierarchyTest
|
||||
net.bytebuddy.pool.TypePoolDefaultMethodDescriptionTest
|
||||
net.bytebuddy.description.type.TypeInitializerTest
|
||||
net.bytebuddy.agent.builder.AgentBuilderDefaultTest
|
||||
)
|
||||
java-pkg-simple_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar "byte-buddy-agent.jar"
|
||||
java-pkg_dojar "byte-buddy-dep.jar"
|
||||
|
||||
if use doc; then
|
||||
java-pkg_dojavadoc target/api
|
||||
fi
|
||||
|
||||
if use source; then
|
||||
java-pkg_dosrc "byte-buddy-agent/src/main/java/*"
|
||||
java-pkg_dosrc "byte-buddy-dep/src/main/java/*"
|
||||
fi
|
||||
}
|
@ -1,97 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
JAVA_PKG_IUSE="doc source test"
|
||||
MAVEN_ID="org.xerial.snappy:snappy-java:1.1.7.8"
|
||||
|
||||
inherit java-pkg-2 java-ant-2 toolchain-funcs
|
||||
|
||||
MY_PN="${PN}-java"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Snappy compressor/decompressor for Java"
|
||||
HOMEPAGE="https://github.com/xerial/snappy-java/"
|
||||
SRC_URI="https://github.com/xerial/${MY_PN}/archive/${PV}.tar.gz -> ${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="1.1"
|
||||
KEYWORDS="amd64 ~arm arm64 ppc64 x86"
|
||||
|
||||
# Tests require org.apache.hadoop:hadoop-common:2.7.*, which is yet to be
|
||||
# packaged. Some extra steps are required before running the tests:
|
||||
# 1. Download hadoop-common 2.7.x from https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-common
|
||||
# 2. Set EANT_GENTOO_CLASSPATH_EXTRA to the path to hadoop-common-2.7.*.jar
|
||||
# 3. Set ALLOW_TEST="all"
|
||||
RESTRICT="test"
|
||||
|
||||
CDEPEND="dev-java/osgi-core-api:0
|
||||
app-arch/snappy
|
||||
dev-libs/bitshuffle"
|
||||
|
||||
DEPEND=">=virtual/jdk-1.8:*
|
||||
${CDEPEND}
|
||||
test? (
|
||||
dev-java/ant-junit4:0
|
||||
dev-java/commons-io:1
|
||||
dev-java/commons-lang:2.1
|
||||
dev-java/plexus-classworlds:0
|
||||
dev-java/xerial-core:0
|
||||
)"
|
||||
|
||||
RDEPEND=">=virtual/jre-1.8:*
|
||||
${CDEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
JAVA_ANT_REWRITE_CLASSPATH="true"
|
||||
JAVA_ANT_CLASSPATH_TAGS="javac javadoc"
|
||||
EANT_GENTOO_CLASSPATH="osgi-core-api"
|
||||
EANT_TEST_GENTOO_CLASSPATH="
|
||||
${EANT_GENTOO_CLASSPATH}
|
||||
commons-io-1
|
||||
commons-lang-2.1
|
||||
plexus-classworlds
|
||||
xerial-core
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
cp "${FILESDIR}/1.x-build.xml" build.xml || die
|
||||
rm -r src/main/resources/org/xerial/snappy/native || die
|
||||
eapply "${FILESDIR}/${PV}-java-version-target.patch"
|
||||
eapply "${FILESDIR}/${PV}-remove-perl-usage.patch"
|
||||
eapply "${FILESDIR}/${PV}-unbundle-snappy.patch"
|
||||
eapply "${FILESDIR}/${PV}-unbundle-bitshuffle.patch"
|
||||
eapply "${FILESDIR}/${PV}-gentoo.patch"
|
||||
java-pkg-2_src_prepare
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake \
|
||||
CXX="$(tc-getCXX)" \
|
||||
JAVA_SOURCE="$(java-pkg_get-source)" \
|
||||
JAVA_TARGET="$(java-pkg_get-target)"
|
||||
java-pkg-2_src_compile
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cp -r src/test/resources/org/xerial/snappy/* \
|
||||
src/test/java/org/xerial/snappy || die
|
||||
java-pkg-2_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local jniext=.so
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
jniext=.jnilib
|
||||
# avoid install_name check failure
|
||||
install_name_tool -id "@loader_path/libsnappyjava${jniext}" \
|
||||
"target/libsnappyjava${jniext}"
|
||||
fi
|
||||
java-pkg_doso "target/libsnappyjava${jniext}"
|
||||
java-pkg_dojar "target/${PN}.jar"
|
||||
|
||||
use source && java-pkg_dosrc src/main/java/*
|
||||
use doc && java-pkg_dojavadoc target/site/apidocs
|
||||
}
|
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue