Contents of /smage/trunk/core/perl/perl-5.12.3-r1.smage2
Parent Directory | Revision Log
Revision 1137 -
(show annotations)
(download)
Wed Jan 26 19:22:12 2011 UTC (13 years, 8 months ago) by niro
File size: 2557 byte(s)
Wed Jan 26 19:22:12 2011 UTC (13 years, 8 months ago) by niro
File size: 2557 byte(s)
auto added: ver bump to 5.12.3-r1
1 | # $Id: perl-5.10.1-r2.smage2 5593 2010-07-07 07:26:46Z niro $ |
2 | |
3 | PNAME="perl" |
4 | PVER="5.12.3" |
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.21 |
14 | >= sys-libs/zlib-1.2.5" |
15 | |
16 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
17 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
18 | |
19 | SRC_URI=( |
20 | http://ftp.funet.fi/pub/CPAN/src/${SRCFILE} |
21 | mirror://${PNAME}/${SRCFILE} |
22 | mirror://${PNAME}/${PNAME}-5.10.1-picdl.patch |
23 | mirror://${PNAME}/${PNAME}-5.8.7-sharedlinker.patch |
24 | mirror://${PNAME}/${PNAME}-5.8.7-Configure_multilib-1.patch |
25 | mirror://${PNAME}/${PNAME}-5.12.1-libc_lib64-1.patch |
26 | ) |
27 | |
28 | #UP2DATE="updatecmd http://ftp.funet.fi/pub/CPAN/src | grep ${PNAME}- | lasttarball" |
29 | #UP2DATE="updatecmd ${HOMEPAGE} | grep 'Current Release:' | sed 's/.*: \[.*\]\(.*\).*/\1/'" |
30 | #UP2DATE="updatecmd ${HOMEPAGE} | grep 'Latest Version:' | sed 's/.*: \[.*\]\(.*\).*/\1/'" |
31 | UP2DATE="updatecmd ${HOMEPAGE} | grep 'download now' | sed 's/.*\[.*\]\(.*\) -.*/\1/'" |
32 | |
33 | src_prepare() |
34 | { |
35 | munpack ${SRCFILE} || die |
36 | cd ${SRCDIR} |
37 | |
38 | # enable dynamic loader |
39 | mpatch ${PNAME}-5.10.1-picdl.patch || die |
40 | |
41 | # and proper ldflags for shrlibs |
42 | mpatch ${PNAME}-5.8.7-sharedlinker.patch || die |
43 | |
44 | if [[ ${ARCH} = x86_64 ]] |
45 | then |
46 | # allow configure to run successfully on multilib builds |
47 | mpatch ${PNAME}-5.8.7-Configure_multilib-1.patch || die |
48 | # fix a small issue where perl -V assume libc in /lib |
49 | mpatch ${PNAME}-5.12.1-libc_lib64-1.patch || die |
50 | fi |
51 | |
52 | # force use of system-zlib |
53 | sed -i -e '/^BUILD_ZLIB/s/True/False/' \ |
54 | -e '/^INCLUDE/s,\./zlib-src,/usr/include,' \ |
55 | -e '/^LIB/s,\./zlib-src,/usr/lib,' \ |
56 | cpan/Compress-Raw-Zlib/config.in \ |
57 | || die |
58 | |
59 | # tell perl where to install the libs to |
60 | echo "installstyle=\"$(mlibdir)/perl5\"" >>hints/linux.sh || die |
61 | } |
62 | |
63 | src_compile() |
64 | { |
65 | cd ${SRCDIR} |
66 | |
67 | ./Configure \ |
68 | -des \ |
69 | -Darchname=${CHOST} \ |
70 | -Doptimize="${CFLAGS}" \ |
71 | -Dcccdlflags='-fPIC' \ |
72 | -Dccdlflags='-rdynamic' \ |
73 | -Duseshrplib \ |
74 | -Dpager="/bin/less -isR" \ |
75 | -Dcf_by='Magellan' \ |
76 | -Dprefix='/usr' \ |
77 | -Dvendorprefix='/usr' \ |
78 | -Dsiteprefix='/usr' \ |
79 | -Dman1dir=/usr/share/man/man1 \ |
80 | -Dman3dir=/usr/share/man/man3 \ |
81 | -Dinstallman1dir=/usr/share/man/man1 \ |
82 | -Dinstallman3dir=/usr/share/man/man3 \ |
83 | -Dman1ext='1' \ |
84 | -Dman3ext='3pm' \ |
85 | -Dlibpth="/usr/local/$(mlibdir) /$(mlibdir) /usr/$(mlibdir)" \ |
86 | -Ui_db \ |
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 | } |