diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2015-12-12 13:07:34 +0100 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2015-12-12 13:10:21 +0100 |
commit | f5f4104c558646f9c7746cc146ccb0e9493d2112 (patch) | |
tree | c9779983ea7660c1756948bb1c689090e529c08a /dev-perl | |
parent | package.mask: broaden mask of PortageXS slightly (diff) | |
download | gentoo-f5f4104c558646f9c7746cc146ccb0e9493d2112.tar.gz gentoo-f5f4104c558646f9c7746cc146ccb0e9493d2112.tar.bz2 gentoo-f5f4104c558646f9c7746cc146ccb0e9493d2112.zip |
dev-perl/PortageXS: Fix build, bug 529246; further cleanups, standardize numbering
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-perl')
-rw-r--r-- | dev-perl/PortageXS/PortageXS-0.2.10-r5.ebuild | 61 | ||||
-rw-r--r-- | dev-perl/PortageXS/PortageXS-0.2.12-r1.ebuild (renamed from dev-perl/PortageXS/PortageXS-0.02.12.ebuild) | 16 |
2 files changed, 72 insertions, 5 deletions
diff --git a/dev-perl/PortageXS/PortageXS-0.2.10-r5.ebuild b/dev-perl/PortageXS/PortageXS-0.2.10-r5.ebuild new file mode 100644 index 000000000000..a9fe91936646 --- /dev/null +++ b/dev-perl/PortageXS/PortageXS-0.2.10-r5.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +MODULE_VERSION=0.02.10 +inherit perl-module eutils prefix + +DESCRIPTION="Portage abstraction layer for perl" +HOMEPAGE="http://download.mpsna.de/opensource/PortageXS/" +SRC_URI="http://download.mpsna.de/opensource/PortageXS/${PN}-${MODULE_VERSION}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="minimal" +SRC_TEST="do" + +DEPEND=" + virtual/perl-Term-ANSIColor + dev-perl/Shell-EnvImporter + !minimal? ( + dev-perl/IO-Socket-SSL + virtual/perl-Sys-Syslog + ) +" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.02.10-portage_path_fix.patch + epatch "${FILESDIR}"/${PN}-0.02.10-prefix.patch + + eprefixify \ + lib/PortageXS/Core.pm \ + lib/PortageXS.pm \ + usr/bin/portagexs_client \ + usr/sbin/portagexsd + + if use minimal ; then + rm -r "${S}"/usr || die + rm -r "${S}"/etc/init.d || die + rm -r "${S}"/etc/pxs/certs || die + rm "${S}"/etc/pxs/portagexsd.conf || die + rm -r "${S}"/lib/PortageXS/examples || die + fi +} + +src_install() { + perl-module_src_install + if use !minimal ; then + cp -r "${S}"/usr "${D}${EPREFIX}" || die + fi + cp -r "${S}"/etc "${D}${EPREFIX}" || die +} + +pkg_postinst() { + if [ -d "${EPREFIX}"/etc/portagexs ]; then + elog "${EPREFIX}/etc/portagexs has been moved to ${EPREFIX}/etc/pxs for convenience. It is safe" + elog "to delete old ${EPREFIX}/etc/portagexs directories." + fi +} diff --git a/dev-perl/PortageXS/PortageXS-0.02.12.ebuild b/dev-perl/PortageXS/PortageXS-0.2.12-r1.ebuild index 0e4b60f3d953..a881665a4dc2 100644 --- a/dev-perl/PortageXS/PortageXS-0.02.12.ebuild +++ b/dev-perl/PortageXS/PortageXS-0.2.12-r1.ebuild @@ -1,6 +1,7 @@ # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ + EAPI=5 MODULE_AUTHOR=KENTNL @@ -15,14 +16,18 @@ LICENSE="GPL-2" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" IUSE="minimal" -DEPEND="dev-perl/Module-Build +DEPEND=" + dev-perl/Module-Build virtual/perl-Term-ANSIColor dev-perl/Shell-EnvImporter - !minimal? ( dev-perl/IO-Socket-SSL - virtual/perl-Sys-Syslog )" + !minimal? ( + dev-perl/IO-Socket-SSL + virtual/perl-Sys-Syslog + ) +" src_prepare() { - epatch "${FILESDIR}"/${PV}/${P}-prefix.patch + epatch "${FILESDIR}"/0.02.12/${PN}-0.02.12-prefix.patch eprefixify \ lib/PortageXS/examples/getParamFromFile.pl \ @@ -41,7 +46,8 @@ src_prepare() { fi } -pkg_preinst() { +src_install() { + perl-module_src_install if use !minimal ; then cp -r "${S}"/usr "${D}${EPREFIX}" || die fi |