diff --git a/dev-python/devtools/Manifest b/dev-python/devtools/Manifest new file mode 100644 index 0000000000..009f8d6beb --- /dev/null +++ b/dev-python/devtools/Manifest @@ -0,0 +1 @@ +DIST devtools-0.5.1.tar.gz 66033 BLAKE2B bde439ee4a3fc36a934daeedb75c44491552a1f93ebac364a685390d2144e55577466ae881357d8eace25fde8acf73c684bfb8137ba1dd6ee3d85103dacfc24a SHA512 28e9d743694c9c62671e086f2ce71bb1037a226628b5a774e8ef36d25121d6b9ed4571e2f3bc351725b8a6b66f4aa03ae8ab469883a0a61284b2a3e2c95fc289 diff --git a/dev-python/devtools/devtools-0.5.1.ebuild b/dev-python/devtools/devtools-0.5.1.ebuild new file mode 100644 index 0000000000..49608a749a --- /dev/null +++ b/dev-python/devtools/devtools-0.5.1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) + +inherit distutils-r1 + +MYPN="python-${PN}" +MYP="${MYPN}-${PV}" + +DESCRIPTION="Dev tools for python" +HOMEPAGE="https://github.com/samuelcolvin/python-devtools" +SRC_URI="https://github.com/samuelcolvin/${MYPN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +KEYWORDS="~amd64 ~x86" +SLOT="0" + +S="${WORKDIR}/${MYP}" + +distutils_enable_tests pytest +distutils_enable_sphinx docs dev-python/sphinxcontrib-websupport + +DEPEND="test? ( + dev-python/pygments[${PYTHON_USEDEP}] + dev-python/pytest-isort[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] +)" diff --git a/dev-python/devtools/metadata.xml b/dev-python/devtools/metadata.xml new file mode 100644 index 0000000000..db28bcb34d --- /dev/null +++ b/dev-python/devtools/metadata.xml @@ -0,0 +1,13 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + + samuelcolvin/python-devtools + devtools + + diff --git a/dev-python/email-validator/Manifest b/dev-python/email-validator/Manifest new file mode 100644 index 0000000000..0d4734b840 --- /dev/null +++ b/dev-python/email-validator/Manifest @@ -0,0 +1 @@ +DIST email-validator-1.0.5.tar.gz 14109 BLAKE2B b67425913baecd1629120dc2b17eadd904d20b99bf2a2b2650efed873961323a15f843b6024c09f83bf51b46ab363f0c3ffc31a8ce5a4af8b930f0e352ee90a9 SHA512 e9dd0ee8dfc603e40591eb8cd4e58c32331c1b9450feb4ae0ff27e1d655d0abb2c8a46b7d0cb43d7e037964f0c120dbad6bf32a60dfe297fb552058733ffd173 diff --git a/dev-python/email-validator/email-validator-1.0.5.ebuild b/dev-python/email-validator/email-validator-1.0.5.ebuild new file mode 100644 index 0000000000..55651d6142 --- /dev/null +++ b/dev-python/email-validator/email-validator-1.0.5.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +# Tests are not in release tarballs +MYPN="python-${PN}" +MYP="${MYPN}-${PV}" + +DESCRIPTION="A robust email syntax and deliverability validation library" +HOMEPAGE="https://github.com/JoshData/python-email-validator" +SRC_URI="https://github.com/JoshData/${MYPN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="CC0-1.0" +KEYWORDS="~amd64 ~x86" +SLOT="0" + +S="${WORKDIR}/${MYP}" + +RDEPEND=" + dev-python/idna[${PYTHON_USEDEP}] + dev-python/dnspython[${PYTHON_USEDEP}] +" diff --git a/dev-python/email-validator/metadata.xml b/dev-python/email-validator/metadata.xml new file mode 100644 index 0000000000..c54fc0e3f1 --- /dev/null +++ b/dev-python/email-validator/metadata.xml @@ -0,0 +1,13 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + + JoshData/python-email-validator + email-validator + + diff --git a/dev-python/markdown-include/Manifest b/dev-python/markdown-include/Manifest new file mode 100644 index 0000000000..23cf644e52 --- /dev/null +++ b/dev-python/markdown-include/Manifest @@ -0,0 +1 @@ +DIST markdown-include-0.5.1.tar.gz 3968 BLAKE2B d6de7fdee70de534b8247c5473347a2f29b6ee351b26fb744899190e9add1ded3f87963b321977266938c91ebeb1afd1e447b089166557cd404c08a363ebeef7 SHA512 f330c8d82100fb66115b7369d7c2121c58ea6b7f38c45633994f0fca99a4f314b852608f2cbac53b96e7944bce0ea46dfe9ab578976975699a8a1182b3d6d2c5 diff --git a/dev-python/markdown-include/markdown-include-0.5.1.ebuild b/dev-python/markdown-include/markdown-include-0.5.1.ebuild new file mode 100644 index 0000000000..4ae89a9729 --- /dev/null +++ b/dev-python/markdown-include/markdown-include-0.5.1.ebuild @@ -0,0 +1,18 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit distutils-r1 + +DESCRIPTION="Syntax which allows for inclusion of contents of other Markdown docs" +HOMEPAGE="https://github.com/cmacmackin/markdown-include" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +KEYWORDS="~amd64 ~x86" +SLOT="0" + +RDEPEND="dev-python/markdown[${PYTHON_USEDEP}]" diff --git a/dev-python/markdown-include/metadata.xml b/dev-python/markdown-include/metadata.xml new file mode 100644 index 0000000000..0ff047d24f --- /dev/null +++ b/dev-python/markdown-include/metadata.xml @@ -0,0 +1,13 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + + cmacmackin/markdown-include + markdown-include + + diff --git a/dev-python/mkdocs-exclude/Manifest b/dev-python/mkdocs-exclude/Manifest new file mode 100644 index 0000000000..ba75e14501 --- /dev/null +++ b/dev-python/mkdocs-exclude/Manifest @@ -0,0 +1 @@ +DIST mkdocs-exclude-1.0.2.tar.gz 6751 BLAKE2B 40ed23381925b6de426c0b16b8771f751735ecbc2966f356ea8ca16d177ddf0c6668e2ef9bc44a3d943b56680f966278042c7c24af49072339cbc2314e847cdc SHA512 71ad14d13547f02487eccacf0f4a5d2ffac7cdb7729feec4c41646e85d273280191239f12668bbb6ef750e9fcc1221abc4b49adffdcab9db2f8f819dfa7307bc diff --git a/dev-python/mkdocs-exclude/metadata.xml b/dev-python/mkdocs-exclude/metadata.xml new file mode 100644 index 0000000000..e3ffbfe205 --- /dev/null +++ b/dev-python/mkdocs-exclude/metadata.xml @@ -0,0 +1,13 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + + apenwarr/mkdocs-exclude + mkdocs-exclude + + diff --git a/dev-python/mkdocs-exclude/mkdocs-exclude-1.0.2.ebuild b/dev-python/mkdocs-exclude/mkdocs-exclude-1.0.2.ebuild new file mode 100644 index 0000000000..c6aabda49c --- /dev/null +++ b/dev-python/mkdocs-exclude/mkdocs-exclude-1.0.2.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) + +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +DESCRIPTION="Lets you exclude files or trees from your output" +HOMEPAGE="https://github.com/apenwarr/mkdocs-exclude" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +KEYWORDS="~amd64 ~x86" +SLOT="0" + +RDEPEND="dev-python/mkdocs[${PYTHON_USEDEP}]" diff --git a/dev-python/pydantic/Manifest b/dev-python/pydantic/Manifest new file mode 100644 index 0000000000..07b967331d --- /dev/null +++ b/dev-python/pydantic/Manifest @@ -0,0 +1 @@ +DIST pydantic-1.5.1.tar.gz 233727 BLAKE2B ef41cf8d65d2839444e6457b6f48442d1d1ddee506cc7a75f79dd173e7cf9908c7d2ef1d4f70ddfdf7ba00ad7af7c81697a3e3e03cf058a0494b7d2c5fb874a7 SHA512 beadba0f57bd669ac97f4d7288cdf9598f6c791f46258ba75a3ec93361ebba010d7b1784e8b50534b12f9fb3606e8cc0cbbc7a9321a1d9a6a29e1e73a057f9c4 diff --git a/dev-python/pydantic/metadata.xml b/dev-python/pydantic/metadata.xml new file mode 100644 index 0000000000..1705b4d7c4 --- /dev/null +++ b/dev-python/pydantic/metadata.xml @@ -0,0 +1,13 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + + samuelcolvin/pydantic + pydantic + + diff --git a/dev-python/pydantic/pydantic-1.5.1.ebuild b/dev-python/pydantic/pydantic-1.5.1.ebuild new file mode 100644 index 0000000000..eb3e06e226 --- /dev/null +++ b/dev-python/pydantic/pydantic-1.5.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) + +DOCBUILDER="mkdocs" +DOCDEPEND=" + dev-python/mkdocs-material + dev-python/mkdocs-exclude + dev-python/markdown-include +" + +inherit distutils-r1 docs + +DESCRIPTION="Data parsing and validation using Python type hints" +HOMEPAGE="https://github.com/samuelcolvin/pydantic" +SRC_URI="https://github.com/samuelcolvin/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +KEYWORDS="~amd64 ~x86" +SLOT="0" + +distutils_enable_tests pytest + +BDEPEND="dev-python/cython" + +DEPEND="test? ( + dev-python/mypy[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] +)" + +RDEPEND=" + >=dev-python/devtools-0.5.1[${PYTHON_USEDEP}] + >=dev-python/email-validator-1.0.5[${PYTHON_USEDEP}] + >=dev-python/python-dotenv-0.13.0[${PYTHON_USEDEP}] + dev-python/typing-extensions[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/dataclasses[${PYTHON_USEDEP}]' python3_6) +" + +python_prepare_all() { + # AssertionError: assert 'pydantic-1.5.1.tar.gz' == 'config a' + sed -i -e 's:test_config_file_settings_nornir:_&:' \ + tests/test_settings.py || die + + distutils-r1_python_prepare_all +} diff --git a/dev-python/pytest-isort/Manifest b/dev-python/pytest-isort/Manifest new file mode 100644 index 0000000000..50f41acd69 --- /dev/null +++ b/dev-python/pytest-isort/Manifest @@ -0,0 +1 @@ +DIST pytest-isort-0.3.1.tar.gz 6429 BLAKE2B cf68cfe061be097c576c9cb7ad0a808729aa03f031128d2d1064bc960c7aa27e0d94fc18c238d95ac2074f056ecb8fb33064f6f0311756c73ce8379d1b8317f9 SHA512 2fd39108a6acacf18ce68bb537d2adeb4ff7cd8ea4c9611e5312edea5a0bc4841111ffb544318aa7b3bebe38e9f4744f07a45b2ebcbf872f79003b249ee115ca diff --git a/dev-python/pytest-isort/metadata.xml b/dev-python/pytest-isort/metadata.xml new file mode 100644 index 0000000000..3add1c90db --- /dev/null +++ b/dev-python/pytest-isort/metadata.xml @@ -0,0 +1,13 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + + moccu/pytest-isort + pytest-isort + + diff --git a/dev-python/pytest-isort/pytest-isort-0.3.1.ebuild b/dev-python/pytest-isort/pytest-isort-0.3.1.ebuild new file mode 100644 index 0000000000..0092d516f2 --- /dev/null +++ b/dev-python/pytest-isort/pytest-isort-0.3.1.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +DESCRIPTION="Plugin to check import ordering using isort" +HOMEPAGE="https://github.com/moccu/pytest-isort" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +KEYWORDS="~amd64 ~x86" +SLOT="0" + +distutils_enable_tests pytest + +RDEPEND=" + >=dev-python/pytest-3.5[${PYTHON_USEDEP}] + >=dev-python/isort-4.0[${PYTHON_USEDEP}] +" diff --git a/dev-python/pytest-toolbox/Manifest b/dev-python/pytest-toolbox/Manifest new file mode 100644 index 0000000000..2bb1bbe60e --- /dev/null +++ b/dev-python/pytest-toolbox/Manifest @@ -0,0 +1 @@ +DIST pytest-toolbox-0.4.tar.gz 8594 BLAKE2B fb1f19513e9e4b191c3eb995cc5e9445bc9f19affef87350d925c5465210c4de945b91120f86664c1dcf02a638595a7725cf88e3244e377ae77558c70d65643a SHA512 ed27700ff77cd607be808142cc310cd2b7461e55b3f8352d304ef8ca6c5e6c060c67a63238a1025407868ab8e229c4a16eaaa56aa75000159762001accb67752 diff --git a/dev-python/pytest-toolbox/metadata.xml b/dev-python/pytest-toolbox/metadata.xml new file mode 100644 index 0000000000..2bea5658e6 --- /dev/null +++ b/dev-python/pytest-toolbox/metadata.xml @@ -0,0 +1,13 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + + samuelcolvin/pytest-toolbox + pytest-toolbox + + diff --git a/dev-python/pytest-toolbox/pytest-toolbox-0.4.ebuild b/dev-python/pytest-toolbox/pytest-toolbox-0.4.ebuild new file mode 100644 index 0000000000..8a85945404 --- /dev/null +++ b/dev-python/pytest-toolbox/pytest-toolbox-0.4.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) + +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +DESCRIPTION="Numerous useful plugins for pytest" +HOMEPAGE="https://github.com/samuelcolvin/pytest-toolbox" +SRC_URI="https://github.com/samuelcolvin/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +KEYWORDS="~amd64 ~x86" +SLOT="0" + +distutils_enable_tests pytest + +DEPEND="test? ( + dev-python/isort[${PYTHON_USEDEP}] + dev-python/pydantic[${PYTHON_USEDEP}] + dev-python/pytest-isort[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] +)" + +RDEPEND=" + >=dev-python/pytest-3.5.0[${PYTHON_USEDEP}] + <=dev-python/pytest-5[${PYTHON_USEDEP}] +" + +python_prepare_all() { + # pytest.warning_types.PytestAssertRewriteWarning: asserting the value None, please use "assert is None" + sed -i -e 's:test_is_uuid_false:_&:' \ + -e 's:test_any_int_false:_&:' \ + tests/test_comparison.py || die + + distutils-r1_python_prepare_all +} diff --git a/dev-python/python-dotenv/Manifest b/dev-python/python-dotenv/Manifest new file mode 100644 index 0000000000..476e0a9e39 --- /dev/null +++ b/dev-python/python-dotenv/Manifest @@ -0,0 +1 @@ +DIST python-dotenv-0.13.0.tar.gz 28679 BLAKE2B 068c4cb499956a14bb4c310d2c9a63f4c33b6621efd11c231eeea2808951530fa6e7bd5356973c19f7ba6f3693434ca46bfadd065c7369f95014389badb2a00c SHA512 a7e725fd0fcb262f240a8f9eb6cf9b73560d799a10ec946cf901f960cbfa972396ead1aca833808a1675ebaec0b89720c32b2fe957ef9805faa942b0df1a9608 diff --git a/dev-python/python-dotenv/metadata.xml b/dev-python/python-dotenv/metadata.xml new file mode 100644 index 0000000000..384f1919e3 --- /dev/null +++ b/dev-python/python-dotenv/metadata.xml @@ -0,0 +1,13 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + + theskumar/python-dotenv + python-dotenv + + diff --git a/dev-python/python-dotenv/python-dotenv-0.13.0.ebuild b/dev-python/python-dotenv/python-dotenv-0.13.0.ebuild new file mode 100644 index 0000000000..746e0370de --- /dev/null +++ b/dev-python/python-dotenv/python-dotenv-0.13.0.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) + +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +# Some failures, likely an incompatibility with newer versions of sh (no old in ::gentoo) +RESTRICT="test" + +DESCRIPTION="Get and set values in your .env file in local and production servers" +HOMEPAGE="https://github.com/theskumar/python-dotenv" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +KEYWORDS="~amd64 ~x86" +SLOT="0" + +distutils_enable_tests pytest + +DEPEND="test? ( + dev-python/ipython[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/sh[${PYTHON_USEDEP}] +)" + +RDEPEND=" + dev-python/click[${PYTHON_USEDEP}] +" diff --git a/dev-python/uvicorn/Manifest b/dev-python/uvicorn/Manifest index f5a6ba38eb..f1b30678eb 100644 --- a/dev-python/uvicorn/Manifest +++ b/dev-python/uvicorn/Manifest @@ -1 +1 @@ -DIST uvicorn-0.11.3.tar.gz 490532 BLAKE2B 521f137ec94906d5fe9411e780551fb3f4a6eb3da2e7e49d67524b380267e1089bd778b5294f4c72e0da270aeddd89e598bb2c79251262fa528da29103eb259b SHA512 c7e5badbd57bf2962fb4ef538072bed8e509ade20ff98856dd88099adeaeb9044b35a547b9f1ade3575c6dbc4564519d69aaeca7dad95a3b463160cdd9a464a9 +DIST uvicorn-0.11.5.tar.gz 499920 BLAKE2B bd1c2f501a58e2016047053ec48870b4e7e4636eb64436206e450fc58f7152f45121274a3649e207c967a96ab0a7b1aa0c765bd4b742e482627f2257970e5780 SHA512 8bff2ffb06b91cc2323b0ada271379fec611075dd8e4970713fec8af59ea19d804a759503e4495c38854ee9e1ee0ea28d52a9cf478b4b998474537ea63ab43db diff --git a/dev-python/uvicorn/uvicorn-0.11.3.ebuild b/dev-python/uvicorn/uvicorn-0.11.5.ebuild similarity index 80% rename from dev-python/uvicorn/uvicorn-0.11.3.ebuild rename to dev-python/uvicorn/uvicorn-0.11.5.ebuild index 652f668e0d..1598187716 100644 --- a/dev-python/uvicorn/uvicorn-0.11.3.ebuild +++ b/dev-python/uvicorn/uvicorn-0.11.5.ebuild @@ -7,7 +7,10 @@ PYTHON_COMPAT=( python3_{6,7} ) DISTUTILS_USE_SETUPTOOLS=rdepend -inherit distutils-r1 eutils +DOCBUILDER="mkdocs" +DOCDEPEND="dev-python/mkdocs-material" + +inherit distutils-r1 docs eutils DESCRIPTION="The lightning-fast ASGI server" HOMEPAGE="https://www.uvicorn.org/ @@ -18,23 +21,19 @@ LICENSE="BSD" KEYWORDS="~amd64 ~x86" SLOT="0" -IUSE="doc" - RDEPEND=" dev-python/click[${PYTHON_USEDEP}] dev-python/h11[${PYTHON_USEDEP}]" -BDEPEND="doc? ( - dev-python/mkdocs - dev-python/mkdocs-material )" - DEPEND="test? ( dev-python/isort[${PYTHON_USEDEP}] dev-python/requests[${PYTHON_USEDEP}] >=dev-python/uvloop-0.14.0[${PYTHON_USEDEP}] - dev-python/wsproto[${PYTHON_USEDEP}] - >=dev-python/websockets-6.0[${PYTHON_USEDEP}] - >=dev-python/httptools-0.1.1[${PYTHON_USEDEP}] )" + >=dev-python/wsproto-0.13.0[${PYTHON_USEDEP}] + >=dev-python/websockets-8.0[${PYTHON_USEDEP}] + dev-python/httptools[${PYTHON_USEDEP}] + >=dev-python/watchgod-0.6[${PYTHON_USEDEP}] +)" distutils_enable_tests pytest @@ -54,17 +53,10 @@ python_prepare_all() { distutils-r1_python_prepare_all } -python_compile_all() { - default - if use doc; then - mkdocs build || die "failed to make docs" - HTML_DOCS="site" - fi -} - pkg_postinst() { optfeature "asyncio event loop on top of libuv" dev-python/uvloop optfeature "websockets support using wsproto" dev-python/wsproto optfeature "websockets support using websockets" dev-python/websockets optfeature "httpstools package for http protocol" dev-python/httptools + optfeature "efficient debug reload" dev-python/watchgod } diff --git a/dev-python/watchgod/Manifest b/dev-python/watchgod/Manifest new file mode 100644 index 0000000000..50084a1c8f --- /dev/null +++ b/dev-python/watchgod/Manifest @@ -0,0 +1 @@ +DIST watchgod-0.6.tar.gz 13261 BLAKE2B 6cf32f6ea467fd4cdb3b0da30aa56bfbf3909adb25d2d44621733c665dccf77b203e99049655793a674f688f3adc8519d8e95156932ccfb9dceda28888bac115 SHA512 1eaa0febc4ba8b1e4bbd6e7bae8f2312c2eeaae395ebbf76953fdf937d4eda06bad818574000d6b96abfefe391affb5d007426bbf7867578293729decc6b61fb diff --git a/dev-python/watchgod/metadata.xml b/dev-python/watchgod/metadata.xml new file mode 100644 index 0000000000..a5241af82b --- /dev/null +++ b/dev-python/watchgod/metadata.xml @@ -0,0 +1,13 @@ + + + + + + andrewammerlaan@riseup.net + Andrew Ammerlaan + + + samuelcolvin/watchgod + watchgod + + diff --git a/dev-python/watchgod/watchgod-0.6.ebuild b/dev-python/watchgod/watchgod-0.6.ebuild new file mode 100644 index 0000000000..7148f41a1b --- /dev/null +++ b/dev-python/watchgod/watchgod-0.6.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) + +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +DESCRIPTION="Simple, modern file watching and code reload" +HOMEPAGE="https://github.com/samuelcolvin/watchgod" +SRC_URI="https://github.com/samuelcolvin/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +KEYWORDS="~amd64 ~x86" +SLOT="0" + +DEPEND="test? ( + dev-python/isort[${PYTHON_USEDEP}] + dev-python/pytest-aiohttp[${PYTHON_USEDEP}] + dev-python/pytest-toolbox[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] +)" + +distutils_enable_tests pytest diff --git a/licenses/Unicode_Fonts_for_Ancient_Scripts b/licenses/Unicode_Fonts_for_Ancient_Scripts new file mode 100644 index 0000000000..2adf3743cf --- /dev/null +++ b/licenses/Unicode_Fonts_for_Ancient_Scripts @@ -0,0 +1,928 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + gentoo/Unicode_Fonts_for_Ancient_Scripts at 5571d42ee5dddbcefaf3a2574d54910475f34245 · gentoo/gentoo · GitHub + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Skip to content + + + + + + + + + + + +
+ +
+ + + + +
+ + + +
+ + + + + + + + + +
+
+
+ + + + + + + + + + + + + + + + + +
+ +
+ +
+

