summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Pielmeier <billie@gentoo.org>2023-07-19 20:18:50 +0200
committerDaniel Pielmeier <billie@gentoo.org>2023-07-19 20:18:50 +0200
commitb5d674842ce375a95702d6271b841e87059fee45 (patch)
tree6ca62c825a7b8f32e93823ec9e6930ca25b34be4 /app-portage
parentnet-print/hplip: drop 3.22.10 (diff)
downloadgentoo-b5d674842ce375a95702d6271b841e87059fee45.tar.gz
gentoo-b5d674842ce375a95702d6271b841e87059fee45.tar.bz2
gentoo-b5d674842ce375a95702d6271b841e87059fee45.zip
app-portage/pfl: add 3.2.1
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/metadata.xml1
-rw-r--r--app-portage/pfl/pfl-3.2.1.ebuild50
3 files changed, 52 insertions, 0 deletions
diff --git a/app-portage/pfl/Manifest b/app-portage/pfl/Manifest
index f3d7e4bcb8f1..9893a6454807 100644
--- a/app-portage/pfl/Manifest
+++ b/app-portage/pfl/Manifest
@@ -1 +1,2 @@
+DIST pfl-3.2.1.tar.gz 5655 BLAKE2B 1ebfccca48ac090c6467cfd7a63a488a72e723f8f31d9eb5e8494b74666e20f9e4372fed829e0114295210a76ec9debc9fdd5236340a7740eb1ccfbbc5aaa48b SHA512 967ebe2baed50cd1ed0549d000e2bb240e55c0988d74e492f114fe16b328978ad062606e568dcbe65bcb78738388b1447c823bd1fa31a979d10a4be7a5c7984a
DIST pfl-3.2.tar.gz 5373 BLAKE2B 3fcb771a6d67ec7198b83eeeb161d7caea7ccbc3933ff3ef7a48b106e9c86c331f2ac1a4c589135a4f57f40bfcd668f075f17865ff58feb027cd02d90b52bc2a SHA512 e424b5a5c6dbb848057fe357ae98196f2c238351dfe7fd19a9b7f423c245b1372ec270c6b8d2e8265a05a442d7afc2c5feef6dbe5eed5e240e78c88a6748d1d5
diff --git a/app-portage/pfl/metadata.xml b/app-portage/pfl/metadata.xml
index 7cd87dbe4cc5..92db54c26515 100644
--- a/app-portage/pfl/metadata.xml
+++ b/app-portage/pfl/metadata.xml
@@ -11,6 +11,7 @@
<email>bugs@portagefilelist.de</email>
<name>Daniel Buschke</name>
</maintainer>
+ <remote-id type="github">portagefilelist/client</remote-id>
</upstream>
<use>
<flag name="network-cron">Adds a cron job which does a weekly submit of the package database</flag>
diff --git a/app-portage/pfl/pfl-3.2.1.ebuild b/app-portage/pfl/pfl-3.2.1.ebuild
new file mode 100644
index 000000000000..b7410688e9d6
--- /dev/null
+++ b/app-portage/pfl/pfl-3.2.1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9,10,11} )
+PYTHON_REQ_USE="xml(+)"
+
+inherit distutils-r1 systemd
+
+DESCRIPTION="Searchable online file/package database for Gentoo"
+HOMEPAGE="http://www.portagefilelist.de https://github.com/portagefilelist/client"
+SRC_URI="https://github.com/portagefilelist/client/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+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"
+
+DEPEND=""
+RDEPEND="
+ dev-python/requests[${PYTHON_USEDEP}]
+ dev-python/termcolor[${PYTHON_USEDEP}]
+ sys-apps/portage[${PYTHON_USEDEP}]
+ network-cron? ( sys-apps/util-linux[caps] )
+"
+
+S="${WORKDIR}/client-${PV}"
+
+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
+}