From: "Torsten Veller (tove)" <tove@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in eclass: perl-module.eclass
Date: Tue, 9 Aug 2011 11:48:31 +0000 (UTC) [thread overview]
Message-ID: <20110809114831.EEEFC2004C@flycatcher.gentoo.org> (raw)
tove 11/08/09 11:48:31
Modified: perl-module.eclass
Log:
Add dual-life scripts and man pages in two arrays. PERL_MM_USE_DEFAULT suppressed pm_echovar.
Revision Changes Path
1.130 eclass/perl-module.eclass
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/perl-module.eclass?rev=1.130&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/perl-module.eclass?rev=1.130&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/perl-module.eclass?r1=1.129&r2=1.130
Index: perl-module.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v
retrieving revision 1.129
retrieving revision 1.130
diff -u -r1.129 -r1.130
--- perl-module.eclass 30 Jan 2011 08:18:42 -0000 1.129
+++ perl-module.eclass 9 Aug 2011 11:48:31 -0000 1.130
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.129 2011/01/30 08:18:42 tove Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.130 2011/08/09 11:48:31 tove Exp $
#
# Author: Seemant Kulleen <seemant@gentoo.org>
@@ -54,12 +54,11 @@
LICENSE="${LICENSE:-|| ( Artistic GPL-1 GPL-2 GPL-3 )}"
-# TODO: Document variables: MODULE_VERSION, MODULE_A, MODULE_A_EXT,
-# MODULE_AUTHOR, MODULE_SECTION, GENTOO_DEPEND_ON_PERL, PREFER_BUILDPL
if [[ -n ${MY_PN} || -n ${MY_PV} || -n ${MODULE_VERSION} ]] ; then
: ${MY_P:=${MY_PN:-${PN}}-${MY_PV:-${MODULE_VERSION:-${PV}}}}
S=${MY_S:-${WORKDIR}/${MY_P}}
fi
+
[[ -z "${SRC_URI}" && -z "${MODULE_A}" ]] && \
MODULE_A="${MY_P:-${P}}.${MODULE_A_EXT:-tar.gz}"
[[ -z "${SRC_URI}" && -n "${MODULE_AUTHOR}" ]] && \
@@ -100,7 +99,7 @@
perl_set_version
perl_set_eprefix
- export PERL_MM_USE_DEFAULT=1
+ [[ -z ${pm_echovar} ]] && export PERL_MM_USE_DEFAULT=1
# Disable ExtUtils::AutoInstall from prompting
export PERL_EXTUTILS_AUTOINSTALL="--skipdeps"
@@ -370,19 +369,23 @@
local i ff
if has "${EBUILD_PHASE:-none}" "postinst" "postrm" ; then
for i in "${DUALLIFESCRIPTS[@]}" ; do
- alternatives_auto_makesym "/usr/bin/${i}" "/usr/bin/${i}-[0-9]*"
- ff=`echo "${EROOT}"/usr/share/man/man1/${i}-${PV}-${P}.1*`
+ alternatives_auto_makesym "/${i}" "/${i}-[0-9]*"
+ done
+ for i in "${DUALLIFEMAN[@]}" ; do
+ ff=`echo "${EROOT}"/${i%.1}-${PV}-${P}.1*`
ff=${ff##*.1}
- alternatives_auto_makesym "/usr/share/man/man1/${i}.1${ff}" "/usr/share/man/man1/${i}-[0-9]*"
+ alternatives_auto_makesym "/${i}${ff}" "/${i%.1}-[0-9]*"
done
else
pushd "${ED}" > /dev/null
for i in $(find usr/bin -maxdepth 1 -type f 2>/dev/null) ; do
mv ${i}{,-${PV}-${P}} || die
- DUALLIFESCRIPTS[${#DUALLIFESCRIPTS[*]}]=${i##*/}
- if [[ -f usr/share/man/man1/${i##*/}.1 ]] ; then
- mv usr/share/man/man1/${i##*/}{.1,-${PV}-${P}.1} || die
- fi
+ #DUALLIFESCRIPTS[${#DUALLIFESCRIPTS[*]}]=${i##*/}
+ DUALLIFESCRIPTS[${#DUALLIFESCRIPTS[*]}]=${i}
+ done
+ for i in $(find usr/share/man/man1 -maxdepth 1 -type f 2>/dev/null) ; do
+ mv ${i} ${i%.1}-${PV}-${P}.1 || die
+ DUALLIFEMAN[${#DUALLIFEMAN[*]}]=${i}
done
popd > /dev/null
fi
next reply other threads:[~2011-08-09 11:48 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-09 11:48 Torsten Veller (tove) [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-11-01 22:08 [gentoo-commits] gentoo-x86 commit in eclass: perl-module.eclass Patrice Clement (monsieurp)
2014-03-30 19:25 Mikle Kolyada (zlogene)
2011-01-30 8:18 Torsten Veller (tove)
2011-01-23 22:12 Robin H. Johnson (robbat2)
2011-01-12 15:44 Torsten Veller (tove)
2010-07-15 11:44 Torsten Veller (tove)
2010-06-16 8:54 Torsten Veller (tove)
2010-02-03 0:20 Hanno Boeck (hanno)
2010-01-13 15:15 Torsten Veller (tove)
2009-11-24 9:16 Torsten Veller (tove)
2009-11-14 8:58 Torsten Veller (tove)
2009-11-10 12:53 Torsten Veller (tove)
2009-09-27 7:00 Torsten Veller (tove)
2009-03-29 17:32 Torsten Veller (tove)
2009-03-26 17:40 Torsten Veller (tove)
2009-03-11 6:36 Torsten Veller (tove)
2009-03-06 11:42 Torsten Veller (tove)
2008-09-30 8:28 Robin H. Johnson (robbat2)
2008-02-06 2:39 Robin H. Johnson (robbat2)
2007-10-17 8:01 Robin H. Johnson (robbat2)
2007-10-17 7:49 Robin H. Johnson (robbat2)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110809114831.EEEFC2004C@flycatcher.gentoo.org \
--to=tove@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox