# $Header: /magellan-cvs/smage/perl/perl-5.10.0-r1.smage2,v 1.1 2008/02/08 22:32:05 niro Exp $ PNAME="perl" PVER="5.10.0" PBUILD="r3" PCATEGORIE="dev-lang" STATE="unstable" DESCRIPTION="Larry Wall's Practical Extraction and Reporting Language." HOMEPAGE="http://www.perl.org/" DEPEND=">= sys-apps/groff-1.19" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" SRC_URI=( http://ftp.funet.fi/pub/CPAN/src/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-5.8.7-picdl.patch mirror://${PNAME}/${PNAME}-5.8.7-sharedlinker.patch mirror://${PNAME}/${PNAME}-5.8.7-Configure_multilib-1.patch mirror://${PNAME}/${PNAME}-5.8.7-libc_lib64-1.patch ) #UP2DATE="updatecmd http://ftp.funet.fi/pub/CPAN/src | grep ${PNAME}- | lasttarball" #UP2DATE="updatecmd ${HOMEPAGE} | grep 'Current Release:' | sed 's/.*: \[.*\]\(.*\).*/\1/'" UP2DATE="updatecmd ${HOMEPAGE} | grep 'Latest Version:' | sed 's/.*: \[.*\]\(.*\).*/\1/'" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # enable dynamic loader mpatch ${PNAME}-5.8.7-picdl.patch || die # and proper ldflags for shrlibs mpatch ${PNAME}-5.8.7-sharedlinker.patch || die if [[ ${ARCH} = x86_64 ]] then # allow configure to run successfully on multilib builds mpatch ${PNAME}-5.8.7-Configure_multilib-1.patch || die # fix a small issue where perl -V assume libc in /lib mpatch ${PNAME}-5.8.7-libc_lib64-1.patch || die fi # tell perl where to install the libs to echo "installstyle=\"$(mlibdir)/perl5\"" >>hints/linux.sh || die } src_compile() { cd ${SRCDIR} ./Configure \ -des \ -Darchname=${CHOST} \ -Doptimize="${CFLAGS}" \ -Dcccdlflags='-fPIC' \ -Dccdlflags='-rdynamic' \ -Duseshrplib \ -Dpager="/bin/less -isR" \ -Dcf_by='Magellan' \ -Dprefix='/usr' \ -Dvendorprefix='/usr' \ -Dsiteprefix='/usr' \ -Dman1dir=/usr/share/man/man1 \ -Dman3dir=/usr/share/man/man3 \ -Dinstallman1dir=/usr/share/man/man1 \ -Dinstallman3dir=/usr/share/man/man3 \ -Dman1ext='1' \ -Dman3ext='3pm' \ -Dlibpth="/usr/local/$(mlibdir) /$(mlibdir) /usr/$(mlibdir)" \ || die mmake || die } src_install() { cd ${SRCDIR} make DESTDIR=${BINDIR} install || die minstalldocs AUTHORS Artistic Changes* Copying MANIFEST README* || die }