Magellan Linux

Contents of /trunk/core/perl/perl-5.10.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 7 months ago) by niro
File size: 2169 byte(s)
import repo
1 # $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="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.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
30 src_prepare()
31 {
32 munpack ${SRCFILE} || die
33 cd ${SRCDIR}
34
35 # enable dynamic loader
36 mpatch ${PNAME}-5.8.7-picdl.patch || die
37
38 # and proper ldflags for shrlibs
39 mpatch ${PNAME}-5.8.7-sharedlinker.patch || die
40
41 if [[ ${ARCH} = x86_64 ]]
42 then
43 # allow configure to run successfully on multilib builds
44 mpatch ${PNAME}-5.8.7-Configure_multilib-1.patch || die
45 # fix a small issue where perl -V assume libc in /lib
46 mpatch ${PNAME}-5.8.7-libc_lib64-1.patch || die
47 fi
48
49 # tell perl where to install the libs to
50 echo "installstyle=\"$(mlibdir)/perl5\"" >>hints/linux.sh || die
51 }
52
53 src_compile()
54 {
55 cd ${SRCDIR}
56
57 ./Configure \
58 -des \
59 -Darchname=${CHOST} \
60 -Doptimize="${CFLAGS}" \
61 -Dcccdlflags='-fPIC' \
62 -Dccdlflags='-rdynamic' \
63 -Duseshrplib \
64 -Dpager="/bin/less -isR" \
65 -Dcf_by='Magellan' \
66 -Dprefix='/usr' \
67 -Dvendorprefix='/usr' \
68 -Dsiteprefix='/usr' \
69 -Dman1dir=/usr/share/man/man1 \
70 -Dman3dir=/usr/share/man/man3 \
71 -Dinstallman1dir=/usr/share/man/man1 \
72 -Dinstallman3dir=/usr/share/man/man3 \
73 -Dman1ext='1' \
74 -Dman3ext='3pm' \
75 -Dlibpth="/usr/local/$(mlibdir) /$(mlibdir) /usr/$(mlibdir)" \
76 || die
77
78 mmake || die
79 }
80
81 src_install()
82 {
83 cd ${SRCDIR}
84
85 make DESTDIR=${BINDIR} install || die
86 minstalldocs AUTHORS Artistic Changes* Copying MANIFEST README* || die
87 }

Properties

Name Value
svn:keywords Id