Magellan Linux

Annotation of /branches/R11-stable/core/perl/perl-5.20.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 21285 - (hide annotations) (download)
Wed Jun 11 09:46:29 2014 UTC (9 years, 11 months ago) by niro
Original Path: trunk/core/perl/perl-5.20.0-r1.smage2
File size: 2681 byte(s)
-removed deprecated libc patch
1 niro 21284 # $Id$
2    
3     PNAME="perl"
4     PVER="5.20.0"
5     PBUILD="r1"
6    
7     PCAT="dev-lang"
8    
9     DESCRIPTION="Larry Wall's Practical Extraction and Reporting Language."
10     HOMEPAGE="http://www.perl.org/"
11    
12     DEPEND_x86_64=">= sys-apps/multiarch-wrapper-1"
13     SPECIAL_VARS="DEPEND_x86_64"
14    
15     DEPEND="$(marchdepend)
16     >= sys-apps/groff-1.20
17     >= sys-libs/zlib-1.2.5
18     >= dev-db/db-6.0"
19    
20     SRCFILE="${PNAME}-${PVER}.tar.gz"
21     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
22    
23     sminclude multilib
24     msetfeature "!check"
25    
26     SRC_URI=(
27     http://ftp.funet.fi/pub/CPAN/src/${SRCFILE}
28     mirror://${PNAME}/${SRCFILE}
29     mirror://${PNAME}/${PNAME}-5.10.1-picdl.patch
30     mirror://${PNAME}/${PNAME}-5.8.7-sharedlinker.patch
31     mirror://${PNAME}/${PNAME}-5.8.7-Configure_multilib-1.patch
32     )
33    
34     UP2DATE="updatecmd ${HOMEPAGE} | grep 'download now' | sed 's/.*\[.*\]\(.*\) -.*/\1/'"
35    
36     src_prepare()
37     {
38     munpack ${SRCFILE} || die
39     cd ${SRCDIR}
40    
41     # enable dynamic loader
42     mpatch ${PNAME}-5.10.1-picdl.patch || die
43    
44     # and proper ldflags for shrlibs
45     mpatch ${PNAME}-5.8.7-sharedlinker.patch || die
46    
47     if [[ $(mlibdir) != lib ]]
48     then
49     # allow configure to run successfully on multilib builds
50     mpatch ${PNAME}-5.8.7-Configure_multilib-1.patch || die
51     fi
52    
53     # force use of system-zlib
54     all-abis 'sed -i "/^BUILD_ZLIB/s/True/False/" cpan/Compress-Raw-Zlib/config.in || die'
55     all-abis 'sed -i "/^INCLUDE/s,\./zlib-src,/usr/include," cpan/Compress-Raw-Zlib/config.in || die'
56     all-abis 'sed -i "/^LIB/s,\./zlib-src,/usr/lib," cpan/Compress-Raw-Zlib/config.in || die'
57    
58     # tell perl where to install the libs to
59     all-abis 'echo "installstyle=\"$(mlibdir)/perl5\"" >>hints/linux.sh || die'
60     }
61    
62     src_compile()
63     {
64     all-abis ./Configure \
65     -des \
66     -Darchname=${CHOST} \
67     -Doptimize='"${CFLAGS}"' \
68     -Dcc='"${CC}"' \
69     -Dcccdlflags='-fPIC' \
70     -Dccdlflags='-rdynamic' \
71     -Dusethreads \
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_check()
91     {
92     mmake test_harness || die
93     }
94    
95     src_install()
96     {
97     mmake -j1 DESTDIR=${BINDIR} install || die
98     minstalldocs AUTHORS Artistic Changes* Copying MANIFEST README* || die
99    
100     # install multiarch-wrapper
101     if [[ $(mlibdir) != lib ]]
102     then
103     all-abis minstallexec perl /usr/bin/perl${PVER}-$(mabi) || die
104     mlink multiarch-wrapper /usr/bin/perl${PVER} || die
105     all-abis mlink perl${PVER}-$(mabi) /usr/bin/perl-$(mabi) || die
106     all-abis mlink perl${PVER} /usr/bin/perl || die
107     fi
108     }