commit: 0cca1dbe3d74aa1f453b8779feb6d4a62d6f256e
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 23 20:31:43 2017 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Apr 23 21:00:11 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cca1dbe
net-proxy/http-replicator: [QA] Add missing python metadata variables
Package-Manager: Portage-2.3.5, Repoman-2.3.2
net-proxy/http-replicator/http-replicator-3.0-r7.ebuild | 13 +++++++++++--
.../http-replicator/http-replicator-4.0_alpha2-r5.ebuild | 10 +++++++---
2 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/net-proxy/http-replicator/http-replicator-3.0-r7.ebuild
b/net-proxy/http-replicator/http-replicator-3.0-r7.ebuild
index 5b29f048344..68405a1f8c1 100644
--- a/net-proxy/http-replicator/http-replicator-3.0-r7.ebuild
+++ b/net-proxy/http-replicator/http-replicator-3.0-r7.ebuild
@@ -2,7 +2,9 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=6
+
PYTHON_COMPAT=( python2_7 ) # not 2.6 bug #33907, not 3.0 bug #411083
+
inherit eutils python-single-r1 systemd
MY_P="${PN}_${PV}"
@@ -10,11 +12,16 @@ MY_P="${PN}_${PV}"
DESCRIPTION="Proxy cache for Gentoo packages"
HOMEPAGE="https://sourceforge.net/projects/http-replicator"
SRC_URI="mirror://sourceforge/http-replicator/${MY_P}.tar.gz"
-S="${WORKDIR}/${MY_P}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 hppa ppc ~sparc x86"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_P}"
PATCHES=(
"${FILESDIR}/http-replicator-3.0-sighup.patch"
@@ -22,9 +29,11 @@ PATCHES=(
"${FILESDIR}/http-replicator-3-missing-directory.patch"
)
-src_install(){
+pkg_setup() {
python-single-r1_pkg_setup
+}
+src_install() {
# Daemon and repcacheman into /usr/bin
python_scriptinto /usr/bin
python_doscript http-replicator
diff --git a/net-proxy/http-replicator/http-replicator-4.0_alpha2-r5.ebuild
b/net-proxy/http-replicator/http-replicator-4.0_alpha2-r5.ebuild
index 0eea7f1f1e7..6810108b67b 100644
--- a/net-proxy/http-replicator/http-replicator-4.0_alpha2-r5.ebuild
+++ b/net-proxy/http-replicator/http-replicator-4.0_alpha2-r5.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI="5"
+EAPI=5
PYTHON_COMPAT=( python2_7 )
@@ -16,6 +16,10 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}"
+DEPEND="${RDEPEND}"
S="${WORKDIR}/${MY_P}"
@@ -30,7 +34,7 @@ src_test() {
./unit-test && die
}
-src_install(){
+src_install() {
python_foreach_impl python_doscript http-replicator
newbin "${FILESDIR}"/${PN}-3.0-callrepcacheman-0.1 repcacheman