diff options
author | Seemant Kulleen <seemant@gentoo.org> | 2002-05-06 14:34:55 +0000 |
---|---|---|
committer | Seemant Kulleen <seemant@gentoo.org> | 2002-05-06 14:34:55 +0000 |
commit | 596231c98dfdeb45cfded33343d580d1deee3bcd (patch) | |
tree | 23c8e8ff26451e575e24b92b351ae26ce564b8c1 /eclass/perl-post.eclass | |
parent | Adding latest version, removing stale and old versions here. (diff) | |
download | gentoo-2-596231c98dfdeb45cfded33343d580d1deee3bcd.tar.gz gentoo-2-596231c98dfdeb45cfded33343d580d1deee3bcd.tar.bz2 gentoo-2-596231c98dfdeb45cfded33343d580d1deee3bcd.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.eclass | 22 |
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 } |