forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package-Manager: Portage-3.0.20, Repoman-3.0.2 Signed-off-by: Matthew Thode <[email protected]>
- Loading branch information
1 parent
f6b0ed2
commit 1b38310
Showing
2 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST certbot-1.16.0.tar.gz 1384177 BLAKE2B 4e46e7d7b9db2f6ef19fab60c2d904f84b502d2911ed496967bbe272db5352c1e9bdb65b8f45358f222214bce4721ceecc12c018b875148bc897f83c5eb63933 SHA512 c2a0c4ea52ab241e387d686a9e5ed67aa5e8b4b7d34ad8996e34562e036c25ab8b397bf482a856758ca787b97bbd78c890189250c0c3d948f03fbf91aa25ece0 | ||
DIST certbot-1.17.0.tar.gz 1386471 BLAKE2B 26cf23c481cc67e1fa0f698dee83dd42b1d382814f10bdb4d2a459f1274f3d661d2a58815c30110701d46362c3fbaee9f57089a7eda1221c9b9dadb2c48dc79d SHA512 104deb8e6e804a3a3f50c730f00307aa39d9d42756f24be009fedc27c889c1575b456455ee11441e341025db6f528359e927a347554ebd57b64c39e789576eda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Copyright 1999-2021 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
PYTHON_COMPAT=(python{3_7,3_8,3_9}) | ||
DISTUTILS_USE_SETUPTOOLS=rdepend | ||
|
||
if [[ ${PV} == 9999* ]]; then | ||
EGIT_REPO_URI="https://github.com/certbot/certbot.git" | ||
inherit git-r3 | ||
S=${WORKDIR}/${P}/${PN} | ||
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 | ||
fi | ||
|
||
inherit distutils-r1 | ||
|
||
DESCRIPTION="An implementation of the ACME protocol" | ||
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-2.1.4[${PYTHON_USEDEP}] | ||
>=dev-python/idna-2.0.0[${PYTHON_USEDEP}] | ||
>=dev-python/josepy-1.1.0[${PYTHON_USEDEP}] | ||
>=dev-python/pyopenssl-17.3.0[${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}] | ||
" | ||
DEPEND=" | ||
doc? ( | ||
dev-python/sphinx[${PYTHON_USEDEP}] | ||
dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] | ||
) | ||
test? ( | ||
${RDEPEND} | ||
dev-python/nose[${PYTHON_USEDEP}] | ||
dev-python/pytest[${PYTHON_USEDEP}] | ||
dev-python/pytest-xdist[${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 | ||
} |