app-crypt/letsencrypt: Add support for regular releases
authorManuel Rüger <mrueg@gentoo.org>
Fri, 11 Dec 2015 22:48:38 +0000 (23:48 +0100)
committerManuel Rüger <mrueg@gentoo.org>
Fri, 11 Dec 2015 22:48:52 +0000 (23:48 +0100)
Package-Manager: portage-2.2.26

app-crypt/letsencrypt/letsencrypt-9999.ebuild

index c271da785b4476ba8849f967a491f0e5417bc809..72156f507227e52b30126cecf6b674955c31d262 100644 (file)
@@ -5,16 +5,22 @@
 EAPI=5
 PYTHON_COMPAT=(python2_7)
 
-EGIT_REPO_URI="https://github.com/letsencrypt/letsencrypt.git"
+if [[ ${PV} == 9999* ]]; then
+       EGIT_REPO_URI="https://github.com/letsencrypt/letsencrypt.git"
+       inherit git-r3
+       KEYWORDS=""
+else
+       SRC_URI="https://github.com/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64"
+fi
 
-inherit git-r3 distutils-r1
+inherit distutils-r1
 
 DESCRIPTION="Let's encrypt client to automate deployment of X.509 certificates"
 HOMEPAGE="https://github.com/letsencrypt/letsencrypt https://letsencrypt.org/"
 
 LICENSE="Apache-2.0"
 SLOT="0"
-KEYWORDS=""
 IUSE="test"
 
 RDEPEND=">=app-crypt/acme-${PV}[${PYTHON_USEDEP}]