You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.6 KiB
57 lines
1.6 KiB
10 years ago
|
# Copyright 1999-2014 Gentoo Foundation
|
||
12 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
10 years ago
|
# $Header: /var/cvsroot/gentoo-x86/dev-perl/PortageXS/PortageXS-0.02.10-r4.ebuild,v 1.2 2014/08/14 15:04:37 zlogene Exp $
|
||
|
|
||
|
EAPI=5
|
||
12 years ago
|
|
||
|
inherit perl-module eutils prefix
|
||
10 years ago
|
|
||
12 years ago
|
DESCRIPTION="Portage abstraction layer for perl"
|
||
|
HOMEPAGE="http://download.mpsna.de/opensource/PortageXS/"
|
||
|
SRC_URI="http://download.mpsna.de/opensource/PortageXS/${P}.tar.gz"
|
||
|
|
||
|
SLOT="0"
|
||
|
LICENSE="GPL-2"
|
||
10 years ago
|
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"
|
||
12 years ago
|
IUSE="minimal"
|
||
|
SRC_TEST="do"
|
||
|
|
||
|
DEPEND="dev-lang/perl
|
||
|
virtual/perl-Term-ANSIColor
|
||
|
dev-perl/Shell-EnvImporter
|
||
|
!minimal? ( dev-perl/IO-Socket-SSL
|
||
10 years ago
|
virtual/perl-Sys-Syslog )"
|
||
12 years ago
|
|
||
10 years ago
|
src_prepare() {
|
||
12 years ago
|
epatch "${FILESDIR}"/${PN}-0.02.10-portage_path_fix.patch
|
||
|
epatch "${FILESDIR}"/${PN}-0.02.10-prefix.patch
|
||
10 years ago
|
|
||
12 years ago
|
eprefixify \
|
||
|
lib/PortageXS/Core.pm \
|
||
|
lib/PortageXS.pm \
|
||
|
usr/bin/portagexs_client \
|
||
|
usr/sbin/portagexsd
|
||
|
|
||
|
if use minimal ; then
|
||
10 years ago
|
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
|
||
12 years ago
|
fi
|
||
|
}
|
||
|
|
||
|
pkg_preinst() {
|
||
|
if use !minimal ; then
|
||
10 years ago
|
cp -r "${S}"/usr "${D}${EPREFIX}" || die
|
||
12 years ago
|
fi
|
||
10 years ago
|
cp -r "${S}"/etc "${D}${EPREFIX}" || die
|
||
12 years ago
|
}
|
||
|
|
||
|
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
|
||
|
}
|