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: Sun, 07 Oct 2018 15:19:08
Message-Id: 1538925530.82212b57163eedf88c588ec05e5981f4e7d6ac0f.billie@gentoo
1 commit: 82212b57163eedf88c588ec05e5981f4e7d6ac0f
2 Author: Daniel Pielmeier <billie <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 7 15:18:25 2018 +0000
4 Commit: Daniel Pielmeier <billie <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 7 15:18:50 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82212b57
7
8 app-portage/pfl: Revision bump to 3.0-r2. Switch to EAPI 7.
9
10 Signed-off-by: Daniel Pielmeier <billie <AT> gentoo.org>
11 Package-Manager: Portage-2.3.49, Repoman-2.3.11
12
13 app-portage/pfl/pfl-3.0-r2.ebuild | 47 +++++++++++++++++++++++++++++++++++++++
14 1 file changed, 47 insertions(+)
15
16 diff --git a/app-portage/pfl/pfl-3.0-r2.ebuild b/app-portage/pfl/pfl-3.0-r2.ebuild
17 new file mode 100644
18 index 00000000000..c285466a603
19 --- /dev/null
20 +++ b/app-portage/pfl/pfl-3.0-r2.ebuild
21 @@ -0,0 +1,47 @@
22 +# Copyright 1999-2018 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +PYTHON_COMPAT=( python3_{5,6} )
28 +PYTHON_REQ_USE="xml"
29 +
30 +inherit distutils-r1
31 +
32 +DESCRIPTION="Searchable online file/package database for Gentoo"
33 +HOMEPAGE="http://www.portagefilelist.de"
34 +SRC_URI="http://files.portagefilelist.de/${P}.tar.bz2"
35 +
36 +LICENSE="GPL-2"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
39 +IUSE="+network-cron"
40 +
41 +DEPEND=""
42 +RDEPEND="
43 + ${DEPEND}
44 + net-misc/curl
45 + || (
46 + sys-apps/portage[${PYTHON_USEDEP}]
47 + sys-apps/portage-mgorny[${PYTHON_USEDEP}]
48 + )
49 + >=dev-python/ssl-fetch-0.4[${PYTHON_USEDEP}]
50 +"
51 +
52 +python_install_all() {
53 + if use network-cron ; then
54 + exeinto /etc/cron.weekly
55 + doexe cron/pfl
56 + fi
57 +
58 + keepdir /var/lib/${PN}
59 + distutils-r1_python_install_all
60 +}
61 +
62 +pkg_postinst() {
63 + if [[ ! -e "${EROOT}/var/lib/${PN}/pfl.info" ]]; then
64 + touch "${EROOT}/var/lib/${PN}/pfl.info" || die
65 + chown -R 0:portage "${EROOT}/var/lib/${PN}" || die
66 + chmod 775 "${EROOT}/var/lib/${PN}" || die
67 + fi
68 +}