1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 inherit perl-module eutils prefix
10 DESCRIPTION="Portage abstraction layer for perl"
11 HOMEPAGE="http://search.cpan.org/~kentnl/PortageXS"
15 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
20 virtual/perl-Term-ANSIColor
21 dev-perl/Shell-EnvImporter
23 dev-perl/IO-Socket-SSL
24 virtual/perl-Sys-Syslog
29 epatch "${FILESDIR}"/0.02.12/${PN}-0.02.12-prefix.patch
32 lib/PortageXS/examples/getParamFromFile.pl \
33 lib/PortageXS/Core.pm \
35 usr/bin/portagexs_client \
40 rm -r "${S}"/usr || die
41 rm -r "${S}"/etc/init.d || die
42 rm -r "${S}"/etc/pxs/certs || die
43 rm "${S}"/etc/pxs/portagexsd.conf || die
44 rm -r "${S}"/lib/PortageXS/examples || die
49 perl-module_src_install
50 if use !minimal ; then
51 cp -r "${S}"/usr "${D}${EPREFIX}" || die
53 cp -r "${S}"/etc "${D}${EPREFIX}" || die
57 if [ -d "${EPREFIX}"/etc/portagexs ]; then
58 elog "${EPREFIX}/etc/portagexs has been moved to ${EPREFIX}/etc/pxs for convenience. It is safe"
59 elog "to delete old ${EPREFIX}/etc/portagexs directories."
63 SRC_TEST="do parallel"