Annotation of /trunk/core/perl/perl-5.10.0-r3.smage2
Parent Directory | Revision Log
Revision 1108 -
(hide annotations)
(download)
Wed Apr 22 18:14:11 2009 UTC (15 years ago) by niro
File size: 2260 byte(s)
Wed Apr 22 18:14:11 2009 UTC (15 years ago) by niro
File size: 2260 byte(s)
-fixed up2date uri and rebuild against groff-1.20
1 | niro | 1108 | # $Header: /magellan-cvs/smage/perl/perl-5.10.0-r1.smage2,v 1.1 2008/02/08 22:32:05 niro Exp $ |
2 | |||
3 | PNAME="perl" | ||
4 | PVER="5.10.0" | ||
5 | PBUILD="r3" | ||
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.19" | ||
14 | |||
15 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
17 | |||
18 | SRC_URI=( | ||
19 | http://ftp.funet.fi/pub/CPAN/src/${SRCFILE} | ||
20 | mirror://${PNAME}/${SRCFILE} | ||
21 | mirror://${PNAME}/${PNAME}-5.8.7-picdl.patch | ||
22 | mirror://${PNAME}/${PNAME}-5.8.7-sharedlinker.patch | ||
23 | mirror://${PNAME}/${PNAME}-5.8.7-Configure_multilib-1.patch | ||
24 | mirror://${PNAME}/${PNAME}-5.8.7-libc_lib64-1.patch | ||
25 | ) | ||
26 | |||
27 | #UP2DATE="updatecmd http://ftp.funet.fi/pub/CPAN/src | grep ${PNAME}- | lasttarball" | ||
28 | #UP2DATE="updatecmd ${HOMEPAGE} | grep 'Current Release:' | sed 's/.*: \[.*\]\(.*\).*/\1/'" | ||
29 | UP2DATE="updatecmd ${HOMEPAGE} | grep 'Latest Version:' | sed 's/.*: \[.*\]\(.*\).*/\1/'" | ||
30 | |||
31 | src_prepare() | ||
32 | { | ||
33 | munpack ${SRCFILE} || die | ||
34 | cd ${SRCDIR} | ||
35 | |||
36 | # enable dynamic loader | ||
37 | mpatch ${PNAME}-5.8.7-picdl.patch || die | ||
38 | |||
39 | # and proper ldflags for shrlibs | ||
40 | mpatch ${PNAME}-5.8.7-sharedlinker.patch || die | ||
41 | |||
42 | if [[ ${ARCH} = x86_64 ]] | ||
43 | then | ||
44 | # allow configure to run successfully on multilib builds | ||
45 | mpatch ${PNAME}-5.8.7-Configure_multilib-1.patch || die | ||
46 | # fix a small issue where perl -V assume libc in /lib | ||
47 | mpatch ${PNAME}-5.8.7-libc_lib64-1.patch || die | ||
48 | fi | ||
49 | |||
50 | # tell perl where to install the libs to | ||
51 | echo "installstyle=\"$(mlibdir)/perl5\"" >>hints/linux.sh || die | ||
52 | } | ||
53 | |||
54 | src_compile() | ||
55 | { | ||
56 | cd ${SRCDIR} | ||
57 | |||
58 | ./Configure \ | ||
59 | -des \ | ||
60 | -Darchname=${CHOST} \ | ||
61 | -Doptimize="${CFLAGS}" \ | ||
62 | -Dcccdlflags='-fPIC' \ | ||
63 | -Dccdlflags='-rdynamic' \ | ||
64 | -Duseshrplib \ | ||
65 | -Dpager="/bin/less -isR" \ | ||
66 | -Dcf_by='Magellan' \ | ||
67 | -Dprefix='/usr' \ | ||
68 | -Dvendorprefix='/usr' \ | ||
69 | -Dsiteprefix='/usr' \ | ||
70 | -Dman1dir=/usr/share/man/man1 \ | ||
71 | -Dman3dir=/usr/share/man/man3 \ | ||
72 | -Dinstallman1dir=/usr/share/man/man1 \ | ||
73 | -Dinstallman3dir=/usr/share/man/man3 \ | ||
74 | -Dman1ext='1' \ | ||
75 | -Dman3ext='3pm' \ | ||
76 | -Dlibpth="/usr/local/$(mlibdir) /$(mlibdir) /usr/$(mlibdir)" \ | ||
77 | || die | ||
78 | |||
79 | mmake || die | ||
80 | } | ||
81 | |||
82 | src_install() | ||
83 | { | ||
84 | cd ${SRCDIR} | ||
85 | |||
86 | make DESTDIR=${BINDIR} install || die | ||
87 | minstalldocs AUTHORS Artistic Changes* Copying MANIFEST README* || die | ||
88 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |