diff options
Diffstat (limited to 'app-crypt/acme/acme-9999.ebuild')
-rw-r--r-- | app-crypt/acme/acme-9999.ebuild | 93 |
1 files changed, 42 insertions, 51 deletions
diff --git a/app-crypt/acme/acme-9999.ebuild b/app-crypt/acme/acme-9999.ebuild index 1d83c8b8d408..8ab22f2f02b5 100644 --- a/app-crypt/acme/acme-9999.ebuild +++ b/app-crypt/acme/acme-9999.ebuild @@ -1,69 +1,60 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 -PYTHON_COMPAT=(python{3_6,3_7,3_8}) +EAPI=8 -if [[ ${PV} == 9999* ]]; then - EGIT_REPO_URI="https://github.com/certbot/certbot.git" +PYTHON_COMPAT=( python3_{9..12} ) +DISTUTILS_USE_PEP517=setuptools + +inherit distutils-r1 + +PARENT_PN="certbot" +PARENT_P="${PARENT_PN}-${PV}" + +if [[ "${PV}" == *9999 ]]; then inherit git-r3 - S=${WORKDIR}/${P}/${PN} + + EGIT_REPO_URI="https://github.com/certbot/certbot.git" + EGIT_SUBMODULES=() + EGIT_CHECKOUT_DIR="${WORKDIR}/${PARENT_P}" else - SRC_URI="https://github.com/certbot/certbot/archive/v${PV}.tar.gz -> certbot-${PV}.tar.gz" - KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" - S=${WORKDIR}/certbot-${PV}/acme + SRC_URI=" + https://github.com/certbot/certbot/archive/v${PV}.tar.gz + -> ${PARENT_P}.gh.tar.gz + " + KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" fi -inherit distutils-r1 - DESCRIPTION="An implementation of the ACME protocol" -HOMEPAGE="https://github.com/certbot/certbot https://letsencrypt.org/" +HOMEPAGE=" + https://github.com/certbot/certbot + https://letsencrypt.org/ +" LICENSE="Apache-2.0" SLOT="0" -IUSE="doc test" -RESTRICT="!test? ( test )" -RDEPEND=" - >=dev-python/cryptography-1.3.4[${PYTHON_USEDEP}] - >=dev-python/idna-2.0.0[${PYTHON_USEDEP}] - >=dev-python/josepy-1.1.0[${PYTHON_USEDEP}] - >=dev-python/pyopenssl-0.13.1[${PYTHON_USEDEP}] - dev-python/pyrfc3339[${PYTHON_USEDEP}] - dev-python/pytz[${PYTHON_USEDEP}] - >=dev-python/requests-2.10[${PYTHON_USEDEP}] - >=dev-python/requests-toolbelt-0.3.0[${PYTHON_USEDEP}] - >=dev-python/six-1.9.0[${PYTHON_USEDEP}] -" -DEPEND=" - doc? ( - dev-python/sphinx[${PYTHON_USEDEP}] - dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] - ) +S="${WORKDIR}/${PARENT_P}/${PN}" + +BDEPEND=" test? ( - ${RDEPEND} - dev-python/nose[${PYTHON_USEDEP}] dev-python/pytest[${PYTHON_USEDEP}] dev-python/pytest-xdist[${PYTHON_USEDEP}] + dev-python/typing-extensions[${PYTHON_USEDEP}] ) - >=dev-python/setuptools-1.0[${PYTHON_USEDEP}] +" +# The requirement is really 17.5.0 but easier to require latest stable >= 23.1.1 +# to avoid broken 23.1.0. +RDEPEND=" + dev-python/chardet[${PYTHON_USEDEP}] + >=dev-python/cryptography-3.2.1[${PYTHON_USEDEP}] + >=dev-python/josepy-1.13.0[${PYTHON_USEDEP}] + >=dev-python/pyopenssl-23.1.1[${PYTHON_USEDEP}] + dev-python/pyrfc3339[${PYTHON_USEDEP}] + >=dev-python/pytz-2019.3[${PYTHON_USEDEP}] + >=dev-python/requests-2.20.0[${PYTHON_USEDEP}] + >=dev-python/requests-toolbelt-0.3.0[${PYTHON_USEDEP}] " -src_compile() { - python_foreach_impl run_in_build_dir default - distutils-r1_src_compile - if use doc ; then - cd docs || die - sphinx-build -b html -d _build/doctrees . _build/html - fi -} - -python_test() { - nosetests -w ${PN} || die -} - -python_install_all() { - use doc && local HTML_DOCS=( docs/_build/html/. ) - - distutils-r1_python_install_all -} +distutils_enable_sphinx docs dev-python/sphinx-rtd-theme +distutils_enable_tests pytest |