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: Fri, 25 Sep 2020 12:52:59
Message-Id: 1601038339.ad90e612f0c585186e487f74cd34a40be42b1a77.billie@gentoo
1 commit: ad90e612f0c585186e487f74cd34a40be42b1a77
2 Author: Daniel Pielmeier <billie <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 25 12:52:19 2020 +0000
4 Commit: Daniel Pielmeier <billie <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 25 12:52:19 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad90e612
7
8 app-portage/pfl: Add python 3.9 support.
9
10 Package-Manager: Portage-3.0.4, Repoman-3.0.1
11 Signed-off-by: Daniel Pielmeier <billie <AT> gentoo.org>
12
13 app-portage/pfl/pfl-3.1-r1.ebuild | 51 +++++++++++++++++++++++++++++++++++++++
14 1 file changed, 51 insertions(+)
15
16 diff --git a/app-portage/pfl/pfl-3.1-r1.ebuild b/app-portage/pfl/pfl-3.1-r1.ebuild
17 new file mode 100644
18 index 00000000000..bff47df54d9
19 --- /dev/null
20 +++ b/app-portage/pfl/pfl-3.1-r1.ebuild
21 @@ -0,0 +1,51 @@
22 +# Copyright 1999-2020 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +DISTUTILS_USE_SETUPTOOLS=no
28 +PYTHON_COMPAT=( python3_{6,7,8,9} )
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 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
40 +IUSE="+network-cron"
41 +
42 +DEPEND=""
43 +RDEPEND="
44 + ${DEPEND}
45 + dev-python/requests[${PYTHON_USEDEP}]
46 + net-misc/curl
47 + sys-apps/portage[${PYTHON_USEDEP}]
48 + network-cron? ( sys-apps/util-linux[caps] )
49 +"
50 +
51 +S="${WORKDIR}/client-${PV}"
52 +
53 +python_install_all() {
54 + if use network-cron ; then
55 + exeinto /etc/cron.weekly
56 + doexe cron/pfl
57 + fi
58 +
59 + systemd_dounit systemd/pfl.{service,timer}
60 +
61 + keepdir /var/lib/${PN}
62 +
63 + distutils-r1_python_install_all
64 +}
65 +
66 +pkg_postinst() {
67 + if [[ ! -e "${EROOT}/var/lib/${PN}/pfl.info" ]]; then
68 + touch "${EROOT}/var/lib/${PN}/pfl.info" || die
69 + fi
70 + chown -R portage:portage "${EROOT}/var/lib/${PN}" || die
71 + chmod 775 "${EROOT}/var/lib/${PN}" || die
72 +}