Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1747 - (show annotations) (download)
Mon Sep 19 09:18:52 2011 UTC (12 years, 7 months ago) by niro
File size: 2485 byte(s)
auto added: ver bump to 5.14.1-r1
1 # $Id$
2
3 PNAME="perl"
4 PVER="5.14.1"
5 PBUILD="r1"
6
7 PCATEGORIE="dev-lang"
8
9 DESCRIPTION="Larry Wall's Practical Extraction and Reporting Language."
10 HOMEPAGE="http://www.perl.org/"
11
12 DEPEND=">= sys-apps/groff-1.21
13 >= sys-libs/zlib-1.2.5"
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.10.1-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.12.1-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 UP2DATE="updatecmd ${HOMEPAGE} | grep 'download now' | sed 's/.*\[.*\]\(.*\) -.*/\1/'"
31
32 src_prepare()
33 {
34 munpack ${SRCFILE} || die
35 cd ${SRCDIR}
36
37 # enable dynamic loader
38 mpatch ${PNAME}-5.10.1-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.12.1-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/lib,' \
55 cpan/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 -Ui_db \
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 }