Magellan Linux

Annotation of /smage/trunk/core/perl/perl-5.12.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 680 - (hide annotations) (download)
Thu Oct 21 12:52:27 2010 UTC (13 years, 6 months ago) by niro
File size: 2564 byte(s)
auto added: ver bump to 5.12.1-r1
1 niro 680 # $Id: perl-5.10.1-r2.smage2 5593 2010-07-07 07:26:46Z niro $
2    
3     PNAME="perl"
4     PVER="5.12.1"
5     PBUILD="r1"
6    
7     PCATEGORIE="dev-lang"
8     STATE="unstable"
9    
10     DESCRIPTION="Larry Wall's Practical Extraction and Reporting Language."
11     HOMEPAGE="http://www.perl.org/"
12    
13     DEPEND=">= sys-apps/groff-1.20
14     >= sys-libs/zlib-1.2.5
15     >= dev-db/db-5.0"
16    
17     SRCFILE="${PNAME}-${PVER}.tar.gz"
18     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19    
20     SRC_URI=(
21     http://ftp.funet.fi/pub/CPAN/src/${SRCFILE}
22     mirror://${PNAME}/${SRCFILE}
23     mirror://${PNAME}/${PNAME}-5.10.1-picdl.patch
24     mirror://${PNAME}/${PNAME}-5.8.7-sharedlinker.patch
25     mirror://${PNAME}/${PNAME}-5.8.7-Configure_multilib-1.patch
26     mirror://${PNAME}/${PNAME}-5.12.1-libc_lib64-1.patch
27     )
28    
29     #UP2DATE="updatecmd http://ftp.funet.fi/pub/CPAN/src | grep ${PNAME}- | lasttarball"
30     #UP2DATE="updatecmd ${HOMEPAGE} | grep 'Current Release:' | sed 's/.*: \[.*\]\(.*\).*/\1/'"
31     #UP2DATE="updatecmd ${HOMEPAGE} | grep 'Latest Version:' | sed 's/.*: \[.*\]\(.*\).*/\1/'"
32     UP2DATE="updatecmd ${HOMEPAGE} | grep 'download now' | sed 's/.*\[.*\]\(.*\) -.*/\1/'"
33    
34     src_prepare()
35     {
36     munpack ${SRCFILE} || die
37     cd ${SRCDIR}
38    
39     # enable dynamic loader
40     mpatch ${PNAME}-5.10.1-picdl.patch || die
41    
42     # and proper ldflags for shrlibs
43     mpatch ${PNAME}-5.8.7-sharedlinker.patch || die
44    
45     if [[ ${ARCH} = x86_64 ]]
46     then
47     # allow configure to run successfully on multilib builds
48     mpatch ${PNAME}-5.8.7-Configure_multilib-1.patch || die
49     # fix a small issue where perl -V assume libc in /lib
50     mpatch ${PNAME}-5.12.1-libc_lib64-1.patch || die
51     fi
52    
53     # force use of system-zlib
54     sed -i -e '/^BUILD_ZLIB/s/True/False/' \
55     -e '/^INCLUDE/s,\./zlib-src,/usr/include,' \
56     -e '/^LIB/s,\./zlib-src,/usr/lib,' \
57     cpan/Compress-Raw-Zlib/config.in \
58     || die
59    
60     # tell perl where to install the libs to
61     echo "installstyle=\"$(mlibdir)/perl5\"" >>hints/linux.sh || die
62     }
63    
64     src_compile()
65     {
66     cd ${SRCDIR}
67    
68     ./Configure \
69     -des \
70     -Darchname=${CHOST} \
71     -Doptimize="${CFLAGS}" \
72     -Dcccdlflags='-fPIC' \
73     -Dccdlflags='-rdynamic' \
74     -Duseshrplib \
75     -Dpager="/bin/less -isR" \
76     -Dcf_by='Magellan' \
77     -Dprefix='/usr' \
78     -Dvendorprefix='/usr' \
79     -Dsiteprefix='/usr' \
80     -Dman1dir=/usr/share/man/man1 \
81     -Dman3dir=/usr/share/man/man3 \
82     -Dinstallman1dir=/usr/share/man/man1 \
83     -Dinstallman3dir=/usr/share/man/man3 \
84     -Dman1ext='1' \
85     -Dman3ext='3pm' \
86     -Dlibpth="/usr/local/$(mlibdir) /$(mlibdir) /usr/$(mlibdir)" \
87     || die
88    
89     mmake || die
90     }
91    
92     src_install()
93     {
94     cd ${SRCDIR}
95    
96     make DESTDIR=${BINDIR} install || die
97     minstalldocs AUTHORS Artistic Changes* Copying MANIFEST README* || die
98     }