app-crypt/acme-tiny: Adjust versioning for new versions
authorNP-Hardass <NP-Hardass@gentoo.org>
Fri, 16 Mar 2018 06:19:09 +0000 (02:19 -0400)
committerNP-Hardass <NP-Hardass@gentoo.org>
Fri, 16 Mar 2018 07:06:13 +0000 (03:06 -0400)
Package-Manager: Portage-2.3.24, Repoman-2.3.6

app-crypt/acme-tiny/Manifest
app-crypt/acme-tiny/acme-tiny-0_p20170917.ebuild [moved from app-crypt/acme-tiny/acme-tiny-20170917.ebuild with 81% similarity]
app-crypt/acme-tiny/acme-tiny-9999.ebuild [moved from app-crypt/acme-tiny/acme-tiny-99999999.ebuild with 81% similarity]

index adc866795ddb7baa3ce60fd04f57db8fe30c766b..3c3367257eadeb53e93464dc3730d300642075e8 100644 (file)
@@ -1 +1 @@
-DIST acme-tiny-20170917.tar.gz 10516 BLAKE2B e9d4ae170579cd5379dbb4d900d051bc1789ac994eb491aafb9952cd004b3e3feed20ef505f88587035f3f16163e7965a1b3883caaaa8c2327fca6be0240a17f SHA512 0bfb0d064f21f9d89e3c5863f33c7326c02948a42e2c8dc11c7b5baaf5e0dfcaeba0ad461b2ad12e292cc14f64b44f331f11b56dda6592a4663baf0714048700
+DIST acme-tiny-0_p20170917.tar.gz 10516 BLAKE2B e9d4ae170579cd5379dbb4d900d051bc1789ac994eb491aafb9952cd004b3e3feed20ef505f88587035f3f16163e7965a1b3883caaaa8c2327fca6be0240a17f SHA512 0bfb0d064f21f9d89e3c5863f33c7326c02948a42e2c8dc11c7b5baaf5e0dfcaeba0ad461b2ad12e292cc14f64b44f331f11b56dda6592a4663baf0714048700
similarity index 81%
rename from app-crypt/acme-tiny/acme-tiny-20170917.ebuild
rename to app-crypt/acme-tiny/acme-tiny-0_p20170917.ebuild
index b85a7644799710f6ed0ca8b2ffbc22972813e35e..5dc8c71c35e5e7c7d12b8de0793e231fe22dc63a 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -6,15 +6,18 @@ EAPI=6
 PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
 inherit distutils-r1
 
-if [[ ${PV} == 99999999 ]]; then
+if [[ ${PV} == 9999 ]]; then
        inherit git-r3
        EGIT_REPO_URI="https://github.com/diafygi/${PN}.git"
        KEYWORDS=""
-else
+elif [[ ${PV} =~ 0_p* ]]; then
        HASH="4ed13950c0a9cf61f1ca81ff1874cde1cf48ab32"
        SRC_URI="https://github.com/diafygi/${PN}/archive/${HASH}.tar.gz -> ${P}.tar.gz"
        KEYWORDS="~amd64 ~x86"
        S="${WORKDIR}/${PN}-${HASH}"
+else
+       SRC_URI="https://github.com/diafygi/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86"
 fi
 
 DESCRIPTION="A tiny, auditable script for Let's Encrypt's ACME Protocol"
@@ -31,7 +34,7 @@ RDEPEND="dev-libs/openssl:0"
 PATCHES=( "${FILESDIR}/${PN}-PR50-setup.py.patch" )
 
 pkg_setup() {
-       if [[ ${PV} != 99999999 ]]; then
+       if [[ ${PV} != 9999 ]]; then
                export SETUPTOOLS_SCM_PRETEND_VERSION="0.1.dev79+n${HASH:0:7}.d$(date +%Y%m%d)"
        fi
 }
similarity index 81%
rename from app-crypt/acme-tiny/acme-tiny-99999999.ebuild
rename to app-crypt/acme-tiny/acme-tiny-9999.ebuild
index b85a7644799710f6ed0ca8b2ffbc22972813e35e..5dc8c71c35e5e7c7d12b8de0793e231fe22dc63a 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -6,15 +6,18 @@ EAPI=6
 PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
 inherit distutils-r1
 
-if [[ ${PV} == 99999999 ]]; then
+if [[ ${PV} == 9999 ]]; then
        inherit git-r3
        EGIT_REPO_URI="https://github.com/diafygi/${PN}.git"
        KEYWORDS=""
-else
+elif [[ ${PV} =~ 0_p* ]]; then
        HASH="4ed13950c0a9cf61f1ca81ff1874cde1cf48ab32"
        SRC_URI="https://github.com/diafygi/${PN}/archive/${HASH}.tar.gz -> ${P}.tar.gz"
        KEYWORDS="~amd64 ~x86"
        S="${WORKDIR}/${PN}-${HASH}"
+else
+       SRC_URI="https://github.com/diafygi/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86"
 fi
 
 DESCRIPTION="A tiny, auditable script for Let's Encrypt's ACME Protocol"
@@ -31,7 +34,7 @@ RDEPEND="dev-libs/openssl:0"
 PATCHES=( "${FILESDIR}/${PN}-PR50-setup.py.patch" )
 
 pkg_setup() {
-       if [[ ${PV} != 99999999 ]]; then
+       if [[ ${PV} != 9999 ]]; then
                export SETUPTOOLS_SCM_PRETEND_VERSION="0.1.dev79+n${HASH:0:7}.d$(date +%Y%m%d)"
        fi
 }