summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Pielmeier <billie@gentoo.org>2024-05-19 15:58:06 +0200
committerDaniel Pielmeier <billie@gentoo.org>2024-05-19 16:01:13 +0200
commite25183f6e08b8c391ad926119358588441a644ed (patch)
tree673f455dad7268453ce92c5c063ff7fcaff5e650 /app-portage
parentsys-apps/s6: Stabilize 2.12.0.4 x86, #932184 (diff)
downloadgentoo-e25183f6e08b8c391ad926119358588441a644ed.tar.gz
gentoo-e25183f6e08b8c391ad926119358588441a644ed.tar.bz2
gentoo-e25183f6e08b8c391ad926119358588441a644ed.zip
app-portage/pfl: add 3.5.3
Closes: https://bugs.gentoo.org/932144 Signed-off-by: Daniel Pielmeier <billie@gentoo.org>
Diffstat (limited to 'app-portage')
-rw-r--r--app-portage/pfl/Manifest1
-rw-r--r--app-portage/pfl/pfl-3.5.3.ebuild49
2 files changed, 50 insertions, 0 deletions
diff --git a/app-portage/pfl/Manifest b/app-portage/pfl/Manifest
index d936122f0edc..bd68018f93a7 100644
--- a/app-portage/pfl/Manifest
+++ b/app-portage/pfl/Manifest
@@ -1 +1,2 @@
DIST pfl-3.5.2.tar.gz 21248 BLAKE2B 28f4f05bc533f4b27cdbef7f2706ed99f885983e4f9e4f2580e07b772bef471eeca197a41d03059e28c2053869de4cb5295a9923dcba6f598bbf6e6be5e57185 SHA512 5f38b627cd5928396fe8202dd822756ed63b6dd80d98d1ee3da9998eb750070e9a921d652bbc7ed852e4944005f9d6c61c14c67be01c591f5c82ca50f869465e
+DIST pfl-3.5.3.tar.gz 21303 BLAKE2B b7b4bf57b3ab7b8a118b84f412481485570274c9f37947c86d104b8e34a5fcac7748a3dbc928e66193813fec36a0a630a6ae7eb4a9cb25105b4abfc4d5b85344 SHA512 3e6e18cb80b054379bf938cfc02e44f9c26bdf959bceb9c85ba2f97cd60c5c9e8bf030fac093f7e0a9314463328b724ed812424298ffd9b9a146fb5900382d49
diff --git a/app-portage/pfl/pfl-3.5.3.ebuild b/app-portage/pfl/pfl-3.5.3.ebuild
new file mode 100644
index 000000000000..287a582296b9
--- /dev/null
+++ b/app-portage/pfl/pfl-3.5.3.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_REQ_USE="xml(+)"
+
+inherit distutils-r1 systemd
+
+DESCRIPTION="Searchable online file/package database for Gentoo"
+HOMEPAGE="https://www.portagefilelist.de https://github.com/portagefilelist/client"
+SRC_URI="https://github.com/portagefilelist/client/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+S="${WORKDIR}/client-${PV}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
+IUSE="+network-cron"
+
+RDEPEND="
+ dev-python/requests[${PYTHON_USEDEP}]
+ dev-python/termcolor[${PYTHON_USEDEP}]
+ sys-apps/portage[${PYTHON_USEDEP}]
+ network-cron? ( sys-apps/util-linux[caps] )
+"
+
+python_install_all() {
+ if use network-cron ; then
+ exeinto /etc/cron.weekly
+ doexe cron/pfl
+ fi
+
+ systemd_dounit systemd/pfl.{service,timer}
+
+ keepdir /var/lib/${PN}
+
+ distutils-r1_python_install_all
+}
+
+pkg_postinst() {
+ if [[ ! -e "${EROOT}/var/lib/${PN}/pfl.info" ]]; then
+ touch "${EROOT}/var/lib/${PN}/pfl.info" || die
+ fi
+ chown -R portage:portage "${EROOT}/var/lib/${PN}" || die
+ chmod 775 "${EROOT}/var/lib/${PN}" || die
+}