Gentoo Archives: gentoo-commits

From: Daniel Pielmeier <billie@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-portage/pfl/
Date: Wed, 02 Feb 2022 17:11:50
Message-Id: 1643821885.9303a3c491fa724daf3f4f1618f0f7b4245757e5.billie@gentoo
1 commit: 9303a3c491fa724daf3f4f1618f0f7b4245757e5
2 Author: Daniel Pielmeier <billie <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 2 17:11:25 2022 +0000
4 Commit: Daniel Pielmeier <billie <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 2 17:11:25 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9303a3c4
7
8 app-portage/pfl: Migrate to PEP517 build.
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Daniel Pielmeier <billie <AT> gentoo.org>
12
13 app-portage/pfl/pfl-3.2-r2.ebuild | 50 +++++++++++++++++++++++++++++++++++++++
14 1 file changed, 50 insertions(+)
15
16 diff --git a/app-portage/pfl/pfl-3.2-r2.ebuild b/app-portage/pfl/pfl-3.2-r2.ebuild
17 new file mode 100644
18 index 000000000000..a6828df22df9
19 --- /dev/null
20 +++ b/app-portage/pfl/pfl-3.2-r2.ebuild
21 @@ -0,0 +1,50 @@
22 +# Copyright 1999-2022 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=8
26 +
27 +DISTUTILS_USE_PEP517=setuptools
28 +PYTHON_COMPAT=( python3_{8,9,10} )
29 +PYTHON_REQ_USE="xml"
30 +
31 +inherit distutils-r1 systemd
32 +
33 +DESCRIPTION="Searchable online file/package database for Gentoo"
34 +HOMEPAGE="http://www.portagefilelist.de https://github.com/portagefilelist/client"
35 +SRC_URI="https://github.com/portagefilelist/client/archive/${PV}.tar.gz -> ${P}.tar.gz"
36 +
37 +LICENSE="GPL-2"
38 +SLOT="0"
39 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
40 +IUSE="+network-cron"
41 +
42 +DEPEND=""
43 +RDEPEND="
44 + dev-python/requests[${PYTHON_USEDEP}]
45 + dev-python/termcolor[${PYTHON_USEDEP}]
46 + sys-apps/portage[${PYTHON_USEDEP}]
47 + network-cron? ( sys-apps/util-linux[caps] )
48 +"
49 +
50 +S="${WORKDIR}/client-${PV}"
51 +
52 +python_install_all() {
53 + if use network-cron ; then
54 + exeinto /etc/cron.weekly
55 + doexe cron/pfl
56 + fi
57 +
58 + systemd_dounit systemd/pfl.{service,timer}
59 +
60 + keepdir /var/lib/${PN}
61 +
62 + distutils-r1_python_install_all
63 +}
64 +
65 +pkg_postinst() {
66 + if [[ ! -e "${EROOT}/var/lib/${PN}/pfl.info" ]]; then
67 + touch "${EROOT}/var/lib/${PN}/pfl.info" || die
68 + fi
69 + chown -R portage:portage "${EROOT}/var/lib/${PN}" || die
70 + chmod 775 "${EROOT}/var/lib/${PN}" || die
71 +}