Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

Name Value
svn:keywords Id