+ + + + + / + + gentoo + + +

+ + +
+ + + +
+ + + + + +
+ + + + + + +
+
+ + + + + + + + Permalink + + + + + +
+ + +
+ + Tree: + 5571d42ee5 + + + + +
+ + + +
+
+
+ +
+ + Find file + + + Copy path + +
+
+ + +
+ + Find file + + + Copy path + +
+
+ + + + +
+ Fetching contributors… +
+ +
+ + Cannot retrieve contributors at this time +
+
+ + + + + +
+ +
+
+ + 1 lines (1 sloc) + + 158 Bytes +
+ +
+ +
+ Raw + Blame + History +
+ + +
+ + + + +
+
+
+ + + + + +
+ + + + + + +
In lieu of a licence: Fonts in this site are offered free for any use; they may be opened, edited, modified, regenerated, posted, packaged and redistributed.
+ + + +
+ +
+ + + +
+ + +
+ + +
+
+ + + +
+
+ +
+
+ + +
+ + + + + + +
+ + + You can’t perform that action at this time. +
+ + + + + + + + + + + + + + + + + + + + diff --git a/media-fonts/symbola/Manifest b/media-fonts/symbola/Manifest new file mode 100644 index 0000000000..24c5307ec8 --- /dev/null +++ b/media-fonts/symbola/Manifest @@ -0,0 +1,2 @@ +DIST symbola-7.17.pdf 95746 BLAKE2B 970a7dfae651a171d37b0ef8f78212985ea1bc974ebc765ed4b473af27ba9f7a41531b011c0e58e70f7696443a1db3e66d9876196a056f2769d58f3d9f0f15c8 SHA512 57fc7ad4d32a9ab0eb16cf7b442ad3c5bcfa56ac949c1554a8910a26e6287e6c4a8f192a1d08066cc5a5ffb28b49c2377b7487246a3362377d96fa8588a66116 +DIST symbola-7.17.zip 2665086 BLAKE2B 6b8b9fce7268cf24e6ff958e03ae8e034eb2817b362f940f0a9408d1b3655a7549513fc6a0e8c2c0d75016508bdf671d5319f5a2a21428f64d075fe361e86b1a SHA512 e871ba54d558dd9150dd8f6a82f2fe4b1497b356d56440ada323f41bc8a1a21794476a8b69cf1759f21e3c99083ae056a1dcdcce0026b1f76847f2b8a71c2e93 diff --git a/media-fonts/symbola/metadata.xml b/media-fonts/symbola/metadata.xml new file mode 100644 index 0000000000..6c0bdfd682 --- /dev/null +++ b/media-fonts/symbola/metadata.xml @@ -0,0 +1,8 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + diff --git a/media-fonts/symbola/symbola-7.17.ebuild b/media-fonts/symbola/symbola-7.17.ebuild new file mode 100644 index 0000000000..ff7724dd34 --- /dev/null +++ b/media-fonts/symbola/symbola-7.17.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +MY_PN="${PN^}" + +inherit font + +DESCRIPTION="Unicode font for Latin, IPA Extensions, Greek, Cyrillic and many Symbol Blocks" +HOMEPAGE="https://web.archive.org/web/20140913154759/http://users.teilar.gr/~g1951d" +SRC_URI=" +https://web.archive.org/web/20140913154759if_/http://users.teilar.gr/~g1951d/Symbola.zip -> ${P}.zip +https://web.archive.org/web/20140913154759if_/http://users.teilar.gr/~g1951d/Symbola.pdf -> ${P}.pdf +" +LICENSE="Unicode_Fonts_for_Ancient_Scripts" +SLOT="0" +KEYWORDS="~amd64" +BDEPEND="app-arch/unzip" +DOCS=( "${DISTDIR}/${P}.pdf" "${MY_PN}.docx" ) +HTML_DOCS=( "${MY_PN}.htm" ) +S="${WORKDIR}" +FONT_S="${S}" +FONT_SUFFIX="ttf" diff --git a/net-im/biboumi/Manifest b/net-im/biboumi/Manifest index 7da872e6b4..cd0fc71358 100644 --- a/net-im/biboumi/Manifest +++ b/net-im/biboumi/Manifest @@ -1 +1,2 @@ DIST biboumi-8.4.tar.xz 142576 BLAKE2B 3be5f8caf406c480a2750d76eacfe9191bccd8bd0fc2ba0ffe6352bf6f6527ab60f16eb25c9820c063af6c9ff4f1b125eb8d51d53bae4392a0d276e7ad488087 SHA512 69f7a47aaf2729a6bffb047201305cef4b87da952aa103d82e715585bf7b2e97fca8159ced1d74c4b01508c874c0db274d7b8349d1579ee3e69fc0ced2c260c2 +DIST biboumi-9.0_pre20200419.tar.bz2 150555 BLAKE2B 6c73abcd62c7448cfc990c7228b37c0eda57d05ee987ef5c9661ed2bf8b8376e253e9507c03151d7334b5bff7c8e6807188e5e806473deb79d96fb81212cfb1f SHA512 b86485c0aae5cca6b5909eec2159c9b52069aade3e399721826c02f297b6f3d57e0ddcab9df4f6aa32b0219ccfbf1c7c63c1f51e4b8ab051b6d1f4dbbb34789e diff --git a/net-im/biboumi/biboumi-9.0_pre20200419.ebuild b/net-im/biboumi/biboumi-9.0_pre20200419.ebuild new file mode 100644 index 0000000000..3394340caf --- /dev/null +++ b/net-im/biboumi/biboumi-9.0_pre20200419.ebuild @@ -0,0 +1,99 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake fcaps + +MY_COMMIT="2ef41e1afca824acc0cd0ac9a714016459a24d25" + +DESCRIPTION="XMPP gateway to IRC" +HOMEPAGE="https://biboumi.louiz.org/" +SRC_URI="https://lab.louiz.org/louiz/biboumi/-/archive/${MY_COMMIT}/biboumi-${MY_COMMIT}.tar.bz2 -> ${P}.tar.bz2" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+idn logrotate postgres +sqlite +ssl systemd udns" + +DEPEND=" + dev-libs/expat + virtual/libiconv + sys-apps/util-linux + sqlite? ( dev-db/sqlite ) + postgres? ( dev-db/postgresql:* ) + idn? ( net-dns/libidn ) + udns? ( net-libs/udns ) + ssl? ( dev-libs/botan:2 ) + !ssl? ( dev-libs/libgcrypt ) + systemd? ( sys-apps/systemd ) +" +BDEPEND="dev-python/sphinx" +RDEPEND=" + ${DEPEND} + acct-user/biboumi" + +S="${WORKDIR}/${PN}-${MY_COMMIT}" + +DOCS=( README.rst CHANGELOG.rst doc/user.rst ) + +# Allow biboumi to run an identd on port 113. +FILECAPS=( cap_net_bind_service+ep usr/bin/biboumi ) + +src_prepare() { + cmake_src_prepare + + if ! use systemd; then # Don't install biboumi.service. + sed -i '/DESTINATION lib\/systemd\/system/d' CMakeLists.txt || die + fi +} + +src_configure() { + local mycmakeargs=( + -DWITH_BOTAN="$(usex ssl)" + -DWITH_LIBIDN="$(usex idn)" + -DWITH_SYSTEMD="$(usex systemd)" + -DWITH_UDNS="$(usex udns)" + -DWITH_SQLITE3="$(usex sqlite)" + -DWITH_POSTGRESQL="$(usex postgres)" + + -DWITHOUT_SYSTEMD="$(usex systemd no yes)" + -DWITHOUT_UDNS="$(usex udns no yes)" + -DWITHOUT_POSTGRESQL="$(usex postgres no yes)" + ) # The WITHOUT_* is really needed. + + cmake_src_configure +} + +src_compile() { + cmake_src_compile + + cmake_build man +} + +src_install() { + cmake_src_install + + if ! use systemd; then + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + fi + + if use logrotate; then + insinto etc/logrotate.d + if use systemd; then + newins "${FILESDIR}/${PN}.logrotate.systemd" "${PN}" + else + newins "${FILESDIR}/${PN}.logrotate.openrc" "${PN}" + fi + fi + + diropts --owner=biboumi --group=biboumi --mode=750 + if use sqlite; then + keepdir var/lib/biboumi + fi + keepdir var/log/biboumi + + insinto etc/biboumi + insopts --group=biboumi --mode=640 + newins conf/biboumi.cfg biboumi.cfg.example +} diff --git a/profiles/desc/geoids_datasets.desc b/profiles/desc/geoids_datasets.desc deleted file mode 100644 index 48dd40d397..0000000000 --- a/profiles/desc/geoids_datasets.desc +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors. -# Distributed under the terms of the GNU General Public License v2 - -# This file contains descriptions of GEOIDS_DATASETS USE_EXPAND flags. - -egm84-30 - http://earth-info.nga.mil/GandG/wgs84/gravitymod/wgs84_180/wgs84_180.html 30' grid. -egm84-15 - http://earth-info.nga.mil/GandG/wgs84/gravitymod/wgs84_180/wgs84_180.html 15' grid. -egm96-15 - http://earth-info.nga.mil/GandG/wgs84/gravitymod/egm96/egm96.html 15' grid. -egm96-5 - http://earth-info.nga.mil/GandG/wgs84/gravitymod/egm96/egm96.html 5' grid. -egm2008-5 - http://earth-info.nga.mil/GandG/wgs84/gravitymod/egm2008 5' grid. -egm2008-2-5 - http://earth-info.nga.mil/GandG/wgs84/gravitymod/egm2008 2.5' grid. -egm2008-1 - http://earth-info.nga.mil/GandG/wgs84/gravitymod/egm2008 1' grid. diff --git a/profiles/desc/gravity_models.desc b/profiles/desc/gravity_models.desc deleted file mode 100644 index 6db958eee9..0000000000 --- a/profiles/desc/gravity_models.desc +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors. -# Distributed under the terms of the GNU General Public License v2 - -# This file contains descriptions of GRAVITY_MODELS USE_EXPAND flags. - -egm84 - the Earth Gravity Model 1984, which includes terms up to degree 180. -egm96 - the Earth Gravity Model 1996, which includes terms up to degree 360. -egm2008 - the Earth Gravity Model 2008, which includes terms up to degree 2190. -wgs84 - the WGS84 Reference Ellipsoid. This is just reproduces the normal gravitational field for the reference ellipsoid. This includes the zonal coefficients up to order 20. diff --git a/profiles/desc/magnetic_models.desc b/profiles/desc/magnetic_models.desc deleted file mode 100644 index b2dece5e0c..0000000000 --- a/profiles/desc/magnetic_models.desc +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors. -# Distributed under the terms of the GNU General Public License v2 - -# This file contains descriptions of MAGNETIC_MODELS USE_EXPAND flags. - -wmm2010 - the World Magnetic Model 2010, which approximates the main magnetic field for the period 2010–2015. -wmm2020 - the World Magnetic Model 2020, which approximates the main magnetic field for the period 2020–2025. -wmm2015v2 - the World Magnetic Model 2015, which approximates the main magnetic field for the period 2015–2020. -igrf11 - the International Geomagnetic Reference Field (11th generation), which approximates the main magnetic field for the period 1900–2015. -igrf12 - the International Geomagnetic Reference Field (12th generation), which approximates the main magnetic field for the period 1900–2020. -emm2010 - the Enhanced Magnetic Model 2010, which approximates the main and crustal magnetic fields for the period 2010–2015. -emm2015 - the Enhanced Magnetic Model 2015, which approximates the main and crustal magnetic fields for the period 2000–2020. -emm2017 - the Enhanced Magnetic Model 2017, which approximates the main and crustal magnetic fields for the period 2000–2022. diff --git a/profiles/desc/precision.desc b/profiles/desc/precision.desc deleted file mode 100644 index 7cc4b6ce17..0000000000 --- a/profiles/desc/precision.desc +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors. -# Distributed under the terms of the GNU General Public License v2 - -# This file contains descriptions of PRECISION USE_EXPAND flags. - -arbitrary - floating point arbitrary precision. -double - floating point 53-bit precision. -quad - floating point 113-bit precision. -long-double - floating point 64-bit precision. -single - floating point 24-bit precision. diff --git a/profiles/license_groups b/profiles/license_groups index fb2b520aab..976b1bdc11 100644 --- a/profiles/license_groups +++ b/profiles/license_groups @@ -1,6 +1,6 @@ FSF-APPROVED EUPL-1.2 OSI-APPROVED EUPL-1.2 -MISC-FREE noweb i3lock-color droidcam +MISC-FREE Unicode_Fonts_for_Ancient_Scripts droidcam i3lock-color noweb FREE-SOFTWARE @FSF-APPROVED @OSI-APPROVED @MISC-FREE FREE @FREE-SOFTWARE DFSG @FREE lablgtk-examples meschach VOSTROM diff --git a/sci-geosciences/geographiclib/metadata.xml b/sci-geosciences/geographiclib/metadata.xml index 981bcd1d1e..c04b45db25 100644 --- a/sci-geosciences/geographiclib/metadata.xml +++ b/sci-geosciences/geographiclib/metadata.xml @@ -3,9 +3,14 @@ lssndrbarbieri@gmail.com - Alessandro Barbieri + Alessandro Barbieri + + charles@karney.com + Charles Karney + + https://geographiclib.sourceforge.io/html https://sourceforge.net/p/geographiclib/bugs/ geographiclib @@ -14,6 +19,30 @@ Install the gravity models Install the geoid datasets Install the magnetic field models + http://earth-info.nga.mil/GandG/wgs84/gravitymod/wgs84_180/wgs84_180.html 30' grid + http://earth-info.nga.mil/GandG/wgs84/gravitymod/wgs84_180/wgs84_180.html 15' grid + http://earth-info.nga.mil/GandG/wgs84/gravitymod/egm96/egm96.html 15' grid + http://earth-info.nga.mil/GandG/wgs84/gravitymod/egm96/egm96.html 5' grid + http://earth-info.nga.mil/GandG/wgs84/gravitymod/egm2008 5' grid + http://earth-info.nga.mil/GandG/wgs84/gravitymod/egm2008 2.5' grid + http://earth-info.nga.mil/GandG/wgs84/gravitymod/egm2008 1' grid + the Earth Gravity Model 1984, which includes terms up to degree 180 + the Earth Gravity Model 1996, which includes terms up to degree 360 + the Earth Gravity Model 2008, which includes terms up to degree 2190 + the WGS84 Reference Ellipsoid. This is just reproduces the normal gravitational field for the reference ellipsoid. This includes the zonal coefficients up to order 20. + the World Magnetic Model 2010, which approximates the main magnetic field for the period 2010–2015. + the World Magnetic Model 2020, which approximates the main magnetic field for the period 2020–2025. + the World Magnetic Model 2015, which approximates the main magnetic field for the period 2015–2020. + the International Geomagnetic Reference Field (11th generation), which approximates the main magnetic field for the period 1900–2015. + the International Geomagnetic Reference Field (12th generation), which approximates the main magnetic field for the period 1900–2020. + the Enhanced Magnetic Model 2010, which approximates the main and crustal magnetic fields for the period 2010–2015. + the Enhanced Magnetic Model 2015, which approximates the main and crustal magnetic fields for the period 2000–2020. + the Enhanced Magnetic Model 2017, which approximates the main and crustal magnetic fields for the period 2000–2022. + floating point arbitrary precision + floating point 53-bit precision + floating point 113-bit precision + floating point 64-bit precision + floating point 24-bit precision GeographicLib is a small set of C++ classes for converting between geographic, UTM, UPS, MGRS, and geocentric coordinates, for gravity (e.g., EGM2008), geoid, and geomagnetic field (e.g., WMM2010) calculations, and for solving geodesic problems. diff --git a/sci-libs/jdqz/files/makefile.patch b/sci-libs/jdqz/files/makefile.patch new file mode 100644 index 0000000000..626af346d1 --- /dev/null +++ b/sci-libs/jdqz/files/makefile.patch @@ -0,0 +1,72 @@ +diff -ur a/jdlib/Makefile b/jdlib/Makefile +--- a/jdlib/Makefile 1996-08-23 10:50:41.000000000 +0200 ++++ b/jdlib/Makefile 2020-04-28 20:06:19.373359811 +0200 +@@ -2,21 +2,18 @@ + # Coded by Diederik R. Fokkema + # + # $Id$ +-# ++# + # + + export SHELL=/bin/sh +-export FC = f77 +-export FFLAGS = -u -O + +-LIB = libjdqz.a ++LIB = libjdqz.so.0 ++SOURCES = $(wildcard *.f) ++OBJS = $(SOURCES:.f=.o) + +-OBJS = $(patsubst %.f,%.o,$(wildcard *.f)) ++.PHONY: all ++all: ${LIB} + +-$(LIB): $(LIB)($(OBJS)) +- ranlib $@ ++$(LIB): $(OBJS) ++ $(FC) -fPIC ${FCFLAGS} $(OBJS) -o $@ ${LDFLAGS} -shared -Wl,-soname,libjdqz.so.0 + +-$(LIB)(jdqz.o): jdqz.f +- $(FC) -u -O1 -c jdqz.f +- $(AR) rv $(LIB) jdqz.o +- -rm jdqz.o +diff -ur a/jdtest/Makefile b/jdtest/Makefile +--- a/jdtest/Makefile 1996-09-02 10:13:34.000000000 +0200 ++++ b/jdtest/Makefile 2020-04-28 20:12:09.021605638 +0200 +@@ -1,13 +1,10 @@ +-FC = f77 +-FFLAGS = -u -O +- + LIBPATH = -L../jdlib +-LIBS = -ljdqz -llapack -lblas ++LIBS = -ljdqz + SUBDIRS = ../jdlib + OBJ = example.o + + all: $(OBJ) +- $(FC) $(LDFLAGS) -o example $(OBJ) $(LIBPATH) $(LIBS) ++ $(FC) -fPIE $(FCFLAGS) $(LDFLAGS) -o example $(OBJ) $(LIBPATH) $(LIBS) + + clean: + -rm -f example +diff -ur a/Makefile b/Makefile +--- a/Makefile 1996-08-23 10:47:42.000000000 +0200 ++++ b/Makefile 2020-04-28 20:13:35.101159047 +0200 +@@ -1,14 +1,11 @@ +-FC = f77 +-FFLAGS = -u -O +- + LIBPATH = -L../jdlib +-LIBS = -ljdqr -llapack -lblas ++LIBS = -ljdqr + SUBDIRS = jdlib + TEST = jdtest + + all: libs jdqr + +-jdqr: ++jdqr: + @for i in $(TEST); do (cd $$i; $(MAKE)); done + + libs: diff --git a/sci-libs/jdqz/jdqz-0_pre19971107-r2.ebuild b/sci-libs/jdqz/jdqz-0_pre19971107-r2.ebuild new file mode 100644 index 0000000000..ff20b56ebc --- /dev/null +++ b/sci-libs/jdqz/jdqz-0_pre19971107-r2.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit flag-o-matic fortran-2 toolchain-funcs + +DESCRIPTION="Jacobi-Davidson type method for the generalized standard eigenvalue problem." +HOMEPAGE="https://www.win.tue.nl/casa/research/scientificcomputing/topics/jd/software.html" +SRC_URI="https://www.win.tue.nl/casa/research/scientificcomputing/topics/jd/${PN}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc" + +# virtual/lapack does not pull in [deprecated] so we have to deal with this mess like this until it does +DEPEND=" + virtual/blas + virtual/lapack + || ( sci-libs/openblas sci-libs/lapack[deprecated] ) +" +RDEPEND="${DEPEND}" +BDEPEND="doc? ( dev-texlive/texlive-latex )" + +PATCHES=( "${FILESDIR}/makefile.patch" ) + +S="${WORKDIR}/${PN}" + +src_prepare() { + libs="$($(tc-getPKG_CONFIG) --libs blas)" + libs+=" $($(tc-getPKG_CONFIG) --libs lapack)" + append-fflags "${libs}" + default +} + +src_compile() { + if use doc; then + pdflatex manual.tex || die + fi + + cd "jdlib" || die + emake + ln -s libjdqz.so.0 libjdqz.so || die +} + +src_test() { + cd "jdtest" || die + emake + cd ".." || die + LD_LIBRARY_PATH="./jdlib" ./jdtest/example || die +} + +src_install() { + dolib.so jdlib/libjdqz.so + dolib.so jdlib/libjdqz.so.0 + + use doc && dodoc manual.pdf +} diff --git a/sci-libs/saclib/files/makefile.patch b/sci-libs/saclib/files/makefile.patch new file mode 100644 index 0000000000..bc49d0b629 --- /dev/null +++ b/sci-libs/saclib/files/makefile.patch @@ -0,0 +1,150 @@ +diff -ur a/bin/mklib b/bin/mklib +--- a/bin/mklib 2018-01-30 22:09:32.000000000 +0100 ++++ b/bin/mklib 2020-04-28 21:03:24.823472623 +0200 +@@ -2,31 +2,17 @@ + + # USAGE: + # mklib +-# +-# FUNCTION +-# Creates ".a" files in "$saclib/lib/" depending on the argument: +-# - 'std' causes a standard library to be built. The library file will have +-# the name "saclib.a" and the corresponding object files are in +-# "saclib/lib/obj". +-# - 'deb' switches on the '-g' option of the compiler which includes +-# debugging information in the object files. The library file will have +-# the name "saclibd.a" and the corresponding object files are in +-# "saclib/lib/objd". +-# - 'opt' switches on the '-O' option which produces optimized code. The +-# library file will have the name "saclibo.a" and the corresponding object +-# files are in "saclib/lib/objo". +-# - 'all' builds all three types of libraries. + +-if [ $# -lt 1 ] ++if [ $# -lt 1 ] + then + echo "USAGE:" + echo " mklib " + exit + fi + +-if [ $1 = "clean" ] ++if [ $1 = "clean" ] + then +- ### remove .o and .a and makefiles ++ ### remove .o and .so and makefiles + echo "Removing object files, libraries and makefiles ..." + pushd >/dev/null $saclib/lib/objo + 'rm' -f * +@@ -35,7 +21,7 @@ + 'rm' -f * + popd >/dev/null + pushd >/dev/null $saclib/lib/ +- 'rm' -f *.a ++ 'rm' -f *.so + popd >/dev/null + ### do sysdep cleanup + echo "Removing system-dependent files ..." +@@ -57,12 +43,6 @@ + exit + fi + +- +-if [ ! -n "${CC+1}" ] +-then +- CC=cc +-fi +- + echo "Compiling with" $CC + + if [ $1 = "std" ] +@@ -70,15 +50,15 @@ + echo "This option no longer exists!" + elif [ $1 = "deb" ]; then + pushd >/dev/null $saclib/lib/objd +- make CC=$CC "SACFLAG=-g -DNO_SACLIB_MACROS" EXTENSION=d ++ make CC=$CC "SACFLAG=-fPIC ${CFLAGS} -DNO_SACLIB_MACROS" EXTENSION=d + popd >/dev/null + elif [ $1 = "opt" ]; then + pushd >/dev/null $saclib/lib/objo +- make CC=$CC "SACFLAG=" EXTENSION=o ++ make CC=$CC "SACFLAG=-fPIC ${CFLAGS}" EXTENSION=o + popd >/dev/null + elif [ $1 = "all" ]; then + pushd >/dev/null $saclib/lib/objd +- make CC=$CC "SACFLAG=-g -DNO_SACLIB_MACROS" EXTENSION=d ++ make CC=$CC "SACFLAG=-fPIC ${CFLAGS} -DNO_SACLIB_MACROS" EXTENSION=d + popd >/dev/null + pushd >/dev/null $saclib/lib/objo + make CC=$CC "SACFLAG=" EXTENSION=o +diff -ur a/bin/mkmake b/bin/mkmake +--- a/bin/mkmake 2018-01-30 22:09:32.000000000 +0100 ++++ b/bin/mkmake 2020-04-28 21:29:02.709088176 +0200 +@@ -25,20 +25,16 @@ + # E.g. if is -g and is d, the library will be + # compiled with the debug option set and the library name will be + # "saclibg.a". +-# ++# + # REMARK + # This file should not be modified. Modify 'mkmake' instead and then use it +-# to create the new makefile. ++# to create the new makefile. + + # Macros + + SRCDIR = ${saclib}/src +-TARGET = ${saclib}/lib/saclib${EXTENSION}.a +-CFLAGS = -I${saclib}/include -c ${SACFLAG} +-AFLAGS = -I${saclib}/include -P +-AS = as +-AR = ar +-RANLIB = ranlib ++TARGET = ${saclib}/lib/${FULLLIBNAME} ++CFLAGS = -I${saclib}/include ${SACFLAG} -fPIC + + # Object files + +@@ -81,21 +77,13 @@ + # + + cat >> $MAKEFILE <<\EOF +- ++ + + # Target dependencies + +-new: ${OBJS1} ${OBJS2a} ${OBJS2b} ${OBJS3} ${OBJS4} ++$(TARGET): ${OBJS1} ${OBJS2a} ${OBJS2b} ${OBJS3} ${OBJS4} + rm -f ${TARGET} +- ${AR} cq ${TARGET} ${OBJS1} +- ${AR} cq ${TARGET} ${OBJS2a} +- ${AR} cq ${TARGET} ${OBJS2b} +- ${AR} cq ${TARGET} ${OBJS3} +- ${AR} cq ${TARGET} ${OBJS4} +-# Use "ar ts" if your system does not have "ranlib". +-# ${AR} ts ${TARGET} +-# Use "ranlib" if your system's "ar" does not have the option "s". +- ${RANLIB} ${TARGET} ++ $(CC) ${OBJS1} ${OBJS2a} ${OBJS2b} ${OBJS3} ${OBJS4} -fPIC -shared ${CFLAGS} -o $@ ${LDFLAGS} -Wl,-soname,${FULLLIBNAME} + @echo "Created '${TARGET}'." + + EOF +@@ -113,7 +101,7 @@ + + + 'ls' *.[c] 2> /dev/null |\ +-awk -F. '{printf "%s.o: ${SRCDIR}/%s\n\t${CC} ${CFLAGS} ${SRCDIR}/%s\n",$1,$0,$0}' >>$MAKEFILE ++awk -F. '{printf "%s.o: ${SRCDIR}/%s\n\t${CC} ${CFLAGS} -c ${SRCDIR}/%s\n",$1,$0,$0}' >>$MAKEFILE + + 'ls' *.[s] 2> /dev/null |\ + awk -F. '{printf "%s.o: ${SRCDIR}/%s\n\t${AS} ${AFLAGS} ${SRCDIR}/%s -o %s.o\n",$1,$0,$0,$1}' >>$MAKEFILE +@@ -123,7 +111,7 @@ + + # + ## Done +-# ++# + + 'cp' $MAKEFILE $saclib/lib/objd + popd >/dev/null diff --git a/sci-libs/saclib/saclib-2.2.7-r2.ebuild b/sci-libs/saclib/saclib-2.2.7-r2.ebuild new file mode 100644 index 0000000000..631d69b072 --- /dev/null +++ b/sci-libs/saclib/saclib-2.2.7-r2.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit toolchain-funcs + +MYP="${PN}${PV}" + +MAJOR=$(ver_cut 1) +MINOR=$(ver_cut 2) +REVISION=$(ver_cut 3) +LIBNAME="lib${PN}.so" +MAJLIBNAME="${LIBNAME}.${MAJOR}" +MINMAJLIBNAME="${MAJLIBNAME}.${MINOR}" +FULLLIBNAME="${MINMAJLIBNAME}.${REVISION}" + +DESCRIPTION="Reference implementations of algorithms and forms the basis of QEPCAD" +HOMEPAGE="https://www.usna.edu/Users/cs/wcbrown/qepcad/B/QEPCAD.html" +SRC_URI="https://www.usna.edu/Users/cs/wcbrown/qepcad/INSTALL/${MYP}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="debug" + +RDEPEND="" +DEPEND="" +BDEPEND=" + app-shells/bash + app-shells/tcsh +" + +S="${WORKDIR}/${MYP}" + +PATCHES=( "${FILESDIR}/makefile.patch" ) + +DOCS=( doc/saclib.pdf doc/saclocal.dvi doc/desc.doc ) + +src_prepare() { + export saclib="${S}" + export FULLLIBNAME + export CC=$(tc-getCC) + default +} + +src_configure() { + cd "${saclib}/bin" || die + ./sconf || die + ./mkproto || die + ./mkmake || die +} + +src_compile() { + cd "${saclib}/bin" || die + if use debug ; then + ./mklib deb || die + cd ../lib/objd || die + else + ./mklib opt || die + cd ../lib/objo || die + fi + + cd .. || die + ln -s "${FULLLIBNAME}" "${MINMAJLIBNAME}" || die + ln -s "${MINMAJLIBNAME}" "${MAJLIBNAME}" || die + ln -s "${MAJLIBNAME}" "${LIBNAME}" || die +} + +src_install() { + einstalldocs + dolib.so "lib/${FULLLIBNAME}" + dolib.so "lib/${MINMAJLIBNAME}" + dolib.so "lib/${MAJLIBNAME}" + dolib.so "lib/${LIBNAME}" + insinto /usr/include/saclib + doins -r include/. +}