summaryrefslogtreecommitdiff
path: root/app-portage/elicense/elicense-1.0.2-r3.ebuild
blob: 5f9571c5076440baabaafae704ae7e1d55d1fbdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{13..14} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1

DESCRIPTION="Tool to find installed packages in Gentoo with non-accepted license(s)"
HOMEPAGE="https://github.com/Whissi/elicense"
SRC_URI="https://github.com/Whissi/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ppc ppc64 ~riscv ~s390 ~sparc x86"

RDEPEND=">=sys-apps/portage-3.0.74[${PYTHON_USEDEP}]"

PATCHES=( "${FILESDIR}/${P}-LicenseManager.patch" )

src_prepare() {
	default

	sed -i -e "s/^MY_PV =.*$/MY_PV = \"${PV}\"/" elicense || die
}