diff --git a/dev-python/augpathlib/Manifest b/dev-python/augpathlib/Manifest index 7dfa5964..79252a5a 100644 --- a/dev-python/augpathlib/Manifest +++ b/dev-python/augpathlib/Manifest @@ -1,6 +1,7 @@ DIST augpathlib-0.0.1.tar.gz 41402 BLAKE2B c1dbd6fbf5b5024ab4dea068b832d0e717d95585e9d1d122bea08570766e02284a6ca08358dd4a05e0ad623acfdf519da2d717417c94ae7b19c22933575674ed SHA512 6509b9c51fb04ee803b7fec1c506bf115039a56dc9c6f6dd8f01c651a3f536585b0e6ab88c50f9250d0cbcc94dcc7e0b8521c0fb5c1d8ea91a54c4fac3df2a96 DIST augpathlib-0.0.10.tar.gz 53906 BLAKE2B 6d8218437df382217644712f6d9c39896c0ef10fbebbeecee6d2b2b20665fbeab12ffbbdcf0508ce888c76b7a6f26f3cea7a011a359719d24f1622f859e7f4a0 SHA512 403ca07abfaab120933524a4c90f1da10834bcc34c78243022a313604ec8c706fa374728b740c5d08f00cd117100d3eb1b70c06c04f012666407de206b448e8c DIST augpathlib-0.0.11.tar.gz 54320 BLAKE2B 7c228499657a71111740f70cdb5b6378414d31ceaef8629bcb0cc9b6178c0154114fbb2c31c7516e9257645938b0bf52d5a852ae700fcffeb17507cdb7ef29a0 SHA512 f393c6b815a33b384feb83d2e4b08c36a867510e25bd9760be316da5092abc26df833ef83b22b858c51ea2297f0c404f2cdc4103bfeb0e289896d0cd29c9cd12 +DIST augpathlib-0.0.12.tar.gz 56485 BLAKE2B 618f68262635866872264b6044f0783cecaa52f2f736e6ff229325a6d899c7622e42595e2e7a2c9006ccd4724744161d123c5978f19d0bff4c680115197ced1a SHA512 d2d89ffa2a8672d1637735baf9e8d2057c8184a42795bc28acc60e84f2de11f9f3b53867c347e9dd879c59ca25d150fd1140173974d53237a835e80a54dc4898 DIST augpathlib-0.0.2.tar.gz 48480 BLAKE2B 18790af38a7440d05898050ecbfc5cbe50f70a9211c30a4cea0cd0c7f04e1a90067d2175513ef2bd0b12871a0121301a3a072a99768bc31489e414a95c921bd2 SHA512 05a0bbe1cdce25e9c82be68b4c141e0aed78fd19bcd48cc657af65c4a44b6ccb71cf52535c614dc2f1b9ee458d8528d5b10510098656506e3c7bc7d3a99c9481 DIST augpathlib-0.0.3.tar.gz 52271 BLAKE2B d9896331de780c9cf5898fe30a8efa0276bedeb25101b0b5135e02a073ff110e2ef9834bbb92ef72f83d426d618e6eff7c2993949df65d0d5f7acb05b5eecc7b SHA512 8fb91f4945c1084568e65a34c33e29338f7a2fc47a52e419f69a751176775f612b29aaed4771e5178088eeaa696a8f1c3ff52a5082769b09ba5022f9d0ce9ef3 DIST augpathlib-0.0.4.tar.gz 52764 BLAKE2B 555ce9b234f142dc9c734854c6d6369102fcf1bec52891181b155b66c9d7ecb9a7f0adf8d552d9f6ea2de982bcad2d5f468bfc6e96059d1fcedf32a0f378ba18 SHA512 21a8b8c85ab827203d67c558bfa30a166ba3d373731a901d0776543c63dd9f29b44736dd4e074c699cdf480d094edcb7ad977345ad98d35c51332dbd8e32c0f7 @@ -11,6 +12,7 @@ DIST augpathlib-0.0.9.tar.gz 54059 BLAKE2B 1741d856dd377cc89653c22dd0a3cc999c203 EBUILD augpathlib-0.0.1.ebuild 776 BLAKE2B 737c379ba01be7b997709f7c6753da449d83f49b742873016c3d9300ac0720298b45b1546ebde04c39475f0247b385e5deed8cca520c9e507b56caedcaa5ca84 SHA512 86287c34548e27063e866b79edc8eb3bfd5bbbdeb831d64a40a50281cb7f8ad603db2dd28b6bf663ede679f4437832f9552c1cbf89b22d4306778938ddad9fe9 EBUILD augpathlib-0.0.10.ebuild 1509 BLAKE2B 570999bbb59dbb3ebffbb2a6de4d90ec80266f2bff5de32ec27c9b87197f0d430f66373af058997c0a008fd3b927be42893201161326f5fdbeb02fa0d26e8968 SHA512 bcdfcc28033fff571de473597302d4ac3feeb62305aab634b3ed61c42a6044439d05f59a882db0ee3068190ee44655cdcb9b04a7d5a473a361955c75381776d0 EBUILD augpathlib-0.0.11.ebuild 1509 BLAKE2B 570999bbb59dbb3ebffbb2a6de4d90ec80266f2bff5de32ec27c9b87197f0d430f66373af058997c0a008fd3b927be42893201161326f5fdbeb02fa0d26e8968 SHA512 bcdfcc28033fff571de473597302d4ac3feeb62305aab634b3ed61c42a6044439d05f59a882db0ee3068190ee44655cdcb9b04a7d5a473a361955c75381776d0 +EBUILD augpathlib-0.0.12.ebuild 1516 BLAKE2B f30e5b5e5be80a1926d6b12daa0b61307641e96b9caf7b6f5c9e8f2be2cbf46ecf9413e94a48b3d4430d17f3a764b942b318ca2bff3666e09e8f90195bbc406f SHA512 232a014135802dfe290b16ab5493adc8636f60c173514fce86568dc687c820647fbc265cc8742aa62bbd8c7d5a50e54b357f8786d6a3c6e9c2a933a7f04a2fa6 EBUILD augpathlib-0.0.2.ebuild 1600 BLAKE2B 442b0a5e458fd8bd0b75afd19df80cdab0765802435ddf0abc5665ad7a7cd5e707ca597c67ed3ef245c9030b341e2d9eb4da4f9e2fabce9c7d024a56e6382b5b SHA512 427f16d687fca416be366b21c5c62c56cc546e9434a3bfe9149d6c7ef11aca2541dfd01399a97a4976b95e86f0c010af195e0bb7da21242d38d97d217a743ec6 EBUILD augpathlib-0.0.3-r1.ebuild 1508 BLAKE2B bcc1dcc1578a8b588964d1ddfd482a73a84f948432741d0ce5210bc3344d64f74847ff1183b4b51265216b14ed61280a23a43505b32620ede253567e5f11ab64 SHA512 88d5c4950c98243f9d2194463dc4692dcf07f4dd24ab59b5d16ae24a01bda15e91c3ab6ce77cd8c5c6c64c8debbf419a593ef29fb4e7ef7b78aee3a3452a276e EBUILD augpathlib-0.0.4-r1.ebuild 1508 BLAKE2B bcc1dcc1578a8b588964d1ddfd482a73a84f948432741d0ce5210bc3344d64f74847ff1183b4b51265216b14ed61280a23a43505b32620ede253567e5f11ab64 SHA512 88d5c4950c98243f9d2194463dc4692dcf07f4dd24ab59b5d16ae24a01bda15e91c3ab6ce77cd8c5c6c64c8debbf419a593ef29fb4e7ef7b78aee3a3452a276e @@ -18,4 +20,4 @@ EBUILD augpathlib-0.0.5.ebuild 1509 BLAKE2B 72f0983645818c291852f796c179624db2ee EBUILD augpathlib-0.0.7.ebuild 1509 BLAKE2B 570999bbb59dbb3ebffbb2a6de4d90ec80266f2bff5de32ec27c9b87197f0d430f66373af058997c0a008fd3b927be42893201161326f5fdbeb02fa0d26e8968 SHA512 bcdfcc28033fff571de473597302d4ac3feeb62305aab634b3ed61c42a6044439d05f59a882db0ee3068190ee44655cdcb9b04a7d5a473a361955c75381776d0 EBUILD augpathlib-0.0.8.ebuild 1509 BLAKE2B 570999bbb59dbb3ebffbb2a6de4d90ec80266f2bff5de32ec27c9b87197f0d430f66373af058997c0a008fd3b927be42893201161326f5fdbeb02fa0d26e8968 SHA512 bcdfcc28033fff571de473597302d4ac3feeb62305aab634b3ed61c42a6044439d05f59a882db0ee3068190ee44655cdcb9b04a7d5a473a361955c75381776d0 EBUILD augpathlib-0.0.9.ebuild 1509 BLAKE2B 570999bbb59dbb3ebffbb2a6de4d90ec80266f2bff5de32ec27c9b87197f0d430f66373af058997c0a008fd3b927be42893201161326f5fdbeb02fa0d26e8968 SHA512 bcdfcc28033fff571de473597302d4ac3feeb62305aab634b3ed61c42a6044439d05f59a882db0ee3068190ee44655cdcb9b04a7d5a473a361955c75381776d0 -EBUILD augpathlib-9999.ebuild 1509 BLAKE2B 570999bbb59dbb3ebffbb2a6de4d90ec80266f2bff5de32ec27c9b87197f0d430f66373af058997c0a008fd3b927be42893201161326f5fdbeb02fa0d26e8968 SHA512 bcdfcc28033fff571de473597302d4ac3feeb62305aab634b3ed61c42a6044439d05f59a882db0ee3068190ee44655cdcb9b04a7d5a473a361955c75381776d0 +EBUILD augpathlib-9999.ebuild 1516 BLAKE2B f30e5b5e5be80a1926d6b12daa0b61307641e96b9caf7b6f5c9e8f2be2cbf46ecf9413e94a48b3d4430d17f3a764b942b318ca2bff3666e09e8f90195bbc406f SHA512 232a014135802dfe290b16ab5493adc8636f60c173514fce86568dc687c820647fbc265cc8742aa62bbd8c7d5a50e54b357f8786d6a3c6e9c2a933a7f04a2fa6 diff --git a/dev-python/augpathlib/augpathlib-0.0.12.ebuild b/dev-python/augpathlib/augpathlib-0.0.12.ebuild new file mode 100644 index 00000000..8833feab --- /dev/null +++ b/dev-python/augpathlib/augpathlib-0.0.12.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( pypy3 python3_{6,7,8} ) +inherit distutils-r1 + +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI="https://github.com/tgbugs/${PN}.git" + inherit git-r3 + KEYWORDS="" +else + SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +DESCRIPTION="Augmented pathlib." +HOMEPAGE="https://github.com/tgbugs/augpathlib" + +LICENSE="MIT" +SLOT="0" +IUSE="dev test" +RESTRICT="!test? ( test )" + +DEPEND=" + dev-python/git-python[${PYTHON_USEDEP}] + >=dev-python/pexpect-4.7.0[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + dev-python/pyxattr[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/terminaltables[${PYTHON_USEDEP}] + || ( sys-apps/file[python,${PYTHON_USEDEP}] dev-python/python-magic[${PYTHON_USEDEP}] ) + dev? ( + dev-python/pytest-cov[${PYTHON_USEDEP}] + dev-python/wheel[${PYTHON_USEDEP}] + ) + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-runner[${PYTHON_USEDEP}] + ) +" +RDEPEND="${DEPEND}" + +if [[ ${PV} == "9999" ]]; then + src_prepare () { + # replace package version to keep python quiet + sed -i "s/__version__.\+$/__version__ = '9999.0.0+$(git rev-parse --short HEAD)'/" ${PN}/__init__.py + default + } +fi + +python_test() { + distutils_install_for_testing + cd "${TEST_DIR}" || die + cp -r "${S}/test" . || die + cp "${S}/setup.cfg" . || die + PYTHONWARNINGS=ignore pytest -v --color=yes || die "Tests fail with ${EPYTHON}" +} diff --git a/dev-python/augpathlib/augpathlib-9999.ebuild b/dev-python/augpathlib/augpathlib-9999.ebuild index f4a32ad3..8833feab 100644 --- a/dev-python/augpathlib/augpathlib-9999.ebuild +++ b/dev-python/augpathlib/augpathlib-9999.ebuild @@ -1,9 +1,9 @@ -# Copyright 2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( pypy3 python3_{6,7} ) +PYTHON_COMPAT=( pypy3 python3_{6,7,8} ) inherit distutils-r1 if [[ ${PV} == "9999" ]]; then diff --git a/dev-python/git-python/Manifest b/dev-python/git-python/Manifest index dde0393a..bced4e97 100644 --- a/dev-python/git-python/Manifest +++ b/dev-python/git-python/Manifest @@ -1,4 +1,6 @@ DIST GitPython-2.1.11.tar.gz 428531 BLAKE2B 18b00f1e622c6588c14e1625f944d117348fb77e67161117510f42c8381db8cde8c6e16fa911edabfc4410239622fb845931b247bab4133585d2ec27969fea4c SHA512 5f964ee56c3f27c28f502150216af29b8463b19d9c0f773458dbabf17ba8587ee5c5e3fbcb31ad46c55e202d06bae447fd40007890a1bc116fe0370cdfc6401f DIST GitPython-2.1.9.tar.gz 429598 BLAKE2B b49df5ab574915172b9f14bf10d79ba78c3fc122d26d1726a157a6256a9e9df522dadafda9f8d5bf655b8c13699b9fbafcfede5a5e9d00cae04974490d6be89c SHA512 2caa2a4739a99f172911c73374b896f84e1d50e710db8475c56dfd03fad2b7545fdc5473cf0e7af594395e3182619794b337ac66ee17977e57a1f2aba64e76ce +DIST GitPython-3.1.0.tar.gz 430079 BLAKE2B eaf4d4bb2f589a96bcdcf28e7ac6c0b8eab691a1dee5fbbec6d4a93bab9f123b07073af8a1b85aa5547057e46e6c8c004215167790b559f3848bf20c3ec1697f SHA512 6dab8449cc1736d7f58f9788b56bf63cc2bf0f420104d6e010a9624d21f53f5b5d33135bad4d91b40d9543b454be839f8003828ffe512c35a6513c27a2dd4b53 EBUILD git-python-2.1.11.ebuild 895 BLAKE2B f831d8ce4fd9313cea6d4e81c6f5a80f5469fac70c78aaa6b4ca818875845eb63f511ca4fe522d1101e7d73f5aca9d18f41be07b5ada3609e76dce0e55c7cd8f SHA512 bd2fdbe6d77636e21be5d1b99a9798c30f891da537448000799de65713d23443ed24dd878fe0d8d297f35d0b30b9f44c378900191c27d454e6022718545d4edd EBUILD git-python-2.1.9.ebuild 896 BLAKE2B a333a107c671276424764e94e9fb7ab3c400e3d5e211fc33e0cf1b083a34920b860444a08ed14258400773475521f59ce33de2daa85d2668967abeea5ca5560b SHA512 c8a148ed5f6efdea3b5d80b4f3f2a69c8c1d7f0ef19a1bc8b635631c6fb084a68874b6c013d1962980d2cf3173b335dbedd11f7cad9f6a0111dd65bcd64024db +EBUILD git-python-3.1.0.ebuild 912 BLAKE2B 03da8e03ebf5afc2be77f9d0d015703a69a64bebeea7143e81ef54813b89b30917a099ee1773d0c7b8c30d3527c83da1a09760e60eef2002cb278780c3e7924e SHA512 9944d66105191c6d650d8d2e1699823dbbe4ceafcb2bb7851e628f5e87cf90532f561710f585d728f6a02667cda9e4d606b41001d501d721c6e4f56a18b6aa11 diff --git a/dev-python/git-python/git-python-3.1.0.ebuild b/dev-python/git-python/git-python-3.1.0.ebuild new file mode 100644 index 00000000..690fd64f --- /dev/null +++ b/dev-python/git-python/git-python-3.1.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} pypy3 ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +MY_PN="GitPython" +MY_PV="${PV/_rc/.RC}" +MY_P="${MY_PN}-${MY_PV}" + +DESCRIPTION="Library used to interact with Git repositories" +HOMEPAGE="https://github.com/gitpython-developers/GitPython https://pypi.org/project/GitPython/" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux" +IUSE="test" + +# Tests only work with the GitPython repo +RESTRICT="test" + +RDEPEND=" + >=dev-vcs/git-1.7 + =dev-python/gitdb2-4.0.1[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + >=dev-python/ddt-1.1.1[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + )" + +S="${WORKDIR}/${MY_P}" diff --git a/dev-python/gitdb2/Manifest b/dev-python/gitdb2/Manifest index 2b77d085..fd591aa0 100644 --- a/dev-python/gitdb2/Manifest +++ b/dev-python/gitdb2/Manifest @@ -1,4 +1,6 @@ DIST gitdb2-2.0.3.tar.gz 392632 BLAKE2B c1313a8f571706cfb651dc114df98e85e385fbd7df40688386faf290cf177d282e6e3760ee43eb54d1562582755b6070a992f1f55a1821fef1e0e015f5cd09b0 SHA512 4be643b933b47f5511702aa9df5c3210847f059dff9a4794779040660cd60c5af7de5072eb18bc17971edba9a5551e9ba51dbe360194b7d454ee4f23348c8063 DIST gitdb2-2.0.4.tar.gz 393672 BLAKE2B 3a6b849fdf164ddb80cba5ae4c34749fdeb9e686ce94f49052e488ae7b196975c29277de46bc184d3cb97240121a9c0df1033480c679f262300caaa5eac5df00 SHA512 be0f89e35fd800ede9f29ab6e2dc97a7bdc918c22ed1272d348e570f3f732295a56c6138fcfa6d0c0027c0b12f20e23deff71fb24b9e7b5cd7dbd47816a14acd +DIST gitdb2-4.0.2.tar.gz 949 BLAKE2B 66a2811841417f398086390b1441f5b348e765860edeff60fae32320d457018cd5f4d89436d7d1ac27fd8f4f22787e4ce4c194a4ec74d8c7b6db0852a8fd5e5a SHA512 1f49dc388ed29e2f9f761a9545e017e7db8a572e8813d44e99ad8401d5a32caf80d5c3654885a74be3de8abd3fa92bb914c31311a3d2e1a4cdea5366b27649b9 EBUILD gitdb2-2.0.3.ebuild 1240 BLAKE2B a123c1b5476fc0d50811b2a56d09209f3940e5c2ff52ad09da4c3248d4687a4f86de52bc7e5f802b173151da920402d97cbb5f3ec7c7befb908168b85afc7275 SHA512 a4be9d4c47f773e5c271ab432aa8420939e85f965f32686c0394061168ac9a9484d8c8002943e05a692bcf7a7dde6b8af517f78300a92633210c152226d38650 EBUILD gitdb2-2.0.4.ebuild 1245 BLAKE2B 4de8a2ab12ff86f7d23be48f23c863ed81f65aad0fd4440926e98cd3e3fd915496a50eaa41cfcbda2c748d5b95549de364323bd7dc021963fa2e7fd1d9909123 SHA512 a91964ac2b9e42d94b3c5470ce918431fa6cf01db2d1266462d9690fee030da116c24ee643a7c034e17d7093d2fa45e7a8373b34c097007d982f6785ec4ce663 +EBUILD gitdb2-4.0.2.ebuild 1278 BLAKE2B 9a7ca7531cc8229bd798fdb97145336e869ba5229ee4bb008bec5c1814a6c48c12aabcd3d677d1d16ade8ce5b6dc64448002190cf2f4bfa4d3f546371c0245c4 SHA512 cfd32ddf4dada6f4b88bd18d6b4401dd1c3369a370c082b517b401716ec3792f8367da783500cfda8b2f4f4d5ec793fe2dfe8e20bae37486ae81407c6a1c43f7 diff --git a/dev-python/gitdb2/gitdb2-4.0.2.ebuild b/dev-python/gitdb2/gitdb2-4.0.2.ebuild new file mode 100644 index 00000000..95e6b0e5 --- /dev/null +++ b/dev-python/gitdb2/gitdb2-4.0.2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="GitDB is a pure-Python git object database" +HOMEPAGE=" + https://github.com/gitpython-developers/gitdb + https://pypi.org/project/gitdb2/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + !dev-python/gitdb[${PYTHON_USEDEP}] + =dev-python/smmap2-3.0.1[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + test? ( + dev-python/nose[${PYTHON_USEDEP}] + dev-vcs/git + )" + +src_test() { + local i + + mkdir "${T}"/repo || die + cd "${T}"/repo || die + + for (( i = 0; i < 2500; ++i )); do + echo "${i}" > file"${i}" || die + done + + git init || die + git config user.email "you@example.com" || die + git config user.name "Your Name" || die + git add -A || die + git commit -q -m ".." || die + git clone --bare "${T}"/repo "${T}"/repo.git || die + cd "${S}" || die + + distutils-r1_src_test +} + +python_test() { + #TRAVIS=1 disables performance tests which rely on the gitdb repo + local -x TRAVIS=1 + local -x GITDB_TEST_GIT_REPO_BASE="${T}"/repo.git + nosetests -v || die "Tests fail with ${EPYTHON}" +} diff --git a/dev-python/orthauth/Manifest b/dev-python/orthauth/Manifest index 8c08a1d5..f1bb60ae 100644 --- a/dev-python/orthauth/Manifest +++ b/dev-python/orthauth/Manifest @@ -1,3 +1,4 @@ +DIST orthauth-0.0.10.tar.gz 24250 BLAKE2B fab4fe1660584a3a9f9511f2c5fdc7756af95225332b5b314fa9c7d21c8b9979b7ff07ebc70af7e5840749cb7ac5669d940b3fd7d03c4fe80017bf2a984a09c2 SHA512 5636526fb3513c405d42f1b9b2b92f3925e291b15789a545d83d3559ef9212d6607eaa0df4e33d850cc47cb2e5545d81f034cdc2dee17a19eb58962692e6b031 DIST orthauth-0.0.2.tar.gz 16835 BLAKE2B 93fa3e0bddadf59815b01db4ea2f11ab388770489373cbd528c10a846200e8d047d4c39fa38ad420b288cffffc8b8d1b97aa8b780e6a5767f13b016c92351b7b SHA512 b55d920c367e0025bf71490a6623f89e81f82b72260528e014391fe4b1655d96f52adf917386d9ce575bdad0d41921ddc21bafe8f872edd55092e20ddd96d890 DIST orthauth-0.0.3.tar.gz 19013 BLAKE2B 34b5c88160b7c9ad10b39f663367ee54783a42b8b3aef14f59a413d162807f8c343188104d90993adaedf37ad01430915c1b2abeab421eb0446bd223e176af6c SHA512 a56d10e8cae4dcafad2d4969e8c3704950b4bf91ebc9d408a544c90312062ab8eae0d2db0e6383f76e7f6b2d7bc7aed6cd28fc566cddffcb3f565edaa9291704 DIST orthauth-0.0.4.tar.gz 19233 BLAKE2B f51210ef96b3d57ec791091ff6a313db0bd99f5c1956a260994761b7a24421d5386d3dfb77721524c6a6dc5e506ea2cd330dc1fae0dc92810fd0f6efd3a53373 SHA512 137f0ba9e414fb3f50bbd868c6d07e611c117a1bcbc7277bbd18adb7d4b566fdbbb41a6152a38dc9d370c357d237aacf6f7304e448bb71ed919c54e6f75f2f98 @@ -6,6 +7,7 @@ DIST orthauth-0.0.6.tar.gz 21542 BLAKE2B 38a1c76bb96db182a5d9fed4d34e50d14b878c2 DIST orthauth-0.0.7.tar.gz 22271 BLAKE2B f57c0bd1ade8272df63c353eb841d988ace8c2682bf23ce9521d46895280cde29dda49540969a85cfaddd72411cd56f6be0756ddf07781e5a1c3d26fdf57b5cc SHA512 01979f3854fdf70da0fa4e8df5eab1e0fb5d92ef0a0ed4da9738f5f99c80c9634796dd9c370a7102be0145970c8ad88729448aba48f2b9e568797d18922c6438 DIST orthauth-0.0.8.tar.gz 22315 BLAKE2B e5ef2882952b87881ba7162dd64d4cc2a529ad59320d3fc2c57edee23bb220a1faf93cc1a891e99377cb3aa30f49fa28b3e053ce6c3278c1a5a1c27b3ca5c8f9 SHA512 3f595c7aaec06c174240c5caddc39d31a74a29ce46c4a527b1d09fc4ff11e76595ead5dc8acd6b060862a5fcb9e1354df20ad4927273b61e4838ea1ae8144ed5 DIST orthauth-0.0.9.tar.gz 22976 BLAKE2B e1ac0a6acf24e5084b64ef842be812887be5797df488f18e8da4f53c1a147f4323cfae22975d44780521f16ebfed6fe84032e8898f7ba5c2ab683b9832661a29 SHA512 5d3966dfac3bbbb0702db97c9961d9ef38784994f8b1f6ec3d6b43d3fc912a8a49ac29b6a8b0f14cbdd809f24fa1d51855d0fb54b1523b9ce37c1004b670168a +EBUILD orthauth-0.0.10.ebuild 1400 BLAKE2B 4a98f0c1b03cc3fb2fa014f7f6004878e5e2f2a6d764ad4e6833a6288d41b816b6599cc3699edea396ebc41db3f6d874fe35532faef96f6aea60205e4e81b9f0 SHA512 a49bbacbee56e2d1dc52d22ebbde930b76d3f937a159ca70fbf5bc223ecd7391dd802a94d991346aec5335f41409270a26b05b78161e4334a6dfc5db36a95777 EBUILD orthauth-0.0.2.ebuild 1368 BLAKE2B 4fd255ab075079e671327039f9deb906e2d11be62dae5652b268d3b41e9dbdb2ae1b877631061d8e5f5db846d384fdc0eb0269a55d6ee0b050519b0a258794e1 SHA512 7fada053279846b74d081ce492325090f183fac4e94b5c460947cc229374b357d8ca6d35d4f1b05652a10b675c91b21d86187ebdd176c5bf42a34bc582203b7e EBUILD orthauth-0.0.3.ebuild 1368 BLAKE2B 4fd255ab075079e671327039f9deb906e2d11be62dae5652b268d3b41e9dbdb2ae1b877631061d8e5f5db846d384fdc0eb0269a55d6ee0b050519b0a258794e1 SHA512 7fada053279846b74d081ce492325090f183fac4e94b5c460947cc229374b357d8ca6d35d4f1b05652a10b675c91b21d86187ebdd176c5bf42a34bc582203b7e EBUILD orthauth-0.0.4.ebuild 1368 BLAKE2B 4fd255ab075079e671327039f9deb906e2d11be62dae5652b268d3b41e9dbdb2ae1b877631061d8e5f5db846d384fdc0eb0269a55d6ee0b050519b0a258794e1 SHA512 7fada053279846b74d081ce492325090f183fac4e94b5c460947cc229374b357d8ca6d35d4f1b05652a10b675c91b21d86187ebdd176c5bf42a34bc582203b7e @@ -14,4 +16,4 @@ EBUILD orthauth-0.0.6.ebuild 1368 BLAKE2B 4fd255ab075079e671327039f9deb906e2d11b EBUILD orthauth-0.0.7.ebuild 1398 BLAKE2B 3f8c321cdee18fe7d4d5d366f5e22d134bb9cc9141e1108996183a3e519fb0156396e9e62106bed9cb608180bc357e4d2a2a4781266cb73f47b20ad9ceb077c1 SHA512 328e92deb81e2f367b45bbb2cb3ad71cd2a0900edf54e0a6c9656a1a490e727c929e752da7baff6cd7ea64b6c3f94a23db0ebef07420bb2d820036bc80fde5f1 EBUILD orthauth-0.0.8.ebuild 1398 BLAKE2B 3f8c321cdee18fe7d4d5d366f5e22d134bb9cc9141e1108996183a3e519fb0156396e9e62106bed9cb608180bc357e4d2a2a4781266cb73f47b20ad9ceb077c1 SHA512 328e92deb81e2f367b45bbb2cb3ad71cd2a0900edf54e0a6c9656a1a490e727c929e752da7baff6cd7ea64b6c3f94a23db0ebef07420bb2d820036bc80fde5f1 EBUILD orthauth-0.0.9.ebuild 1398 BLAKE2B 3f8c321cdee18fe7d4d5d366f5e22d134bb9cc9141e1108996183a3e519fb0156396e9e62106bed9cb608180bc357e4d2a2a4781266cb73f47b20ad9ceb077c1 SHA512 328e92deb81e2f367b45bbb2cb3ad71cd2a0900edf54e0a6c9656a1a490e727c929e752da7baff6cd7ea64b6c3f94a23db0ebef07420bb2d820036bc80fde5f1 -EBUILD orthauth-9999.ebuild 1398 BLAKE2B 3f8c321cdee18fe7d4d5d366f5e22d134bb9cc9141e1108996183a3e519fb0156396e9e62106bed9cb608180bc357e4d2a2a4781266cb73f47b20ad9ceb077c1 SHA512 328e92deb81e2f367b45bbb2cb3ad71cd2a0900edf54e0a6c9656a1a490e727c929e752da7baff6cd7ea64b6c3f94a23db0ebef07420bb2d820036bc80fde5f1 +EBUILD orthauth-9999.ebuild 1400 BLAKE2B 4a98f0c1b03cc3fb2fa014f7f6004878e5e2f2a6d764ad4e6833a6288d41b816b6599cc3699edea396ebc41db3f6d874fe35532faef96f6aea60205e4e81b9f0 SHA512 a49bbacbee56e2d1dc52d22ebbde930b76d3f937a159ca70fbf5bc223ecd7391dd802a94d991346aec5335f41409270a26b05b78161e4334a6dfc5db36a95777 diff --git a/dev-python/orthauth/orthauth-0.0.10.ebuild b/dev-python/orthauth/orthauth-0.0.10.ebuild new file mode 100644 index 00000000..335010b7 --- /dev/null +++ b/dev-python/orthauth/orthauth-0.0.10.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( pypy3 python3_{6,7,8} ) +inherit distutils-r1 + +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI="https://github.com/tgbugs/${PN}.git" + inherit git-r3 + KEYWORDS="" +else + SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +DESCRIPTION="python orthogonal authentication" +HOMEPAGE="https://github.com/tgbugs/orthauth" + +LICENSE="MIT" +SLOT="0" +IUSE="dev test yaml" +REQUIRE_USE=" + test? ( yaml ) +" +RESTRICT="!test? ( test )" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + dev? ( + dev-python/pytest-cov[${PYTHON_USEDEP}] + dev-python/wheel[${PYTHON_USEDEP}] + ) + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-runner[${PYTHON_USEDEP}] + ) + yaml? ( + dev-python/pyyaml[${PYTHON_USEDEP}] + ) +" +RDEPEND="${DEPEND}" + +if [[ ${PV} == "9999" ]]; then + src_prepare () { + # replace package version to keep python quiet + sed -i "s/__version__.\+$/__version__ = '9999.0.0+$(git rev-parse --short HEAD)'/" ${PN}/__init__.py + default + } +fi + +python_test() { + distutils_install_for_testing + cd "${TEST_DIR}" || die + cp -r "${S}/test" . || die + cp "${S}/setup.cfg" . || die + PYTHONWARNINGS=ignore pytest -v --color=yes || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + local DOCS=( README* docs/* ) + distutils-r1_python_install_all +} diff --git a/dev-python/orthauth/orthauth-9999.ebuild b/dev-python/orthauth/orthauth-9999.ebuild index b7e6d675..335010b7 100644 --- a/dev-python/orthauth/orthauth-9999.ebuild +++ b/dev-python/orthauth/orthauth-9999.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( pypy3 python3_{6,7} ) +PYTHON_COMPAT=( pypy3 python3_{6,7,8} ) inherit distutils-r1 if [[ ${PV} == "9999" ]]; then diff --git a/dev-python/pexpect/Manifest b/dev-python/pexpect/Manifest index 3070d834..55684ca3 100644 --- a/dev-python/pexpect/Manifest +++ b/dev-python/pexpect/Manifest @@ -1,3 +1,5 @@ DIST pexpect-4.7.0.tar.gz 153747 BLAKE2B ff76f0e97d6b0274d15a84c6c93f358e38061773c315785c9550217f3d73638d53e5fc85da2acd1de493bed29c59f3944412720681c489c2bec7e85803742ed9 SHA512 4cea4229332c1f3de26dfcad596877665b3c02e91d51ca3c45c1f9b44462adb7c82abc7b76eb09a73822c2d1ccc9d812574cf79bf6bc8fb0b7d2f1093962cc3f +DIST pexpect-4.8.0.tar.gz 157037 BLAKE2B 742642bd6b9ec3f6cdfad054d4fd22db56b4a55b746d675c27a8cdf824ea749ec4589e296dffa08778195f3ccd20feb56bc0fd5212984396ea5aa0555c41ca96 SHA512 7447ae2d1e13be422c894a8fd51c5aaa788e37ea7f0c798c88b77afd401fb3631400a637077ccbb83c2e3876b0d0c5e1dbd5fdc9d3739d785b4d5ad7c0192580 EBUILD pexpect-4.7.0.ebuild 1161 BLAKE2B 8224bb18c88def3b3b7c1ef3149cede727aebdb3231ad62e97b613c1bfbb852dc806dfc1a14ba197cad809a6022ec3c0dd11e2539c543d1d1bdcacc11ef48bdd SHA512 008d4b3d3114bf7c4b7c45f4204fbfe721dde47b05f9a8a2beb35f0c9bf4611fc2fa2041136b474d67d498d4c4dfaeebd2fbd2758657114697125bc678236a76 +EBUILD pexpect-4.8.0.ebuild 1149 BLAKE2B 16863a90e83c6669ff69825d1b814d91c48298d7a02dd76d811c655c7b767ed7840bf939c2ec703a2035126b0ed1974e27d24eaaf9877622efeca900ccaf1d63 SHA512 0c3dfbd75edfad9bd4aa1226821b1d576a3763c5165e81c69176686cabf45c97b2ea878a91579359583785bc5f272a67de9796b59788d4b91dcd7a3c1ad0787b EBUILD pexpect-9999.ebuild 1158 BLAKE2B 834f7b632432b12e83ba8263cee98850b8742b4ca7613bddddff1d69a4be393effe997fde04736dde112a6c2fcfd5b83a210ff16e4962b5c29fec72aa991031b SHA512 0d2146ee0b53aa373e223a0cb8006cfaed3ca96cd96b840db6e3e0830c376eecfe716b93153386726f09fbc58106221ea63016f78cb43701739d6b461ef28b42 diff --git a/dev-python/smmap2/Manifest b/dev-python/smmap2/Manifest index 248fdf79..de0208a5 100644 --- a/dev-python/smmap2/Manifest +++ b/dev-python/smmap2/Manifest @@ -1,4 +1,6 @@ DIST smmap2-2.0.3.tar.gz 23049 BLAKE2B 225ffddb4461caa5cbfee210d086ff62d8d7b2a809640cc972ec831fae16bb4fec0418fde30d86308e84369128a2024d1480e38e85e758dba3550b3469db019d SHA512 f5623247fbdb6b0e94bbfe7104ffd84ee4563a0c32781256d92d46fd23e05280d7a0e3952a573b6834e253e9b68175784babc36d91ab61edf6d0d072830e1fde DIST smmap2-2.0.4.tar.gz 23261 BLAKE2B 41e97d63822c4cb5faf353f96f5fc078e9c9d48ddb8228dfb87dc14be4856979d307cf99f5a0d780a0698366ad0a9d1618c2b8ac0c16bb095c45ddbd6d75a42e SHA512 103a336b1459747344360c86f19cdcec4bc9dc4078062b72aca00850520058855222c3405178ae69172c8ad6acb93609ce8cd2669632c791d27c781dde69c5b1 +DIST smmap2-3.0.1.tar.gz 947 BLAKE2B 664cd89abc7a069ec213084d2eb0b18a39e1f438bfdf73dc7e87545ce05d1d7378ad237b556a2a44388ade51f0d48f92194e7013a7a1deea397ad355e108a50e SHA512 6cb4003a139dfb39a856ba035e3fe93dfa3663d6f52cd13f074ddd465ed788c383ef0b9a272f76defff58b2b9c1f95d4e0d497a8ad3f228c93471d4b5647cb44 EBUILD smmap2-2.0.3.ebuild 700 BLAKE2B 6e25f5a56997b9c5fb550c673e56268ec20f810df994c79cc602030f92f6c060c96844dd24825cc4b95c2b6b76d82efd7fd453a03ecc72cb773715571c4ff1e7 SHA512 d2e744b5b76a9d85e17fffb6a9a64f60a809c5c3969880fbb65a992a667d5d4dbe59763311b4dff4b5de70f781a63369c6948c805068292acb18c49e4bd31c15 EBUILD smmap2-2.0.4.ebuild 705 BLAKE2B 0c1412d82dd7620b43c64ea89e8541bc6d10732316c93d32bc195ca1249ee76fff0865fd65b9225e1d99b68ee0f3d6c46841b3e1ac9774297d8bb1b9c6686135 SHA512 aed6a128199777b74e151d95a07080f3877a73d6928cd4a71e7f62fd6472d98738b31a7d823bcea48258e38c1d2944527eb3fd65a050a9556daaa50fdfbca50e +EBUILD smmap2-3.0.1.ebuild 716 BLAKE2B 8f4d3066016215b7d04fbdd3f62b5a9d8775b43360527cb21bfe183226d39e9e441509a6d1da20ccefe399f16a316744f3f57d8813510fbf054b9f3277040670 SHA512 36dcb6d7e831f0cb5183304b80ddaa5cee97d778e06645abbd61a7cfdc02133f293a5fe6e0ce7db4e6adcc65776541fa6e2f17bcd6dc59d0771857c92cd44d13 diff --git a/dev-python/smmap2/smmap2-3.0.1.ebuild b/dev-python/smmap2/smmap2-3.0.1.ebuild new file mode 100644 index 00000000..5e92c240 --- /dev/null +++ b/dev-python/smmap2/smmap2-3.0.1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="A pure python implementation of a sliding window memory map manager" +HOMEPAGE=" + https://pypi.org/project/smmap2/ + https://github.com/gitpython-developers/smmap" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +KEYWORDS="~amd64 ~arm64 ~x86" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/nose[${PYTHON_USEDEP}] + )" +RDEPEND=" + !dev-python/smmap[${PYTHON_USEDEP}]" + +python_test() { + nosetests -v || die "tests failed under ${EPYTHON}" +} diff --git a/dev-python/terminaltables/Manifest b/dev-python/terminaltables/Manifest index c1dcc319..3b8fc9ad 100644 --- a/dev-python/terminaltables/Manifest +++ b/dev-python/terminaltables/Manifest @@ -1,2 +1,3 @@ DIST terminaltables-3.1.0.tar.gz 278484 BLAKE2B 733bcfcdc51c5e78e85e8f7fc9db00fa96c1ad48f76a9ec48ed546dc0acd62af90f437de346fe05d4cb09151b33ddea2f62beb21b418d7f76d8a719423a5f694 SHA512 dc49458652fff8bc6094d316d84c9b8e9fca1a26e3230c0b668bc03ec8528793f4ef024e8032d4a56fbfabfdfd4a1142870f550f0b373ba6a42dd2e3ead3f501 EBUILD terminaltables-3.1.0-r1.ebuild 623 BLAKE2B c2b1e58d4b99d29a25a769a9b3cae408d7e93858a9d88c881eb7487a5de7b420fe873e108bcfbb62dcdd7ada456dc8275a6df7df8eb67e6a17f13d1ca1644e82 SHA512 d0636f8d670c32192c2f75a5a4de9418265935f2e36a4009eeb8b364147a000fdc73c693e8e5cb66b11d788be9b4d06923f179e6bee12bd075d52c6b1d6f4e27 +EBUILD terminaltables-3.1.0-r2.ebuild 610 BLAKE2B 195daf2c188919ad187f9887904c881f3121f94dc38f36cd20bfba92126cd9fe9d082aa36c3c027e9535ebcae387d55297c3f53109d74159955283275ec97753 SHA512 d0806b60abe804f08206143a13af43dc6d82101f184ed6a374df1da2b1a1e75c72fba0a87afdf06fd69026367b0db0b10edf7453ade71310969efb2c685ec039 diff --git a/dev-python/terminaltables/terminaltables-3.1.0-r2.ebuild b/dev-python/terminaltables/terminaltables-3.1.0-r2.ebuild new file mode 100644 index 00000000..8d2df775 --- /dev/null +++ b/dev-python/terminaltables/terminaltables-3.1.0-r2.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Generate simple tables in terminals from a nested list of strings" +HOMEPAGE="https://github.com/Robpol86/terminaltables" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/colorama[${PYTHON_USEDEP}] + dev-python/colorclass[${PYTHON_USEDEP}] + dev-python/termcolor[${PYTHON_USEDEP}] +" +RDEPEND="${DEPEND}" diff --git a/sys-apps/file/Manifest b/sys-apps/file/Manifest index 97770039..9feed7e3 100644 --- a/sys-apps/file/Manifest +++ b/sys-apps/file/Manifest @@ -1,3 +1,5 @@ AUX file-5.37-CVE-2019-18218.patch 1038 BLAKE2B 30622d39fb4006b07fabab70dfe6fc3f574aac769c7728bada7b622fd670616efc12d42cabf95b32a8a98c811e171059af2e127c170c1935dc00def4a1fc05b6 SHA512 3517e35db03944bcca6da28ddac9f0d08ce052b03d1508d26851fd6691bedc89f3974822a1559576987c8c10a0343bc8788cc7df52406d66a591ddcd39b23a5c DIST file-5.37.tar.gz 887682 BLAKE2B c5635e5de879af31cbef1c988275ab8620133909d146769b27a2f8eefa90871fad5fa75e66b9e1d77a6261e5d6dec315fb5a8ad587d8c214eaa0bc2e5a929fe7 SHA512 bf153c15aebdd00329806231d20f295077b8b99efd0181d01279bcf3734a1718567df38cf75bc929eb8015ac98d29bb4bf1228d7ece8bfdfe14dd976391dd06d +DIST file-5.38.tar.gz 932528 BLAKE2B 08d8d56e2e1b6a0c9fb0caed89ca6145bf683ecc52a639c036ded01b913e7eea75d9235851a2fbd410cbc9b929c26579b06fe1d54fb73817c951bef3544bc345 SHA512 9eeeba69cbc9f0c00a0bdf9eaf60c73a4a709e797068f109d85c1ef2a19c8b0e012ecd73714f03cbb1770dfa717e8a661ad746b644cc030cafbfb1f7aac35a40 EBUILD file-5.37-r1.ebuild 3216 BLAKE2B 62a273a0f605eabf739e9ca5ec007066ca635d4d11ef95e8cf340ff0d54af7cdec9d1deac0982130a5afd476b5869f22eed31dd7f0876814c969708ca2473df3 SHA512 b1f7f795f1c55c210ba198868873e1bb226ef310bd5d38ffae3f4a0788f90b90f59b639b296b479cdf8c96dfa5393c717a82c3c600d348d7bf2ebea46db62a67 +EBUILD file-5.38.ebuild 3190 BLAKE2B e96f570ef9ea2a9c8cfa6f36261193ef6fc57784ee6ad5ca75c316d496278b68417ef772411bf0990fc43dc7748da7560dac50a1a9b0f85a6e54c517a69e615a SHA512 4ae9b5c80d233e01050180d77c3df38cda196f9a8753d9e093638e079dffd3f83b07e4d00298f5fdee28ef207234a465c8c9a1c8ca65baf75274b9bf981495e6 diff --git a/sys-apps/file/file-5.38.ebuild b/sys-apps/file/file-5.38.ebuild new file mode 100644 index 00000000..de3644dc --- /dev/null +++ b/sys-apps/file/file-5.38.ebuild @@ -0,0 +1,136 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy{,3} ) +DISTUTILS_OPTIONAL=1 + +inherit distutils-r1 libtool toolchain-funcs multilib-minimal + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/glensc/file.git" + inherit autotools git-r3 +else + SRC_URI="ftp://ftp.astron.com/pub/file/${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +fi + +DESCRIPTION="identify a file's format by scanning binary data for patterns" +HOMEPAGE="https://www.darwinsys.com/file/" + +LICENSE="BSD-2" +SLOT="0" +IUSE="bzip2 lzma python static-libs zlib" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +DEPEND=" + bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] ) + lzma? ( app-arch/xz-utils[${MULTILIB_USEDEP}] ) + python? ( + ${PYTHON_DEPS} + dev-python/setuptools[${PYTHON_USEDEP}] + ) + zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )" +RDEPEND="${DEPEND} + python? ( !dev-python/python-magic )" + +src_prepare() { + default + + [[ ${PV} == "9999" ]] && eautoreconf + elibtoolize + + # don't let python README kill main README #60043 + mv python/README.md python/README.python.md || die + sed 's@README.md@README.python.md@' -i python/setup.py || die #662090 +} + +multilib_src_configure() { + local myeconfargs=( + --disable-libseccomp + --enable-fsect-man5 + $(use_enable bzip2 bzlib) + $(use_enable lzma xzlib) + $(use_enable static-libs static) + $(use_enable zlib) + ) + econf "${myeconfargs[@]}" +} + +build_src_configure() { + local myeconfargs=( + --disable-shared + --disable-libseccomp + --disable-bzlib + --disable-xzlib + --disable-zlib + ) + tc-env_build econf "${myeconfargs[@]}" +} + +need_build_file() { + # when cross-compiling, we need to build up our own file + # because people often don't keep matching host/target + # file versions #362941 + tc-is-cross-compiler && ! has_version -b "~${CATEGORY}/${P}" +} + +src_configure() { + local ECONF_SOURCE=${S} + + if need_build_file; then + mkdir -p "${WORKDIR}"/build || die + cd "${WORKDIR}"/build || die + build_src_configure + fi + + multilib-minimal_src_configure +} + +multilib_src_compile() { + if multilib_is_native_abi ; then + emake + else + cd src || die + emake magic.h #586444 + emake libmagic.la + fi +} + +src_compile() { + if need_build_file; then + emake -C "${WORKDIR}"/build/src magic.h #586444 + emake -C "${WORKDIR}"/build/src file + local -x PATH="${WORKDIR}/build/src:${PATH}" + fi + multilib-minimal_src_compile + + if use python ; then + cd python || die + distutils-r1_src_compile + fi +} + +multilib_src_install() { + if multilib_is_native_abi ; then + default + else + emake -C src install-{nodist_includeHEADERS,libLTLIBRARIES} DESTDIR="${D}" + fi +} + +multilib_src_install_all() { + dodoc ChangeLog MAINT README + + # Required for `file -C` + dodir /usr/share/misc/magic + insinto /usr/share/misc/magic + doins -r magic/Magdir/* + + if use python ; then + cd python || die + distutils-r1_src_install + fi + find "${ED}" -type f -name "*.la" -delete || die +}