diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2019-05-21 16:50:01 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2019-05-21 16:50:23 +0200 |
commit | 324c59cc4f75bcf4eeb6e5f3dec4668f4377f6f4 (patch) | |
tree | 71feb75392479e98831bcee923408141285812af /app-portage/elicense | |
parent | app-portage/elicense: update live ebuild (diff) | |
download | gentoo-324c59cc4f75bcf4eeb6e5f3dec4668f4377f6f4.tar.gz gentoo-324c59cc4f75bcf4eeb6e5f3dec4668f4377f6f4.tar.bz2 gentoo-324c59cc4f75bcf4eeb6e5f3dec4668f4377f6f4.zip |
app-portage/elicense: bump to v1.0.1
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'app-portage/elicense')
-rw-r--r-- | app-portage/elicense/Manifest | 2 | ||||
-rw-r--r-- | app-portage/elicense/elicense-1.0.1.ebuild (renamed from app-portage/elicense/elicense-1.0.0.ebuild) | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/app-portage/elicense/Manifest b/app-portage/elicense/Manifest index 5d6c85b7d435..236ff9976fbf 100644 --- a/app-portage/elicense/Manifest +++ b/app-portage/elicense/Manifest @@ -1 +1 @@ -DIST elicense-1.0.0.tar.gz 8719 BLAKE2B 4d9c06cf3229f5a13ec246080098e1f8389afa951bf95cce48159509c160bbc43da511ec0936139c282f59514419fc4911b6a7c9c89bdce18ccda8d175baacae SHA512 5b81e9256486f42f9060d29c7ba3c9101a23a60bfc1ceed978172a2d6feeda22e42486b950ee181a3fe5166e69cabc0ba29043811076865b38f687c0258e9aa8 +DIST elicense-1.0.1.tar.gz 9260 BLAKE2B b5782412de613bce009ff1d685de6af9a129afadd131a91328cfd02d55c416e5c7549aacf676c4596a4512de4e3a42d2b89c24d2367404177e9675a7fdc35d94 SHA512 3b7b412742a9b67b5c4dda10838d6380c1f18199bcaa87458f30b06bff068228f64364d336d1daf4b95df6c1889ae9de7f277dea3defd18dbf74d50fc9381500 diff --git a/app-portage/elicense/elicense-1.0.0.ebuild b/app-portage/elicense/elicense-1.0.1.ebuild index a7cb3da3c328..bbba9eea7ef6 100644 --- a/app-portage/elicense/elicense-1.0.0.ebuild +++ b/app-portage/elicense/elicense-1.0.1.ebuild @@ -21,3 +21,16 @@ SLOT="0" IUSE="" RDEPEND=">=sys-apps/portage-2.3.62[${PYTHON_USEDEP}]" + +src_prepare() { + default + + local MY_PV=${PV} + if [[ ${PV} == "9999" ]]; then + local last_commit=$(git rev-parse HEAD) + MY_PV="${last_commit:0:7}-git" + fi + + sed -i -e "s/^MY_PV =.*$/MY_PV = \"${MY_PV}\"/" \ + elicense || die "Failed to sed in version." +} |