Magellan Linux

Annotation of /smage/trunk/core/perl/perl-5.12.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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