Contents of /smage/branches/alx-0_6_0/core/perl/perl-5.12.3-r1.smage2
Parent Directory | Revision Log
Revision 2355 -
(show annotations)
(download)
Fri Jun 10 12:26:10 2011 UTC (13 years ago) by niro
File size: 2631 byte(s)
Fri Jun 10 12:26:10 2011 UTC (13 years ago) by niro
File size: 2631 byte(s)
-fixed src_uri and file, upstream is down atm
1 | # $Id$ |
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.bz2" |
17 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
18 | |
19 | REMOVE_DEPRECATED_MAGE_TARGETS=1 |
20 | sminclude alx |
21 | |
22 | SRC_URI=( |
23 | http://ftp.funet.fi/pub/CPAN/src/${SRCFILE} |
24 | http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/distfiles/${SRCFILE} |
25 | mirror://${PNAME}/${SRCFILE} |
26 | mirror://${PNAME}/${PNAME}-5.10.1-picdl.patch |
27 | mirror://${PNAME}/${PNAME}-5.8.7-sharedlinker.patch |
28 | mirror://${PNAME}/${PNAME}-5.8.7-Configure_multilib-1.patch |
29 | mirror://${PNAME}/${PNAME}-5.12.1-libc_lib64-1.patch |
30 | ) |
31 | |
32 | #UP2DATE="updatecmd http://ftp.funet.fi/pub/CPAN/src | grep ${PNAME}- | lasttarball" |
33 | #UP2DATE="updatecmd ${HOMEPAGE} | grep 'Current Release:' | sed 's/.*: \[.*\]\(.*\).*/\1/'" |
34 | #UP2DATE="updatecmd ${HOMEPAGE} | grep 'Latest Version:' | sed 's/.*: \[.*\]\(.*\).*/\1/'" |
35 | UP2DATE="updatecmd ${HOMEPAGE} | grep 'download now' | sed 's/.*\[.*\]\(.*\) -.*/\1/'" |
36 | |
37 | src_prepare() |
38 | { |
39 | munpack ${SRCFILE} || die |
40 | cd ${SRCDIR} |
41 | |
42 | # enable dynamic loader |
43 | mpatch ${PNAME}-5.10.1-picdl.patch || die |
44 | |
45 | # and proper ldflags for shrlibs |
46 | mpatch ${PNAME}-5.8.7-sharedlinker.patch || die |
47 | |
48 | if [[ ${ARCH} = x86_64 ]] |
49 | then |
50 | # allow configure to run successfully on multilib builds |
51 | mpatch ${PNAME}-5.8.7-Configure_multilib-1.patch || die |
52 | # fix a small issue where perl -V assume libc in /lib |
53 | mpatch ${PNAME}-5.12.1-libc_lib64-1.patch || die |
54 | fi |
55 | |
56 | # force use of system-zlib |
57 | sed -i -e '/^BUILD_ZLIB/s/True/False/' \ |
58 | -e '/^INCLUDE/s,\./zlib-src,/usr/include,' \ |
59 | -e '/^LIB/s,\./zlib-src,/usr/lib,' \ |
60 | cpan/Compress-Raw-Zlib/config.in \ |
61 | || die |
62 | |
63 | # tell perl where to install the libs to |
64 | echo "installstyle=\"$(mlibdir)/perl5\"" >>hints/linux.sh || die |
65 | } |
66 | |
67 | src_compile() |
68 | { |
69 | cd ${SRCDIR} |
70 | |
71 | ./Configure \ |
72 | -des \ |
73 | -Darchname=${CHOST} \ |
74 | -Doptimize="${CFLAGS}" \ |
75 | -Dcccdlflags='-fPIC' \ |
76 | -Dccdlflags='-rdynamic' \ |
77 | -Duseshrplib \ |
78 | -Dpager="/bin/less -isR" \ |
79 | -Dcf_by='Magellan' \ |
80 | -Dprefix='/usr' \ |
81 | -Dvendorprefix='/usr' \ |
82 | -Dsiteprefix='/usr' \ |
83 | -Dman1dir=/usr/share/man/man1 \ |
84 | -Dman3dir=/usr/share/man/man3 \ |
85 | -Dinstallman1dir=/usr/share/man/man1 \ |
86 | -Dinstallman3dir=/usr/share/man/man3 \ |
87 | -Dman1ext='1' \ |
88 | -Dman3ext='3pm' \ |
89 | -Dlibpth="/usr/local/$(mlibdir) /$(mlibdir) /usr/$(mlibdir)" \ |
90 | -Ui_db \ |
91 | || die |
92 | |
93 | mmake || die |
94 | } |
95 | |
96 | src_install() |
97 | { |
98 | cd ${SRCDIR} |
99 | |
100 | make DESTDIR=${BINDIR} install || die |
101 | minstalldocs AUTHORS Artistic Changes* Copying MANIFEST README* || die |
102 | } |