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