# $Id$ PNAME="perl" PVER="5.10.1" PBUILD="r1" PCATEGORIE="dev-lang" STATE="unstable" DESCRIPTION="Larry Wall's Practical Extraction and Reporting Language." HOMEPAGE="http://www.perl.org/" DEPEND=">= sys-apps/groff-1.20 >= sys-libs/zlib-1.2.3" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" MCORE_ONLY_KEEP="usr/bin/perl usr/bin/perl${PVER}" sminclude mcore-split SRC_URI=( http://ftp.funet.fi/pub/CPAN/src/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-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}-${PVER}-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 # force use of system-zlib sed -i -e '/^BUILD_ZLIB/ s/True/False/' \ -e '/^INCLUDE/s|\./zlib-src|/usr/include|' \ -e '/^LIB/s|\./zlib-src|/usr/lib64|' \ ext/Compress-Raw-Zlib/config.in \ || die # 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 }