Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 38052 Details for
Bug 57677
Design: Mac OS X's perl vs. Gentoo's perl
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
perl-module.elcass.diff
perl-module.eclass.diff (text/plain), 4.24 KB, created by
Mamoru KOMACHI (RETIRED)
on 2004-08-23 14:46:50 UTC
(
hide
)
Description:
perl-module.elcass.diff
Filename:
MIME Type:
Creator:
Mamoru KOMACHI (RETIRED)
Created:
2004-08-23 14:46:50 UTC
Size:
4.24 KB
patch
obsolete
># Copyright 1999-2004 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.64 2004/08/02 18:45:37 rac Exp $ ># ># Author: Seemant Kulleen <seemant@gentoo.org> ># Maintained by the Perl herd <perl@gentoo.org> ># ># The perl-module eclass is designed to allow easier installation of perl ># modules, and their incorporation into the Gentoo Linux system. > >ECLASS=perl-module >INHERITED="${INHERITED} ${ECLASS}" > >EXPORT_FUNCTIONS pkg_setup pkg_preinst pkg_postinst pkg_prerm pkg_postrm \ > src_compile src_install src_test \ > perlinfo updatepod > ># 2004.05.10 rac ># block on makemaker versions earlier than that in the 5.8.2 core. in ># actuality, this should be handled in the perl ebuild, so every perl ># ebuild should block versions of MakeMaker older than the one it ># carries. in the meantime, since we have dumped support for MakeMaker ># <6.11 and the associated broken DESTDIR handling, block here to save ># people from sandbox trouble. ># ># 2004.05.25 rac ># for the same reasons, make the perl dep >=5.8.2 to get everybody ># with 5.8.0 and its 6.03 makemaker up to a version that can ># understand DESTDIR > >DEPEND="!macos? ( >=dev-lang/perl-5.8.2 ) > macos? ( >=dev-lang/perl-5.8.1 ) > !<dev-perl/ExtUtils-MakeMaker-6.17" >SRC_PREP="no" >SRC_TEST="skip" > >PERL_VERSION="" >SITE_ARCH="" >SITE_LIB="" >ARCH_LIB="" >POD_DIR="" > >perl-module_src_prep() { > > perlinfo > > export PERL_MM_USE_DEFAULT=1 > > SRC_PREP="yes" > if [ "${style}" == "builder" ]; then > if use macos ; then > perl ${S}/Build.PL installdirs=site destdir=${D} > else > perl ${S}/Build.PL installdirs=vendor destdir=${D} > fi > else > if use macos ; then > perl Makefile.PL ${myconf} \ > INSTALLDIRS=site \ > INSTALLSITEMAN1DIR=/usr/share/man/man1 \ > INSTALLSITEMAN3DIR=/usr/share/man/man3 \ > DESTDIR=${D} > else > perl Makefile.PL ${myconf} \ > PREFIX=/usr INSTALLDIRS=vendor DESTDIR=${D} > fi > fi >} > >perl-module_src_compile() { > > [ "${SRC_PREP}" != "yes" ] && perl-module_src_prep > if [ "${style}" != "builder" ]; then > make ${mymake} || die "compilation failed" > fi > > if [ "${SRC_TEST}" == "do" ]; then > perl-module_src_test || die "test failed" > SRC_TEST="done" > fi >} > >perl-module_src_test() { > if [ "${style}" == "builder" ]; then > perl ${S}/Build test > else > make test > fi >} > >perl-module_src_install() { > > perlinfo > dodir ${POD_DIR} > > test -z ${mytargets} && mytargets="install" > > if [ "${style}" == "builder" ]; then > perl ${S}/Build install > else > make ${myinst} ${mytargets} || die > fi > > if [ -f ${D}${ARCH_LIB}/perllocal.pod ]; > then > touch ${D}/${POD_DIR}/${P}.pod > sed -e "s:${D}::g" \ > ${D}${ARCH_LIB}/perllocal.pod >> ${D}/${POD_DIR}/${P}.pod > touch ${D}/${POD_DIR}/${P}.pod.arch > cat ${D}/${POD_DIR}/${P}.pod >>${D}/${POD_DIR}/${P}.pod.arch > rm -f ${D}/${ARCH_LIB}/perllocal.pod > fi > > if [ -f ${D}${SITE_LIB}/perllocal.pod ]; > then > touch ${D}/${POD_DIR}/${P}.pod > sed -e "s:${D}::g" \ > ${D}${SITE_LIB}/perllocal.pod >> ${D}/${POD_DIR}/${P}.pod > touch ${D}/${POD_DIR}/${P}.pod.site > cat ${D}/${POD_DIR}/${P}.pod >>${D}/${POD_DIR}/${P}.pod.site > rm -f ${D}/${SITE_LIB}/perllocal.pod > fi > > for FILE in `find ${D} -type f -name "*.html" -o -name ".packlist"`; do > sed -i -e "s:${D}:/:g" ${FILE} > done > > for doc in Change* MANIFEST* README*; do > [ -s "$doc" ] && dodoc $doc > done > dodoc ${mydoc} >} > > >perl-module_pkg_setup() { > > perlinfo >} > > >perl-module_pkg_preinst() { > > perlinfo >} > >perl-module_pkg_postinst() { > > updatepod >} > >perl-module_pkg_prerm() { > > updatepod >} > >perl-module_pkg_postrm() { > > updatepod >} > >perlinfo() { > > if [ -f /usr/bin/perl ] > then > POD_DIR="/usr/share/perl/gentoo-pods/${version}" > fi > eval `perl '-V:version'` > PERL_VERSION=${version} > eval `perl '-V:installsitearch'` > SITE_ARCH=${installsitearch} > eval `perl '-V:installarchlib'` > ARCH_LIB=${installarchlib} > eval `perl '-V:installarchlib'` > ARCH_LIB=${installarchlib} > eval `perl '-V:installsitearch'` > SITE_LIB=${installsitearch} >} > >updatepod() { > perlinfo > > if [ -d "${POD_DIR}" ] > then > for FILE in `find ${POD_DIR} -type f -name "*.pod.arch"`; do > cat ${FILE} >> ${ARCH_LIB}/perllocal.pod > rm -f ${FILE} > done > for FILE in `find ${POD_DIR} -type f -name "*.pod.site"`; do > cat ${FILE} >> ${SITE_LIB}/perllocal.pod > rm -f ${FILE} > done > fi >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 57677
:
37680
|
38052
|
40515
|
65775
|
65776