mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
app-portage/elicense: bump to v1.0.2
Package-Manager: Portage-2.3.75, Repoman-2.3.17 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST elicense-1.0.1.tar.gz 9260 BLAKE2B b5782412de613bce009ff1d685de6af9a129afadd131a91328cfd02d55c416e5c7549aacf676c4596a4512de4e3a42d2b89c24d2367404177e9675a7fdc35d94 SHA512 3b7b412742a9b67b5c4dda10838d6380c1f18199bcaa87458f30b06bff068228f64364d336d1daf4b95df6c1889ae9de7f277dea3defd18dbf74d50fc9381500
|
||||
DIST elicense-1.0.2.tar.gz 9262 BLAKE2B fd1e808f577269758ed46c8e8965dc1be7649c825a094ff5b2e09dba12af5249a5a73dc5489ed131c8221e88642f92ac8b859ad5185d3a0c095bd1485178cd27 SHA512 ac6788e7726d962e72855da053be0c44722a013dfa7f500dc137ae46d946c176a285455ddaa5eeee1f6e224d5960aa2a578caa7c3182a5f93d3bbfae8cfd4a93
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} )
|
||||
inherit distutils-r1
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/Whissi/elicense.git"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://github.com/Whissi/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-fbsd"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Tool to find installed packages in Gentoo with non-accepted license(s)"
|
||||
HOMEPAGE="https://github.com/Whissi/elicense"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
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."
|
||||
}
|
||||
Reference in New Issue
Block a user