Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

Name Value
svn:keywords Id