Magellan Linux

Contents of /branches/magellan-next/core/perl/perl-5.10.1-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5844 - (show annotations) (download)
Tue Aug 17 11:04:20 2010 UTC (13 years, 9 months ago) by niro
File size: 2423 byte(s)
imported from trunk
1 # $Id$
2
3 PNAME="perl"
4 PVER="5.10.1"
5 PBUILD="r2"
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 >= dev-db/db-4.8"
16
17 SRCFILE="${PNAME}-${PVER}.tar.gz"
18 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19
20 SRC_URI=(
21 http://ftp.funet.fi/pub/CPAN/src/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 mirror://${PNAME}/${PNAME}-${PVER}-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 #UP2DATE="updatecmd http://ftp.funet.fi/pub/CPAN/src | grep ${PNAME}- | lasttarball"
30 #UP2DATE="updatecmd ${HOMEPAGE} | grep 'Current Release:' | sed 's/.*: \[.*\]\(.*\).*/\1/'"
31 UP2DATE="updatecmd ${HOMEPAGE} | grep 'Latest Version:' | sed 's/.*: \[.*\]\(.*\).*/\1/'"
32
33 src_prepare()
34 {
35 munpack ${SRCFILE} || die
36 cd ${SRCDIR}
37
38 # enable dynamic loader
39 mpatch ${PNAME}-${PVER}-picdl.patch || die
40
41 # and proper ldflags for shrlibs
42 mpatch ${PNAME}-5.8.7-sharedlinker.patch || die
43
44 if [[ ${ARCH} = x86_64 ]]
45 then
46 # allow configure to run successfully on multilib builds
47 mpatch ${PNAME}-5.8.7-Configure_multilib-1.patch || die
48 # fix a small issue where perl -V assume libc in /lib
49 mpatch ${PNAME}-5.8.7-libc_lib64-1.patch || die
50 fi
51
52 # force use of system-zlib
53 sed -i -e '/^BUILD_ZLIB/ s/True/False/' \
54 -e '/^INCLUDE/s|\./zlib-src|/usr/include|' \
55 -e '/^LIB/s|\./zlib-src|/usr/lib64|' \
56 ext/Compress-Raw-Zlib/config.in \
57 || die
58
59 # tell perl where to install the libs to
60 echo "installstyle=\"$(mlibdir)/perl5\"" >>hints/linux.sh || die
61 }
62
63 src_compile()
64 {
65 cd ${SRCDIR}
66
67 ./Configure \
68 -des \
69 -Darchname=${CHOST} \
70 -Doptimize="${CFLAGS}" \
71 -Dcccdlflags='-fPIC' \
72 -Dccdlflags='-rdynamic' \
73 -Duseshrplib \
74 -Dpager="/bin/less -isR" \
75 -Dcf_by='Magellan' \
76 -Dprefix='/usr' \
77 -Dvendorprefix='/usr' \
78 -Dsiteprefix='/usr' \
79 -Dman1dir=/usr/share/man/man1 \
80 -Dman3dir=/usr/share/man/man3 \
81 -Dinstallman1dir=/usr/share/man/man1 \
82 -Dinstallman3dir=/usr/share/man/man3 \
83 -Dman1ext='1' \
84 -Dman3ext='3pm' \
85 -Dlibpth="/usr/local/$(mlibdir) /$(mlibdir) /usr/$(mlibdir)" \
86 || die
87
88 mmake || die
89 }
90
91 src_install()
92 {
93 cd ${SRCDIR}
94
95 make DESTDIR=${BINDIR} install || die
96 minstalldocs AUTHORS Artistic Changes* Copying MANIFEST README* || die
97 }

Properties

Name Value
svn:keywords Id