From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 273E9138334 for ; Sun, 8 Sep 2019 18:35:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 66963E0991; Sun, 8 Sep 2019 18:35:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 48280E097C for ; Sun, 8 Sep 2019 18:35:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 63B7C34AE02 for ; Sun, 8 Sep 2019 18:35:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5C1A07CC for ; Sun, 8 Sep 2019 18:35:04 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1567967675.e00287484bf40d6f0c4083b40c192543f92d9e8b.whissi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-portage/elicense/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-portage/elicense/Manifest app-portage/elicense/elicense-1.0.2.ebuild X-VCS-Directories: app-portage/elicense/ X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: e00287484bf40d6f0c4083b40c192543f92d9e8b X-VCS-Branch: master Date: Sun, 8 Sep 2019 18:35:04 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 78ecc7dd-eae0-4019-b58f-c69d910fd0fe X-Archives-Hash: 0fb5172598695dfb1b1374dc99b0ae21 commit: e00287484bf40d6f0c4083b40c192543f92d9e8b Author: Thomas Deutschmann gentoo org> AuthorDate: Sun Sep 8 18:33:39 2019 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Sun Sep 8 18:34:35 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0028748 app-portage/elicense: bump to v1.0.2 Package-Manager: Portage-2.3.75, Repoman-2.3.17 Signed-off-by: Thomas Deutschmann gentoo.org> app-portage/elicense/Manifest | 1 + app-portage/elicense/elicense-1.0.2.ebuild | 36 ++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/app-portage/elicense/Manifest b/app-portage/elicense/Manifest index 236ff9976fb..645d82e2c90 100644 --- a/app-portage/elicense/Manifest +++ b/app-portage/elicense/Manifest @@ -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 diff --git a/app-portage/elicense/elicense-1.0.2.ebuild b/app-portage/elicense/elicense-1.0.2.ebuild new file mode 100644 index 00000000000..bbba9eea7ef --- /dev/null +++ b/app-portage/elicense/elicense-1.0.2.ebuild @@ -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." +}