summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeemant Kulleen <seemant@gentoo.org>2002-05-06 14:34:55 +0000
committerSeemant Kulleen <seemant@gentoo.org>2002-05-06 14:34:55 +0000
commit2a236fed3be437b9476dca20b928eea911c40f53 (patch)
tree67f8127c8721403842c4cbe38aa803cd0c307356 /eclass/perl-post.eclass
parentAdding latest version, removing stale and old versions here. (diff)
downloadhistorical-2a236fed3be437b9476dca20b928eea911c40f53.tar.gz
historical-2a236fed3be437b9476dca20b928eea911c40f53.tar.bz2
historical-2a236fed3be437b9476dca20b928eea911c40f53.zip
make test step moved out of base_src_compile and into base_src_test instead
Diffstat (limited to 'eclass/perl-post.eclass')
-rw-r--r--eclass/perl-post.eclass22
1 files changed, 10 insertions, 12 deletions
diff --git a/eclass/perl-post.eclass b/eclass/perl-post.eclass
index 376c7fb61f93..065afe55cd0c 100644
--- a/eclass/perl-post.eclass
+++ b/eclass/perl-post.eclass
@@ -1,12 +1,12 @@
# Copyright 2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2
# Author: Seemant Kulleen <seemant@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/eclass/perl-post.eclass,v 1.3 2002/05/05 10:38:16 seemant Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/perl-post.eclass,v 1.4 2002/05/06 14:34:55 seemant Exp $
# The perl-post eclass is designed to allow the ${installarchdir}/perllocal.pod
# file to be updated cleanly after perl and/or perl-modules are installed
# or removed.
ECLASS=perl
-EXPORT_FUNCTIONS pkg_setup pkg_preinst pkg_postinst pkg_prerm \
+EXPORT_FUNCTIONS pkg_setup pkg_preinst pkg_postinst pkg_prerm pkg_postrm \
perlinfo updatepod
ARCH_LIB=""
@@ -34,6 +34,11 @@ perl_pkg_prerm() {
updatepod
}
+perl_pkg_postrm() {
+
+ updatepod
+}
+
perl_perlinfo() {
if [ -f /usr/bin/perl ]
@@ -48,17 +53,10 @@ perl_perlinfo() {
}
perl_updatepod() {
-
- ( test -z ${ARCH_LIB} || test -z ${POD_DIR} ) && perlinfo
-
+ perlinfo
+
if [ -d "${POD_DIR}" ]
then
- for i in ${POD_DIR}/*.pod
- do
- if [ -f "${i}" ]
- then
- cat ${i} > ${ARCH_LIB}/perllocal.pod
- fi
- done
+ cat ${POD_DIR}/*.pod > ${ARCH_LIB}/perllocal.pod
fi
}