parent
22f67dce81
commit
452a7eb657
@ -1,23 +1,23 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA512
|
||||
|
||||
MANIFEST Manifest.files.gz 29310 BLAKE2B 311b34f5fa1f7f109a73061ef83b2efb8eba0914428855247bd58ccf6c6c5c2b13f9670e057cdb090c6649472a18d036f14fb6db7cb934ed682ea5aa2eaf8f6c SHA512 65d47f145f34fd417daff87c3dbbe92f77a0a4ae84289d723f0a870b3e2b865a1d026280a877b6672de5e427a2fecfde5bca5c641f8d1b7e6c792dbed9fa1826
|
||||
TIMESTAMP 2023-08-21T06:40:21Z
|
||||
MANIFEST Manifest.files.gz 29317 BLAKE2B beb2713983e0e8918bfce9c71c29095ba1df374ae50c679c71049a1158dd9cca3bd6c8f0cffdc9eec31ba1cbedb813aec1526208a48097a47f193581d4699524 SHA512 02441ad3896d9609efc9ff466ba717caed803c7c08f0bfe299c3a826bab1f5f7f3fcb2b3a8371b6356f0ca2df1d0825220119512a7b9f83604fd4c512ef00437
|
||||
TIMESTAMP 2023-08-23T09:39:47Z
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQKTBAEBCgB9FiEE4dartjv8+0ugL98c7FkO6skYklAFAmTjBtVfFIAAAAAALgAo
|
||||
iQKTBAEBCgB9FiEE4dartjv8+0ugL98c7FkO6skYklAFAmTl0+NfFIAAAAAALgAo
|
||||
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEUx
|
||||
RDZBQkI2M0JGQ0ZCNEJBMDJGREYxQ0VDNTkwRUVBQzkxODkyNTAACgkQ7FkO6skY
|
||||
klCaPhAApr5Bw4pzKhUxp9LQIMGlXBbh2xiKpCPzGdiSNCx0okQDssj7rviUk4n9
|
||||
Qho+RXZvzrLzSiaNueta5kXtzA/uy2j3OWR1rSMzM1CJ73rfdRZO8rEY+vHpbRFn
|
||||
pPiYiltEHTDXmhZLPEGLaC56NMU1JFXB3wIlWva6o5lhrTNM68qoMNBwLHq2Dy1c
|
||||
9NTte/EGrXiqk3yjCmMTNMkHZgj9hW/YIVShfasqGtmyYnwNtWLq3/vQ08AsqQtN
|
||||
hiuSuNH1WEZU4wG4pWBFtYmfm8fDsj/zmvZ8HMZA8miwzGq8bI7zbzF2Omq6Ky05
|
||||
FtW7QoHQGUOHL4KAieT95anVqGjOXIt0nMDDDAKEG3V510eDFmwTcP71fVbe8+yr
|
||||
Hd5aljO6jqiqvGNOPgHr6VBn7GI74/qrMCI4EMJBJKUuvl6zp9TwzMV50gRvPquN
|
||||
Zc9YiNWx1iO9R2YxF1HInRjaX6g+yV9wZI1cs4Ns+b3p/QoemL4GLtmTyjaQgpT3
|
||||
YqFMH+pF/d+mYvlEcdZw5SeOJxMXhK1lwFKVNeC32agdNRJlTixkcbi28dB69Zgt
|
||||
GQnRT+mSv1d0xUD9llHV5VqcNRsJEZMrKFYluGwjBH4KyM1ZrrIwIuVZkW/G3C6H
|
||||
0BgvFtGRBRNlt1EiSFPVQBd/709PexN+Ab9ba5pKLN+FFkwOGto=
|
||||
=T5ko
|
||||
klB4GBAAlVlf9Xh9vwsnNaxybIVUfL/rnvAOvN+/RWEY/DN9qSj1xxYhvxlrhTsI
|
||||
a47gO5MGn9Xtx+tAqceKU192bNzZyPENCookH3U/jH10X9RtEl/QEnxoLOj7djrG
|
||||
h6n/IMFN9fO465RyUPMgiWYdC6jtblEfqew+35r9rUxfUJbQUS8DN0vPj3Us9epj
|
||||
iv/oGjYZimULvPELQJfNKhpmJhT2LO5SPDHnwbNRnqOpYJA+MhFefn1hrykX+OAE
|
||||
/46Rmvc39euOO9g85Z91r/LIJsXFxv53Buaw2uIfCeltDwtOddQHxbHjXE8vSwr4
|
||||
QBCOVCWH5sFTMgHqZXLeJ5p1XIk7TPSOyojYJTqNnwjPJZ7Kn7gohYTlx+nqwFSr
|
||||
fVr+lp4h5CvwWB5s4RfAt34umV79cBr+ZnxTmsRwPYl4xqj0OMpM0BnC0zhwItyr
|
||||
fyMP3RjXhVNy/eATNSahOY8zaumR1JPJOXeaZaNfbpuNGuwJ7ekv9SBU+bdazVws
|
||||
KGeW6A0kuZJHZ1mfamgNeiesgYIZWi9uDEs1zKurY9hYamTMP/0tKDpxNQH1Umf9
|
||||
xLEhp3a9ulhuE5CFEFWptEeK2wWE1SAt9aUTj6go9PJfgB8a9kpDPNCLFSZ6cg6Z
|
||||
kyY1zsj7Zi2SNagP5Ybve2ZbKYIUOx5odkiNkDJDwiQjZMsvNVk=
|
||||
=vzuZ
|
||||
-----END PGP SIGNATURE-----
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1,6 +1,4 @@
|
||||
AUX ansible-molecule-5.1.0-mkdocs_google_fonts.patch 220 BLAKE2B e6035df98418912c0e6c5c2655bafdcef8a07450670271e11498a97f4dea6c1c39578e6002a937bc5ec762aeb6a99991c2b70ccb60b31f2619c011b2785870cd SHA512 53fee32cddea9275f07aa460dedfa478f248917a81a04d3b9f0696d0283eba8dd6b6e3c7c4137c5a9a867c94a827ba687e9342fdce9e8af7cb82b039f0c732d0
|
||||
DIST molecule-4.0.4.tar.gz 337260 BLAKE2B 14c493fa8aaa15466ebca19af9e5325ddb824c151d07d800136dcb714a430ea2dc42b38c9ec6e805e29ec3226376a532793d51c5d0544d6d5105510e5365ca8c SHA512 d7c1ceefbf74cbc27a397e7a40d855b23325bbde31a4cd1920961413a7db950e9fc530fec180de877eb37984bac8603033aa5a582e68e7f4c4ac2a10721c6630
|
||||
DIST molecule-5.1.0.tar.gz 335161 BLAKE2B 55c2f3c181bef6ab848cf7b52b19649fd861dbdbd68b92d3de9e0a1330755b9b887affd8f78e92ab33145ed60e7131d3cf1ffb7b4d8f10c1c3cab8dd58288af9 SHA512 4d025a512e3a6ac7f424318f06bb23b2c1ef1cc122d31d012430bfccf4efeeb3c7ddf2450abd78378c1c50f54fffb1fa8f366f14eebe58125f177ced8cec3ff5
|
||||
EBUILD ansible-molecule-4.0.4.ebuild 2672 BLAKE2B 89d1d795f7c50189cc28c3afd6123a4b6353acec9f2f6319c7cfbf8e33b7afd70936c02f1cca85ca25f435f32b66dae14d1254412732e4f1010f500af4145171 SHA512 d79263e07cf1f6af1eb0047a1a6e12bd3ef4ed1091afaf89b7674a3fe763e349398a60bd1eac1663debe11fa42f0376d905b94d951291123e728a1cfa882138d
|
||||
EBUILD ansible-molecule-5.1.0.ebuild 2788 BLAKE2B ffdd6857e28f74f0e1e10f62c01e9dd3077f329bc90be2b3344d7e7f81d919100f2785db21f262e417c54adc850d9cf48aa222d534670a017665ea6b71f28a5b SHA512 8fab3444627e5fdc47e573bfbeabc2ad5ab6e32973a22d18f2d40aa898e35f13537814ff323fe002e6c2fc012e8fec0ccb640505a356f556461718bc8e10df91
|
||||
EBUILD ansible-molecule-5.1.0.ebuild 2787 BLAKE2B 3ed05f6ac5af48947c73ccee185450f276e07543de8b0b8640bd1ed3b58369f618ffeb8874e8f27bdf2ca18d3a0144ec17ce9ffdcb4c51b836f4fe4e4e80b449 SHA512 715c46bb4ef22b20add474d672db11703268ac09330295098ae3e7cabf2b308c14a8966a2419efd47db0f5bff5eea57ec3d3b160f076532534f5e25b30eb2df2
|
||||
MISC metadata.xml 407 BLAKE2B 869b6c1d6da66568eeac2daaca56567876dbfb057f50add7bbc95fef8a3fc38b99279d359a90573f8d6af47d0e451445827f6efeefa8fb0e7954e8b624783855 SHA512 e6dbbe2c0536ea84bdfea0168a743dbe3de424b442757441bc4f978e07d41ca6022eb2d6f269c921f42b4e7d858788f967c1c35bd4241a35dbe25a161f5744de
|
||||
|
@ -1,72 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYPI_PN="molecule"
|
||||
|
||||
inherit distutils-r1 optfeature pypi
|
||||
|
||||
DESCRIPTION="A toolkit designed to aid in the development and testing of Ansible roles"
|
||||
HOMEPAGE="https://pypi.org/project/molecule/ https://github.com/ansible-community/molecule/"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~riscv"
|
||||
IUSE="selinux"
|
||||
|
||||
RDEPEND="$(python_gen_cond_dep '
|
||||
>=dev-python/ansible-compat-2.2.0[${PYTHON_USEDEP}]
|
||||
dev-python/cerberus[${PYTHON_USEDEP}]
|
||||
>=dev-python/click-8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/click-help-colors-0.9[${PYTHON_USEDEP}]
|
||||
>=dev-python/enrich-1.2.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/jinja-2.11.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/jsonschema-4.9.1[${PYTHON_USEDEP}]
|
||||
dev-python/packaging[${PYTHON_USEDEP}]
|
||||
<dev-python/pluggy-2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyyaml-5.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/rich-9.5.1[${PYTHON_USEDEP}]
|
||||
>=dev-util/cookiecutter-1.7.3[${PYTHON_USEDEP}]
|
||||
selinux? ( sys-libs/libselinux[python,${PYTHON_USEDEP}] )
|
||||
')"
|
||||
BDEPEND="$(python_gen_cond_dep '
|
||||
>=dev-python/setuptools-scm-3.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/setuptools_scm_git_archive-1.1[${PYTHON_USEDEP}]
|
||||
doc? (
|
||||
app-admin/ansible-core[${PYTHON_USEDEP}]
|
||||
dev-python/ansible-pygments[${PYTHON_USEDEP}]
|
||||
>=dev-python/simplejson-3.17.2[${PYTHON_USEDEP}]
|
||||
)
|
||||
test? (
|
||||
>=dev-python/ansi2html-1.6.0[${PYTHON_USEDEP}]
|
||||
dev-python/filelock[${PYTHON_USEDEP}]
|
||||
<dev-python/pexpect-5[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytest-mock-3.3.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytest-plus-0.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytest-testinfra-6.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytest-xdist-2.1.0[${PYTHON_USEDEP}]
|
||||
dev-util/yamllint
|
||||
)
|
||||
')"
|
||||
|
||||
# test_role.py doesn't play nicely with FEATURES=usersandbox. As for test_command.py:
|
||||
# - quite a few of these tests use the network;
|
||||
# - test_command_dependency[shell] only works if Molecule has previously been installed;
|
||||
# - tests involving creation of a new scenario fail on ansible-lint errors, even though
|
||||
# a config file is deployed which should skip expected issues.
|
||||
EPYTEST_DESELECT=(
|
||||
src/molecule/test/functional/test_command.py
|
||||
src/molecule/test/unit/command/init/test_role.py
|
||||
)
|
||||
|
||||
distutils_enable_sphinx docs '>=dev-python/sphinx-notfound-page-0.7.1' '<dev-python/sphinx_ansible_theme-0.10.0'
|
||||
distutils_enable_tests pytest
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature_header "Some optional packages commonly used in Molecule scenarios:"
|
||||
optfeature "checking playbooks for practices and behaviour that can be improved" app-admin/ansible-lint
|
||||
}
|
@ -1,10 +1,10 @@
|
||||
DIST awscli-exe-linux-aarch64-2.11.17.zip 56500418 BLAKE2B ced68deac081666c71d73bea7d48f19aa27c8a78835ad13acaa06dac65db8569e9cf446900c0a8ede169bf177168e47ad3bebd06ad295a5626d926d59e4ed57b SHA512 6424cfcd079007cf1519f0018555c589a154639c1f28596d51d227c9078abbcd16660488d9c7984468bd223a7e4a89296c42c8fbdb8b6d085e32163e71d1f641
|
||||
DIST awscli-exe-linux-aarch64-2.12.0.zip 56282131 BLAKE2B 147d200a134dc3f4ca3b6dff285b447d98eedb52207f923354cd748102ed0bf8e9bd4e883d59536f8bbe3a249de99102c8b5f239271cdef66d73df069add1491 SHA512 e0e72d951b0d3136b99b15d8abcc0b38492ef0c92a915e4f92a902318895ff580fface1ee202a5c06cf99a9f4ab935b2393e7318d1efc3df90152c18ed745b7f
|
||||
DIST awscli-exe-linux-aarch64-2.13.10.zip 56599191 BLAKE2B 39da11b095202d247bc5350d3d47b74b6db1a53146212b387fa5c66434ccd519b600212249112265557e106d1558680e46835acd4295e1282363b3e9e8f015a8 SHA512 b8323d29ad3b7668adfe02df02490bc0b9bb9a780d5aa1ae1d13cd082d3da6b749ae2579720c036c9693a2f9d8305aa53ec94aee5322edb71f376e45f6665be4
|
||||
DIST awscli-exe-linux-aarch64-2.13.11.zip 56601642 BLAKE2B 27c7914d3aeb157188e071c8add664ea6d95784a86d271035e3e618fcc2a07973dc271cbecdca3b8e4e802fdd92f72d33cd4c00d78fa7b11ee434ebf1e74107c SHA512 72515f5cd33fa3d18a9001b4789cfc881146d0f25fb60791fbb8e39df1b4d25ffa2bcf1db4bbbf313601c7244b247cffeefee1b4b5791647265e960a8d709ae3
|
||||
DIST awscli-exe-linux-x86_64-2.11.17.zip 57614965 BLAKE2B 0a711bc968b53dd08810ef857c9d51d332b016fd969491850f9dd8fc84e912f815e2b0a6e38223fe29c321ee784ad2ee41644b7027af3439742d3c2141f10098 SHA512 c05ada15a4e896850adbe04cc159141d84fabc955f3baf6d053200c6595cc77c8a75886ce5f1bd18370fe34a2c1c3d294312aa471a028104266fa45fa5aa4334
|
||||
DIST awscli-exe-linux-x86_64-2.12.0.zip 57965257 BLAKE2B 9c8fec1d30795af94807d60c62b28eeb84e682d99cbacc0c8ad5b022c569e310fe781d00a6e9bd0cc0222c0104d9e0d2521bf3fb2102f60fe76de75bfec90cf8 SHA512 c4688e09fa17ed89495c807ebb1826e0517c1a7e7e4e62981e17e86a11227434eb1c59b9e7fffbd8e9e7ff6cc05846bf6cf7cc1769e099c9c146d9d11c400ab5
|
||||
DIST awscli-exe-linux-x86_64-2.13.10.zip 58357637 BLAKE2B 6c2b5f3fa196586687914a2e0058c5d81d7f97d0bec4ce093a1fd2c928c76980326483e15e0d48cf83791ff3fa17f725c3de77f77077a9ad356391a590f1ec2e SHA512 c544a71eca545c24ab0cf171e8428811921627b10ead00791f95b6610fa11ff8a89c1d0ba7485b7b498a3daaef88bbd6260d2f1af1b998abaaeaa3b86f9010aa
|
||||
DIST awscli-exe-linux-x86_64-2.13.11.zip 58360364 BLAKE2B 46cbc0136a19f198f9ec7ef16e49dba72edf03365d96e79d9dc81d04f57f82de031138b36096091160f304e1662c9231bfd7f618ccbf3aed37e84f9f83cbdef0 SHA512 7ae315275947d60654613c24b52997976e70f1cbb94df65ed9a2937f3cd834a83c8567b8aafa946a08b83ef7b4b72d666ba400eee1550e8dbd6e1acd36121d53
|
||||
EBUILD awscli-bin-2.11.17.ebuild 2310 BLAKE2B b271c5f667a9e74d4f912969acc212d0859cc2e08f2c27f97eda4b5a93b731a26065447f1e2fbf457328eadcd028b30784cb3aba42aacda60d32e8acb493714d SHA512 7ca23b363f727e50e5eceeb5eb3240e6e7a2a0b674d1db3b6a9271025e8ce3a5183b8515b2b1924ddb6e60d63436e9a3ce40694f937a2a620fd2bb5f40ca0e1e
|
||||
EBUILD awscli-bin-2.12.0.ebuild 2310 BLAKE2B b271c5f667a9e74d4f912969acc212d0859cc2e08f2c27f97eda4b5a93b731a26065447f1e2fbf457328eadcd028b30784cb3aba42aacda60d32e8acb493714d SHA512 7ca23b363f727e50e5eceeb5eb3240e6e7a2a0b674d1db3b6a9271025e8ce3a5183b8515b2b1924ddb6e60d63436e9a3ce40694f937a2a620fd2bb5f40ca0e1e
|
||||
EBUILD awscli-bin-2.13.10.ebuild 2310 BLAKE2B b271c5f667a9e74d4f912969acc212d0859cc2e08f2c27f97eda4b5a93b731a26065447f1e2fbf457328eadcd028b30784cb3aba42aacda60d32e8acb493714d SHA512 7ca23b363f727e50e5eceeb5eb3240e6e7a2a0b674d1db3b6a9271025e8ce3a5183b8515b2b1924ddb6e60d63436e9a3ce40694f937a2a620fd2bb5f40ca0e1e
|
||||
EBUILD awscli-bin-2.13.11.ebuild 2310 BLAKE2B b271c5f667a9e74d4f912969acc212d0859cc2e08f2c27f97eda4b5a93b731a26065447f1e2fbf457328eadcd028b30784cb3aba42aacda60d32e8acb493714d SHA512 7ca23b363f727e50e5eceeb5eb3240e6e7a2a0b674d1db3b6a9271025e8ce3a5183b8515b2b1924ddb6e60d63436e9a3ce40694f937a2a620fd2bb5f40ca0e1e
|
||||
MISC metadata.xml 249 BLAKE2B 08603bf9d754b59bae12620988552abc7f76b87a1390d02038789eba034c22412a3593d10f443794a5171ff3905c2b5c822368b2eb9f53a528097b7b6c80ffe9 SHA512 338d72efbd040697be98aad4229b81c9694eb27ecbc39f3a18332f4cc766a46b4a0a92f32612203259bf58f5838d0aff7f0b1abec7766f6cd2394c73f7f0b251
|
||||
|
@ -0,0 +1,80 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
|
||||
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 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
|
||||
# botocore is x.(y+2).z
|
||||
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(ver_cut 3-)"
|
||||
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() {
|
||||
local EPYTEST_DESELECT=(
|
||||
# TODO
|
||||
tests/functional/eks/test_kubeconfig.py::TestKubeconfigLoader::test_load_simple
|
||||
tests/unit/customizations/eks/test_update_kubeconfig.py::TestKubeconfigSelector::test_choose_env_only
|
||||
tests/unit/customizations/eks/test_update_kubeconfig.py::TestKubeconfigSelector::test_choose_existing
|
||||
tests/unit/customizations/eks/test_kubeconfig.py::TestKubeconfigValidator::test_valid
|
||||
)
|
||||
|
||||
# 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
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
|
||||
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 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
|
||||
# botocore is x.(y+2).z
|
||||
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(ver_cut 3-)"
|
||||
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() {
|
||||
local EPYTEST_DESELECT=(
|
||||
# TODO
|
||||
tests/functional/eks/test_kubeconfig.py::TestKubeconfigLoader::test_load_simple
|
||||
tests/unit/customizations/eks/test_update_kubeconfig.py::TestKubeconfigSelector::test_choose_env_only
|
||||
tests/unit/customizations/eks/test_update_kubeconfig.py::TestKubeconfigSelector::test_choose_existing
|
||||
tests/unit/customizations/eks/test_kubeconfig.py::TestKubeconfigValidator::test_valid
|
||||
)
|
||||
|
||||
# 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
|
||||
}
|
@ -1,4 +1,7 @@
|
||||
AUX xkcdpass-1.19.4-no-examples-in-site-packages.patch 571 BLAKE2B 1e12132799bd9e699ed5ebf2c3b87efd57123a797ad9456c665c37e6f98dce106cc010e84a0dfb8fa6f64a63a22f828ddaddb640672facb24e7ece2971f83285 SHA512 504affb76dfc39b74c03a5ab563e376ea781ea31f9e6a630225b2bae15f9b8e3a9757a8a6b90e613360917578730d42d310e9bd344e84620a4af88079567cf32
|
||||
DIST xkcdpass-1.19.3.tar.gz 2570967 BLAKE2B bd3576b707db2652e6979ea25476fcda51df7bc84a5182668ff1cf2878a57c89ab56a7272fe2030c38533bf4f75855facd7fd8aefa6e5c6335a00c8ef80b228f SHA512 5336e57edd7fbeb655573910b0c0868381a8b43d5ccbb8d388cc24ef16ba094c27517a4fe7b11dbfc7ff906b65a303f90b20cdf9bc551b844453640378b5e555
|
||||
DIST xkcdpass-1.19.4.tar.gz 2572291 BLAKE2B f36299ab66bc02f95a7811ebdf40fa62f441a0ef1eac27af8d380fca9643eb9c2444c988392900e5add8a2a22f4ef33766bc5904fb350520b0b7572e95898ecd SHA512 2a83473f6e2426f34ee89297056ca7d3949044f7e818f6d6501fd7852ac1ba9f860f8287ad6d366f13f46f580b0f3f7e9a3dfa160b262b4d00b00ed1c9f5da59
|
||||
EBUILD xkcdpass-1.19.3-r1.ebuild 1062 BLAKE2B b7592baa18d407caf2161cc981a1644d3e2e7cf3dae600ea6a7ee307ca6278127f9e33dda1cdc86d56149d23a8c6b8a58b0af1f4dd00549040bbfc9b8745bfd0 SHA512 d948975e29b8e4802205a80768111cd366a43f0f0a2ed3ee7a73c9cd0995e5d2dd9f1cf325062e4de57126ae5b28f94792b1f2ca07e162325e954120559a6692
|
||||
EBUILD xkcdpass-1.19.3.ebuild 1030 BLAKE2B 9b4c33bba664f78e0d4c95c79319b6599f6d228a7fbafb04d6806d6fc9d6ba6088bf1bed6717dc7af1e9268ac3d485f91d7eb22eb44eadffd3a30fded199e0f9 SHA512 aac6827d4e2b0d8e7a0a2df0168530c71c7207ea6ee155ae55946d5f689c173ecbca92b2388d4756bdb9f59f534014928c3cb62e388393c2d0c2b72ee67a03f6
|
||||
EBUILD xkcdpass-1.19.4.ebuild 1140 BLAKE2B 3c58527e7b78f8599a653e171cd970b66ca2d2bd28b378f9e3938ae885e592f0a6f41c0292865b1e2e65ce1d296d55fa9e30c72f01e5a9ce3a4f49ab1596caad SHA512 f29a80b06a2f86d75b4c5f1d76b4c5a6869202570beda6be0ce86fdf66873717412ed8304e3dc18b970e2ba7173626e7490eb5dd5940b562aa2460b68790d7db
|
||||
MISC metadata.xml 388 BLAKE2B a1477ba7c23e7ddab97dd869612794c1e1d0876cf9564bc54ecc6858280d6cc23dfac4e83d78f0f18543c5ae3804e1a701701e08ae6722e533c8c6f1dca29e71 SHA512 6a6bf779b5e0de8bb4a8be49253981590ee039b252db6bc4f25a8e1db6123a832fc7d628302e192aedd485e864b528d272da8a4e0f557987d4b7104c5d0ce985
|
||||
|
@ -0,0 +1,13 @@
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 2f35f86..eed1e7b 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -11,7 +11,7 @@ setup(
|
||||
description='Generate secure multiword passwords/passphrases, inspired by XKCD',
|
||||
long_description=open('README.rst', encoding='utf-8').read(),
|
||||
#packages=['xkcdpass'],
|
||||
- packages=find_namespace_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
|
||||
+ packages=find_namespace_packages(exclude=["examples", "*.tests", "*.tests.*", "tests.*", "tests"]),
|
||||
zip_safe=False,
|
||||
license='BSD',
|
||||
include_package_data=True,
|
@ -0,0 +1,42 @@
|
||||
# Copyright 2020-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="Password generator inspired by XKCD 936"
|
||||
HOMEPAGE="https://github.com/redacted/XKCD-password-generator"
|
||||
|
||||
LICENSE="BSD CC-BY-3.0
|
||||
l10n_de? ( GPL-3 )
|
||||
l10n_it? ( CC-BY-SA-3.0 )
|
||||
l10n_no? ( CC-BY-4.0 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="l10n_de +l10n_en l10n_es l10n_fi l10n_fr l10n_it l10n_no l10n_pt"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
REQUIRED_USE="test? ( l10n_en )"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/xkcdpass-1.19.4-no-examples-in-site-packages.patch )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
use l10n_de || rm ${PN}/static/{ger-anlx,eff_large_de_sample.wordlist}
|
||||
use l10n_en || rm ${PN}/static/{eff-short,eff-special,legacy}
|
||||
use l10n_es || rm ${PN}/static/spa-mich
|
||||
use l10n_fi || rm ${PN}/static/fin-kotus
|
||||
use l10n_fr || rm ${PN}/static/fr-*
|
||||
use l10n_it || rm ${PN}/static/ita-wiki
|
||||
use l10n_no || rm ${PN}/static/nor-nb
|
||||
use l10n_pt || rm ${PN}/static/pt-*
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
doman ${PN}.1
|
||||
}
|
Binary file not shown.
@ -1,11 +1,4 @@
|
||||
AUX libarchive-3.7.0-f_namemax-fix.patch 817 BLAKE2B 8241c22b5fd5065bcb9ba2736d38749d851d36b6b9c91ef3e15f654a8d7c5ba56d5eb18ca29119e5b1430418bc5613bb95ea293bacc0f2d08b6dd5c4b4b24881 SHA512 8bedf9b321ad5e5fb28ca7f84967d77b31ac4e131d65788aa49ed4dd4910ccc6a7e86879692c8f85aac18c78019abb5da72678f28ce393b5d5398d2cbaa05436
|
||||
DIST libarchive-3.6.2.tar.xz 5213196 BLAKE2B 355b5d402e352dee802513485ce7e047af58d6de5b9bf6a49f3fd8d7b94117007598820ac979585c0da79747e8b63b70ab151131182368a11f97a047cf9029d4 SHA512 a12bb6839e13a0be1099f42c650fc90fbfe62d32ce38bcbb4794206d29b2c782ae1115124d0e5f6b9716514213af32b05e4a42eb196447674a5f9a2a32bee043
|
||||
DIST libarchive-3.6.2.tar.xz.asc 659 BLAKE2B a4b0035ab2bda4129cdf0c99266cd1e5f4772d90de6e348c75958bc803f369d6abea85d9730c6c9a216466b35697faad8d265fb2c285545887eafde27d828887 SHA512 403e5f7dec14d8b1cc01fad5a249e7b7618a7b45bcb3361ea80d67d76b591b12ce97f2c88b23d5486505dd3b34c1f1643e02235a3e5fc5150ee5735946092efe
|
||||
DIST libarchive-3.7.0.tar.xz 5243356 BLAKE2B 8fb72a0504038c71584c0416c1d747b7f5c82266518704353e7fdf794bd9f9e2dc22b8fa2538fa8d12a3b9776581077040371d25647fe72c02a4ec5f3bb8d950 SHA512 f69ff7fbec7e909b6a03dd5b01c47316f95a277907409c8fba3930bb90d02cd9a329921eada59ca1afc9a19e34de7eb34e9d535bbc8cd98fb586f723bd0fdba8
|
||||
DIST libarchive-3.7.0.tar.xz.asc 659 BLAKE2B 5bbd535ce100fbfb7ed46f8d7a6957ebb590c07124de4192ae0b777ad3b3950e6406f1ccda97dde5b6e792be00a039621de21665df9989073ebd0a905299eda1 SHA512 eda3a4347fb8d7f78c8e0a73f621a4a731d46cafc2f46ac59cebe39f3ebd29b1c3db21772c2027b30c5c507f5f732c3876e94f319e62156d2a3146e412cad84d
|
||||
DIST libarchive-3.7.1.tar.xz 5254260 BLAKE2B 1a6fa4f5027effea3df1cfcd2d99b8b126fe03d727412b0a4529d6b2157c2c29490bcce206d0f771256c5ed6dec9612608c2c54c4861647f4e2892e0f5548adb SHA512 24380b9aa24434dfe39929ec85ede33580291023b20b7cdf03990ce62578eaeb389f5ca5680245a84c7aad51574c85a1fa3fad5254ec5395eadac1cb2130a936
|
||||
DIST libarchive-3.7.1.tar.xz.asc 659 BLAKE2B 5e72732d2e5a4f5f04f3510b3d81a148f23dffa10a3ebe709e816388c5a6e68c08ee2bbe36d81141d5ffa94ed64df3e4ca05994cda651c09589fda69a6a95e90 SHA512 6f6f6e5780c609bd9c6c359c210656f26afb585bda46988687e19d1e55f4f3260ea80bf11bfba1213fb3a3e1514c5c096692b4b9e96ffbadf06f85eb1227250a
|
||||
EBUILD libarchive-3.6.2-r1.ebuild 3842 BLAKE2B a50266df8498cdadbe66f1cf4b2ba0f8b697bca8ef1947581450be154609f39852c1128c417e2edccc0f9d015987ef202bb449af7c73bafdc6450564b662ec21 SHA512 356146837ea33ad2b5476b5676c1bc3d08d702c6c65f763472f67e939a671372420113ad9be986692c88984e2b274f5398eba66162a46d5619b46f696872faf8
|
||||
EBUILD libarchive-3.7.0.ebuild 4157 BLAKE2B 94e092769a55560e780c2691c518cec116c3dd5280a0a9e92b6e651847a331ef3309a9c8f347c4bff9b3f9b66babbd325597922c6e4e8404ca3924d670c5cb4e SHA512 002507e47c759a8c11be7773af5c4de58ad0433c0beac6d1544ea47d58c9377936ec69255fdad6015418cb9fbc65861294e5a6284eafd727eef2e058f4411edd
|
||||
EBUILD libarchive-3.7.1.ebuild 3981 BLAKE2B 16c8fd17ab45eab3014bcf237d98811914322fb736f4bedd60938679dd3c6db31fb0b08ccd37f8607af3c50857059648f9039c621d224fdb9375742fcf447bea SHA512 ceb9669f4813b5f65bf132a38bb7d3db0dd1e2bb00255aba2104017f27b832333a2132d2ea4ba333004d2b08986ab21811d1d965101d8fbeff598aba29e91cf1
|
||||
MISC metadata.xml 1224 BLAKE2B 538433528de5543ad8e912ce0d072340be3f6eeefe16320ef48b3c30a35ebdff4a32055edf89f36e4479ab1468c620871fcb5ba91bd66e81798093b4d0345949 SHA512 9f53d623a02334f675c06edea2829ce52e78d85e3894e684ae920a678eb47046393b7a93808c7e1761d30a69faa5986cd4922ae7ef8f1e2ef221de39869bd12b
|
||||
|
@ -1,19 +0,0 @@
|
||||
From: https://github.com/libarchive/libarchive/commit/bd074c2531e867078788fe8539376c31119e4e55.patch
|
||||
From: Wong Hoi Sing Edison <hswong3i@gmail.com>
|
||||
Date: Wed, 19 Jul 2023 16:59:32 +0800
|
||||
Subject: [PATCH] Replace `svfs.f_namelen` with `svfs.f_namemax` (#1924)
|
||||
|
||||
The equivalent for `f_namelen` in struct statvfs is `f_namemax`.
|
||||
|
||||
Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
|
||||
--- a/libarchive/archive_read_disk_posix.c
|
||||
+++ b/libarchive/archive_read_disk_posix.c
|
||||
@@ -1866,7 +1866,7 @@ setup_current_filesystem(struct archive_read_disk *a)
|
||||
#if defined(USE_READDIR_R)
|
||||
/* Set maximum filename length. */
|
||||
#if defined(HAVE_STATVFS)
|
||||
- t->current_filesystem->name_max = svfs.f_namelen;
|
||||
+ t->current_filesystem->name_max = svfs.f_namemax;
|
||||
#else
|
||||
t->current_filesystem->name_max = sfs.f_namelen;
|
||||
#endif
|
@ -1,139 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
inherit multilib-minimal toolchain-funcs verify-sig
|
||||
|
||||
DESCRIPTION="Multi-format archive and compression library"
|
||||
HOMEPAGE="
|
||||
https://www.libarchive.org/
|
||||
https://github.com/libarchive/libarchive/
|
||||
"
|
||||
SRC_URI="
|
||||
https://www.libarchive.de/downloads/${P}.tar.xz
|
||||
verify-sig? ( https://www.libarchive.de/downloads/${P}.tar.xz.asc )
|
||||
"
|
||||
|
||||
LICENSE="BSD BSD-2 BSD-4 public-domain"
|
||||
SLOT="0/13"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
IUSE="acl blake2 +bzip2 +e2fsprogs expat +iconv lz4 +lzma lzo nettle static-libs xattr zstd"
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/libarchive.org.asc
|
||||
|
||||
RDEPEND="
|
||||
sys-libs/zlib[${MULTILIB_USEDEP}]
|
||||
acl? ( virtual/acl[${MULTILIB_USEDEP}] )
|
||||
blake2? ( app-crypt/libb2[${MULTILIB_USEDEP}] )
|
||||
bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] )
|
||||
expat? ( dev-libs/expat[${MULTILIB_USEDEP}] )
|
||||
!expat? ( dev-libs/libxml2[${MULTILIB_USEDEP}] )
|
||||
iconv? ( virtual/libiconv[${MULTILIB_USEDEP}] )
|
||||
kernel_linux? (
|
||||
xattr? ( sys-apps/attr[${MULTILIB_USEDEP}] )
|
||||
)
|
||||
dev-libs/openssl:0=[${MULTILIB_USEDEP}]
|
||||
lz4? ( >=app-arch/lz4-0_p131:0=[${MULTILIB_USEDEP}] )
|
||||
lzma? ( >=app-arch/xz-utils-5.2.5-r1[${MULTILIB_USEDEP}] )
|
||||
lzo? ( >=dev-libs/lzo-2[${MULTILIB_USEDEP}] )
|
||||
nettle? ( dev-libs/nettle:0=[${MULTILIB_USEDEP}] )
|
||||
zstd? ( app-arch/zstd[${MULTILIB_USEDEP}] )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
kernel_linux? (
|
||||
virtual/os-headers
|
||||
e2fsprogs? ( sys-fs/e2fsprogs[${MULTILIB_USEDEP}] )
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-libarchive-20221209 )
|
||||
"
|
||||
|
||||
# false positives (checks for libc-defined hash functions)
|
||||
QA_CONFIG_IMPL_DECL_SKIP=(
|
||||
SHA256_Init SHA256_Update SHA256_Final
|
||||
SHA384_Init SHA384_Update SHA384_Final
|
||||
SHA512_Init SHA512_Update SHA512_Final
|
||||
)
|
||||
|
||||
multilib_src_configure() {
|
||||
export ac_cv_header_ext2fs_ext2_fs_h=$(usex e2fsprogs) #354923
|
||||
|
||||
local myconf=(
|
||||
$(use_enable acl)
|
||||
$(use_enable static-libs static)
|
||||
$(use_enable xattr)
|
||||
$(use_with blake2 libb2)
|
||||
$(use_with bzip2 bz2lib)
|
||||
$(use_with expat)
|
||||
$(use_with !expat xml2)
|
||||
$(use_with iconv)
|
||||
$(use_with lz4)
|
||||
$(use_with lzma)
|
||||
$(use_with lzo lzo2)
|
||||
$(use_with nettle)
|
||||
--with-zlib
|
||||
$(use_with zstd)
|
||||
|
||||
# Windows-specific
|
||||
--without-cng
|
||||
)
|
||||
if multilib_is_native_abi ; then
|
||||
myconf+=(
|
||||
--enable-bsdcat="$(tc-is-static-only && echo static || echo shared)"
|
||||
--enable-bsdcpio="$(tc-is-static-only && echo static || echo shared)"
|
||||
--enable-bsdtar="$(tc-is-static-only && echo static || echo shared)"
|
||||
)
|
||||
else
|
||||
myconf+=(
|
||||
--disable-bsdcat
|
||||
--disable-bsdcpio
|
||||
--disable-bsdtar
|
||||
)
|
||||
fi
|
||||
|
||||
ECONF_SOURCE="${S}" econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
if multilib_is_native_abi ; then
|
||||
emake
|
||||
else
|
||||
emake libarchive.la
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
mkdir -p "${T}"/bin || die
|
||||
# tests fail when lbzip2[symlink] is used in place of ref bunzip2
|
||||
ln -s "${BROOT}/bin/bunzip2" "${T}"/bin || die
|
||||
local -x PATH=${T}/bin:${PATH}
|
||||
multilib-minimal_src_test
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
# sandbox is breaking long symlink behavior
|
||||
local -x SANDBOX_ON=0
|
||||
local -x LD_PRELOAD=
|
||||
# some locales trigger different output that breaks tests
|
||||
local -x LC_ALL=C
|
||||
emake check
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
if multilib_is_native_abi ; then
|
||||
emake DESTDIR="${D}" install
|
||||
else
|
||||
local install_targets=(
|
||||
install-includeHEADERS
|
||||
install-libLTLIBRARIES
|
||||
install-pkgconfigDATA
|
||||
)
|
||||
emake DESTDIR="${D}" "${install_targets[@]}"
|
||||
fi
|
||||
|
||||
# Libs.private: should be used from libarchive.pc instead
|
||||
find "${ED}" -type f -name "*.la" -delete || die
|
||||
# https://github.com/libarchive/libarchive/issues/1766
|
||||
sed -e '/Requires\.private/s:iconv::' \
|
||||
-i "${ED}/usr/$(get_libdir)/pkgconfig/libarchive.pc" || die
|
||||
}
|
@ -1,149 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
inherit multilib-minimal toolchain-funcs verify-sig
|
||||
|
||||
DESCRIPTION="Multi-format archive and compression library"
|
||||
HOMEPAGE="
|
||||
https://www.libarchive.org/
|
||||
https://github.com/libarchive/libarchive/
|
||||
"
|
||||
SRC_URI="
|
||||
https://www.libarchive.de/downloads/${P}.tar.xz
|
||||
verify-sig? ( https://www.libarchive.de/downloads/${P}.tar.xz.asc )
|
||||
"
|
||||
|
||||
LICENSE="BSD BSD-2 BSD-4 public-domain"
|
||||
SLOT="0/13"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
IUSE="acl blake2 +bzip2 +e2fsprogs expat +iconv lz4 +lzma lzo nettle static-libs xattr zstd"
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/libarchive.org.asc
|
||||
|
||||
RDEPEND="
|
||||
sys-libs/zlib[${MULTILIB_USEDEP}]
|
||||
acl? ( virtual/acl[${MULTILIB_USEDEP}] )
|
||||
blake2? ( app-crypt/libb2[${MULTILIB_USEDEP}] )
|
||||
bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] )
|
||||
expat? ( dev-libs/expat[${MULTILIB_USEDEP}] )
|
||||
!expat? ( dev-libs/libxml2[${MULTILIB_USEDEP}] )
|
||||
iconv? ( virtual/libiconv[${MULTILIB_USEDEP}] )
|
||||
kernel_linux? (
|
||||
xattr? ( sys-apps/attr[${MULTILIB_USEDEP}] )
|
||||
)
|
||||
dev-libs/openssl:0=[${MULTILIB_USEDEP}]
|
||||
lz4? ( >=app-arch/lz4-0_p131:0=[${MULTILIB_USEDEP}] )
|
||||
lzma? ( >=app-arch/xz-utils-5.2.5-r1[${MULTILIB_USEDEP}] )
|
||||
lzo? ( >=dev-libs/lzo-2[${MULTILIB_USEDEP}] )
|
||||
nettle? ( dev-libs/nettle:0=[${MULTILIB_USEDEP}] )
|
||||
zstd? ( app-arch/zstd[${MULTILIB_USEDEP}] )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
kernel_linux? (
|
||||
virtual/os-headers
|
||||
e2fsprogs? ( sys-fs/e2fsprogs[${MULTILIB_USEDEP}] )
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-libarchive-20221209 )
|
||||
elibc_musl? ( sys-libs/queue-standalone )
|
||||
"
|
||||
|
||||
# Bug #910552 Only required for version 3.7.0
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-f_namemax-fix.patch"
|
||||
)
|
||||
|
||||
# false positives (checks for libc-defined hash functions)
|
||||
QA_CONFIG_IMPL_DECL_SKIP=(
|
||||
SHA256_Init SHA256_Update SHA256_Final
|
||||
SHA384_Init SHA384_Update SHA384_Final
|
||||
SHA512_Init SHA512_Update SHA512_Final
|
||||
)
|
||||
|
||||
multilib_src_configure() {
|
||||
export ac_cv_header_ext2fs_ext2_fs_h=$(usex e2fsprogs) #354923
|
||||
|
||||
local myconf=(
|
||||
$(use_enable acl)
|
||||
$(use_enable static-libs static)
|
||||
$(use_enable xattr)
|
||||
$(use_with blake2 libb2)
|
||||
$(use_with bzip2 bz2lib)
|
||||
$(use_with expat)
|
||||
$(use_with !expat xml2)
|
||||
$(use_with iconv)
|
||||
$(use_with lz4)
|
||||
$(use_with lzma)
|
||||
$(use_with lzo lzo2)
|
||||
$(use_with nettle)
|
||||
--with-zlib
|
||||
$(use_with zstd)
|
||||
|
||||
# Windows-specific
|
||||
--without-cng
|
||||
)
|
||||
if multilib_is_native_abi ; then
|
||||
myconf+=(
|
||||
--enable-bsdcat="$(tc-is-static-only && echo static || echo shared)"
|
||||
--enable-bsdcpio="$(tc-is-static-only && echo static || echo shared)"
|
||||
--enable-bsdtar="$(tc-is-static-only && echo static || echo shared)"
|
||||
--enable-bsdunzip="$(tc-is-static-only && echo static || echo shared)"
|
||||
)
|
||||
else
|
||||
myconf+=(
|
||||
--disable-bsdcat
|
||||
--disable-bsdcpio
|
||||
--disable-bsdtar
|
||||
--disable-bsdunzip
|
||||
)
|
||||
fi
|
||||
|
||||
ECONF_SOURCE="${S}" econf "${myconf[@]}"
|
||||
# TODO: figure out why we don't get one
|
||||
mkdir -p unzip/test || die
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
if multilib_is_native_abi ; then
|
||||
emake
|
||||
else
|
||||
emake libarchive.la
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
mkdir -p "${T}"/bin || die
|
||||
# tests fail when lbzip2[symlink] is used in place of ref bunzip2
|
||||
ln -s "${BROOT}/bin/bunzip2" "${T}"/bin || die
|
||||
local -x PATH=${T}/bin:${PATH}
|
||||
multilib-minimal_src_test
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
# sandbox is breaking long symlink behavior
|
||||
local -x SANDBOX_ON=0
|
||||
local -x LD_PRELOAD=
|
||||
# some locales trigger different output that breaks tests
|
||||
local -x LC_ALL=C
|
||||
emake check
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
if multilib_is_native_abi ; then
|
||||
emake DESTDIR="${D}" install
|
||||
else
|
||||
local install_targets=(
|
||||
install-includeHEADERS
|
||||
install-libLTLIBRARIES
|
||||
install-pkgconfigDATA
|
||||
)
|
||||
emake DESTDIR="${D}" "${install_targets[@]}"
|
||||
fi
|
||||
|
||||
# Libs.private: should be used from libarchive.pc instead
|
||||
find "${ED}" -type f -name "*.la" -delete || die
|
||||
# https://github.com/libarchive/libarchive/issues/1766
|
||||
sed -e '/Requires\.private/s:iconv::' \
|
||||
-i "${ED}/usr/$(get_libdir)/pkgconfig/libarchive.pc" || die
|
||||
}
|
Binary file not shown.
@ -1,4 +1,3 @@
|
||||
DIST borgbackup-1.2.4.tar.gz 4056513 BLAKE2B 90c4d7ce43acaa4512a5cce3d0c96c883699b293efb1e5d5b516b803cf4d03bcece85b026bfa6e47ccccb1f5ec1b115e2c70ccb081d01accfde0d8b080cb4ea8 SHA512 9326a58605a085f521ba75a2eecfb4bdb790d3da18c77076bddaeae641678cc08171d997a758182a739ec6b145bb04d982f8314ae60f93c3ff093eca15515dfd
|
||||
EBUILD borgbackup-1.2.4-r3.ebuild 1343 BLAKE2B 3428ff418dd34b16402dd59379bc108f1ab6afc7aba286268ecf3b4a19d0ecc2c3c1272ea16f3fa1f21f297624151960ab86cf95e00a828964208e863c365c72 SHA512 5b14d964ce732114660f560f88cab30179763f16d0efefa20d79e603e5fa221e4c95aabd35e4ceb03168984654b0a75d12e2a9191b7479c524065c02437c4b3d
|
||||
EBUILD borgbackup-1.2.4.ebuild 1254 BLAKE2B 4b35a27b9166351b899f69d6380923b4eb0058ff86b442ca0506146c3f24a68b8694295bdb1842e09c57c9c4e9baf80083dad9641994c6c753111b45840b4da8 SHA512 390075e91617cd8250fad3621b44e2f8b657474787ec463b2e71d3daf8ffcbc741397ddb341792d42ae9204bf8fdf2ef6fb843354e908fc36b227b40d9e9f01b
|
||||
MISC metadata.xml 296 BLAKE2B 3f0aba58d462b6e50677f94dbef5b44bd3aa2dd92a44bb10777f0a19aff17d02792384b49e44915611c962cf6775b4dab33230e1d6b0ae4ef3f359e30ecfd2b3 SHA512 f223dd74fb089d81f0d8cab8efc2a1edad6dba0b8b37dd72ef4758cda02b3be229a0809783fdb563aa4e8e71ef41962d892be4925d77e110fc7453d4b41cedfc
|
||||
MISC metadata.xml 374 BLAKE2B 4d93ab445b3d3a301d7c7c34017d7ccf0dc2962fb9c6b7f33bc9839788825f37f2ee99f5750c0d6288ddef21a7501fab69504adf15e20a35c61ec8b07014af68 SHA512 b91c72d1eff24d44443280de335d7cc23c862774e4e23b35d0f0730c512cb16304a48311e953292d01b0b69101bcdb01ab3bc22439cdaee65b9d5265e5140564
|
||||
|
@ -1,51 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
|
||||
inherit distutils-r1 bash-completion-r1
|
||||
|
||||
KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv x86"
|
||||
inherit pypi
|
||||
|
||||
DESCRIPTION="Deduplicating backup program with compression and authenticated encryption"
|
||||
HOMEPAGE="https://borgbackup.readthedocs.io/"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
|
||||
# Unfortunately we have a file conflict with app-office/borg, bug #580402
|
||||
# borgbackup is *very* picky about which msgpack it work with,
|
||||
# check setup.py on bumps.
|
||||
RDEPEND="
|
||||
!!app-office/borg
|
||||
app-arch/lz4
|
||||
virtual/acl
|
||||
dev-python/pyfuse3[${PYTHON_USEDEP}]
|
||||
~dev-python/msgpack-1.0.5[${PYTHON_USEDEP}]
|
||||
dev-libs/openssl:0=
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
dev-python/setuptools-scm[${PYTHON_USEDEP}]
|
||||
dev-python/packaging[${PYTHON_USEDEP}]
|
||||
>=dev-python/cython-0.29.29[${PYTHON_USEDEP}]
|
||||
dev-python/pkgconfig[${PYTHON_USEDEP}]
|
||||
${RDEPEND}
|
||||
"
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
doman docs/man/*
|
||||
|
||||
dobashcomp scripts/shell_completions/bash/borg
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
doins scripts/shell_completions/zsh/_borg
|
||||
|
||||
insinto /usr/share/fish/vendor_completions.d
|
||||
doins scripts/shell_completions/fish/borg.fish
|
||||
}
|
@ -1,13 +1,7 @@
|
||||
AUX borgmatic-1.5.1-no_test_coverage.patch 284 BLAKE2B 91e041cb2d3d15b65c47075b0524e6e2a60631702eb10243da79b8051504e33476e6f8d61a3d9a172302b9859a01afb0d640a502cc95f69e45024a8fdb5ebc53 SHA512 1604d425f4c3267a41449f5d05675634f365d0be0630b49812e87d13ebc4ee78e01259f2371afbf2150b5b1203676e20c50c1613be24e0fa39df635d229f80bc
|
||||
AUX borgmatic-1.7.13-no_test_coverage.patch 248 BLAKE2B 624e21cc8971d9374b34dee002635d9090576ba785cf3b6da7c10a91f439fd8e11b335bb33dc9c3b7421b4a5a8982e2a5f67b723b06051969651d626f09bf972 SHA512 fc549c0a63a6182b1848d89a1c9aacd3057f07988d1e8ec3b6ae1defb0675e7b934b0c65c9b09edc431172bc550521058ab73cb64ae6e577072331d4d5269e78
|
||||
AUX borgmatic-1.7.14-systemd_service_bin_path.patch 604 BLAKE2B 534a545b5a8d65c6e46102a5e558c25444d82dd3679b81c0ba50c72dfec8ce8f935fdcb558ff61fec7bf30409b4b9809d76e7488554f4461c4b5eac035a60c07 SHA512 9b4c65b249a033f17b68c5209c0132bd94e310d46193a9a85090cb8520220705aacd91c19d713e11e6955c1e0b1e09823abcaf8164ab0f162ff9a62652bb7e56
|
||||
AUX borgmatic-1.7.3-systemd_service_bin_path.patch 604 BLAKE2B 9b1c613ce2667d2b8846e1bdf7e7bd838529fb9029af2ca572dcbafc5a8c9b64c79cab820be3b750c5fcb060da72cdf1c449cbe50efefe63ef1eb6a884e26e14 SHA512 6ca6c351697db1ae26de2b00ad543fc8f1cea1b0f4ef84f82f9578d9e56da58b4437ed48839c5aaf7d5ea66fcb79620d0cc12b8a2b30862b488fae07ad182638
|
||||
DIST borgmatic-1.7.15.tar.gz 390819 BLAKE2B dc9086a0363afb8acbe943776cd6f388ba85a18e50554b5187c86e7054e7ff748ea878623d9b46c19564198faf5c566b137e54681812086115311970bc517455 SHA512 cf1f6da782a5ad547a76b9e4cb00cbd4ca4232cfb5dcd027c6fee9f1a3b97fda894f27c512007b449b8e11e939249060f63c3cdde29aee3aa86710200cf8d2db
|
||||
DIST borgmatic-1.7.8.tar.gz 350233 BLAKE2B 3fcd392983f73ec5e97f0dc6b96e211d7f1e1d1a4ce95c635c675cf043e796925df53c30c1e4f8eb1a095d9ec5ff81e90edee5ff2576f4683053d3108004afd9 SHA512 bcc65fdb7ea1171fb61deda9b1f69a00596e1e10a99508d336977b694bd8f93d74837aad9211bf1065b785220aaf1460a3ea403bf23fa4873d1bf4c6b4016525
|
||||
DIST borgmatic-1.8.0.tar.gz 388945 BLAKE2B f765f135f4c4a99216928764ce769854d4364b20959ed547c07f3f9a88fa756765caf85fa4e726e7fd2bbfc704b509e860619383f53e731d9b44911ad930b65b SHA512 3b94095dcc0c8f199e59caafc0a3ec06780b7b87b532d4e7d666d2f84a8920d3671e47a0fd156ce67eae1e7914307c789a7bcf826fba46c0a7a34d333a14cde1
|
||||
DIST borgmatic-1.8.2.tar.gz 396972 BLAKE2B d9444ec49c3d325d865d553fa1cb28de9416aa36e999ef6452c62a9a6519e58afbc922398c52f3a1de441fd8da02e5618bc03a67baae161677a15a1780209788 SHA512 8de49c071c54516d0fb3f0d918f05226ac00519cc0605eacf204795a239554764fd1f3b0f44f3110fc551d6a89e92a59ca34ddebbfb02bf3deabc326f81ccf9c
|
||||
EBUILD borgmatic-1.7.15.ebuild 2040 BLAKE2B c204fc85f282faf5e1b7834a2900d524c5bfa0bce9de4ff8b56736787d0c2c9f9beb3b75ef96dab3cf490a8b7008182d995465ef41c4ae4c884969e6a766358b SHA512 6aed82522fcc67f7c20234a2eae5810eb02f4d24cb297192fc56aa67b22193b62631fd47ed042eba995ce21ffbeb1189c0c3b092fbc54d6ac3ca454bbc18603f
|
||||
EBUILD borgmatic-1.7.8.ebuild 1643 BLAKE2B 9e05c2bfc9894d3e3636d17254cbd6d386d44fdb3305d16278be5a42d6bd56f3d1e0b81c53245b264d91118b10c03fc9515573146ad47b15b5b8148f77c849e5 SHA512 0c3788e897ab3a838548f456a6b3ccbc644d877f7ce83bbbbea59f9f586c3e69af44222016cfb0fe803e639baeebe61d7e77b5160b4ed7ea223add48c3dbca6b
|
||||
EBUILD borgmatic-1.8.0.ebuild 1992 BLAKE2B c45e0bb857401d5eda366e90597c79c66bfb6797178dd54ee251ff0b85fc647dbf9185040430aa18feafbfe528e0f3a92d2c71f99674749ad2ab9170a79ba7e1 SHA512 bf354928158c8044a01ef646698c5aaba164e0453aeee2c9fb89df90b3367dfd6eba88b0cc88c5a4fe9b53941c91fcfa7819c4cbc738ecf07e613068e79cbdfb
|
||||
EBUILD borgmatic-1.7.15.ebuild 2039 BLAKE2B 540bf3b3ba70492896efc4d9e8aaa9b37350fc22889d48427b3cb4f20fa30eeacc7c09049db66dca6f0db0efcb7ed514f4393008961e0904203bcb452a64442c SHA512 a0a789d4167cb688e85f678a8ae0717e22fefc9bf629e026a3b2898725b39c25dbe8c644cb42c493043a66f465797464500d442d07dee1f33201f221e4c72ca0
|
||||
EBUILD borgmatic-1.8.2.ebuild 1992 BLAKE2B c45e0bb857401d5eda366e90597c79c66bfb6797178dd54ee251ff0b85fc647dbf9185040430aa18feafbfe528e0f3a92d2c71f99674749ad2ab9170a79ba7e1 SHA512 bf354928158c8044a01ef646698c5aaba164e0453aeee2c9fb89df90b3367dfd6eba88b0cc88c5a4fe9b53941c91fcfa7819c4cbc738ecf07e613068e79cbdfb
|
||||
MISC metadata.xml 380 BLAKE2B bd4f6eb451caa6b36d51dff099c7885ad2c30f2f9f5397e12049a28214601d67853f0dc604e6e42a566b8bf57acf0d9e39c685af8743cce72ec3b5b07adea72e SHA512 1d2c0a22d3b844b58ed35f3fae261a1d6906e5e1b0e69bbe364e0409f335b44f04089ea1d0e6144e2ddfcf066cc8ad85d14c0b22a28ddd22d235c48e1401569f
|
||||
|
@ -1,61 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
|
||||
inherit distutils-r1 systemd pypi
|
||||
|
||||
DESCRIPTION="Automatically create, prune and verify backups with borgbackup"
|
||||
HOMEPAGE="https://torsion.org/borgmatic/"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ~arm64 ~riscv"
|
||||
|
||||
# borg is called as an external tool, hence no pythonic stuff
|
||||
RDEPEND="app-backup/borgbackup
|
||||
$(python_gen_cond_dep '
|
||||
<dev-python/colorama-0.5[${PYTHON_USEDEP}]
|
||||
dev-python/jsonschema[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
<dev-python/ruamel-yaml-0.18.0[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
')"
|
||||
BDEPEND="
|
||||
test? (
|
||||
$(python_gen_cond_dep '
|
||||
>=dev-python/flexmock-0.10.10[${PYTHON_USEDEP}]
|
||||
')
|
||||
)"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.5.1-no_test_coverage.patch
|
||||
"${FILESDIR}"/${PN}-1.7.3-systemd_service_bin_path.patch
|
||||
)
|
||||
|
||||
# A fragile test whose only purpose is to make sure the NEWS file
|
||||
# has been updated for the current version.
|
||||
EPYTEST_DESELECT=(
|
||||
tests/integration/commands/test_borgmatic.py::test_borgmatic_version_matches_news_version
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
systemd_dounit sample/systemd/borgmatic.{service,timer}
|
||||
keepdir /etc/borgmatic
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z "${REPLACING_VERSIONS}" ]]; then
|
||||
elog "To generate a sample configuration file, run:"
|
||||
elog " generate-borgmatic-config"
|
||||
fi
|
||||
elog
|
||||
elog "Systemd users wishing to periodically run borgmatic can use the provided timer and service units."
|
||||
}
|
@ -1,73 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{9..12} )
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
|
||||
inherit distutils-r1 systemd pypi
|
||||
|
||||
DESCRIPTION="Automatically create, prune and verify backups with borgbackup"
|
||||
HOMEPAGE="https://torsion.org/borgmatic/"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~riscv"
|
||||
|
||||
# borg is called as an external tool, hence no pythonic stuff
|
||||
RDEPEND="app-backup/borgbackup
|
||||
$(python_gen_cond_dep '
|
||||
<dev-python/colorama-0.5[${PYTHON_USEDEP}]
|
||||
dev-python/jsonschema[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
<dev-python/ruamel-yaml-0.18.0[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
')"
|
||||
BDEPEND="
|
||||
test? (
|
||||
$(python_gen_cond_dep '
|
||||
>=dev-python/flexmock-0.10.10[${PYTHON_USEDEP}]
|
||||
')
|
||||
)"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.7.13-no_test_coverage.patch
|
||||
"${FILESDIR}"/${PN}-1.7.14-systemd_service_bin_path.patch
|
||||
)
|
||||
|
||||
# A fragile test whose only purpose is to make sure the NEWS file
|
||||
# has been updated for the current version.
|
||||
EPYTEST_DESELECT=(
|
||||
tests/integration/commands/test_borgmatic.py::test_borgmatic_version_matches_news_version
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
systemd_dounit sample/systemd/borgmatic.{service,timer}
|
||||
keepdir /etc/borgmatic
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z "${REPLACING_VERSIONS}" ]]; then
|
||||
elog "To generate a sample configuration file, run:"
|
||||
elog " ${PN} config generate"
|
||||
else
|
||||
local oldver
|
||||
for oldver in ${REPLACING_VERSIONS}; do
|
||||
if ver_test "${oldver}" -lt 1.8.0; then
|
||||
ewarn "Please be warned that ${PN}-1.8.0 has introduced several breaking changes."
|
||||
ewarn "For details, please see"
|
||||
ewarn
|
||||
ewarn " https://github.com/borgmatic-collective/borgmatic/releases/tag/1.8.0"
|
||||
ewarn
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
elog
|
||||
elog "Systemd users wishing to periodically run ${PN} can use the provided timer and service units."
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
--- a/setup.cfg
|
||||
+++ b/setup.cfg
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
[tool:pytest]
|
||||
testpaths = tests
|
||||
-addopts = --cov-report term-missing:skip-covered --cov=borgmatic --ignore=tests/end-to-end
|
||||
+addopts = --ignore=tests/end-to-end
|
||||
filterwarnings =
|
||||
ignore:Coverage disabled.*:pytest.PytestWarning
|
||||
|
@ -1,8 +0,0 @@
|
||||
--- a/sample/systemd/borgmatic.service
|
||||
+++ b/sample/systemd/borgmatic.service
|
||||
@@ -61,4 +61,4 @@
|
||||
# Delay start to prevent backups running during boot. Note that systemd-inhibit requires dbus and
|
||||
# dbus-user-session to be installed.
|
||||
ExecStartPre=sleep 1m
|
||||
-ExecStart=systemd-inhibit --who="borgmatic" --what="sleep:shutdown" --why="Prevent interrupting scheduled backup" /root/.local/bin/borgmatic --verbosity -1 --syslog-verbosity 1
|
||||
+ExecStart=systemd-inhibit --who="borgmatic" --what="sleep:shutdown" --why="Prevent interrupting scheduled backup" /usr/bin/borgmatic --verbosity -1 --syslog-verbosity 1
|
Binary file not shown.
@ -0,0 +1,166 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# Maintainers should:
|
||||
# 1. Join the "Gentoo" project at https://dev.gnupg.org/project/view/27/
|
||||
# 2. Subscribe to release tasks like https://dev.gnupg.org/T6159
|
||||
# (find the one for the current release then subscribe to it +
|
||||
# any subsequent ones linked within so you're covered for a while.)
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_OPTIONAL=1
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/gnupg.asc
|
||||
|
||||
# in-source builds are not supported:
|
||||
# * https://dev.gnupg.org/T6313#166339
|
||||
# * https://dev.gnupg.org/T6673#174545
|
||||
inherit distutils-r1 libtool flag-o-matic out-of-source qmake-utils toolchain-funcs verify-sig
|
||||
|
||||
DESCRIPTION="GnuPG Made Easy is a library for making GnuPG easier to use"
|
||||
HOMEPAGE="https://www.gnupg.org/related_software/gpgme"
|
||||
SRC_URI="
|
||||
mirror://gnupg/gpgme/${P}.tar.bz2
|
||||
verify-sig? ( mirror://gnupg/gpgme/${P}.tar.bz2.sig )
|
||||
"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2.1"
|
||||
# Please check ABI on each bump, even if SONAMEs didn't change: bug #833355
|
||||
# Use e.g. app-portage/iwdevtools integration with dev-libs/libabigail's abidiff.
|
||||
# Subslot: SONAME of each: <libgpgme.libgpgmepp.libqgpgme.FUDGE>
|
||||
# Bump FUDGE if a release is made which breaks ABI without changing SONAME.
|
||||
# (Reset to 0 if FUDGE != 0 if libgpgme/libgpgmepp/libqpggme change.)
|
||||
SLOT="1/11.6.15.2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
IUSE="common-lisp static-libs +cxx python qt5 test"
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="qt5? ( cxx ) python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
# - On each bump, update dep bounds on each version from configure.ac!
|
||||
RDEPEND="
|
||||
>=app-crypt/gnupg-2
|
||||
>=dev-libs/libassuan-2.5.3:=
|
||||
>=dev-libs/libgpg-error-1.36:=
|
||||
>=dev-libs/libgpg-error-1.46-r1
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
qt5? ( dev-qt/qtcore:5 )
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
test? (
|
||||
qt5? ( dev-qt/qttest:5 )
|
||||
)
|
||||
"
|
||||
#doc? ( app-doc/doxygen[dot] )
|
||||
BDEPEND="
|
||||
python? ( dev-lang/swig )
|
||||
verify-sig? ( sec-keys/openpgp-keys-gnupg )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.18.0-tests-start-stop-agent-use-command-v.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
elibtoolize
|
||||
|
||||
# bug #697456
|
||||
addpredict /run/user/$(id -u)/gnupg
|
||||
|
||||
local MAX_WORKDIR=66
|
||||
if use test && [[ "${#WORKDIR}" -gt "${MAX_WORKDIR}" ]]; then
|
||||
eerror "Unable to run tests as WORKDIR='${WORKDIR}' is longer than ${MAX_WORKDIR} which causes failure!"
|
||||
die "Could not run tests as requested with too-long WORKDIR."
|
||||
fi
|
||||
|
||||
# Make best effort to allow longer PORTAGE_TMPDIR
|
||||
# as usock limitation fails build/tests
|
||||
ln -s "${P}" "${WORKDIR}/b" || die
|
||||
S="${WORKDIR}/b"
|
||||
}
|
||||
|
||||
my_src_configure() {
|
||||
local languages=()
|
||||
|
||||
# bug #847955
|
||||
append-lfs-flags
|
||||
|
||||
if use common-lisp ; then
|
||||
languages+=( "cl" )
|
||||
fi
|
||||
|
||||
if use cxx ; then
|
||||
languages+=( "cpp" )
|
||||
fi
|
||||
|
||||
# TODO: qt6? but qt5 and qt5 are mutually exclusive :(
|
||||
if use qt5; then
|
||||
languages+=( "qt5" )
|
||||
|
||||
#use doc ||
|
||||
export DOXYGEN=true
|
||||
export MOC="$(qt5_get_bindir)/moc"
|
||||
fi
|
||||
|
||||
local myeconfargs=(
|
||||
$(use test || echo "--disable-gpgconf-test --disable-gpg-test --disable-gpgsm-test --disable-g13-test")
|
||||
--enable-languages="${languages[*]}"
|
||||
$(use_enable static-libs static)
|
||||
)
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
|
||||
if use python ; then
|
||||
emake -C lang/python prepare
|
||||
|
||||
pushd lang/python > /dev/null || die
|
||||
top_builddir="../.." srcdir="${S}/lang/python" CPP="$(tc-getCPP)" distutils-r1_src_configure
|
||||
popd > /dev/null || die
|
||||
fi
|
||||
}
|
||||
|
||||
my_src_compile() {
|
||||
default
|
||||
|
||||
if use python ; then
|
||||
pushd lang/python > /dev/null || die
|
||||
top_builddir="../.." srcdir="${S}/lang/python" CPP="$(tc-getCPP)" distutils-r1_src_compile
|
||||
popd > /dev/null || die
|
||||
fi
|
||||
}
|
||||
|
||||
my_src_test() {
|
||||
default
|
||||
|
||||
if use python ; then
|
||||
distutils-r1_src_test
|
||||
fi
|
||||
}
|
||||
|
||||
python_test() {
|
||||
emake -C lang/python/tests check \
|
||||
PYTHON=${EPYTHON} \
|
||||
PYTHONS=${EPYTHON} \
|
||||
TESTFLAGS="--python-libdir=${BUILD_DIR}/lib"
|
||||
}
|
||||
|
||||
my_src_install() {
|
||||
default
|
||||
|
||||
if use python ; then
|
||||
pushd lang/python > /dev/null || die
|
||||
top_builddir="../.." srcdir="${S}/lang/python" CPP="$(tc-getCPP)" distutils-r1_src_install
|
||||
popd > /dev/null || die
|
||||
fi
|
||||
|
||||
find "${ED}" -type f -name '*.la' -delete || die
|
||||
|
||||
# Backward compatibility for gentoo
|
||||
# (in the past, we had slots)
|
||||
dodir /usr/include/gpgme
|
||||
dosym ../gpgme.h /usr/include/gpgme/gpgme.h
|
||||
}
|
@ -1,5 +1,7 @@
|
||||
AUX johntheripper-jumbo-1.9.0_p20211129-fix-bashism.patch 3933 BLAKE2B cd5d773615f4b239e857b430c35a905be7e0c8bfd83b037f43fe14799340aa6d3a02bf9f3f69c1e69a2b07a4038474c1fc57a8ab056db26fde5aa14b1842df18 SHA512 505cf695a001f22a74998a83eb79ce7b88882eb51a0864833e06bd9344dae36df629ffb6cdcdfaa019b3dfcfdedc8314a30b169d0d5b1f6976408adbaee49023
|
||||
DIST johntheripper-jumbo-1.9.0_p20211129.tar.gz 47758087 BLAKE2B de57218151fbc3bed79322d065ef73deb99b73fb1ce55924197793a320600cc1189dabae43fe5848014c2e72dcb7e1c2a91f2aaba64bd8c7314ded37e23a34c9 SHA512 f8fc6bf102d900bb32c5714bd595a71f67f73a1f0a237d9f851b2f250046307bf1177f3782023cd1bbcc55f9d54fd7b4946e09c7dc1fd908ba6a6bad90b233d6
|
||||
DIST johntheripper-jumbo-1.9.0_p20230717.tar.gz 56772470 BLAKE2B 33295dc28d32852a6284adaadbbf9d9c852fb78e1dc673df5e67c31befb6921dbd6d29310ca7b3406e4b1259cca6e8d643292d73f4324262b038a1c6bc7ff51b SHA512 fd48a6bccf3f2be0d495aa8a635af73bc386c5815fdaa62259f2920724afa89e0e9743585c412e595486a0d2677f1ec43c43606471078ec0611d5c05b01853de
|
||||
EBUILD johntheripper-jumbo-1.9.0_p20211129-r1.ebuild 3478 BLAKE2B cbb40ff27f41bee7a80b613b105ef92df5dfe7c282ad8687eed46fe7c34b6d577f7a832b6f22a3a6d02d176c01fe181f20686ad6681bd73275b5a28f612013a0 SHA512 9b172be4c027afc215fc02040226c0eb03f55e4c4e938cb035e4ce69a0c97cb8a4d9f3e110b522296432e5f3053a405fe69ccf47fca6e36039cc240f11c7d834
|
||||
EBUILD johntheripper-jumbo-9999.ebuild 3420 BLAKE2B cb8f328e15f4e7d3ecf09bc00a8774ed2199e87398b0e7944013ea0bdaf8c731aeacc3aa5c1af2682173d0c284366b9f766dd0eb18deceb1d736e4939306804c SHA512 c19de9be866874b5ee7e4f1b4dc98ea0734fa5a3b08ac2399581b756c3eb16aa81580c7bacb1e7f716974ede404ba5e5680cde3a3b03d8e3eb74da6412b646e8
|
||||
EBUILD johntheripper-jumbo-1.9.0_p20230717.ebuild 3520 BLAKE2B 428ab0a8f396a2d5f32ca64525a1695bfce0413aad0f9d96de0156486ca9459c11e57d031e6fa4078614c0bf9a491228d1c7de05a59ee24e2abff4ec82b96593 SHA512 1278ccae14e75ed38e8ea31fcaa897e77487cee3cc5bef54e13d82f346504b18baac915d5b73d7af92c8d2ebdcd1fb00d40540fc4aa3c5ed42deef20ef43f785
|
||||
EBUILD johntheripper-jumbo-9999.ebuild 3603 BLAKE2B cb4449c5a3fe229e5c8eb83cbf3e8edb9e6b51b3b31f39892851382cb9527bf45e92c32f1fb3908bf9fd7d0fc898e3fa2632b17bd5810103ec6020df42076089 SHA512 c019753ac84f97db9914164acdd244104ee961c23d3cc21a941de225d3c53fd28a90f03c03edce0fbb9f8fb82f7714611cbad722d89788b7df56034c5c9fdb22
|
||||
MISC metadata.xml 473 BLAKE2B ed1c424492ff052e83ce899d8ea4a805ce5d4a5604da336ad16929594d14307c2e264c4eb6e6ee985d3167b8917e8c80c38ed9f97ba5293a0b8f84f472fd9786 SHA512 f124050eecf17e3c2fa01b6140881349e089840c75cb30bf054286a049026bb372cc70e1ce7be3054fffbe5836be7dc1f7fc9e3918f874443644ea99c5b441ab
|
||||
|
@ -0,0 +1,155 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools flag-o-matic toolchain-funcs pax-utils
|
||||
|
||||
DESCRIPTION="Fast password cracker"
|
||||
HOMEPAGE="http://www.openwall.com/john/"
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="https://github.com/magnumripper/JohnTheRipper.git"
|
||||
inherit git-r3
|
||||
else
|
||||
HASH_COMMIT="c798c3f39215f6e08c67677eb9b79f65cfe08e40"
|
||||
|
||||
SRC_URI="https://github.com/openwall/john/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/john-${HASH_COMMIT}"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="custom-cflags kerberos mpi opencl openmp pcap"
|
||||
|
||||
DEPEND=">=dev-libs/openssl-1.0.1:=
|
||||
virtual/libcrypt:=
|
||||
mpi? ( virtual/mpi )
|
||||
opencl? ( virtual/opencl )
|
||||
kerberos? ( virtual/krb5 )
|
||||
pcap? ( net-libs/libpcap )
|
||||
dev-libs/gmp:=
|
||||
sys-libs/zlib
|
||||
app-arch/bzip2"
|
||||
# Missing (unpackaged):
|
||||
# - Digest::Haval256
|
||||
# - Digest::x
|
||||
# See bug #777369.
|
||||
RDEPEND="${DEPEND}
|
||||
dev-perl/Digest-MD2
|
||||
virtual/perl-Digest-MD5
|
||||
dev-perl/Digest-SHA3
|
||||
dev-perl/Digest-GOST
|
||||
!app-crypt/johntheripper"
|
||||
RESTRICT="test"
|
||||
|
||||
pkg_pretend() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
cd src || die
|
||||
eautoreconf
|
||||
|
||||
sed -i 's#$prefix/share/john#/etc/john#' configure || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
cd src || die
|
||||
|
||||
use custom-cflags || strip-flags
|
||||
|
||||
econf \
|
||||
--enable-pkg-config \
|
||||
--disable-native-march \
|
||||
--disable-native-tests \
|
||||
--disable-rexgen \
|
||||
--with-openssl \
|
||||
--with-systemwide \
|
||||
$(use_enable mpi) \
|
||||
$(use_enable opencl) \
|
||||
$(use_enable openmp) \
|
||||
$(use_enable pcap)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Uses default LD=$(CC) but if the user's set LD, it'll call it
|
||||
# bug #729432.
|
||||
emake LD="$(tc-getCC)" -C src
|
||||
}
|
||||
|
||||
src_test() {
|
||||
pax-mark -mr run/john
|
||||
|
||||
# this probably causes the following failure:
|
||||
# Testing: as400-des, AS/400 DES [DES 32/64]... PASS
|
||||
# Error, Invalid signature line trying to link to dynamic format.
|
||||
# Original format=as400-ssha1
|
||||
sed '/.include /d' run/john.conf > run/john-test.conf
|
||||
if use opencl; then
|
||||
# GPU tests fail in portage, so run cpu only tests
|
||||
./run/john --config=run/john-test.conf --device=cpu --test=0 --verbosity=2 || die
|
||||
else
|
||||
# Weak tests
|
||||
./run/john --config=run/john-test.conf --test=0 --verbosity=2 || die
|
||||
# Strong tests
|
||||
#./run/john --test=1 --verbosity=2 || die
|
||||
fi
|
||||
|
||||
rm john-test.conf || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Executables
|
||||
dosbin run/john
|
||||
newsbin run/mailer john-mailer
|
||||
|
||||
pax-mark -mr "${ED}/usr/sbin/john"
|
||||
|
||||
# grep '$(LN)' Makefile.in | head -n-3 | tail -n+2 | cut -d' ' -f3 | cut -d/ -f3
|
||||
local s
|
||||
for s in \
|
||||
unshadow unafs undrop unique ssh2john putty2john pfx2john keepass2john keyring2john \
|
||||
zip2john gpg2john rar2john racf2john keychain2john kwallet2john pwsafe2john dmg2john \
|
||||
hccap2john base64conv truecrypt_volume2john keystore2john
|
||||
do
|
||||
dosym john /usr/sbin/${s}
|
||||
done
|
||||
|
||||
# Scripts
|
||||
exeinto /usr/share/john
|
||||
doexe run/*.pl
|
||||
doexe run/*.py
|
||||
insinto /usr/share/john
|
||||
doins -r run/lib
|
||||
cd run || die
|
||||
|
||||
local s
|
||||
for s in *.pl *.py; do
|
||||
dosym ../share/john/${s} /usr/bin/${s}
|
||||
done
|
||||
cd .. || die
|
||||
|
||||
if use opencl; then
|
||||
insinto /etc/john
|
||||
doins -r run/opencl
|
||||
fi
|
||||
|
||||
# Config files
|
||||
insinto /etc/john
|
||||
doins run/*.chr run/password.lst
|
||||
doins run/*.conf
|
||||
doins -r run/rules run/ztex
|
||||
|
||||
# Documentation
|
||||
rm -f doc/README || die
|
||||
dodoc -r README.md doc/*
|
||||
}
|
@ -1,3 +1,5 @@
|
||||
DIST john-1.8.0.tar.xz 4468704 BLAKE2B 90d6acc03dc8d22ef869320723e4799e64e15b621cde327ad420595889a43242b182079fd306bb7741b766ddc5e1239e3bdd4f4e396a4ab1e86d635cbebf8f60 SHA512 e2820ecabd7ea4c7404c3d40f064994d0f5746b093c859a58fbf2588492ebcef411d9f3088c8e8ee726284ead969e26fdae834cdae3eb2d32408fc79ed906543
|
||||
DIST john-1.9.0.tar.xz 8944932 BLAKE2B 57f5b83a541a7048e34d87dbee2f8f56953ef8a98bf7163b981064289d38452d11e59f1fb48a98a4f5f61d5f33866987f7c8515bf9900d742c09b7ac3e61376e SHA512 26e9a245e9f050344ae8c3320e1e24dad6bc2b73e99cc041a50c2d124b2c898c93d048727451ab8a2ba1c8aa4d8d462a8c0c9fea7de39f3479a0c170a5e9ad60
|
||||
EBUILD johntheripper-1.8.0-r2.ebuild 2869 BLAKE2B 970038b161660bc47a1a92279c911010fb77fa5008c4bcc8cc4f90ce7cb374629282943cf1742a542d14b5e62442bff431ad956826bb7e1b5498886aa42f03d9 SHA512 199605c25f5d02064f5df1a323099c065f916c66fcd9910c60c6c1c74c2419abe59f652496158e320e09b099b31c270f413de590ce480e9bef5ce8fa900c0181
|
||||
EBUILD johntheripper-1.9.0.ebuild 3162 BLAKE2B 77a3c530d1b658b6e646f4116485ddbc11606d3e6031f1958c7280c93e7af7261617c133c93f76adb46060c9e9e98d33e670fb31c3456fbf9d7e7777a436290b SHA512 c6dc7e4d90273749b17fa2a56910a4d77b7589ce7b7887f278eea20d20f60423e99923b2fdae08c821db22e3b73dc8a82ff30408ab997d1569dc2c99d4c81774
|
||||
MISC metadata.xml 409 BLAKE2B f8d40635490b818425ab465d2d34e41c05881a51860e7714161c50af9b061bea3801aefcbad8edb403f3af753b919621b709d23b0a86a0b303b903653f273fd5 SHA512 ed0271486767ec9b53851b534179307b2f160aea50f3a071b9d68aaa21265f5e0e5d031be3b00580e8f706b944ab7ec7aaa7c325485acf73655d899a8787ba13
|
||||
|
@ -0,0 +1,137 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit flag-o-matic toolchain-funcs
|
||||
|
||||
MY_PN="john"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="fast password cracker"
|
||||
HOMEPAGE="https://www.openwall.com/john/"
|
||||
|
||||
SRC_URI="https://www.openwall.com/john/k/${MY_P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
CPU_FLAGS="cpu_flags_x86_mmx cpu_flags_x86_sse2 cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_avx512f cpu_flags_x86_xop"
|
||||
IUSE="custom-cflags openmp ${CPU_FLAGS}"
|
||||
|
||||
DEPEND="virtual/libcrypt:="
|
||||
RDEPEND="${DEPEND}
|
||||
!app-crypt/johntheripper-jumbo"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
get_target() {
|
||||
if use alpha; then
|
||||
echo "linux-alpha"
|
||||
elif use amd64; then
|
||||
if use cpu_flags_x86_avx512f; then
|
||||
echo "linux-x86-64-avx512"
|
||||
elif use cpu_flags_x86_avx2; then
|
||||
echo "linux-x86-64-avx2"
|
||||
elif use cpu_flags_x86_xop; then
|
||||
echo "linux-x86-64-xop"
|
||||
elif use cpu_flags_x86_avx; then
|
||||
echo "linux-x86-64-avx"
|
||||
else
|
||||
echo "linux-x86-64"
|
||||
fi
|
||||
elif use ppc; then
|
||||
echo "linux-ppc32"
|
||||
elif use ppc64; then
|
||||
echo "linux-ppc64"
|
||||
elif use sparc; then
|
||||
echo "linux-sparc"
|
||||
elif use x86; then
|
||||
if use cpu_flags_x86_avx512f; then
|
||||
echo "linux-x86-64-avx512"
|
||||
elif use cpu_flags_x86_avx2; then
|
||||
echo "linux-x86-64-avx2"
|
||||
elif use cpu_flags_x86_xop; then
|
||||
echo "linux-x86-xop"
|
||||
elif use cpu_flags_x86_avx; then
|
||||
echo "linux-x86-avx"
|
||||
elif use cpu_flags_x86_sse2; then
|
||||
echo "linux-x86-sse2"
|
||||
elif use cpu_flags_x86_mmx; then
|
||||
echo "linux-x86-mmx"
|
||||
else
|
||||
echo "linux-x86-any"
|
||||
fi
|
||||
elif use ppc-macos; then
|
||||
echo "macosx-ppc32-altivec"
|
||||
elif use x64-macos; then
|
||||
echo "macosx-x86-64"
|
||||
else
|
||||
echo "generic"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local OMP
|
||||
|
||||
use custom-cflags || strip-flags
|
||||
cat <<- EOF >> config.gentoo || die
|
||||
#define JOHN_SYSTEMWIDE 1
|
||||
#define JOHN_SYSTEMWIDE_HOME "${EPREFIX}/etc/john"
|
||||
#define JOHN_SYSTEMWIDE_EXEC "${EPREFIX}/usr/libexec/john"
|
||||
EOF
|
||||
|
||||
append-flags -fPIC -fPIE
|
||||
#gcc-specs-pie && append-ldflags -nopie
|
||||
use openmp && OMP="-fopenmp"
|
||||
|
||||
CPP="$(tc-getCXX)" CC="$(tc-getCC)" AS="$(tc-getCC)" LD="$(tc-getCC)"
|
||||
|
||||
emake -C src/ \
|
||||
CPP="${CPP}" CC="${CC}" AS="${AS}" LD="${LD}" \
|
||||
CFLAGS="-c -Wall -include ../config.gentoo ${CFLAGS} ${OMP}" \
|
||||
LDFLAGS="${LDFLAGS} ${OMP}" \
|
||||
OPT_NORMAL="" \
|
||||
OMPFLAGS="${OMP}" \
|
||||
$(get_target)
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -C src/ check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# executables
|
||||
dosbin run/john
|
||||
newsbin run/mailer john-mailer
|
||||
|
||||
dosym john /usr/sbin/unafs
|
||||
dosym john /usr/sbin/unique
|
||||
dosym john /usr/sbin/unshadow
|
||||
|
||||
# config files
|
||||
insinto /etc/john
|
||||
doins run/*.chr run/password.lst
|
||||
doins run/*.conf
|
||||
|
||||
# documentation
|
||||
dodoc doc/*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [ -n "${REPLACING_VERSIONS}" ] && [ "${REPLACING_VERSIONS}" != "1.8.0" ]; then
|
||||
ewarn "This package no longer includes jumbo. If you want jumbo please install app-crypt/johntheripper-jumbo instead."
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -1,6 +1,8 @@
|
||||
DIST ghex-44.1.tar.xz 895780 BLAKE2B 553dc5002a3524ad4642d4f7693d7ee69a0c94bbc2976c1fae640d7d71eb84e145bd764c7acc946735b0b45235b6229a269c12ccb8566e591a83311c6d6177d5 SHA512 4239af382ed3bce0a932db875b1ccc8e1666cfc2827cd13b65afc8310de9107e3f106553dbde4c2663aaf6f0bbc906c51d9f8b61d9af661baf6cbb6b6e2be675
|
||||
DIST ghex-44.2.tar.xz 897944 BLAKE2B 0db001b90390f7747792ac89a5daaf9d38165b72dce77c3a2fd41914a4386001b9f15aaf4352a3b41a204a9104a5234a6ac50a3a7269e10a151c000d57228480 SHA512 a06876e06488bb25b17fbdf17ea73e57f563fe49a414c173d680a6bf4db9b66b40fce90ad67cfb73c62f25d88f436a58b7e0fd588c7a664faf78c5058524cabf
|
||||
DIST ghex-45.beta.tar.xz 899044 BLAKE2B 4b37a882a6626c16349ac0671e1b049d9fdb166262cce0605bf84ba5d099354647fa61f380a18f217bf20f80570de64d946dec97a05bc47441ed641c847cc6b8 SHA512 5a35fe4449ffda75e587fb55d8ef641e054cb079b880c7750c00ceb61c207fbfee649b16a53c639c7108ced35efa0cfc2e092da3197dd6b5af116ec737e4c773
|
||||
EBUILD ghex-44.1.ebuild 1288 BLAKE2B 8ac8757709fd252e869b4e04f37ca0a3d6246925013a619e9f7cd5f46e03a1aad265331a73ebb6f1154c6a93b95e394b32a9ae2b089e1ff459ad88d50142010e SHA512 5cd15208030c234af09403ca9172a041d29d806811ebd9922717987d045e23b3fab54eca11cb9dcb6b74ed7a7083bf5c4a7287e940fa437993c8ff162984c5d6
|
||||
EBUILD ghex-44.2.ebuild 1292 BLAKE2B 590d545410f8eb1b863116b393a029c94233e2a5c09e46e16935ced912807b4572d0cd93284b35fb9bc8d4906268a6241e3d3e8937006f9f4270119f52479cfc SHA512 acb3bbf7b9e7cf26ce4985cb8fc4cde8bf7cc123da0faaf1647bf3654b3a062ab9da41e9079441900856aafcd24e42247d1ec350d399a554e4a5fad75d6d1fb8
|
||||
EBUILD ghex-9999.ebuild 1292 BLAKE2B d0d628849dd93185e7802174726c92211f999142fb2ee8359a9d22edaf522326de806e95d00b830a4b369afc3f80b1c647a3fa39f127590560e75ab812e13538 SHA512 ae01eb04a1458d233add7e73d9f9cd021b49ed5d96dcfddddf860610d0003a7cb8b9ca2a56828bac3d65f0fc847aee6add97b50f4862564eedcb64db553ac46c
|
||||
EBUILD ghex-45_beta.ebuild 1292 BLAKE2B 590d545410f8eb1b863116b393a029c94233e2a5c09e46e16935ced912807b4572d0cd93284b35fb9bc8d4906268a6241e3d3e8937006f9f4270119f52479cfc SHA512 acb3bbf7b9e7cf26ce4985cb8fc4cde8bf7cc123da0faaf1647bf3654b3a062ab9da41e9079441900856aafcd24e42247d1ec350d399a554e4a5fad75d6d1fb8
|
||||
EBUILD ghex-9999.ebuild 1292 BLAKE2B 590d545410f8eb1b863116b393a029c94233e2a5c09e46e16935ced912807b4572d0cd93284b35fb9bc8d4906268a6241e3d3e8937006f9f4270119f52479cfc SHA512 acb3bbf7b9e7cf26ce4985cb8fc4cde8bf7cc123da0faaf1647bf3654b3a062ab9da41e9079441900856aafcd24e42247d1ec350d399a554e4a5fad75d6d1fb8
|
||||
MISC metadata.xml 345 BLAKE2B 4c2385371bb42d47643f2a9d48ee5ed675267f812467fa03f69151bcdbeb996602be0a3995f976b61e0c018c8d69e3dcd37392f5927bbe24942f11c23794bac4 SHA512 c3f3cc3f436137299082ccdcaa57221d1b3f490b34febfcd6ca586769b0a8c76ce11cc5b8be823c8c88b942effc0b68d9c078ba3a28594c41419830dff04fcad
|
||||
|
@ -0,0 +1,66 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit gnome.org gnome2-utils meson xdg
|
||||
|
||||
DESCRIPTION="GNOME hexadecimal editor"
|
||||
HOMEPAGE="https://wiki.gnome.org/Apps/Ghex"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://gitlab.gnome.org/GNOME/ghex.git"
|
||||
SRC_URI=""
|
||||
else
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2+ FDL-1.1+"
|
||||
IUSE="gtk-doc test"
|
||||
RESTRICT="!test? ( test )"
|
||||
SLOT="4"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/glib-2.68.0:2
|
||||
>=gui-libs/gtk-4.4.0:4
|
||||
gui-libs/libadwaita:1
|
||||
dev-libs/gobject-introspection
|
||||
!app-editors/ghex:2
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
gtk-doc? ( dev-util/gi-docgen )
|
||||
test? (
|
||||
dev-util/desktop-file-utils
|
||||
dev-libs/appstream-glib
|
||||
)
|
||||
dev-util/gtk-update-icon-cache
|
||||
dev-util/itstool
|
||||
>=sys-devel/gettext-0.19.8
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
-Ddocdir="${EPREFIX}"/usr/share/gtk-doc/
|
||||
-Ddevelopment=false
|
||||
-Dmmap-buffer-backend=true
|
||||
-Ddirect-buffer-backend=true
|
||||
-Dintrospection=enabled
|
||||
$(meson_use gtk-doc gtk_doc)
|
||||
-Dstatic-html-help=false
|
||||
-Dvapi=false
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
gnome2_schemas_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_pkg_postrm
|
||||
gnome2_schemas_update
|
||||
}
|
@ -0,0 +1,360 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# Please bump with app-editors/vim-core and app-editors/vim
|
||||
|
||||
VIM_VERSION="9.0"
|
||||
VIM_PATCHES_VERSION="9.0.1000"
|
||||
|
||||
LUA_COMPAT=( lua5-{1..4} luajit )
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
USE_RUBY="ruby27 ruby30 ruby31"
|
||||
|
||||
inherit bash-completion-r1 flag-o-matic lua-single prefix python-single-r1 ruby-single toolchain-funcs vim-doc xdg-utils
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/vim/vim.git"
|
||||
EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV}
|
||||
else
|
||||
SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz
|
||||
https://gitweb.gentoo.org/proj/vim-patches.git/snapshot/vim-patches-vim-${VIM_PATCHES_VERSION}-patches.tar.bz2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
fi
|
||||
S="${WORKDIR}"/vim-${PV}
|
||||
|
||||
DESCRIPTION="GUI version of the Vim text editor"
|
||||
HOMEPAGE="https://www.vim.org https://github.com/vim/vim"
|
||||
|
||||
LICENSE="vim"
|
||||
SLOT="0"
|
||||
IUSE="acl aqua crypt cscope debug lua minimal motif netbeans nls perl python racket ruby selinux session sound tcl"
|
||||
REQUIRED_USE="
|
||||
lua? ( ${LUA_REQUIRED_USE} )
|
||||
python? ( ${PYTHON_REQUIRED_USE} )
|
||||
aqua? ( !motif )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
~app-editors/vim-core-${PV}
|
||||
>=app-eselect/eselect-vi-1.1
|
||||
>=sys-libs/ncurses-5.2-r2:0=
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
x11-libs/libXext
|
||||
x11-libs/libXt
|
||||
acl? ( kernel_linux? ( sys-apps/acl ) )
|
||||
!aqua? (
|
||||
motif? ( >=x11-libs/motif-2.3:0 )
|
||||
!motif? (
|
||||
x11-libs/gtk+:3
|
||||
x11-libs/libXft
|
||||
)
|
||||
)
|
||||
crypt? ( dev-libs/libsodium:= )
|
||||
cscope? ( dev-util/cscope )
|
||||
lua? (
|
||||
${LUA_DEPS}
|
||||
$(lua_gen_impl_dep 'deprecated' lua5-1)
|
||||
)
|
||||
nls? ( virtual/libintl )
|
||||
perl? ( dev-lang/perl:= )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
racket? ( dev-scheme/racket )
|
||||
ruby? ( ${RUBY_DEPS} )
|
||||
selinux? ( sys-libs/libselinux )
|
||||
session? ( x11-libs/libSM )
|
||||
sound? ( media-libs/libcanberra )
|
||||
tcl? ( dev-lang/tcl:0= )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
x11-base/xorg-proto"
|
||||
# configure runs the Lua interpreter
|
||||
BDEPEND="
|
||||
sys-devel/autoconf
|
||||
virtual/pkgconfig
|
||||
lua? ( ${LUA_DEPS} )
|
||||
nls? ( sys-devel/gettext )
|
||||
"
|
||||
PDEPEND="!minimal? ( app-vim/gentoo-syntax )"
|
||||
|
||||
if [[ ${PV} != 9999* ]]; then
|
||||
# Gentoo patches to fix runtime issues, cross-compile errors, etc
|
||||
PATCHES=(
|
||||
"${WORKDIR}/vim-patches-vim-${VIM_PATCHES_VERSION}-patches"
|
||||
)
|
||||
fi
|
||||
|
||||
# various failures (bugs #630042 and #682320)
|
||||
RESTRICT="test"
|
||||
|
||||
# platform-specific checks (bug #898450):
|
||||
# - acl() -- Solaris
|
||||
# - statacl() -- AIX
|
||||
QA_CONFIG_IMPL_DECL_SKIP=(
|
||||
'acl'
|
||||
'statacl'
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
# people with broken alphabets run into trouble. bug 82186.
|
||||
unset LANG LC_ALL
|
||||
export LC_COLLATE="C"
|
||||
|
||||
use lua && lua-single_pkg_setup
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Fixup a script to use awk instead of nawk
|
||||
sed -i -e \
|
||||
'1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \
|
||||
"${S}"/runtime/tools/mve.awk || die "mve.awk sed failed"
|
||||
|
||||
# Read vimrc and gvimrc from /etc/vim
|
||||
echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' \
|
||||
>> "${S}"/src/feature.h || die "echo failed"
|
||||
echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' \
|
||||
>> "${S}"/src/feature.h || die "echo failed"
|
||||
|
||||
# Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
|
||||
# Hopefully this pattern won't break for a while at least.
|
||||
# This fixes bug 29398 (27 Sep 2003 agriffis)
|
||||
sed -i -e \
|
||||
's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
|
||||
"${S}"/runtime/doc/syntax.txt \
|
||||
"${S}"/runtime/doc/tagsrch.txt \
|
||||
"${S}"/runtime/doc/usr_29.txt \
|
||||
"${S}"/runtime/menu.vim \
|
||||
"${S}"/src/configure.ac || die 'sed failed'
|
||||
|
||||
# gcc on sparc32 has this, uhm, interesting problem with detecting EOF
|
||||
# correctly. To avoid some really entertaining error messages about stuff
|
||||
# which isn't even in the source file being invalid, we'll do some trickery
|
||||
# to make the error never occur. bug 66162 (02 October 2004 ciaranm)
|
||||
find "${S}" -name '*.c' | while read c; do
|
||||
echo >> "$c" || die "echo failed"
|
||||
done
|
||||
|
||||
# Try to avoid sandbox problems. Bug #114475.
|
||||
if [[ -d "${S}"/src/po ]]; then
|
||||
sed -i -e \
|
||||
'/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
|
||||
"${S}"/src/po/Makefile || die
|
||||
fi
|
||||
|
||||
cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed"
|
||||
|
||||
# Fix bug 18245: Prevent "make" from the following chain:
|
||||
# (1) Notice configure.ac is newer than auto/configure
|
||||
# (2) Rebuild auto/configure
|
||||
# (3) Notice auto/configure is newer than auto/config.mk
|
||||
# (4) Run ./configure (with wrong args) to remake auto/config.mk
|
||||
sed -i -e \
|
||||
's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
|
||||
rm -v src/auto/configure || die "rm failed"
|
||||
|
||||
# --with-features=huge forces on cscope even if we --disable it. We need
|
||||
# to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
|
||||
if ! use cscope; then
|
||||
sed -i -e \
|
||||
'/# define FEAT_CSCOPE/d' src/feature.h || die "couldn't disable cscope"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
|
||||
# Fix bug 37354: Disallow -funroll-all-loops on amd64
|
||||
# Bug 57859 suggests that we want to do this for all archs
|
||||
filter-flags -funroll-all-loops
|
||||
|
||||
# Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
|
||||
# everyone since previous flag filtering bugs have turned out to affect
|
||||
# multiple archs...
|
||||
replace-flags -O3 -O2
|
||||
|
||||
emake -j1 -C src autoconf
|
||||
|
||||
# This should fix a sandbox violation (see bug 24447). The hvc
|
||||
# things are for ppc64, see bug 86433.
|
||||
local file
|
||||
for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do
|
||||
if [[ -e ${file} ]]; then
|
||||
addwrite $file
|
||||
fi
|
||||
done
|
||||
|
||||
use debug && append-flags "-DDEBUG"
|
||||
|
||||
local myconf=(
|
||||
--with-features=huge
|
||||
--disable-gpm
|
||||
--with-gnome=no
|
||||
$(use_enable sound canberra)
|
||||
$(use_enable acl)
|
||||
$(use_enable crypt libsodium)
|
||||
$(use_enable cscope)
|
||||
$(use_enable netbeans)
|
||||
$(use_enable nls)
|
||||
$(use_enable perl perlinterp)
|
||||
$(use_enable python python3interp)
|
||||
$(use_with python python3-command "${PYTHON}")
|
||||
$(use_enable racket mzschemeinterp)
|
||||
$(use_enable ruby rubyinterp)
|
||||
$(use_enable selinux)
|
||||
$(use_enable session xsmp)
|
||||
$(use_enable tcl tclinterp)
|
||||
)
|
||||
|
||||
if use lua; then
|
||||
# -DLUA_COMPAT_OPENLIB=1 is required to enable the
|
||||
# deprecated (in 5.1) luaL_openlib API (#874690)
|
||||
use lua_single_target_lua5-1 && append-cppflags -DLUA_COMPAT_OPENLIB=1
|
||||
|
||||
myconf+=(
|
||||
--enable-luainterp
|
||||
$(use_with lua_single_target_luajit luajit)
|
||||
--with-lua-prefix="${EPREFIX}/usr"
|
||||
)
|
||||
fi
|
||||
|
||||
# Default is gtk unless aqua or motif are enabled
|
||||
echo ; echo
|
||||
if use aqua; then
|
||||
einfo "Building gvim with the Carbon GUI"
|
||||
myconf+=(
|
||||
--enable-darwin
|
||||
--enable-gui=carbon
|
||||
)
|
||||
elif use motif; then
|
||||
einfo "Building gvim with the MOTIF GUI"
|
||||
myconf+=( --enable-gui=motif )
|
||||
else
|
||||
myconf+=( --enable-gtk3-check )
|
||||
einfo "Building gvim with the gtk+-3 GUI"
|
||||
myconf+=( --enable-gui=gtk3 )
|
||||
fi
|
||||
echo ; echo
|
||||
|
||||
# let package manager strip binaries
|
||||
export ac_cv_prog_STRIP="$(type -P true ) faking strip"
|
||||
|
||||
# keep prefix env contained within the EPREFIX
|
||||
use prefix && myconf+=( --without-local-dir )
|
||||
|
||||
if tc-is-cross-compiler ; then
|
||||
export vim_cv_getcwd_broken=no \
|
||||
vim_cv_memmove_handles_overlap=yes \
|
||||
vim_cv_stat_ignores_slash=yes \
|
||||
vim_cv_terminfo=yes \
|
||||
vim_cv_toupper_broken=no
|
||||
fi
|
||||
|
||||
econf \
|
||||
--with-modified-by="Gentoo-${PVR} (RIP Bram)" \
|
||||
--with-vim-name=gvim \
|
||||
--with-x \
|
||||
"${myconf[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# The following allows emake to be used
|
||||
emake -j1 -C src auto/osdef.h objects
|
||||
|
||||
emake
|
||||
}
|
||||
|
||||
src_test() {
|
||||
einfo
|
||||
einfo "Starting vim tests. Several error messages will be shown"
|
||||
einfo "while the tests run. This is normal behaviour and does not"
|
||||
einfo "indicate a fault."
|
||||
einfo
|
||||
ewarn "If the tests fail, your terminal may be left in a strange"
|
||||
ewarn "state. Usually, running 'reset' will fix this."
|
||||
einfo
|
||||
|
||||
# Don't let vim talk to X
|
||||
unset DISPLAY
|
||||
|
||||
# Make gvim not try to connect to X. See :help gui-x11-start in vim for how
|
||||
# this evil trickery works.
|
||||
ln -s "${S}"/src/gvim "${S}"/src/testvim || die
|
||||
|
||||
# Make sure our VIMPROG is used.
|
||||
sed -i -e 's:\.\./vim:../testvim:' src/testdir/test49.vim || die
|
||||
|
||||
# Don't do additional GUI tests.
|
||||
emake -j1 VIMPROG=../testvim -C src/testdir nongui
|
||||
}
|
||||
|
||||
# Call eselect vi update with --if-unset
|
||||
# to respect user's choice (bug 187449)
|
||||
eselect_vi_update() {
|
||||
ebegin "Calling eselect vi update"
|
||||
eselect vi update --if-unset
|
||||
eend $?
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
|
||||
|
||||
dobin src/gvim
|
||||
dosym gvim /usr/bin/gvimdiff
|
||||
dosym gvim /usr/bin/evim
|
||||
dosym gvim /usr/bin/eview
|
||||
dosym gvim /usr/bin/gview
|
||||
dosym gvim /usr/bin/rgvim
|
||||
dosym gvim /usr/bin/rgview
|
||||
|
||||
emake -C src DESTDIR="${D}" DATADIR="${EPREFIX}"/usr/share install-icons
|
||||
|
||||
dodir /usr/share/man/man1
|
||||
echo ".so vim.1" > "${ED}"/usr/share/man/man1/gvim.1 || die "echo failed"
|
||||
echo ".so vim.1" > "${ED}"/usr/share/man/man1/gview.1 || die "echo failed"
|
||||
echo ".so vimdiff.1" > "${ED}"/usr/share/man/man1/gvimdiff.1 || \
|
||||
die "echo failed"
|
||||
|
||||
insinto /etc/vim
|
||||
newins "${FILESDIR}"/gvimrc-r1 gvimrc
|
||||
eprefixify "${ED}"/etc/vim/gvimrc
|
||||
|
||||
# bash completion script, bug #79018.
|
||||
newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
|
||||
|
||||
# don't install vim desktop file
|
||||
rm -v "${ED}"/usr/share/applications/vim.desktop || die "failed to remove vim.desktop"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# update documentation tags (from vim-doc.eclass)
|
||||
update_vim_helptags
|
||||
|
||||
# update fdo mime stuff, bug #78394
|
||||
xdg_desktop_database_update
|
||||
|
||||
# update icon cache
|
||||
xdg_icon_cache_update
|
||||
|
||||
# call eselect vi update
|
||||
eselect_vi_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
# update documentation tags (from vim-doc.eclass)
|
||||
update_vim_helptags
|
||||
|
||||
# update fdo mime stuff, bug #78394
|
||||
xdg_desktop_database_update
|
||||
|
||||
# update icon cache
|
||||
xdg_icon_cache_update
|
||||
|
||||
# call eselect vi update
|
||||
eselect_vi_update
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
DIST pluma-plugins-1.26.0.tar.xz 505652 BLAKE2B 09d34a3205796aab0b94b6e4d1c44b9902091b46511735b74a9cc1d1bee8a28352bf673ea7788eb4522e1dd0614a0399471aa8a076fd50f70bf1cf66e80326ad SHA512 ee59d52e0f879a5adf745c4be4a274f5c5b5403d7a9485236879e6e6db1c8f743de74be379fe84d2da73efe3eeb63bfa089a28f73762a6f0ceee0dbbbc464fa4
|
||||
EBUILD pluma-plugins-1.26.0.ebuild 1609 BLAKE2B bc7c8c3b7d248b6782e7ce51be302375425c8b58ff876275d7216ff0a320b3c9fb7a38bca2a6bcd8e135e354d9d866f22e33c89ee3a05ad5cf34e6c8669fa1a5 SHA512 d4412f72721c7e5d09e2f6ba2cf17122618759647fa5fc19044e3271b42948fbf2607e4252cc1176f565c1396bf7825ee52ac5452fbf4ff601f8511364ebe988
|
||||
MISC metadata.xml 564 BLAKE2B a36e6a042e600b7370e8ab7ea125655fa4d0e2ebe796e1dfd06378b42625959d33bc7c70dd6a54d3ee3686fb190d52654606805f28953ae57b771961acc8e9cf SHA512 2acb64c7a5018b6cf5ef5b5e93c43b6fe1aa07dcee1d26cd3e285e8eb61c49c361272187cfa8641c904f044c1cfed9e6c4424a4ed8540bf063cfb6336e9cb0bc
|
||||
MISC metadata.xml 483 BLAKE2B 390bb7bc8ccac4b663d86a84444b96d369a5d3d367e63157dec3f658056b5287874084b31a15275488225e78215459025ebd676e25879d5a763f577c5433bc12 SHA512 fe7d517524868b61ff87ee5a076c3c55822cbffaf0575983aed49eed6657c90e3f3c7fd09ae81b5f2290b686e843ab37ee959ba50e94ee363cbad2788ee4fb5f
|
||||
|
@ -0,0 +1,231 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# Please bump with app-editors/vim and app-editors/gvim
|
||||
|
||||
VIM_VERSION="9.0"
|
||||
VIM_PATCHES_VERSION="9.0.1000"
|
||||
inherit bash-completion-r1 desktop flag-o-matic prefix toolchain-funcs vim-doc xdg-utils
|
||||
|
||||
if [[ ${PV} == 9999* ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/vim/vim.git"
|
||||
EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV}
|
||||
else
|
||||
SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz
|
||||
https://gitweb.gentoo.org/proj/vim-patches.git/snapshot/vim-patches-vim-${VIM_PATCHES_VERSION}-patches.tar.bz2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
fi
|
||||
S="${WORKDIR}/vim-${PV}"
|
||||
|
||||
DESCRIPTION="vim and gvim shared files"
|
||||
HOMEPAGE="https://www.vim.org https://github.com/vim/vim"
|
||||
|
||||
LICENSE="vim"
|
||||
SLOT="0"
|
||||
IUSE="nls acl minimal"
|
||||
|
||||
# ncurses is only needed by ./configure, so no subslot operator required
|
||||
DEPEND=">=sys-libs/ncurses-5.2-r2:0"
|
||||
BDEPEND="sys-devel/autoconf"
|
||||
|
||||
if [[ ${PV} != 9999* ]]; then
|
||||
# Gentoo patches to fix runtime issues, cross-compile errors, etc
|
||||
PATCHES=(
|
||||
"${WORKDIR}/vim-patches-vim-${VIM_PATCHES_VERSION}-patches"
|
||||
)
|
||||
fi
|
||||
|
||||
# platform-specific checks (bug #898406):
|
||||
# - acl() -- Solaris
|
||||
# - statacl() -- AIX
|
||||
QA_CONFIG_IMPL_DECL_SKIP=(
|
||||
'acl'
|
||||
'statacl'
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
# people with broken alphabets run into trouble. bug #82186.
|
||||
unset LANG LC_ALL
|
||||
export LC_COLLATE="C"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Fixup a script to use awk instead of nawk
|
||||
sed -i \
|
||||
-e '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \
|
||||
"${S}"/runtime/tools/mve.awk || die "sed failed"
|
||||
|
||||
# See bug #77841. We remove this file after the tarball extraction.
|
||||
rm -v "${S}"/runtime/tools/vimspell.sh || die "rm failed"
|
||||
|
||||
# Read vimrc and gvimrc from /etc/vim
|
||||
echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h || die
|
||||
echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h || die
|
||||
|
||||
# Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
|
||||
# Hopefully this pattern won't break for a while at least.
|
||||
# This fixes bug #29398 (27 Sep 2003 agriffis)
|
||||
sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
|
||||
"${S}"/runtime/doc/syntax.txt \
|
||||
"${S}"/runtime/doc/tagsrch.txt \
|
||||
"${S}"/runtime/doc/usr_29.txt \
|
||||
"${S}"/runtime/menu.vim \
|
||||
"${S}"/src/configure.ac || die 'sed failed'
|
||||
|
||||
# gcc on sparc32 has this, uhm, interesting problem with detecting EOF
|
||||
# correctly. To avoid some really entertaining error messages about stuff
|
||||
# which isn't even in the source file being invalid, we'll do some trickery
|
||||
# to make the error never occur. bug 66162 (02 October 2004 ciaranm)
|
||||
find "${S}" -name '*.c' | while read c; do
|
||||
echo >> "$c" || die "echo failed"
|
||||
done
|
||||
|
||||
# Try to avoid sandbox problems. Bug #114475.
|
||||
if [[ -d "${S}"/src/po ]]; then
|
||||
sed -i -e \
|
||||
'/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
|
||||
"${S}"/src/po/Makefile || die "sed failed"
|
||||
fi
|
||||
|
||||
cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed"
|
||||
|
||||
# Fix bug #76331: -O3 causes problems, use -O2 instead. We'll do this for
|
||||
# everyone since previous flag filtering bugs have turned out to affect
|
||||
# multiple archs...
|
||||
replace-flags -O3 -O2
|
||||
|
||||
# Fix bug #18245: Prevent "make" from the following chain:
|
||||
# (1) Notice configure.ac is newer than auto/configure
|
||||
# (2) Rebuild auto/configure
|
||||
# (3) Notice auto/configure is newer than auto/config.mk
|
||||
# (4) Run ./configure (with wrong args) to remake auto/config.mk
|
||||
sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
|
||||
|
||||
# Remove src/auto/configure file.
|
||||
rm -v src/auto/configure || die "rm configure failed"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Fix bug #37354: Disallow -funroll-all-loops on amd64
|
||||
# Bug 57859 suggests that we want to do this for all archs
|
||||
filter-flags -funroll-all-loops
|
||||
|
||||
emake -j1 -C src autoconf
|
||||
|
||||
# This should fix a sandbox violation (see bug 24447). The hvc
|
||||
# things are for ppc64, see bug 86433.
|
||||
for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do
|
||||
if [[ -e "${file}" ]]; then
|
||||
addwrite ${file}
|
||||
fi
|
||||
done
|
||||
|
||||
# Let Portage do the stripping. Some people like that.
|
||||
export ac_cv_prog_STRIP="$(type -P true ) faking strip"
|
||||
|
||||
local myconf=(
|
||||
--with-modified-by="Gentoo-${PVR} (RIP Bram)"
|
||||
--enable-gui=no
|
||||
--without-x
|
||||
--disable-darwin
|
||||
--disable-perlinterp
|
||||
--disable-pythoninterp
|
||||
--disable-rubyinterp
|
||||
--disable-gpm
|
||||
--disable-selinux
|
||||
$(use_enable nls)
|
||||
$(use_enable acl)
|
||||
)
|
||||
|
||||
# Keep Gentoo Prefix env contained within the EPREFIX
|
||||
use prefix && myconf+=( --without-local-dir )
|
||||
|
||||
if tc-is-cross-compiler ; then
|
||||
export vim_cv_getcwd_broken=no \
|
||||
vim_cv_memmove_handles_overlap=yes \
|
||||
vim_cv_stat_ignores_slash=yes \
|
||||
vim_cv_terminfo=yes \
|
||||
vim_cv_toupper_broken=no
|
||||
fi
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake -j1 -C src auto/osdef.h objects
|
||||
emake tools
|
||||
}
|
||||
|
||||
src_test() { :; }
|
||||
|
||||
src_install() {
|
||||
local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
|
||||
|
||||
dodir /usr/{bin,share/{man/man1,vim}}
|
||||
emake -C src \
|
||||
installruntime \
|
||||
installmanlinks \
|
||||
installmacros \
|
||||
installtutor \
|
||||
installtutorbin \
|
||||
installtools \
|
||||
install-languages \
|
||||
DESTDIR="${D}" \
|
||||
BINDIR="${EPREFIX}"/usr/bin \
|
||||
MANDIR="${EPREFIX}"/usr/share/man \
|
||||
DATADIR="${EPREFIX}"/usr/share
|
||||
|
||||
keepdir ${vimfiles}/keymap
|
||||
|
||||
# default vimrc is installed by vim-core since it applies to
|
||||
# both vim and gvim
|
||||
insinto /etc/vim/
|
||||
newins "${FILESDIR}"/vimrc-r6 vimrc
|
||||
eprefixify "${ED}"/etc/vim/vimrc
|
||||
|
||||
if use minimal; then
|
||||
# To save space, install only a subset of the files.
|
||||
# Helps minimalize the livecd, bug 65144.
|
||||
rm -rv "${ED}${vimfiles}"/{compiler,doc,ftplugin,indent} || die
|
||||
rm -rv "${ED}${vimfiles}"/{macros,print,tools,tutor} || die
|
||||
rm -v "${ED}"/usr/bin/vimtutor || die
|
||||
|
||||
for f in "${ED}${vimfiles}"/colors/*.vim; do
|
||||
if [[ ${f} != */@(default).vim ]] ; then
|
||||
printf '%s\0' "${f}"
|
||||
fi
|
||||
done | xargs -0 rm -f || die
|
||||
|
||||
for f in "${ED}${vimfiles}"/syntax/*.vim; do
|
||||
if [[ ${f} != */@(conf|crontab|fstab|inittab|resolv|sshdconfig|syntax|nosyntax|synload).vim ]] ; then
|
||||
printf '%s\0' "${f}"
|
||||
fi
|
||||
done | xargs -0 rm -f || die
|
||||
fi
|
||||
|
||||
newbashcomp "${FILESDIR}"/xxd-completion xxd
|
||||
|
||||
# install gvim icon since both vim/gvim desktop files reference it
|
||||
doicon -s scalable "${FILESDIR}"/gvim.svg
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# update documentation tags (from vim-doc.eclass)
|
||||
update_vim_helptags
|
||||
|
||||
# update icon cache
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
# Update documentation tags (from vim-doc.eclass)
|
||||
update_vim_helptags
|
||||
|
||||
# update icon cache
|
||||
xdg_icon_cache_update
|
||||
}
|
@ -0,0 +1,370 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# Please bump with app-editors/vim-core and app-editors/gvim
|
||||
|
||||
VIM_VERSION="9.0"
|
||||
VIM_PATCHES_VERSION="9.0.1000"
|
||||
|
||||
LUA_COMPAT=( lua5-{1..4} luajit )
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
USE_RUBY="ruby27 ruby30 ruby31"
|
||||
|
||||
inherit vim-doc flag-o-matic bash-completion-r1 lua-single python-single-r1 ruby-single toolchain-funcs desktop xdg-utils
|
||||
|
||||
if [[ ${PV} == 9999* ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/vim/vim.git"
|
||||
else
|
||||
SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://gitweb.gentoo.org/proj/vim-patches.git/snapshot/vim-patches-vim-${VIM_PATCHES_VERSION}-patches.tar.bz2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Vim, an improved vi-style text editor"
|
||||
HOMEPAGE="https://www.vim.org https://github.com/vim/vim"
|
||||
|
||||
LICENSE="vim"
|
||||
SLOT="0"
|
||||
IUSE="X acl crypt cscope debug gpm lua minimal nls perl python racket ruby selinux sound tcl terminal vim-pager"
|
||||
REQUIRED_USE="
|
||||
lua? ( ${LUA_REQUIRED_USE} )
|
||||
python? ( ${PYTHON_REQUIRED_USE} )
|
||||
vim-pager? ( !minimal )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
>=app-eselect/eselect-vi-1.1
|
||||
>=sys-libs/ncurses-5.2-r2:0=
|
||||
nls? ( virtual/libintl )
|
||||
acl? ( kernel_linux? ( sys-apps/acl ) )
|
||||
crypt? ( dev-libs/libsodium:= )
|
||||
cscope? ( dev-util/cscope )
|
||||
gpm? ( >=sys-libs/gpm-1.19.3 )
|
||||
lua? ( ${LUA_DEPS}
|
||||
$(lua_gen_impl_dep 'deprecated' lua5-1)
|
||||
)
|
||||
~app-editors/vim-core-${PV}
|
||||
vim-pager? ( app-editors/vim-core[-minimal] )
|
||||
perl? ( dev-lang/perl:= )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
racket? ( dev-scheme/racket )
|
||||
ruby? ( ${RUBY_DEPS} )
|
||||
selinux? ( sys-libs/libselinux )
|
||||
sound? ( media-libs/libcanberra )
|
||||
tcl? ( dev-lang/tcl:0= )
|
||||
X? ( x11-libs/libXt )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
# configure runs the Lua interpreter
|
||||
BDEPEND="
|
||||
sys-devel/autoconf
|
||||
lua? ( ${LUA_DEPS} )
|
||||
nls? ( sys-devel/gettext )
|
||||
"
|
||||
PDEPEND="!minimal? ( app-vim/gentoo-syntax )"
|
||||
|
||||
if [[ ${PV} != 9999* ]]; then
|
||||
# Gentoo patches to fix runtime issues, cross-compile errors, etc
|
||||
PATCHES=(
|
||||
"${WORKDIR}/vim-patches-vim-${VIM_PATCHES_VERSION}-patches"
|
||||
)
|
||||
fi
|
||||
|
||||
# platform-specific checks (bug #898452):
|
||||
# - acl() -- Solaris
|
||||
# - statacl() -- AIX
|
||||
QA_CONFIG_IMPL_DECL_SKIP=(
|
||||
'acl'
|
||||
'statacl'
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
# people with broken alphabets run into trouble. bug #82186.
|
||||
unset LANG LC_ALL
|
||||
export LC_COLLATE="C"
|
||||
|
||||
use lua && lua-single_pkg_setup
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Fixup a script to use awk instead of nawk
|
||||
sed -i -e \
|
||||
'1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \
|
||||
"${S}"/runtime/tools/mve.awk || die "mve.awk sed failed"
|
||||
|
||||
# Read vimrc and gvimrc from /etc/vim
|
||||
echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' \
|
||||
>> "${S}"/src/feature.h || die "echo failed"
|
||||
echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' \
|
||||
>> "${S}"/src/feature.h || die "echo failed"
|
||||
|
||||
# Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
|
||||
# Hopefully this pattern won't break for a while at least.
|
||||
# This fixes bug #29398 (27 Sep 2003 agriffis)
|
||||
sed -i -e \
|
||||
's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
|
||||
"${S}"/runtime/doc/syntax.txt \
|
||||
"${S}"/runtime/doc/tagsrch.txt \
|
||||
"${S}"/runtime/doc/usr_29.txt \
|
||||
"${S}"/runtime/menu.vim \
|
||||
"${S}"/src/configure.ac || die 'sed failed'
|
||||
|
||||
# gcc on sparc32 has this, uhm, interesting problem with detecting EOF
|
||||
# correctly. To avoid some really entertaining error messages about stuff
|
||||
# which isn't even in the source file being invalid, we'll do some trickery
|
||||
# to make the error never occur. bug 66162 (02 October 2004 ciaranm)
|
||||
find "${S}" -name '*.c' | while read c; do
|
||||
echo >> "$c" || die "echo failed"
|
||||
done
|
||||
|
||||
# conditionally make the manpager.sh script
|
||||
if use vim-pager; then
|
||||
cat > "${S}"/runtime/macros/manpager.sh <<-_EOF_ || die "cat EOF failed"
|
||||
#!/bin/sh
|
||||
sed -e 's/\x1B\[[[:digit:]]\+m//g' | col -b | \\
|
||||
vim \\
|
||||
-c 'let no_plugin_maps = 1' \\
|
||||
-c 'set nolist nomod ft=man ts=8' \\
|
||||
-c 'let g:showmarks_enable=0' \\
|
||||
-c 'runtime! macros/less.vim' -
|
||||
_EOF_
|
||||
fi
|
||||
|
||||
# Try to avoid sandbox problems. Bug #114475.
|
||||
if [[ -d "${S}"/src/po ]]; then
|
||||
sed -i -e \
|
||||
'/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
|
||||
"${S}"/src/po/Makefile || die "sed failed"
|
||||
fi
|
||||
|
||||
cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed"
|
||||
|
||||
# Fix bug 18245: Prevent "make" from the following chain:
|
||||
# (1) Notice configure.ac is newer than auto/configure
|
||||
# (2) Rebuild auto/configure
|
||||
# (3) Notice auto/configure is newer than auto/config.mk
|
||||
# (4) Run ./configure (with wrong args) to remake auto/config.mk
|
||||
sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
|
||||
rm src/auto/configure || die "rm failed"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
|
||||
# Fix bug #37354: Disallow -funroll-all-loops on amd64
|
||||
# Bug #57859 suggests that we want to do this for all archs
|
||||
filter-flags -funroll-all-loops
|
||||
|
||||
# Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
|
||||
# everyone since previous flag filtering bugs have turned out to affect
|
||||
# multiple archs...
|
||||
replace-flags -O3 -O2
|
||||
|
||||
emake -j1 -C src autoconf
|
||||
|
||||
# This should fix a sandbox violation (see bug #24447). The hvc
|
||||
# things are for ppc64, see bug #86433.
|
||||
for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do
|
||||
if [[ -e "${file}" ]]; then
|
||||
addwrite ${file}
|
||||
fi
|
||||
done
|
||||
|
||||
local myconf=()
|
||||
if use minimal; then
|
||||
myconf=(
|
||||
--with-features=tiny
|
||||
--disable-nls
|
||||
--disable-canberra
|
||||
--disable-acl
|
||||
--enable-gui=no
|
||||
--without-x
|
||||
--disable-darwin
|
||||
--disable-luainterp
|
||||
--disable-perlinterp
|
||||
--disable-pythoninterp
|
||||
--disable-mzschemeinterp
|
||||
--disable-rubyinterp
|
||||
--disable-selinux
|
||||
--disable-tclinterp
|
||||
--disable-gpm
|
||||
)
|
||||
else
|
||||
use debug && append-flags "-DDEBUG"
|
||||
|
||||
myconf=(
|
||||
--with-features=huge
|
||||
$(use_enable sound canberra)
|
||||
$(use_enable acl)
|
||||
$(use_enable crypt libsodium)
|
||||
$(use_enable cscope)
|
||||
$(use_enable gpm)
|
||||
$(use_enable nls)
|
||||
$(use_enable perl perlinterp)
|
||||
$(use_enable python python3interp)
|
||||
$(use_with python python3-command "${PYTHON}")
|
||||
$(use_enable racket mzschemeinterp)
|
||||
$(use_enable ruby rubyinterp)
|
||||
$(use_enable selinux)
|
||||
$(use_enable tcl tclinterp)
|
||||
$(use_enable terminal)
|
||||
)
|
||||
|
||||
# --with-features=huge forces on cscope even if we --disable it. We need
|
||||
# to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
|
||||
if ! use cscope; then
|
||||
sed -i -e \
|
||||
'/# define FEAT_CSCOPE/d' src/feature.h || die "sed failed"
|
||||
fi
|
||||
|
||||
if use lua; then
|
||||
# -DLUA_COMPAT_OPENLIB=1 is required to enable the
|
||||
# deprecated (in 5.1) luaL_openlib API (#874690)
|
||||
use lua_single_target_lua5-1 && append-cppflags -DLUA_COMPAT_OPENLIB=1
|
||||
|
||||
myconf+=(
|
||||
--enable-luainterp
|
||||
$(use_with lua_single_target_luajit luajit)
|
||||
--with-lua-prefix="${EPREFIX}/usr"
|
||||
)
|
||||
fi
|
||||
|
||||
# don't test USE=X here ... see bug #19115
|
||||
# but need to provide a way to link against X ... see bug #20093
|
||||
myconf+=(
|
||||
--enable-gui=no
|
||||
--disable-darwin
|
||||
$(use_with X x)
|
||||
)
|
||||
fi
|
||||
|
||||
# let package manager strip binaries
|
||||
export ac_cv_prog_STRIP="$(type -P true ) faking strip"
|
||||
|
||||
# keep prefix env contained within the EPREFIX
|
||||
use prefix && myconf+=( --without-local-dir )
|
||||
|
||||
if tc-is-cross-compiler ; then
|
||||
export vim_cv_getcwd_broken=no \
|
||||
vim_cv_memmove_handles_overlap=yes \
|
||||
vim_cv_stat_ignores_slash=yes \
|
||||
vim_cv_terminfo=yes \
|
||||
vim_cv_toupper_broken=no
|
||||
fi
|
||||
|
||||
econf \
|
||||
--with-modified-by="Gentoo-${PVR} (RIP Bram)" \
|
||||
"${myconf[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# The following allows emake to be used
|
||||
emake -j1 -C src auto/osdef.h objects
|
||||
|
||||
emake
|
||||
}
|
||||
|
||||
src_test() {
|
||||
einfo
|
||||
einfo "Starting vim tests. Several error messages will be shown"
|
||||
einfo "while the tests run. This is normal behaviour and does not"
|
||||
einfo "indicate a fault."
|
||||
einfo
|
||||
ewarn "If the tests fail, your terminal may be left in a strange"
|
||||
ewarn "state. Usually, running 'reset' will fix this."
|
||||
einfo
|
||||
|
||||
# Don't let vim talk to X
|
||||
unset DISPLAY
|
||||
|
||||
# Arch and opensuse seem to do this and at this point, I'm willing
|
||||
# to try anything to avoid random test hangs!
|
||||
export TERM=xterm
|
||||
|
||||
# See https://github.com/vim/vim/blob/f08b0eb8691ff09f98bc4beef986ece1c521655f/src/testdir/runtest.vim#L5
|
||||
# for more information on test variables we can use.
|
||||
# Note that certain variables need vim-compatible regex (not PCRE), see e.g.
|
||||
# http://www.softpanorama.org/Editors/Vimorama/vim_regular_expressions.shtml.
|
||||
#
|
||||
# Skipped tests:
|
||||
# - Test_expand_star_star
|
||||
# Hangs because of a recursive symlink in /usr/include/nodejs (bug #616680)
|
||||
# - Test_exrc
|
||||
# Looks in wrong location? (bug #742710)
|
||||
# - Test_job_tty_in_out
|
||||
# Fragile and depends on TERM(?)
|
||||
# - Test_spelldump_bang
|
||||
# Hangs.
|
||||
# - Test_fuzzy_completion_env
|
||||
# Too sensitive to leaked environment variables.
|
||||
# - Test_term_mouse_multiple_clicks_to_select_mode
|
||||
# Hangs.
|
||||
# - Test_spelldump
|
||||
# Hangs.
|
||||
export TEST_SKIP_PAT='\(Test_expand_star_star\|Test_exrc\|Test_job_tty_in_out\|Test_spelldump_bang\|Test_fuzzy_completion_env\|Test_term_mouse_multiple_clicks_to_select_mode\|Test_spelldump\)'
|
||||
|
||||
emake -j1 -C src/testdir nongui
|
||||
}
|
||||
|
||||
# Call eselect vi update with --if-unset
|
||||
# to respect user's choice (bug #187449)
|
||||
eselect_vi_update() {
|
||||
ebegin "Calling eselect vi update"
|
||||
eselect vi update --if-unset
|
||||
eend $?
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
|
||||
|
||||
# Note: Do not install symlinks for 'vi', 'ex', or 'view', as these are
|
||||
# managed by eselect-vi
|
||||
dobin src/vim
|
||||
if ! use minimal ; then
|
||||
dosym vim /usr/bin/vimdiff
|
||||
fi
|
||||
dosym vim /usr/bin/rvim
|
||||
dosym vim /usr/bin/rview
|
||||
if use vim-pager ; then
|
||||
dosym ${vimfiles}/macros/less.sh /usr/bin/vimpager
|
||||
dosym ${vimfiles}/macros/manpager.sh /usr/bin/vimmanpager
|
||||
insinto ${vimfiles}/macros
|
||||
doins runtime/macros/manpager.sh
|
||||
fperms a+x ${vimfiles}/macros/manpager.sh
|
||||
fi
|
||||
|
||||
domenu runtime/vim.desktop
|
||||
|
||||
newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
|
||||
|
||||
# keep in sync with 'complete ... -F' list
|
||||
bashcomp_alias vim ex vi view rvim rview vimdiff
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Update documentation tags (from vim-doc.eclass)
|
||||
update_vim_helptags
|
||||
|
||||
# Call eselect vi update
|
||||
eselect_vi_update
|
||||
|
||||
# update desktop file mime cache
|
||||
xdg_desktop_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
# Update documentation tags (from vim-doc.eclass)
|
||||
update_vim_helptags
|
||||
|
||||
# Call eselect vi update
|
||||
eselect_vi_update
|
||||
|
||||
# update desktop file mime cache
|
||||
xdg_desktop_database_update
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,452 @@
|
||||
# Copyright 2022-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
MULTILIB_COMPAT=( abi_x86_{32,64} )
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
# note: multilib+wrapper are not unused, currently a pkgcheck false positive
|
||||
inherit autotools edo flag-o-matic multilib multilib-build
|
||||
inherit prefix python-any-r1 toolchain-funcs wrapper
|
||||
|
||||
WINE_GECKO=2.47.4
|
||||
WINE_MONO=8.0.0
|
||||
WINE_P=wine-$(ver_cut 1-2)
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://gitlab.winehq.org/wine/wine-staging.git"
|
||||
WINE_EGIT_REPO_URI="https://gitlab.winehq.org/wine/wine.git"
|
||||
else
|
||||
(( $(ver_cut 2) )) && WINE_SDIR=$(ver_cut 1).x || WINE_SDIR=$(ver_cut 1).0
|
||||
SRC_URI="
|
||||
https://dl.winehq.org/wine/source/${WINE_SDIR}/${WINE_P}.tar.xz
|
||||
https://github.com/wine-staging/wine-staging/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
fi
|
||||
S="${WORKDIR}/${WINE_P}"
|
||||
|
||||
DESCRIPTION="Free implementation of Windows(tm) on Unix, with Wine-Staging patchset"
|
||||
HOMEPAGE="
|
||||
https://wiki.winehq.org/Wine-Staging
|
||||
https://gitlab.winehq.org/wine/wine-staging/"
|
||||
|
||||
LICENSE="LGPL-2.1+ BSD-2 IJG MIT OPENLDAP ZLIB gsm libpng2 libtiff"
|
||||
SLOT="${PV}"
|
||||
IUSE="
|
||||
+X +abi_x86_32 +abi_x86_64 +alsa capi crossdev-mingw cups dos
|
||||
llvm-libunwind custom-cflags +fontconfig +gecko gphoto2 +gstreamer
|
||||
kerberos +mingw +mono netapi nls opencl +opengl osmesa pcap perl
|
||||
pulseaudio samba scanner +sdl selinux smartcard +ssl +strip
|
||||
+truetype udev udisks +unwind usb v4l +vulkan wayland wow64
|
||||
+xcomposite xinerama"
|
||||
# bug #551124 for truetype
|
||||
# TODO: wow64 can be done without mingw if using clang (needs bug #912237)
|
||||
REQUIRED_USE="
|
||||
X? ( truetype )
|
||||
crossdev-mingw? ( mingw )
|
||||
wow64? ( abi_x86_64 !abi_x86_32 mingw )"
|
||||
|
||||
# tests are non-trivial to run, can hang easily, don't play well with
|
||||
# sandbox, and several need real opengl/vulkan or network access
|
||||
RESTRICT="test"
|
||||
|
||||
# `grep WINE_CHECK_SONAME configure.ac` + if not directly linked
|
||||
WINE_DLOPEN_DEPEND="
|
||||
X? (
|
||||
x11-libs/libXcursor[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXfixes[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXi[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXrandr[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXrender[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
|
||||
opengl? (
|
||||
media-libs/libglvnd[X,${MULTILIB_USEDEP}]
|
||||
osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
|
||||
)
|
||||
xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
|
||||
xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
|
||||
)
|
||||
cups? ( net-print/cups[${MULTILIB_USEDEP}] )
|
||||
fontconfig? ( media-libs/fontconfig[${MULTILIB_USEDEP}] )
|
||||
kerberos? ( virtual/krb5[${MULTILIB_USEDEP}] )
|
||||
netapi? ( net-fs/samba[${MULTILIB_USEDEP}] )
|
||||
sdl? ( media-libs/libsdl2[haptic,joystick,${MULTILIB_USEDEP}] )
|
||||
ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
|
||||
truetype? ( media-libs/freetype[${MULTILIB_USEDEP}] )
|
||||
udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
|
||||
v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
|
||||
vulkan? ( media-libs/vulkan-loader[${MULTILIB_USEDEP}] )"
|
||||
WINE_COMMON_DEPEND="
|
||||
${WINE_DLOPEN_DEPEND}
|
||||
X? (
|
||||
x11-libs/libX11[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXext[${MULTILIB_USEDEP}]
|
||||
)
|
||||
alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
|
||||
capi? ( net-libs/libcapi:=[${MULTILIB_USEDEP}] )
|
||||
gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
|
||||
gstreamer? (
|
||||
dev-libs/glib:2[${MULTILIB_USEDEP}]
|
||||
media-libs/gst-plugins-base:1.0[${MULTILIB_USEDEP}]
|
||||
media-libs/gstreamer:1.0[${MULTILIB_USEDEP}]
|
||||
)
|
||||
opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
|
||||
pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
|
||||
pulseaudio? ( media-libs/libpulse[${MULTILIB_USEDEP}] )
|
||||
scanner? ( media-gfx/sane-backends[${MULTILIB_USEDEP}] )
|
||||
smartcard? ( sys-apps/pcsc-lite[${MULTILIB_USEDEP}] )
|
||||
udev? ( virtual/libudev:=[${MULTILIB_USEDEP}] )
|
||||
unwind? (
|
||||
llvm-libunwind? ( sys-libs/llvm-libunwind[${MULTILIB_USEDEP}] )
|
||||
!llvm-libunwind? ( sys-libs/libunwind:=[${MULTILIB_USEDEP}] )
|
||||
)
|
||||
usb? ( dev-libs/libusb:1[${MULTILIB_USEDEP}] )
|
||||
wayland? ( dev-libs/wayland[${MULTILIB_USEDEP}] )"
|
||||
RDEPEND="
|
||||
${WINE_COMMON_DEPEND}
|
||||
app-emulation/wine-desktop-common
|
||||
dos? (
|
||||
|| (
|
||||
games-emulation/dosbox
|
||||
games-emulation/dosbox-staging
|
||||
)
|
||||
)
|
||||
gecko? (
|
||||
app-emulation/wine-gecko:${WINE_GECKO}[${MULTILIB_USEDEP}]
|
||||
wow64? ( app-emulation/wine-gecko[abi_x86_32] )
|
||||
)
|
||||
gstreamer? ( media-plugins/gst-plugins-meta:1.0[${MULTILIB_USEDEP}] )
|
||||
mono? ( app-emulation/wine-mono:${WINE_MONO} )
|
||||
perl? (
|
||||
dev-lang/perl
|
||||
dev-perl/XML-LibXML
|
||||
)
|
||||
samba? ( net-fs/samba[winbind] )
|
||||
selinux? ( sec-policy/selinux-wine )
|
||||
udisks? ( sys-fs/udisks:2 )"
|
||||
DEPEND="
|
||||
${WINE_COMMON_DEPEND}
|
||||
sys-kernel/linux-headers
|
||||
X? ( x11-base/xorg-proto )"
|
||||
# gitapply.sh prefers git but can fallback to patch+extras
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
|| (
|
||||
dev-vcs/git
|
||||
(
|
||||
sys-apps/gawk
|
||||
sys-apps/util-linux
|
||||
)
|
||||
)
|
||||
|| (
|
||||
sys-devel/binutils
|
||||
sys-devel/lld
|
||||
)
|
||||
dev-lang/perl
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
virtual/pkgconfig
|
||||
mingw? ( !crossdev-mingw? (
|
||||
>=dev-util/mingw64-toolchain-10.0.0_p1-r2[${MULTILIB_USEDEP}]
|
||||
wow64? ( dev-util/mingw64-toolchain[abi_x86_32] )
|
||||
) )
|
||||
nls? ( sys-devel/gettext )
|
||||
wayland? ( dev-util/wayland-scanner )"
|
||||
IDEPEND=">=app-eselect/eselect-wine-2"
|
||||
|
||||
QA_CONFIG_IMPL_DECL_SKIP=(
|
||||
__clear_cache # unused on amd64+x86 (bug #900334)
|
||||
res_getservers # false positive
|
||||
)
|
||||
QA_FLAGS_IGNORED="usr/lib/.*/wine/.*-unix/odbc32.so" # has no compiled objects
|
||||
QA_TEXTRELS="usr/lib/*/wine/i386-unix/*.so" # uses -fno-PIC -Wl,-z,notext
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-7.17-noexecstack.patch
|
||||
"${FILESDIR}"/${PN}-7.20-unwind.patch
|
||||
"${FILESDIR}"/${PN}-8.13-rpath.patch
|
||||
)
|
||||
|
||||
pkg_pretend() {
|
||||
[[ ${MERGE_TYPE} == binary ]] && return
|
||||
|
||||
if use crossdev-mingw && [[ ! -v MINGW_BYPASS ]]; then
|
||||
local mingw=-w64-mingw32
|
||||
for mingw in $(usev abi_x86_64 x86_64${mingw}) \
|
||||
$(use abi_x86_32 || use wow64 && echo i686${mingw}); do
|
||||
if ! type -P ${mingw}-gcc >/dev/null; then
|
||||
eerror "With USE=crossdev-mingw, you must prepare the MinGW toolchain"
|
||||
eerror "yourself by installing sys-devel/crossdev then running:"
|
||||
eerror
|
||||
eerror " crossdev --target ${mingw}"
|
||||
eerror
|
||||
eerror "For more information, please see: https://wiki.gentoo.org/wiki/Mingw"
|
||||
die "USE=crossdev-mingw is enabled, but ${mingw}-gcc was not found"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
EGIT_CHECKOUT_DIR=${WORKDIR}/${P}
|
||||
git-r3_src_unpack
|
||||
|
||||
# hack: use subshell to preserve state (including what git-r3 unpack
|
||||
# sets) for smart-live-rebuild as this is not the repo to look at
|
||||
(
|
||||
EGIT_COMMIT=$(<"${EGIT_CHECKOUT_DIR}"/staging/upstream-commit) || die
|
||||
EGIT_REPO_URI=${WINE_EGIT_REPO_URI}
|
||||
EGIT_CHECKOUT_DIR=${S}
|
||||
einfo "Fetching Wine commit matching the current patchset by default (${EGIT_COMMIT})"
|
||||
git-r3_src_unpack
|
||||
)
|
||||
else
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patchinstallargs=(
|
||||
--all
|
||||
--no-autoconf
|
||||
${MY_WINE_STAGING_CONF}
|
||||
)
|
||||
|
||||
edo "${PYTHON}" ../${P}/staging/patchinstall.py "${patchinstallargs[@]}"
|
||||
|
||||
# sanity check, bumping these has a history of oversights
|
||||
local geckomono=$(sed -En '/^#define (GECKO|MONO)_VER/{s/[^0-9.]//gp}' \
|
||||
dlls/appwiz.cpl/addons.c || die)
|
||||
if [[ ${WINE_GECKO}$'\n'${WINE_MONO} != "${geckomono}" ]]; then
|
||||
local gmfatal=
|
||||
[[ ${PV} == *9999 ]] && gmfatal=nonfatal
|
||||
${gmfatal} die -n "gecko/mono mismatch in ebuild, has: " ${geckomono} " (please file a bug)"
|
||||
fi
|
||||
|
||||
default
|
||||
|
||||
if tc-is-clang; then
|
||||
if use mingw; then
|
||||
# -mabi=ms was ignored by <clang:16 then turned error in :17
|
||||
# if used without --target *-windows, then gets used in install
|
||||
# phase despite USE=mingw, drop as a quick fix for now
|
||||
sed -i '/MSVCRTFLAGS=/s/-mabi=ms//' configure.ac || die
|
||||
else
|
||||
# fails in ./configure unless --enable-archs is passed, allow to
|
||||
# bypass with EXTRA_ECONF but is currently considered unsupported
|
||||
# (by Gentoo) as additional work is needed for (proper) support
|
||||
# note: also fails w/ :17, but unsure if safe to drop w/o mingw
|
||||
[[ ${EXTRA_ECONF} == *--enable-archs* ]] ||
|
||||
die "building ${PN} with clang is only supported with USE=mingw"
|
||||
fi
|
||||
fi
|
||||
|
||||
# ensure .desktop calls this variant + slot
|
||||
sed -i "/^Exec=/s/wine /${P} /" loader/wine.desktop || die
|
||||
|
||||
# datadir is not where wine-mono is installed, so prefixy alternate paths
|
||||
hprefixify -w /get_mono_path/ dlls/mscoree/metahost.c
|
||||
|
||||
# always update for patches (including user's wrt #432348)
|
||||
eautoreconf
|
||||
tools/make_requests || die # perl
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
WINE_PREFIX=/usr/lib/${P}
|
||||
WINE_DATADIR=/usr/share/${P}
|
||||
|
||||
local conf=(
|
||||
--prefix="${EPREFIX}"${WINE_PREFIX}
|
||||
--datadir="${EPREFIX}"${WINE_DATADIR}
|
||||
--includedir="${EPREFIX}"/usr/include/${P}
|
||||
--libdir="${EPREFIX}"${WINE_PREFIX}
|
||||
--mandir="${EPREFIX}"${WINE_DATADIR}/man
|
||||
|
||||
$(usev wow64 --enable-archs=x86_64,i386)
|
||||
|
||||
$(use_enable gecko mshtml)
|
||||
$(use_enable mono mscoree)
|
||||
--disable-tests
|
||||
|
||||
$(use_with X x)
|
||||
$(use_with alsa)
|
||||
$(use_with capi)
|
||||
$(use_with cups)
|
||||
$(use_with fontconfig)
|
||||
$(use_with gphoto2 gphoto)
|
||||
$(use_with gstreamer)
|
||||
$(use_with kerberos gssapi)
|
||||
$(use_with kerberos krb5)
|
||||
$(use_with mingw)
|
||||
$(use_with netapi)
|
||||
$(use_with nls gettext)
|
||||
$(use_with opencl)
|
||||
$(use_with opengl)
|
||||
$(use_with osmesa)
|
||||
--without-oss # media-sound/oss is not packaged (OSSv4)
|
||||
$(use_with pcap)
|
||||
$(use_with pulseaudio pulse)
|
||||
$(use_with scanner sane)
|
||||
$(use_with sdl)
|
||||
$(use_with smartcard pcsclite)
|
||||
$(use_with ssl gnutls)
|
||||
$(use_with truetype freetype)
|
||||
$(use_with udev)
|
||||
$(use_with udisks dbus) # dbus is only used for udisks
|
||||
$(use_with unwind)
|
||||
$(use_with usb)
|
||||
$(use_with v4l v4l2)
|
||||
$(use_with vulkan)
|
||||
$(use_with wayland)
|
||||
$(use_with xcomposite)
|
||||
$(use_with xinerama)
|
||||
)
|
||||
|
||||
filter-lto # build failure
|
||||
use custom-cflags || strip-flags # can break in obscure ways at runtime
|
||||
|
||||
# wine uses linker tricks unlikely to work with non-bfd/lld (bug #867097)
|
||||
# (do self test until https://github.com/gentoo/gentoo/pull/28355)
|
||||
if [[ $(LC_ALL=C $(tc-getCC) ${LDFLAGS} -Wl,--version 2>/dev/null) != @(LLD|GNU\ ld)* ]]
|
||||
then
|
||||
has_version -b sys-devel/binutils &&
|
||||
append-ldflags -fuse-ld=bfd ||
|
||||
append-ldflags -fuse-ld=lld
|
||||
strip-unsupported-flags
|
||||
fi
|
||||
|
||||
if use mingw; then
|
||||
use crossdev-mingw || PATH=${BROOT}/usr/lib/mingw64-toolchain/bin:${PATH}
|
||||
|
||||
filter-flags -fno-plt # build failure
|
||||
|
||||
# CROSSCC was formerly recognized by wine, thus been using similar
|
||||
# variables (subject to change, esp. if ever make a mingw.eclass).
|
||||
local mingwcc_amd64=${CROSSCC:-${CROSSCC_amd64:-x86_64-w64-mingw32-gcc}}
|
||||
local mingwcc_x86=${CROSSCC:-${CROSSCC_x86:-i686-w64-mingw32-gcc}}
|
||||
local -n mingwcc=mingwcc_$(usex abi_x86_64 amd64 x86)
|
||||
|
||||
conf+=(
|
||||
ac_cv_prog_x86_64_CC="${mingwcc_amd64}"
|
||||
ac_cv_prog_i386_CC="${mingwcc_x86}"
|
||||
|
||||
CROSSCFLAGS="${CROSSCFLAGS:-$(
|
||||
filter-flags '-fstack-protector*' #870136
|
||||
filter-flags '-mfunction-return=thunk*' #878849
|
||||
|
||||
# -mavx with mingw-gcc has a history of obscure issues and
|
||||
# disabling is seen as safer, e.g. `WINEARCH=win32 winecfg`
|
||||
# crashes with -march=skylake >=wine-8.10, similar issues with
|
||||
# znver4: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110273
|
||||
append-cflags -mno-avx #912268
|
||||
|
||||
CC=${mingwcc} test-flags-CC ${CFLAGS:--O2}
|
||||
)}"
|
||||
|
||||
CROSSLDFLAGS="${CROSSLDFLAGS:-$(
|
||||
filter-flags '-fuse-ld=*'
|
||||
|
||||
CC=${mingwcc} test-flags-CCLD ${LDFLAGS}
|
||||
)}"
|
||||
)
|
||||
fi
|
||||
|
||||
# order matters with multilib: configure+compile 64->32, install 32->64
|
||||
local -i bits
|
||||
for bits in $(usev abi_x86_64 64) $(usev abi_x86_32 32); do
|
||||
(
|
||||
einfo "Configuring ${PN} for ${bits}bits in ${WORKDIR}/build${bits} ..."
|
||||
|
||||
mkdir ../build${bits} || die
|
||||
cd ../build${bits} || die
|
||||
|
||||
if (( bits == 64 )); then
|
||||
conf+=( --enable-win64 )
|
||||
elif use amd64; then
|
||||
conf+=(
|
||||
$(usev abi_x86_64 --with-wine64=../build64)
|
||||
TARGETFLAGS=-m32 # for widl
|
||||
)
|
||||
# _setup is optional, but use over Wine's auto-detect (+#472038)
|
||||
multilib_toolchain_setup x86
|
||||
fi
|
||||
|
||||
ECONF_SOURCE=${S} econf "${conf[@]}"
|
||||
)
|
||||
done
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
use abi_x86_64 && emake -C ../build64 # do first
|
||||
use abi_x86_32 && emake -C ../build32
|
||||
}
|
||||
|
||||
src_install() {
|
||||
use abi_x86_32 && emake DESTDIR="${D}" -C ../build32 install
|
||||
use abi_x86_64 && emake DESTDIR="${D}" -C ../build64 install # do last
|
||||
|
||||
# Ensure both wine64 and wine are available if USE=abi_x86_64 (wow64,
|
||||
# -abi_x86_32, and/or EXTRA_ECONF could cause varying scenarios where
|
||||
# one or the other could be missing and that is unexpected for users
|
||||
# and some tools like winetricks)
|
||||
if use abi_x86_64; then
|
||||
if [[ -e ${ED}${WINE_PREFIX}/bin/wine64 && ! -e ${ED}${WINE_PREFIX}/bin/wine ]]; then
|
||||
dosym wine64 ${WINE_PREFIX}/bin/wine
|
||||
dosym wine64-preloader ${WINE_PREFIX}/bin/wine-preloader
|
||||
|
||||
# also install wine(1) man pages (incl. translations)
|
||||
local man
|
||||
for man in ../build64/loader/wine.*man; do
|
||||
: "${man##*/wine}"
|
||||
: "${_%.*}"
|
||||
insinto ${WINE_DATADIR}/man/${_:+${_#.}/}man1
|
||||
newins ${man} wine.1
|
||||
done
|
||||
elif [[ ! -e ${ED}${WINE_PREFIX}/bin/wine64 && -e ${ED}${WINE_PREFIX}/bin/wine ]]; then
|
||||
dosym wine ${WINE_PREFIX}/bin/wine64
|
||||
dosym wine-preloader ${WINE_PREFIX}/bin/wine64-preloader
|
||||
fi
|
||||
fi
|
||||
|
||||
use perl || rm "${ED}"${WINE_DATADIR}/man/man1/wine{dump,maker}.1 \
|
||||
"${ED}"${WINE_PREFIX}/bin/{function_grep.pl,wine{dump,maker}} || die
|
||||
|
||||
# create variant wrappers for eselect-wine
|
||||
local bin
|
||||
for bin in "${ED}"${WINE_PREFIX}/bin/*; do
|
||||
make_wrapper "${bin##*/}-${P#wine-}" "${bin#"${ED}"}"
|
||||
done
|
||||
|
||||
if use mingw; then
|
||||
# don't let portage try to strip PE files with the wrong
|
||||
# strip executable and instead handle it here (saves ~120MB)
|
||||
dostrip -x ${WINE_PREFIX}/wine/{i386,x86_64}-windows
|
||||
|
||||
if use strip; then
|
||||
ebegin "Stripping Windows (PE) binaries"
|
||||
find "${ED}"${WINE_PREFIX}/wine/*-windows -regex '.*\.\(a\|dll\|exe\)' \
|
||||
-exec $(usex abi_x86_64 x86_64 i686)-w64-mingw32-strip --strip-unneeded {} +
|
||||
eend ${?} || die
|
||||
fi
|
||||
fi
|
||||
|
||||
dodoc ANNOUNCE AUTHORS README* documentation/README*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use !abi_x86_32 && use !wow64; then
|
||||
ewarn "32bit support is disabled. While 64bit applications themselves will"
|
||||
ewarn "work, be warned that it is not unusual that installers or other helpers"
|
||||
ewarn "will attempt to use 32bit and fail. If do not want full USE=abi_x86_32,"
|
||||
ewarn "note the experimental/WIP USE=wow64 can allow 32bit without multilib."
|
||||
fi
|
||||
|
||||
eselect wine update --if-unset || die
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect wine update --if-unset || die
|
||||
}
|
Binary file not shown.
@ -1,5 +1,7 @@
|
||||
DIST ibus-m17n-1.4.19.tar.gz 640562 BLAKE2B ec3153d1fa750b4958cb9ad54e95e13cadabd45ec992c1635bcd2480796e7219af449197849a90e50fc6a3d3985d0770614586ccab9c09a8eb33bfc232c07d55 SHA512 d859ccd566ec46b0f03cee47dc926bf4608bbe281f62ac9127cd518749a54e7f11bbef573900575f34c1a0d33a55262226132c320acbbabf44b1ff262565702d
|
||||
DIST ibus-m17n-1.4.21.tar.gz 642215 BLAKE2B 7d4277e8947df7af2b23a39cdad0d7c1dc0d500fa107a63ff1780074f781511356f62c6098990baee5f432bae0dfc6f1129685528bbddecac802b408f5d07440 SHA512 6bcc0a3f984430bf0fab0d472bef5cedef3961890d0fe9dcd4955559ddea40a4f780c7f74b39a8f782297c511c3db396a5e5838be91dff9e82fef6e35d77a48b
|
||||
DIST ibus-m17n-1.4.22.tar.gz 643254 BLAKE2B 22c75abb73dc5ad8d055c8e71af26b79dc59866f538a845d9c61364481fafbc3454685a7904b47074e20aad2ca575766935532269ec777d6bf81c0c9e28cecf5 SHA512 064bc1af9d7dc4cfd9fcd236769003fcbcfc63e8e68869dbdec50e7834c834218995feef45fae97e93fe68e8735636c2090e2b1b34f738d9c06e4098e7da6015
|
||||
EBUILD ibus-m17n-1.4.19.ebuild 801 BLAKE2B 77acf0e4e3b892b11f3cd4c2ff6c3db5a173ea652123054580bd99eb3b0729d54c3a81f7433454e51d4740ff2d824d993f452643d450f73a206be30de850dc7b SHA512 2047c219f1aede0e90b191c3a67102657cc794790502f2ab826e7e6d6efcca5990ed68de07ab9d5033be415955a9781fe9693a234755a794cb8d15aa5ee75dec
|
||||
EBUILD ibus-m17n-1.4.21.ebuild 803 BLAKE2B ff75adf0c7f7a1fec0c8bb3f15a89f9b950bcbaab95d1767cd4a97624c7a0a9de3ab24a50deb14193f7005f66417563bddda44076d47abd4e7ac39056e521ae3 SHA512 ff207b9693a816a318d394b46b7e1f57d9667bf4792375b8d0b4bd23d76fe143031a7d3b45ba7e08e6a81ee17ee7b3baf1b61feeac71bcf50bf7560eb7c65b2c
|
||||
EBUILD ibus-m17n-1.4.22.ebuild 803 BLAKE2B ff75adf0c7f7a1fec0c8bb3f15a89f9b950bcbaab95d1767cd4a97624c7a0a9de3ab24a50deb14193f7005f66417563bddda44076d47abd4e7ac39056e521ae3 SHA512 ff207b9693a816a318d394b46b7e1f57d9667bf4792375b8d0b4bd23d76fe143031a7d3b45ba7e08e6a81ee17ee7b3baf1b61feeac71bcf50bf7560eb7c65b2c
|
||||
MISC metadata.xml 555 BLAKE2B b9dd5e7d4f230dde589a7e73333d14d52dae05d0e549dbde75332807434fc7c73ee7fe468dd919762527ac65f16c7a484b8d8b5c629c24dbe695c19c96b9abba SHA512 311891667bea4f2d4797440920ba2779a7f54766d3967edb25cb65b30800164a33192babdf7aadaa9adfeade385852d7d8d2a9a039b7c4ecbd2e9ed0a553fe89
|
||||
|
@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="8"
|
||||
|
||||
inherit gnome2-utils xdg
|
||||
|
||||
DESCRIPTION="M17N engine for IBus"
|
||||
HOMEPAGE="https://github.com/ibus/ibus/wiki"
|
||||
SRC_URI="https://github.com/ibus/${PN}/releases/download/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="gtk nls"
|
||||
|
||||
DEPEND="app-i18n/ibus
|
||||
dev-libs/m17n-lib
|
||||
gtk? ( x11-libs/gtk+:3 )
|
||||
nls? ( virtual/libintl )"
|
||||
RDEPEND="${DEPEND}
|
||||
>=dev-db/m17n-db-1.7"
|
||||
BDEPEND="sys-devel/gettext
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable nls) \
|
||||
$(use_with gtk gtk 3.0)
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
xdg_pkg_preinst
|
||||
gnome2_schemas_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
gnome2_schemas_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_pkg_postrm
|
||||
gnome2_schemas_update
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
DIST ibus-table-others-1.3.15.tar.gz 675072 BLAKE2B fe12af11628bdefdc313ae29d905f8a95ea73541fee3c7dbbff355948ff1afe7d051ccd2f85d50582e43dc68c87eb669e9321a97e5fc39a5ac29785148dbc3f5 SHA512 65c8ca06901cd507b0112de7df0700450d3348b10eef36b1d5bb3e419b21637f9a4cf707b6ce630256cb350d6a65f6d7b261b5ec639599193610a31487f9ea76
|
||||
DIST ibus-table-others-1.3.17.tar.gz 679127 BLAKE2B 314003ff7f58fe7e265da32ba0aa1e9004d9029c6bf73f9c7570eb5a96775d9c7c5cae0d9d2b9261998d960695b09fe13b34bcee0291d6f3c04cea437ae1cf1b SHA512 6b1c58693954fa7ebee941f674b24c0c25e3146cbdf0539816b2348c4c2e316cdc4aa173fa2f56a928b052f42d7ca2212dc8c849e49146c0b7b4758a15470ec3
|
||||
EBUILD ibus-table-others-1.3.15.ebuild 550 BLAKE2B 902b16397eb17065e3577588e60cb52a44b30a5bcf7e8ee3f17e16d7c0545582f14af458ca38ef1b77e2354427830223ce4a1a66e554cf59e79811f4110e1277 SHA512 6f0f14bc70ff8fa3e86644b517141bebab32a556c3efc0f957826818ea257dad00a88346a0e74742f057aafbbefcccd0c84bf06b1e3820141531286397075e5e
|
||||
EBUILD ibus-table-others-1.3.17.ebuild 552 BLAKE2B ea6a6c9dd8d499e827c866dfc0e3d13708d4b0b84fcc090c6c4602f44f84d695002735c651bb984f1ea27e693ca9dddb99e17c268a986021db0073405235fa44 SHA512 f2e09c95f9e3ccf4d3b93675e2c08fc68cc24becf1fb6d4ed2ff2df357de37a61c55b979bc6d7cf0f2d6f47467d9d691f09602113a06c2320294279f671b6d9a
|
||||
EBUILD ibus-table-others-1.3.15.ebuild 652 BLAKE2B ad4523817d9746be6353a7dd2e8de030868f5693a41a4d65934bc3f4ba15848e81af16e6a3f8b5a1af91f7a0ee6e3f2afbd469cda6863b0840917c95d656329b SHA512 2de1d159aaeae49b9d517295c639b4b010cf862754416e8a0756067d8fb850f9a88c30d626ad971ec372562b9a14f7172f3b656ac8286e89ce6f1b6066a7a4c4
|
||||
EBUILD ibus-table-others-1.3.17.ebuild 654 BLAKE2B 6b601450b01de994fd0da8dc7877b18cfa22cd290547db4f313dd9f2c9fc0e4897e3b45b4e5e027fab5a3a3b73d99562cb2a67fa216937b1f45dea2eb96fb037 SHA512 6e6920280d5c3e294bce90d8b30c40a773d993726b58d88a63d17e35ffcd03e66dee735f5fb961fd1cf031b25bc0af548c1269d08c5ceb9a4254a6a66f651957
|
||||
MISC metadata.xml 642 BLAKE2B 0eb23a3102a282b9ff6e77a623f119ed41d1aff2afada1a32e4124de6b97ad4239bcba7738b9f3663f1277e70972314047a25c6da3a61d04ff7b0f6aa6caa896 SHA512 51b6e52fa107591db67c5ddddee30653475882125228c04ad37729eb7cf09fe9a39e016816177a2793a3bbb51a3001422b3f958c95832055867bfd98ea0367ba
|
||||
|
@ -1,5 +1,7 @@
|
||||
DIST ibus-table-1.17.0.tar.gz 1545826 BLAKE2B 33890dffca38c76513f49a54419805aff1b13e79b069cdb655401a44eeb44201c4cc60a29e9b341bd25dc9431a6e15e0481dc7cbd3ad3f02ae07cfcc6f811c81 SHA512 2df316dfe34eca80d9d4f843a92f3452a939cd14bca3bfa6c021b0bc6b759676711fefba68b9bf10dfe48c2f82890452e9ae015986b520281998f4d08f2e763b
|
||||
DIST ibus-table-1.17.1.tar.gz 1546204 BLAKE2B e6aa8fb66af08f504c032f9950c52ffc4eefd1633dfdb49e7c7eb4e38f9c103be1e845927a61418a1c1e028dcdf50ad8bd6d64640697506c15d82f7021282e64 SHA512 67168bb301820fa006208a15c3dc0f72480f8dd7bcd4097f0ee837fa44a1d04d68760f3061d655ec8a19ccb60aee2d6fd54bb5dd13668c61edb38b6e46f1b9ff
|
||||
DIST ibus-table-1.17.2.tar.gz 1547063 BLAKE2B 6ac449f48cc169c64df3e4c2d9ceac36378ee0303809c811eacd8e58c6c41a47af6bbe6176a544fd799faa9787b2d68589181aef3d07ef65d82159150ef8dc10 SHA512 f3b257d80e3e6a92b2aa3f48d43e104aae9a015b00bf7f6c1c146e5ea2c0d8d0bd7187225fdbb0c0ccb548c5659dfd05ea0137fa7306ceab82169b11cd8c2419
|
||||
EBUILD ibus-table-1.17.0.ebuild 1037 BLAKE2B 56ee9b86b1d4cbf9b9435df557cf46c169b0e89625465185fe7b23b246d76f81728d7ab9c9784d4191179103cf1170985e8b5e751b95b3c34e013d9d6da8616a SHA512 1cca3c1fb1da3a2e525e461f83e012ce6ad410011fc529c5fd2713889d16bcc828142ef9399b84d074d03c6578d9d74d84042348024604ec0c6c84321aaddc12
|
||||
EBUILD ibus-table-1.17.1.ebuild 1039 BLAKE2B bc1be34369393aa0c362dcbf47ceac2babe198141491bf4a16823ffa23c24e79df54b531d60aa648a4390c72074dc1338b3f2d5d284abb06dd309d506a42791c SHA512 89741c1cc4542783c14a75fafa3a66cfc2fffea1690276da27f42744ecb8d3a82dac4a57c3e7421de9b81a357503a9f41bd9d3f1ad6f339b59f10bd8bbffcfe5
|
||||
EBUILD ibus-table-1.17.2.ebuild 1039 BLAKE2B bc1be34369393aa0c362dcbf47ceac2babe198141491bf4a16823ffa23c24e79df54b531d60aa648a4390c72074dc1338b3f2d5d284abb06dd309d506a42791c SHA512 89741c1cc4542783c14a75fafa3a66cfc2fffea1690276da27f42744ecb8d3a82dac4a57c3e7421de9b81a357503a9f41bd9d3f1ad6f339b59f10bd8bbffcfe5
|
||||
MISC metadata.xml 315 BLAKE2B eeff056ce020201cb6e59f0f160232486fd94cc9de7cc90980155f9ef97988199d592b01190b13b013433853fbc25d9c4e5e29fe33fb74aa4239318cfac312fd SHA512 3329cc73468815ecf7f122ee8e8b81ca7295abcfeab95082841ae460c7ca76fdf2cb3d01b1548795bb525ce855052f512b8b2d77fa3afd302f41c156edf35de0
|
||||
|
@ -0,0 +1,55 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="8"
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
PYTHON_REQ_USE="sqlite(+)"
|
||||
|
||||
inherit gnome2-utils python-single-r1 xdg
|
||||
|
||||
DESCRIPTION="Tables engines for IBus"
|
||||
HOMEPAGE="https://github.com/ibus/ibus/wiki"
|
||||
SRC_URI="https://github.com/kaio/${PN}/releases/download/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="nls"
|
||||
RESTRICT="test"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep '
|
||||
app-i18n/ibus[python(+),${PYTHON_USEDEP}]
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
')
|
||||
virtual/libiconv
|
||||
nls? ( virtual/libintl )"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
src_prepare() {
|
||||
python_fix_shebang .
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable nls)
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
xdg_pkg_preinst
|
||||
gnome2_schemas_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
gnome2_schemas_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_pkg_postrm
|
||||
gnome2_schemas_update
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
https://bugs.gentoo.org/912776
|
||||
Adapted from https://src.fedoraproject.org/rpms/mozc/raw/aa3cba136c9a28e176d246f450465d3a8a4e8533/f/mozc-build-new-abseil.patch
|
||||
--- a/src/base/init_mozc.cc
|
||||
+++ b/src/base/init_mozc.cc
|
||||
@@ -87,7 +87,10 @@ std::string GetLogFilePathFromProgramName(const std::string &program_name) {
|
||||
void ParseCommandLineFlags(int argc, char **argv) {
|
||||
absl::flags_internal::ParseCommandLineImpl(
|
||||
argc, argv,
|
||||
+ #if defined(ABSL_LTS_RELEASE_VERSION) && ABSL_LTS_RELEASE_VERSION < 20230802
|
||||
+ // Abseil 20230802.0 does not use ArgvListAction
|
||||
absl::flags_internal::ArgvListAction::kRemoveParsedArgs,
|
||||
+ #endif
|
||||
// Suppress help messages invoked by --help and others.
|
||||
// Use UsageFlagsAction::kHandleUsage to enable it.
|
||||
absl::flags_internal::UsageFlagsAction::kIgnoreUsage,
|
@ -1,223 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="8"
|
||||
|
||||
CRATES="
|
||||
aho-corasick-0.7.18
|
||||
atty-0.2.13
|
||||
autocfg-1.1.0
|
||||
backtrace-0.3.37
|
||||
backtrace-sys-0.1.31
|
||||
base64-0.13.0
|
||||
bincode-1.3.3
|
||||
bitflags-1.3.2
|
||||
block-buffer-0.10.2
|
||||
boxfnonce-0.1.1
|
||||
bumpalo-3.10.0
|
||||
bytes-1.1.0
|
||||
c2-chacha-0.2.2
|
||||
cc-1.0.45
|
||||
cfg-if-0.1.9
|
||||
cfg-if-1.0.0
|
||||
clap-3.2.4
|
||||
clap_lex-0.2.2
|
||||
core-foundation-0.9.3
|
||||
core-foundation-sys-0.8.3
|
||||
cpufeatures-0.2.2
|
||||
crypto-common-0.1.3
|
||||
daemonize-0.4.1
|
||||
digest-0.10.3
|
||||
encoding_rs-0.8.20
|
||||
env_logger-0.7.1
|
||||
error-chain-0.11.0
|
||||
fastrand-1.7.0
|
||||
fnv-1.0.6
|
||||
foreign-types-0.3.2
|
||||
foreign-types-shared-0.1.1
|
||||
form_urlencoded-1.1.0
|
||||
futures-channel-0.3.21
|
||||
futures-core-0.3.21
|
||||
futures-io-0.3.21
|
||||
futures-sink-0.3.21
|
||||
futures-task-0.3.21
|
||||
futures-util-0.3.21
|
||||
generic-array-0.14.5
|
||||
getrandom-0.1.12
|
||||
h2-0.3.13
|
||||
hashbrown-0.11.2
|
||||
hermit-abi-0.1.19
|
||||
http-0.2.8
|
||||
http-body-0.4.5
|
||||
httparse-1.7.1
|
||||
httpdate-1.0.2
|
||||
humantime-1.3.0
|
||||
hyper-0.14.19
|
||||
hyper-tls-0.5.0
|
||||
idna-0.3.0
|
||||
indexmap-1.8.2
|
||||
instant-0.1.12
|
||||
ipnet-2.5.0
|
||||
itoa-0.4.4
|
||||
itoa-1.0.2
|
||||
js-sys-0.3.58
|
||||
json-0.12.4
|
||||
lazy_static-1.4.0
|
||||
libc-0.2.126
|
||||
log-0.4.11
|
||||
matches-0.1.8
|
||||
memchr-2.5.0
|
||||
mime-0.3.16
|
||||
mio-0.8.3
|
||||
native-tls-0.2.10
|
||||
num_cpus-1.13.1
|
||||
once_cell-1.12.0
|
||||
openssl-0.10.40
|
||||
openssl-macros-0.1.0
|
||||
openssl-probe-0.1.5
|
||||
openssl-sys-0.9.74
|
||||
os_str_bytes-6.1.0
|
||||
percent-encoding-2.2.0
|
||||
pin-project-lite-0.2.9
|
||||
pin-utils-0.1.0
|
||||
pkg-config-0.3.25
|
||||
ppv-lite86-0.2.5
|
||||
proc-macro2-1.0.39
|
||||
quick-error-1.2.3
|
||||
quote-1.0.2
|
||||
rand-0.7.2
|
||||
rand_chacha-0.2.1
|
||||
rand_core-0.5.1
|
||||
rand_hc-0.2.0
|
||||
redox_syscall-0.1.56
|
||||
redox_syscall-0.2.13
|
||||
regex-1.5.6
|
||||
regex-syntax-0.6.26
|
||||
remove_dir_all-0.5.2
|
||||
reqwest-0.11.11
|
||||
rustc-demangle-0.1.16
|
||||
rustc-hash-1.1.0
|
||||
ryu-1.0.0
|
||||
schannel-0.1.20
|
||||
security-framework-2.6.1
|
||||
security-framework-sys-2.6.1
|
||||
serde-1.0.137
|
||||
serde_derive-1.0.137
|
||||
serde_json-1.0.40
|
||||
serde_urlencoded-0.7.1
|
||||
sha1-0.10.1
|
||||
slab-0.4.2
|
||||
socket2-0.4.4
|
||||
strsim-0.10.0
|
||||
syn-1.0.96
|
||||
syslog-4.0.1
|
||||
tempfile-3.3.0
|
||||
termcolor-1.1.3
|
||||
textwrap-0.15.0
|
||||
thiserror-1.0.31
|
||||
thiserror-impl-1.0.31
|
||||
time-0.1.42
|
||||
tinyvec-1.6.0
|
||||
tinyvec_macros-0.1.0
|
||||
tokio-1.19.2
|
||||
tokio-native-tls-0.3.0
|
||||
tokio-util-0.7.3
|
||||
tower-service-0.3.1
|
||||
tracing-0.1.35
|
||||
tracing-core-0.1.27
|
||||
try-lock-0.2.2
|
||||
twoway-0.2.2
|
||||
typenum-1.15.0
|
||||
unchecked-index-0.2.2
|
||||
unicode-bidi-0.3.4
|
||||
unicode-ident-1.0.1
|
||||
unicode-normalization-0.1.22
|
||||
url-2.3.1
|
||||
vcpkg-0.2.15
|
||||
version_check-0.9.4
|
||||
want-0.3.0
|
||||
wasi-0.11.0+wasi-snapshot-preview1
|
||||
wasi-0.7.0
|
||||
wasm-bindgen-0.2.81
|
||||
wasm-bindgen-backend-0.2.81
|
||||
wasm-bindgen-futures-0.4.31
|
||||
wasm-bindgen-macro-0.2.81
|
||||
wasm-bindgen-macro-support-0.2.81
|
||||
wasm-bindgen-shared-0.2.81
|
||||
web-sys-0.3.58
|
||||
winapi-0.3.9
|
||||
winapi-i686-pc-windows-gnu-0.4.0
|
||||
winapi-util-0.1.5
|
||||
winapi-x86_64-pc-windows-gnu-0.4.0
|
||||
windows-sys-0.36.1
|
||||
windows_aarch64_msvc-0.36.1
|
||||
windows_i686_gnu-0.36.1
|
||||
windows_i686_msvc-0.36.1
|
||||
windows_x86_64_gnu-0.36.1
|
||||
windows_x86_64_msvc-0.36.1
|
||||
winreg-0.10.1
|
||||
"
|
||||
TESTDATA="${PN}-testdata-202110"
|
||||
|
||||
inherit cargo systemd
|
||||
|
||||
DESCRIPTION="Yet Another SKK server"
|
||||
HOMEPAGE="https://github.com/wachikun/yaskkserv2"
|
||||
SRC_URI="https://github.com/wachikun/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
|
||||
$(cargo_crate_uris ${CRATES})
|
||||
test? ( https://dev.gentoo.org/~hattya/distfiles/${TESTDATA}.tar.xz )"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
LICENSE="|| ( Apache-2.0 MIT )"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="dev-libs/openssl:0="
|
||||
RDEPEND="${DEPEND}
|
||||
app-i18n/skk-jisyo"
|
||||
BDEPEND="test? (
|
||||
app-emacs/ddskk
|
||||
app-i18n/yaskkserv
|
||||
)"
|
||||
|
||||
QA_FLAGS_IGNORED=".*"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -i "/^dictionary =/s|= .*|= ${EPREFIX}/usr/lib/${PN}/default.euc|" etc/${PN}.conf
|
||||
export OPENSSL_NO_VENDOR=true
|
||||
# skip network tests
|
||||
sed -i "s/^fn ${PN}.*_google_/#[ignore]\n&/" src/skk/test_unix/${PN}.rs
|
||||
}
|
||||
|
||||
src_test() {
|
||||
export YASKKSERV2_TEST_DIRECTORY="${T}"/${PN}
|
||||
mkdir -p "${YASKKSERV2_TEST_DIRECTORY}" || die
|
||||
cp -r "${WORKDIR}"/${TESTDATA}/* "${YASKKSERV2_TEST_DIRECTORY}" || die
|
||||
cargo_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cargo_src_install
|
||||
dodir /usr/sbin
|
||||
mv "${ED}"/usr/{,s}bin/${PN} || die
|
||||
rm "${ED}"/usr/bin/test_wrapper || die
|
||||
einstalldocs
|
||||
|
||||
keepdir /usr/lib/${PN}
|
||||
|
||||
insinto /etc
|
||||
doins etc/${PN}.conf
|
||||
|
||||
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
||||
newconfd "${FILESDIR}"/${PN}.confd ${PN}
|
||||
|
||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
"${ED}"/usr/bin/${PN}_make_dictionary --dictionary-filename "${ED}"/usr/lib/${PN}/default.euc "${EPREFIX}"/usr/share/skk/SKK-JISYO.L || die
|
||||
"${ED}"/usr/bin/${PN}_make_dictionary --dictionary-filename "${ED}"/usr/lib/${PN}/default.utf8 --utf8 "${EPREFIX}"/usr/share/skk/SKK-JISYO.L || die
|
||||
}
|
Binary file not shown.
@ -1,5 +1,5 @@
|
||||
DIST check-jsonschema-0.21.0.gh.tar.gz 214872 BLAKE2B 0ee013e379523e5a957e745d550c2014872eab9fc3281aad575f92abfada30b7e0853177bd06147b69a81100bf6b987b485342a087830845c32648efc1c7a9a0 SHA512 dd839a9bb104e1fc68e4a7507077dc991dfc9e840f785c4b7024f2838488eb8b8c6a8f7718f0f821981f5b6b23b1d67745948f48db55a0c589395cf43bfdd2a7
|
||||
DIST check-jsonschema-0.23.3.gh.tar.gz 229537 BLAKE2B a8a40ddc383f38096693a2079b73a8a8fe2ceed5d1e118e539957c205c500807518c0380aa18cae2524efdeda33987f057350ba73b7a699240706ff4e276eafc SHA512 14f9eb6b203e3aec6ca35f75304bd24fd5a09c2b89bcbbf69c22e0c0f44c587972015677498fef1a378683c77f94d9319450daccadddf5fecbe7c738dd16c726
|
||||
EBUILD check-jsonschema-0.21.0-r1.ebuild 1185 BLAKE2B 17cd12999fe1dac82e6b9e1ef55fd74797b511216d7b58b8ee1f1e45748d60498e1f525b744ff72590f7ebb788746aee5d04653a6a8fb4f2f5a351a9da95a128 SHA512 8361afbd0f191ca71dff79e5879711b5d4a330880cf2f8cb865b745f0c083cfb5d5340e7c71bf619a27989b9c9bebf0d911d3e10f53493798c9a0e3b792c9b6a
|
||||
EBUILD check-jsonschema-0.23.3.ebuild 1193 BLAKE2B bf3ab934675582f95f1c44a3d2dab26c1ceb427b613b6b1505b49b3695549f4f808fe42d0f0d420ee267462311d84b9cd5496ca43bd02fc6866ac8522f7703cc SHA512 8e11ed80aeb54256c61176e4b591a8755e67e65796820825632f2a5022fafea4493e2de5d89db85f8186ffc041f867832e7696efc1511c2fb1ee323c939247b9
|
||||
EBUILD check-jsonschema-0.23.3.ebuild 1192 BLAKE2B 5fc1b5cf79503b406f0b09e397b9ef306d05c61b4e7f8e2e4fa4bcbcb81e676e8e1f1c746215cd30f5e486259e3fe1f7da5bee8d1827cd50ee07e5a796a45177 SHA512 44e4a3f707f9d4f848da171dcffbd7c9fe2367a9a0a3df18fd75cc5c716c86b461cfe9726eb0dff22d3bc0489e30b27b3a59da10afcc0eb2ace087d9f1a63c4e
|
||||
MISC metadata.xml 403 BLAKE2B d0254150920ea63313734ad154391cf5d61176b56f53f26c2c8d8408ee571ce0fb4fb1383a6c63ec9f2542fdd66c35feee6b4d926f5cee3cf50253458305c346 SHA512 37cf237a2d7fdf5fe238e42a91d14d29fc01c807546a313b605cead57b50eff9a3fb2b66ed65c5aa019a727778356be659a0466cba5bc7f1b3a1bff8be8da42e
|
||||
|
@ -1,10 +1,10 @@
|
||||
AUX fastfetch-2.0.0-dont-fetch-yyjson.patch 843 BLAKE2B dc37cb21096ea415fa806265081f33fc48e735fe29b7ff5b742368aac6218bc9345145a81394d2936ca23c0e7fee05dd50a32ca3feb7182c3e11b8a833a6017d SHA512 c3a41cd0ed3b33b9ebc3bc9876c7db6ae9c71b8dfac7e92259a09372d059fcb032c6a34c10791758583b810de0f6db21c1ba8426e3611ae67ee97836329109cf
|
||||
DIST fastfetch-1.12.2.tar.gz 538194 BLAKE2B bc6badbc7f690dacbe1408479286a0d42ec687526f776ff4d2ec7b0eb767032e5781cbbe37778f4dc03a5d386979a9ae2aab84c466be997b82d9a9a6c81ea78f SHA512 a82a7c7ae365335c20d659a82215cf320c4c6b07ff127c4dad322a0a01f7ec57e34d229f4953108daadcd0d243c84f8504a3b4367df5e255e5a06e685fd6739a
|
||||
DIST fastfetch-2.0.0.tar.gz 663049 BLAKE2B 5836a04bd0cec14321810e5512d136b02b1aea68eb5a481a79426b9eef75dcf2c93008a6ac9b7877ce1a3b2758b4d53ddc52bd7b2fca0faad26834281f5da954 SHA512 bdd440130314b7865391b74105871842fb5241d858b5808a5e2e9091f1a2f7cdad4ff485d92bb6108dd4b3d09a847adbf4c90493623c974902d8d9bcf2abbc81
|
||||
DIST fastfetch-2.0.1.tar.gz 770261 BLAKE2B e3998bf4ad38d67d3831481d14378eea3097aaddf3956b1e962f91c573db30faca17ac1621b9a7b662bcca23fab654656336c9ec0c179f4f587e70986de5bc47 SHA512 c65bf027b58ddf6cde961a1cef0d147e3cdba3a4fd844de6b88639d556b84811ccfeb7e4601094e60309779232553b1387f255a612971bf0f05ed7cc0381f4a6
|
||||
DIST fastfetch-2.0.2.tar.gz 770569 BLAKE2B 154ef8ddc13cc9385d633a6813b3babaf7dd9b50acb2d04da9c71aac62e3c85f10bb47f94e7e781b2ff99a10ba7d1d5187876919e6c639ef67e8c30cbab8e80f SHA512 d77bfef0169276d815cf8134d23c2cdb91e4e40ef449644c817cc81caaa35e26672616fd52f157932450df142e9fd81c0e11551cbe0a936b066696a2823fd527
|
||||
EBUILD fastfetch-0.1.9999.ebuild 2964 BLAKE2B 273947170f50ecb9629efdf10027a7b6af5c98329470f97f7078e0082f8b128e9bf428c4d82b8df52a09d3b96fdc88d8c1bff79719838effaac43aacb32f7b00 SHA512 ead9d649523d9ec049bea90516a04f1fb2fc43618e4592f8faa8e0b309ac783e798baf0ccafc89ddd4a3cb23338f2544df65be4ca41f590048f53fc2d78d1028
|
||||
EBUILD fastfetch-0.2.9999.ebuild 2884 BLAKE2B cb3aba85dbd4ea7a8086d6bfd35ac053a6893f17cbbc8b916fa514f575c7407a0e68359b09d66243d52b4276d1d67f584eb41c46066542d5548610f4bc27b285 SHA512 40707f326072cff867587a0ba82f26ebd203920a3d2b4d9668f26ca9c0d4152a05555c2e6975fd1ecffa8ab8fea8a8cc4f975bf02a9113de781fd51969e3e5d8
|
||||
EBUILD fastfetch-1.12.2.ebuild 2838 BLAKE2B 1185a5c20a06bf6e6112f4cc8942eb10ff403f7db2a4edabc1264db19448cfd992da044619b767751bd3d25d1759a6e6a8440aa529e058226adfec8cbfc400b8 SHA512 47b8b945db6391ba18a7fd93c0a9c6d53ccf1d0ede37538dbcb5ed95975f3691bd3f87492860e5e61727aa020ba42acd18ef4e27ffa9b21dfaae10fea9e94752
|
||||
EBUILD fastfetch-2.0.0.ebuild 2964 BLAKE2B 273947170f50ecb9629efdf10027a7b6af5c98329470f97f7078e0082f8b128e9bf428c4d82b8df52a09d3b96fdc88d8c1bff79719838effaac43aacb32f7b00 SHA512 ead9d649523d9ec049bea90516a04f1fb2fc43618e4592f8faa8e0b309ac783e798baf0ccafc89ddd4a3cb23338f2544df65be4ca41f590048f53fc2d78d1028
|
||||
EBUILD fastfetch-2.0.1.ebuild 2930 BLAKE2B 191e9b4f8d03c1177434400513c120e9aa9bdec4eb49574cfda81c7d2e496665641e2e399d7a1b3b6e25368e4a2e74a5b64bca564aeb05e4ab96f24ddb976194 SHA512 edb5106bbc12ee018798c00affb5b72464091094439efc08377ef9686a3a88076df9f3744b2dfdb9d42f771c93205d57c06b4025fdb6f14c4d27ae885eda7b7e
|
||||
EBUILD fastfetch-2.0.2.ebuild 2930 BLAKE2B 191e9b4f8d03c1177434400513c120e9aa9bdec4eb49574cfda81c7d2e496665641e2e399d7a1b3b6e25368e4a2e74a5b64bca564aeb05e4ab96f24ddb976194 SHA512 edb5106bbc12ee018798c00affb5b72464091094439efc08377ef9686a3a88076df9f3744b2dfdb9d42f771c93205d57c06b4025fdb6f14c4d27ae885eda7b7e
|
||||
MISC metadata.xml 1159 BLAKE2B 967449a1aa6e5baae193e105181c750b35eba83ab0a9586e6ce461e158e59a1184f67d765e19ea3a4f0602b7be17f777fb2d30d11d123dae26163f7fc9440d57 SHA512 595cf9a0b99e97fcb4396807473545c4f59cb129013dfe0adc6885c60d7ea47e72cf4aef1df01f7bd8328ec6e89918980a2ecc69700923f099b1a7e573a83731
|
||||
|
@ -1,6 +1,4 @@
|
||||
AUX gramps-5.1.3-test_locale.patch 1195 BLAKE2B 1b1aeb08b90bff9db9d028499428efa60a16b48597bcf466c07a77e3f658c8550eca84b899047d1bc6e20eb26e8dfab9637ae7aced1b99167466ea6c51707132 SHA512 70daee9afdce0f939ad3cec094fb4004f5c162e6b49849f83486db5baec074a8673d7a6096a367279019712a11f0b40e827f6cb3019e7dc3cc6bad327fee35ec
|
||||
DIST gramps-5.1.5.tar.gz 17425167 BLAKE2B f07fcb84c28f1def84c5568da6ac38a78def8657a0ee010163cb7e0899dd94ebb1c851e2c9d207fd9725754363ac7243a66f0de6e0d9708270d2d43c90485212 SHA512 8e36e8da7cfb41cc0c77881993cfc212a15bf9775dad3c8be131889b70360117e023b6837b91dad28fc03198080290a08c8089856c753246ff14c7fc3bca38be
|
||||
DIST gramps-5.1.6.tar.gz 17429153 BLAKE2B fe94d80ff209e1f27ec1cfa533e916514336c1d367435e0a9da4b8309efbc9c047302a67ec24e28237eaead67ff63e76bd1384ac1e3df10e08ae98aca126566b SHA512 419bbfa54ca3bf33e71fd579c84a56eebe4afc78ccd50c23b2d62869684709ccbf373e8da0e65835d9fc21a29d2d144597d6cf8c425e14c91574535d4b1ab64d
|
||||
EBUILD gramps-5.1.5.ebuild 2910 BLAKE2B 23b626f1dbcb0b4076162b855a3adbb43ebd0d2124173be5df10fc0f79baec1d41dc4f954ca05b68d265010726fa6e308d8c45f859dd086c50709c00920ec836 SHA512 a4dba3514bf4cd44a3472de3741ea9ea97bd240a706aa9049152946485c61f1e737a1c4fcee083189a1ae0eaff298ebf704b812c10f6e40f1552c59c167f30ad
|
||||
EBUILD gramps-5.1.6-r1.ebuild 2156 BLAKE2B 13b504c32e687156be9da756b20063cc0a449f68ffcf08846cdac421ec268599a418c35e33b718d07671e081b9bfea3e0d0944141184c367bccc29795ef03b01 SHA512 48e4ea73dcdc1c099d9f029d8eb887409729a25568c70a7de5730de4e0580fd2ad2d9c7b3d65f9a6fbdc3871a28977e9e15e332918a830460c7b4de198062aca
|
||||
MISC metadata.xml 5703 BLAKE2B 1c4879fcccfb62b99140eff6e5059129bc75b0a6f5f6d55167981b0ca3476e286a786caec2452c5aa9690e287c7142e3e443edc7ef8ad1d6ea4002d37f624647 SHA512 c3c926d1da8d57f5dc3b9f0691299552aceeef437e01f9385a6555c5fcf1ffea82fd1f9e87f20e23bc54d7578e0819786f1d1bc59d633cc30bbd9e79f236f3b5
|
||||
EBUILD gramps-5.1.6-r1.ebuild 2155 BLAKE2B 61271d0bacbcb5d8b496d9ea1600a4bf39644fd090943256c9d54eb417cc0e5268b090cfb05c5d3098e9ed9cb3cd637d4af0197d821e91e54bc29195cb79c020 SHA512 d1f857f5a3d68cef31229c830a1352705cfaf7e31c4a2511c711bf814818d1e6cc597812ea8e0cc9fc55a0dd51194bb0b69833daf71770c6337072879c56eb28
|
||||
MISC metadata.xml 5599 BLAKE2B a7156f87c83c95d4205c25274e04ca063a8f2246301e62c6f7854a6bb585fc895481d9accb9c6c48e30c09ccc472c81193b2d1b514fe0b53a3681f182c9922ba SHA512 41089a951759e1a3aa67009681b9f1da3ecfb92d71afe003a6560ebe268b670b9ca58b5adb397830b6538d722a31771d5b2ad1ec015f154c7739870821257cc7
|
||||
|
@ -1,105 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
DISTUTILS_USE_SETUPTOOLS=no
|
||||
|
||||
inherit distutils-r1 xdg-utils
|
||||
|
||||
DESCRIPTION="Community genealogy program aiming to be both intuitive and feature-complete"
|
||||
HOMEPAGE="https://gramps-project.org/"
|
||||
SRC_URI="https://github.com/gramps-project/${PN}/archive/v${PV}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~x86"
|
||||
IUSE="berkdb exif geo postscript +rcs +reports spell test"
|
||||
|
||||
# Previously had: !berkdb? ( test ) combined w/ dev-python/bsddb3 dep only for py3.9
|
||||
# so now restricted entirely.
|
||||
# See also https://github.com/gramps-project/gramps/pull/1408.
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/pycairo[${PYTHON_USEDEP}]
|
||||
>=dev-python/pygobject-3.12:3[cairo,${PYTHON_USEDEP}]
|
||||
dev-python/pyicu[${PYTHON_USEDEP}]
|
||||
exif? ( >=media-libs/gexiv2-0.5[${PYTHON_USEDEP},introspection] )
|
||||
')
|
||||
gnome-base/librsvg:2
|
||||
>x11-libs/gtk+-3.14.8:3[introspection]
|
||||
x11-libs/pango[introspection]
|
||||
x11-misc/xdg-utils
|
||||
geo? ( >=sci-geosciences/osm-gps-map-1.1.0 )
|
||||
spell? ( app-text/gtkspell:3[introspection] )
|
||||
rcs? ( dev-vcs/rcs )
|
||||
reports? ( media-gfx/graphviz[postscript?] )
|
||||
"
|
||||
BDEPEND="test? ( ${RDEPEND}
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/jsonschema[${PYTHON_USEDEP}]
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
')
|
||||
)"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-5.1.3-test_locale.patch
|
||||
)
|
||||
|
||||
python_prepare_all() {
|
||||
# Install documentation to the proper location. This can't be done
|
||||
# easily with a patch because we substitute in the ${PF} variable,
|
||||
# and that changes with every revision.
|
||||
sed -i "s:share/doc/gramps:share/doc/${PF}:g" setup.py || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_configure_all() {
|
||||
DISTUTILS_ARGS=(
|
||||
--resourcepath=/usr/share
|
||||
--no-compress-manpages
|
||||
)
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# Gramps builds just fine out of tree but it confuses its test suite.
|
||||
# The following might be an ugly hack but at least it lets the tests
|
||||
# run properly until either I or upstream have come up with something
|
||||
# better. FIXME: test this when a new release comes out.
|
||||
rm -rf "${S}/build" && ln -s "${BUILD_DIR}" "${S}"/build || \
|
||||
die "Failed to symlink build directory to source directory"
|
||||
|
||||
# Set a sane default locale for the tests which do not explicitly set one.
|
||||
local -x LC_ALL=C.UTF-8
|
||||
|
||||
esetup.py test || die
|
||||
}
|
||||
|
||||
# Ugly hack to work around Bug #717922
|
||||
python_install() {
|
||||
local DISTUTILS_ARGS=(
|
||||
--resourcepath=/usr/share
|
||||
--no-compress-manpages
|
||||
build
|
||||
)
|
||||
distutils-r1_python_install
|
||||
echo -n "${EPREFIX}/usr/share" > "${D}$(python_get_sitedir)/gramps/gen/utils/resource-path" || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
@ -1,5 +1,8 @@
|
||||
AUX icdiff-1.9.5-tests.patch 761 BLAKE2B a1e837489ea14ea0a2ee88dd23294bf9dc6368fa052b5bf888ca1a37401903717792651833e751a8711c8b865ce4a038615ad4c23f91586af6b46511d28dfb52 SHA512 c1587ce221b7c1e9191b429c1b16c84bdc698e889e5f3c0ce722442adcdb836f2b7f38c193163ba5bc210ef31da4a3e3afd90ae44d3ad285ebe563993125f8cb
|
||||
AUX icdiff-2.0.6-tests.patch 1765 BLAKE2B e088a9d704ae90e12df17a35a6fbb2f65a55988348d69901f7817f8498e556a6e3d330f933a418b13ca70306908eafbf46cb24f812732a32e525b1b8b838b54a SHA512 c19f6593bc09929bcb6157198ecb5911f9af9a3b8e5812c46133a9fce8f2d1d436378b6eb5b01629bf30fac1e0049f60914a51ab243d92cf34571b0468bebb2b
|
||||
AUX icdiff-2.0.7-tests.patch 784 BLAKE2B e9551960101822173623eb411d67116d6691ceee687d102247ef01e960af4a5d66197edc91eec47828618cab65c0575886dd32be81f886548c68f87fd6f99ea2 SHA512 9c402168c6e87fa68eaa0bfdc7476fb42ea2e66488dd05bbe59713acba43d62db7639b3c831d4d34195091ee4b3720bf5418e8903b53d3da0991231f7b5191c4
|
||||
DIST icdiff-2.0.6.tar.gz 39715 BLAKE2B 931799040c158c522b3788941bddaef074a5e769cc56b6d80ca9515ee0c437e0ec0b7453c7409133c5567b98e7d41355e1d9f647d1939c78d07c2bf4c010fa5e SHA512 23ed93cc68ae44e661d61cef7e489249fc39e9f8fd18cac5551e89a713aef8cd2ecb37b0f301f543a4ba7003c74b5a311430ab8666760a76ee8441a4ac920ff5
|
||||
DIST icdiff-2.0.7.tar.gz 40150 BLAKE2B 54e8528a5e0fec305787a42657dc6f54849a1732509b231ecf948856f4e681ba75654bedf7bc964d96a2b1c2e95d672c837e1ebc55c9a291f572c91600a2e4aa SHA512 0fb3a8f91120ecd5dd55254fdea0f055bc46905c3b257efcd1b8b0b47927b2b2575b7255e3e260c97b76cd2f40548c8a3653a622a7a1aaac528a4cdae64a8b16
|
||||
EBUILD icdiff-2.0.6.ebuild 693 BLAKE2B 5507251e7bf057fd9342fd201a0b3697727347d705b53033ea0fe17ecffaa856126cc2c71d1016cfa67eeca6392ed0d26009047089de5ee5a83ed9025e6c83a5 SHA512 2de660d451e75f7a652ab2712e05d731b0a4661756669cd18aa9000fa64d705f018a9b9c14a51b12ee9d805e204d895342fad406b7318517aac36cc39ef4347a
|
||||
EBUILD icdiff-2.0.7.ebuild 693 BLAKE2B dcbdc93344a504bab496fc4def39d5525f7d435ce02e47f231bf0a30c1d1db3bd9c4bb3e33f31856ddb7234d6b30b20168239070752b17c25633c969f02f007b SHA512 eee62adb2eceb2a0de770c0c82a573b05e267d89064962fae2e4236d663f62f0cbab74d2ea9cc5a13f7ccbf40315049f2200cb6ed3d3a1b543c50c3843109085
|
||||
MISC metadata.xml 343 BLAKE2B a9942d59eb56cb6389a59b3d5c2995a5131f53cfe82ceabd2b608a57e9110066977b5eb1c7413f2a76a147c64a7580a4b75c76b2f03abd43d667b5a1d6aa8a23 SHA512 9b0da11632fa80fb598a5fe673cb15bdf3612ad9bd5cf84d9f5e2aa7217cd133039db509daabd6d98fac202c453b82ba40bd927401a346cf4c6039c47b45e697
|
||||
|
@ -0,0 +1,37 @@
|
||||
From 741d8b24bf7694d535b68fdbe23db6c33f4a5420 Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Pipping <sebastian@pipping.org>
|
||||
Date: Mon, 21 Aug 2023 23:52:20 +0200
|
||||
Subject: [PATCH] test.sh: Stop running flake8 and black
|
||||
|
||||
---
|
||||
test.sh | 14 --------------
|
||||
1 file changed, 14 deletions(-)
|
||||
|
||||
diff --git a/test.sh b/test.sh
|
||||
index 4fc09fb..fb22fb0 100755
|
||||
--- a/test.sh
|
||||
+++ b/test.sh
|
||||
@@ -213,20 +213,6 @@ function ensure_installed() {
|
||||
fi
|
||||
}
|
||||
|
||||
-ensure_installed "black"
|
||||
-echo 'Running black formatter...'
|
||||
-if ! black icdiff --quiet --line-length 79 --check; then
|
||||
- echo ""
|
||||
- echo 'Consider running `black icdiff --line-length 79`'
|
||||
- fail
|
||||
-fi
|
||||
-
|
||||
-ensure_installed "flake8"
|
||||
-echo 'Running flake8 linter...'
|
||||
-if ! flake8 icdiff; then
|
||||
- fail
|
||||
-fi
|
||||
-
|
||||
if ! $REGOLD; then
|
||||
echo PASS
|
||||
fi
|
||||
--
|
||||
2.41.0
|
||||
|
@ -0,0 +1,29 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
PYTHON_COMPAT=( python3_{9..11} pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Colourized diff that supports side-by-side diffing"
|
||||
HOMEPAGE="https://www.jefftk.com/icdiff"
|
||||
SRC_URI="https://github.com/jeffkaufman/${PN}/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-release-${PV}"
|
||||
|
||||
LICENSE="PSF-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/icdiff-1.9.5-tests.patch"
|
||||
"${FILESDIR}/icdiff-2.0.7-tests.patch"
|
||||
)
|
||||
|
||||
DOCS=(README.md ChangeLog)
|
||||
|
||||
python_test() {
|
||||
bash test.sh "${EPYTHON%.*}" || die "Tests failed with ${EPYTHON}"
|
||||
}
|
@ -1,6 +1,8 @@
|
||||
AUX no-more-secrets-0.3.3-respect-ldflags.patch 1424 BLAKE2B 22c17b3f816168ff1e9dbeff36da16221b018c78c6d213af26450c5c8d9150f98448e3e272db5a5ff7b17ca538d6dfc167c339e82ee2894df5a9228b0d4c050a SHA512 f08b50ebf89b9d2ee2c605b774d9f653b342175c2dff65476d174a9c27b7e5b2f860a0b34b5e20bd1a84c4a96a993afc30a4cfd3e08cafe01779b52c5fb6d8f0
|
||||
AUX no-more-secrets-9999-2018-10-25-respect-ldflags.patch 1492 BLAKE2B 9f65f7ca747cb044913f26070337031bb6a1d441a3aa2d1b3b9c745cb948e47482cce1500f58384968059e408429e2e6af43762f022197213e7c0bf67ab66c59 SHA512 50215e6003f262e27c1b58f12e70b7b2101e9cca39d48bc3056c4474219fcd6bd60fdc3408910d01981efb00318da5289cd5a2258868ae616761af969c0980b5
|
||||
DIST no-more-secrets-0.3.3.tar.gz 24713 BLAKE2B c47cc71e72c8bc10bfc27b382e22d1b808b1efa65f3355ce0b435490c1628e476824414541fd12c58c99b47822724bb8cb6cdf1a0b0edf05068e7400cfcef09a SHA512 d261c9d2f7617149815627a4b6817aa5b483045cefbad148038ac9f13bc231b571034791aaaabc2ce9ab112cecc6015efc74167955099b8b57d1810f81210b31
|
||||
DIST no-more-secrets-1.0.1.tar.gz 25251 BLAKE2B 6508c65281c36effff7ccba80ad47b76c0f6c509bb4aeb4ffb35adef0b25612991e9923737128c1581a28b20bf2338cef7315b60ed8a637ea9b499d390193299 SHA512 436f092af23252d043f9b790f2e92fdfe0316fb07da66d7c35eda3967aeeab48a402ee6ca8b3630677798f74846f375ca071d828d0d5493f58418366dfc3366f
|
||||
EBUILD no-more-secrets-0.3.3.ebuild 709 BLAKE2B eb76dc2153b180b0324a559dcefcf5c50de32a95cc896d4f6d66d0cc809de29bd24ff95757ab8083ef56e5f0c68a86b7a860d780fa54167d59787fc9535d2128 SHA512 d108dd35f47573a22d61f7a90b71ae7c5bbdd424c2bfc9e21e8e1469d22e06ded601feab880d8b6280b89452a9b7dd45ba0a08bae47c433c1243415e876b2abc
|
||||
EBUILD no-more-secrets-9999.ebuild 729 BLAKE2B 95e3238654c9425a1adc01e5913cff9df11af1a1d6d4e3c58a0a77d33cfea6b82e442ee5f422d12cc0cfc22735c516f2582be18dee8c86c91c50f7e0f963acab SHA512 7f6d742a634de914615c49eb4462fc5f3c122dfa1464024f82d458a52a7380a8d1389d154cf72651e1021d900c4164e5412db3a8dfec2f460a3f8dae9d610748
|
||||
EBUILD no-more-secrets-1.0.1.ebuild 742 BLAKE2B a5d2aa1c157ea7ffb6c45872c5bf6dddc6ff4bac0303c886b1fc05cf0650950878fb3b42d080e0c72a775810ace4f3c60824e1400cec6193c1889f53d8d5cbe2 SHA512 db48ed890a8313dca4990cfb632caf5b6c7ea50916a7e15be41d1711cbff8c1538fe53923f2f621b320ce032ae86bca014ef12ce2aafb59bf5238a4fd098567f
|
||||
EBUILD no-more-secrets-9999.ebuild 742 BLAKE2B a5d2aa1c157ea7ffb6c45872c5bf6dddc6ff4bac0303c886b1fc05cf0650950878fb3b42d080e0c72a775810ace4f3c60824e1400cec6193c1889f53d8d5cbe2 SHA512 db48ed890a8313dca4990cfb632caf5b6c7ea50916a7e15be41d1711cbff8c1538fe53923f2f621b320ce032ae86bca014ef12ce2aafb59bf5238a4fd098567f
|
||||
MISC metadata.xml 337 BLAKE2B dc9cb4f67c7cbf5802a3a6c6234d3606e9ea344fa265f9036de5f80bfd44aa495ba9237f6d54ebaafce376a4fc122a29b877e39035135c6fc2a68284787bef84 SHA512 d1654156a95759e042eca3dfe336cb8e70f0be672db54fe5598fe38354d00196d9af4667fb48aa2f660afc1a50922a916a86777a116b00266f25d28e1ed2d844
|
||||
|
@ -0,0 +1,30 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
if [[ ${PV} == *9999 ]] ; then
|
||||
EGIT_REPO_URI="https://github.com/bartobri/no-more-secrets.git"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://github.com/bartobri/no-more-secrets/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Recreate decrypting text from 1992 movie 'Sneakers'"
|
||||
HOMEPAGE="https://github.com/bartobri/no-more-secrets"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT=0
|
||||
|
||||
BDEPEND=""
|
||||
DEPEND="sys-libs/ncurses:0="
|
||||
RDEPEND=""
|
||||
|
||||
PATCHES=( "${FILESDIR}"/no-more-secrets-9999-2018-10-25-respect-ldflags.patch )
|
||||
|
||||
src_compile() {
|
||||
CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" emake all
|
||||
}
|
@ -1,6 +1,4 @@
|
||||
AUX ola-0.10.8-python_version_check.patch 953 BLAKE2B 6cc60d99a8f6c709e335c291fce0a887eb9aad94325887f8561699b4e1a8310ae82b15f9c21da530cc860375cf1c2fa6965c090bd4d57b09cf7ba0168ecc30c0 SHA512 fc979e59bc3ca60a52df1e8dec115477b26de91cd18bc762d27f5f8e2859bfb5c82889975523cc15f722932fab525ca19b39b56f4b03728310e5fda7dfefe6be
|
||||
DIST ola-0.10.8.tar.gz 2552023 BLAKE2B b4fa7e36e2b907e8f0ea16ef089607fc223afc543752a03740fd1d525062ea676d2f392bb623804543827d6f5ac6078c469a3edcb4321bca9a454b1c219f9c89 SHA512 78ef8cc7f8e8d0b1d15bbb305d99a589fce82e07e89ca3bf2466bef8cdc1b18f590fc8dcbf29fc5af2349e0721c832f525fd665d62498907554ee742d79cd3d2
|
||||
AUX ola-0.10.9-nullptr.patch 7412 BLAKE2B f03facd9b48493a47d35744d33edab8fbae87e0440053cd7f1610af40fae1a4d56b6a20beb2b3ca8b4fb64d023795ca9e12fd8149d69a150bc105f9978eaddbb SHA512 669ab2bab44cbab87f8c99f92799faa1422a0d0aaeb7da3c8b2dcdb71f47515e93f773b8fab372c66aa47a23797fce0725722ca25354e868ae2926510282058d
|
||||
DIST ola-0.10.9.tar.gz 2578760 BLAKE2B 8cace370b21788d0fe65e56d33fdc9436a5103837d370e3e7e07b43318d4ec3b29536b55c4b117f515a4698ebab88f58718759a0cf9a00f79d0b839e7a79d581 SHA512 e8e2f4249d6e1f63f6c36ae548d9e3a82080f0da82829f923ba6b4d63685fb89f9baccf4588fd6fcbf756708d91e27d022c0d623e7c03c84ec058e7dc7c46bdf
|
||||
EBUILD ola-0.10.8.ebuild 2430 BLAKE2B add36a82646cd0af033362efc14d0094ae293b8226a203c8f57eb5973034273bd3844d0b842681e947f4da9d7735859c86ccd1b941671cd39124583d8622c80a SHA512 9117910d63f198cda703fb35f5056ce197c0a610c7207e13f10fef5783ed988edacac9d8c30321156b593212537c55e910f8432bc1f254726667505ffb877436
|
||||
EBUILD ola-0.10.9.ebuild 2362 BLAKE2B a450424f36da44e80cf1649dcd970579515181868f853d34f9e9aa739e8d5cba8cb400055248886751fd2911747727704b413c11698d74cd5b79f3295944af4f SHA512 309d9acdb834e88d877f381cef6c1cb8ab9b366c031f63a3d5b8da076bbe7022020a9fa0f2a5e883f083459c07ccf2e24ffbadea0b31dac3ed3cd782707eea5f
|
||||
EBUILD ola-0.10.9-r1.ebuild 2458 BLAKE2B a2d2a23b83b6a99fec7ca5fb922b7eedf9f30fa67f921736d0e684082d1c3d014cda60f4407472e346aa079d7145db94b5df2a7fff6f4800b6ccae886ee5be07 SHA512 dce199b01beb5f239ec1aa318c8a98a63ddae8c5df4395b3e4d76d28b77d8781ec3dc0a1a015f900a836c8f7d2f1ff8be034a99e69b95e4e919e72dbdce992aa
|
||||
MISC metadata.xml 1012 BLAKE2B 181177e538c6cdc37b3ba630b3bd3cffd1701e4f674cd51c6032c3b0367c11a0090482055328961e150203f47a1662597e2d0164c65c12662ce3ae2407db5a98 SHA512 01e6e96741b65a895229e7626e6fbfc51132d7b841c597933ea7055c302369264d014da1ff9c9bbad014c1cb812bb43d120a1d40c473c40eef6353ed4bfafc11
|
||||
|
@ -1,31 +0,0 @@
|
||||
--- a/python/ola/OlaClient.py
|
||||
+++ b/python/ola/OlaClient.py
|
||||
@@ -952,7 +952,7 @@
|
||||
controller = SimpleRpcController()
|
||||
request = Ola_pb2.DmxData()
|
||||
request.universe = universe
|
||||
- if sys.version >= '3.2':
|
||||
+ if sys.version_info[:3] >= (3,2):
|
||||
request.data = data.tobytes()
|
||||
else:
|
||||
request.data = data.tostring()
|
||||
--- a/python/ola/PidStore.py
|
||||
+++ b/python/ola/PidStore.py
|
||||
@@ -645,7 +645,7 @@
|
||||
(self.name, self.min))
|
||||
|
||||
try:
|
||||
- if sys.version >= '3.2':
|
||||
+ if sys.version_info[:3] >= (3,2):
|
||||
data = struct.unpack('%ds' % arg_size, bytes(arg, 'utf8'))
|
||||
else:
|
||||
data = struct.unpack('%ds' % arg_size, arg)
|
||||
@@ -668,7 +668,7 @@
|
||||
except struct.error as e:
|
||||
raise UnpackException(e)
|
||||
|
||||
- if sys.version >= '3.2':
|
||||
+ if sys.version_info[:3] >= (3,2):
|
||||
return value[0].rstrip(b'\x00').decode('utf-8')
|
||||
else:
|
||||
return value[0].rstrip(b'\x00')
|
@ -0,0 +1,214 @@
|
||||
--- a/common/web/JsonTest.cpp
|
||||
+++ b/common/web/JsonTest.cpp
|
||||
@@ -560,7 +560,7 @@
|
||||
#ifdef __FreeBSD__
|
||||
OLA_ASSERT_EQ(reinterpret_cast<JsonValue*>(0),
|
||||
#else
|
||||
- OLA_ASSERT_EQ(reinterpret_cast<JsonValue*>(NULL),
|
||||
+ OLA_ASSERT_EQ(static_cast<JsonValue*>(NULL),
|
||||
#endif // __FreeBSD__
|
||||
string1.LookupElement(invalid_pointer));
|
||||
|
||||
@@ -580,7 +580,7 @@
|
||||
#ifdef __FreeBSD__
|
||||
OLA_ASSERT_EQ(reinterpret_cast<JsonValue*>(0),
|
||||
#else
|
||||
- OLA_ASSERT_EQ(reinterpret_cast<JsonValue*>(NULL),
|
||||
+ OLA_ASSERT_EQ(static_cast<JsonValue*>(NULL),
|
||||
#endif // __FreeBSD__
|
||||
object.LookupElement(invalid_pointer));
|
||||
|
||||
@@ -605,7 +605,7 @@
|
||||
#ifdef __FreeBSD__
|
||||
OLA_ASSERT_EQ(reinterpret_cast<JsonValue*>(0),
|
||||
#else
|
||||
- OLA_ASSERT_EQ(reinterpret_cast<JsonValue*>(NULL),
|
||||
+ OLA_ASSERT_EQ(static_cast<JsonValue*>(NULL),
|
||||
#endif // __FreeBSD__
|
||||
array->LookupElement(invalid_pointer));
|
||||
|
||||
@@ -619,14 +619,14 @@
|
||||
#ifdef __FreeBSD__
|
||||
OLA_ASSERT_EQ(reinterpret_cast<JsonValue*>(0),
|
||||
#else
|
||||
- OLA_ASSERT_EQ(reinterpret_cast<JsonValue*>(NULL),
|
||||
+ OLA_ASSERT_EQ(static_cast<JsonValue*>(NULL),
|
||||
#endif // __FreeBSD__
|
||||
array->LookupElement(one_past_last));
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
OLA_ASSERT_EQ(reinterpret_cast<JsonValue*>(0),
|
||||
#else
|
||||
- OLA_ASSERT_EQ(reinterpret_cast<JsonValue*>(NULL),
|
||||
+ OLA_ASSERT_EQ(static_cast<JsonValue*>(NULL),
|
||||
#endif // __FreeBSD__
|
||||
array->LookupElement(invalid));
|
||||
|
||||
--- a/ola/AutoStart.cpp
|
||||
+++ b/ola/AutoStart.cpp
|
||||
@@ -113,7 +113,7 @@
|
||||
#ifdef __FreeBSD__
|
||||
reinterpret_cast<char*>(0));
|
||||
#else
|
||||
- reinterpret_cast<char*>(NULL));
|
||||
+ static_cast<char*>(NULL));
|
||||
#endif // __FreeBSD__
|
||||
OLA_WARN << "Failed to exec: " << strerror(errno);
|
||||
_exit(1);
|
||||
--- a/olad/plugin_api/UniverseTest.cpp
|
||||
+++ b/olad/plugin_api/UniverseTest.cpp
|
||||
@@ -635,7 +635,7 @@
|
||||
#ifdef __FreeBSD__
|
||||
reinterpret_cast<const RDMResponse*>(0)));
|
||||
#else
|
||||
- reinterpret_cast<const RDMResponse*>(NULL)));
|
||||
+ static_cast<const RDMResponse*>(NULL)));
|
||||
#endif // __FreeBSD__
|
||||
|
||||
// ok, now try something that returns a response from the port
|
||||
@@ -661,7 +661,7 @@
|
||||
#ifdef __FreeBSD__
|
||||
reinterpret_cast<const RDMResponse*>(0)));
|
||||
#else
|
||||
- reinterpret_cast<const RDMResponse*>(NULL)));
|
||||
+ static_cast<const RDMResponse*>(NULL)));
|
||||
#endif // __FreeBSD__
|
||||
|
||||
// now try a broadcast fan out
|
||||
@@ -694,7 +694,7 @@
|
||||
#ifdef __FreeBSD__
|
||||
reinterpret_cast<const RDMResponse*>(0)));
|
||||
#else
|
||||
- reinterpret_cast<const RDMResponse*>(NULL)));
|
||||
+ static_cast<const RDMResponse*>(NULL)));
|
||||
#endif // __FreeBSD__
|
||||
|
||||
// now confirm that if one of the ports fails to send, we see this response
|
||||
@@ -722,7 +722,7 @@
|
||||
#ifdef __FreeBSD__
|
||||
reinterpret_cast<const RDMResponse*>(0)));
|
||||
#else
|
||||
- reinterpret_cast<const RDMResponse*>(NULL)));
|
||||
+ static_cast<const RDMResponse*>(NULL)));
|
||||
#endif // __FreeBSD__
|
||||
|
||||
// DUB responses are slightly different
|
||||
@@ -746,7 +746,7 @@
|
||||
#ifdef __FreeBSD__
|
||||
reinterpret_cast<const RDMResponse*>(0)));
|
||||
#else
|
||||
- reinterpret_cast<const RDMResponse*>(NULL)));
|
||||
+ static_cast<const RDMResponse*>(NULL)));
|
||||
#endif // __FreeBSD__
|
||||
|
||||
// now check that we still get a RDM_DUB_RESPONSE even if one port returns an
|
||||
@@ -767,7 +767,7 @@
|
||||
#ifdef __FreeBSD__
|
||||
reinterpret_cast<const RDMResponse*>(0)));
|
||||
#else
|
||||
- reinterpret_cast<const RDMResponse*>(NULL)));
|
||||
+ static_cast<const RDMResponse*>(NULL)));
|
||||
#endif // __FreeBSD__
|
||||
|
||||
// and the same again but the second port returns
|
||||
@@ -788,7 +788,7 @@
|
||||
#ifdef __FreeBSD__
|
||||
reinterpret_cast<const RDMResponse*>(0)));
|
||||
#else
|
||||
- reinterpret_cast<const RDMResponse*>(NULL)));
|
||||
+ static_cast<const RDMResponse*>(NULL)));
|
||||
#endif // __FreeBSD__
|
||||
|
||||
// now the first port returns a RDM_TIMEOUT
|
||||
@@ -808,7 +808,7 @@
|
||||
#ifdef __FreeBSD__
|
||||
reinterpret_cast<const RDMResponse*>(0)));
|
||||
#else
|
||||
- reinterpret_cast<const RDMResponse*>(NULL)));
|
||||
+ static_cast<const RDMResponse*>(NULL)));
|
||||
#endif // __FreeBSD__
|
||||
|
||||
// finally if neither ports support the DUB, we should return that
|
||||
@@ -828,7 +828,7 @@
|
||||
#ifdef __FreeBSD__
|
||||
reinterpret_cast<const RDMResponse*>(0)));
|
||||
#else
|
||||
- reinterpret_cast<const RDMResponse*>(NULL)));
|
||||
+ static_cast<const RDMResponse*>(NULL)));
|
||||
#endif // __FreeBSD__
|
||||
|
||||
universe->RemovePort(&port1);
|
||||
--- a/plugins/spi/SPIOutputTest.cpp
|
||||
+++ b/plugins/spi/SPIOutputTest.cpp
|
||||
@@ -160,7 +160,7 @@
|
||||
OLA_ASSERT_EQ(5u, backend.Writes(0));
|
||||
|
||||
// Check nothing changed on the other output.
|
||||
- OLA_ASSERT_EQ(reinterpret_cast<const uint8_t*>(NULL),
|
||||
+ OLA_ASSERT_EQ(static_cast<const uint8_t*>(NULL),
|
||||
backend.GetData(1, &length));
|
||||
OLA_ASSERT_EQ(0u, backend.Writes(1));
|
||||
}
|
||||
@@ -210,7 +210,7 @@
|
||||
OLA_ASSERT_EQ(3u, backend.Writes(0));
|
||||
|
||||
// Check nothing changed on the other output.
|
||||
- OLA_ASSERT_EQ(reinterpret_cast<const uint8_t*>(NULL),
|
||||
+ OLA_ASSERT_EQ(static_cast<const uint8_t*>(NULL),
|
||||
backend.GetData(1, &length));
|
||||
OLA_ASSERT_EQ(0u, backend.Writes(1));
|
||||
}
|
||||
@@ -265,7 +265,7 @@
|
||||
OLA_ASSERT_EQ(4u, backend.Writes(0));
|
||||
|
||||
// Check nothing changed on the other output.
|
||||
- OLA_ASSERT_EQ(reinterpret_cast<const uint8_t*>(NULL),
|
||||
+ OLA_ASSERT_EQ(static_cast<const uint8_t*>(NULL),
|
||||
backend.GetData(1, &length));
|
||||
OLA_ASSERT_EQ(0u, backend.Writes(1));
|
||||
}
|
||||
@@ -312,7 +312,7 @@
|
||||
OLA_ASSERT_DATA_EQUALS(EXPECTED4, arraysize(EXPECTED4), data, length);
|
||||
|
||||
// Check nothing changed on the other output.
|
||||
- OLA_ASSERT_EQ(reinterpret_cast<const uint8_t*>(NULL),
|
||||
+ OLA_ASSERT_EQ(static_cast<const uint8_t*>(NULL),
|
||||
backend.GetData(1, &length));
|
||||
OLA_ASSERT_EQ(0u, backend.Writes(1));
|
||||
}
|
||||
@@ -371,7 +371,7 @@
|
||||
OLA_ASSERT_EQ(4u, backend.Writes(0));
|
||||
|
||||
// Check nothing changed on the other output.
|
||||
- OLA_ASSERT_EQ(reinterpret_cast<const uint8_t*>(NULL),
|
||||
+ OLA_ASSERT_EQ(static_cast<const uint8_t*>(NULL),
|
||||
backend.GetData(1, &length));
|
||||
OLA_ASSERT_EQ(0u, backend.Writes(1));
|
||||
}
|
||||
@@ -421,7 +421,7 @@
|
||||
OLA_ASSERT_DATA_EQUALS(EXPECTED4, arraysize(EXPECTED4), data, length);
|
||||
|
||||
// Check nothing changed on the other output.
|
||||
- OLA_ASSERT_EQ(reinterpret_cast<const uint8_t*>(NULL),
|
||||
+ OLA_ASSERT_EQ(static_cast<const uint8_t*>(NULL),
|
||||
backend.GetData(1, &length));
|
||||
OLA_ASSERT_EQ(0u, backend.Writes(1));
|
||||
}
|
||||
@@ -517,7 +517,7 @@
|
||||
|
||||
// test6
|
||||
// Check nothing changed on the other output.
|
||||
- OLA_ASSERT_EQ(reinterpret_cast<const uint8_t*>(NULL),
|
||||
+ OLA_ASSERT_EQ(static_cast<const uint8_t*>(NULL),
|
||||
backend.GetData(1, &length));
|
||||
OLA_ASSERT_EQ(0u, backend.Writes(1));
|
||||
|
||||
@@ -707,7 +707,7 @@
|
||||
|
||||
// test6
|
||||
// Check nothing changed on the other output.
|
||||
- OLA_ASSERT_EQ(reinterpret_cast<const uint8_t*>(NULL),
|
||||
+ OLA_ASSERT_EQ(static_cast<const uint8_t*>(NULL),
|
||||
backend.GetData(1, &length));
|
||||
OLA_ASSERT_EQ(0u, backend.Writes(1));
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue