Annotation of /smage/trunk/core/perl/perl-5.26.0-r1.smage2
Parent Directory | Revision Log
Revision 10182 -
(hide annotations)
(download)
Wed Aug 16 10:02:52 2017 UTC (7 years, 1 month ago) by niro
File size: 2724 byte(s)
Wed Aug 16 10:02:52 2017 UTC (7 years, 1 month ago) by niro
File size: 2724 byte(s)
auto added: ver bump to 5.26.0-r1
1 | niro | 10182 | # $Id$ |
2 | |||
3 | PNAME="perl" | ||
4 | PVER="5.26.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.1" | ||
19 | |||
20 | SDEPEND=">= sys-libs/zlib-dev-1.2.5 | ||
21 | >= dev-db/db-dev-6.1" | ||
22 | |||
23 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
24 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
25 | |||
26 | sminclude multilib | ||
27 | msetfeature "!check" | ||
28 | |||
29 | SRC_URI=( | ||
30 | http://ftp.funet.fi/pub/CPAN/src/${SRCFILE} | ||
31 | mirror://${PNAME}/${SRCFILE} | ||
32 | mirror://${PNAME}/${PNAME}-5.10.1-picdl.patch | ||
33 | mirror://${PNAME}/${PNAME}-5.8.7-sharedlinker.patch | ||
34 | mirror://${PNAME}/${PNAME}-5.8.7-Configure_multilib-1.patch | ||
35 | ) | ||
36 | |||
37 | UP2DATE="updatecmd https://www.perl.org/get.html | highesttarball gz" | ||
38 | |||
39 | src_prepare() | ||
40 | { | ||
41 | munpack ${SRCFILE} || die | ||
42 | cd ${SRCDIR} | ||
43 | |||
44 | # enable dynamic loader | ||
45 | mpatch ${PNAME}-5.10.1-picdl.patch || die | ||
46 | |||
47 | # and proper ldflags for shrlibs | ||
48 | mpatch ${PNAME}-5.8.7-sharedlinker.patch || die | ||
49 | |||
50 | if [[ $(mlibdir) != lib ]] | ||
51 | then | ||
52 | # allow configure to run successfully on multilib builds | ||
53 | mpatch ${PNAME}-5.8.7-Configure_multilib-1.patch || die | ||
54 | fi | ||
55 | |||
56 | # force use of system-zlib | ||
57 | all-abis 'sed -i "/^BUILD_ZLIB/s/True/False/" cpan/Compress-Raw-Zlib/config.in || die' | ||
58 | all-abis 'sed -i "/^INCLUDE/s,\./zlib-src,/usr/include," cpan/Compress-Raw-Zlib/config.in || die' | ||
59 | all-abis 'sed -i "/^LIB/s,\./zlib-src,/usr/lib," cpan/Compress-Raw-Zlib/config.in || die' | ||
60 | |||
61 | # tell perl where to install the libs to | ||
62 | all-abis 'echo "installstyle=\"$(mlibdir)/perl5\"" >>hints/linux.sh || die' | ||
63 | } | ||
64 | |||
65 | src_compile() | ||
66 | { | ||
67 | all-abis ./Configure \ | ||
68 | -des \ | ||
69 | -Darchname=${CHOST} \ | ||
70 | -Doptimize='"${CFLAGS}"' \ | ||
71 | -Dcc='"${CC}"' \ | ||
72 | -Dcccdlflags='-fPIC' \ | ||
73 | -Dccdlflags='-rdynamic' \ | ||
74 | -Dusethreads \ | ||
75 | -Duseshrplib \ | ||
76 | -Dpager='"/bin/less -isR"' \ | ||
77 | -Dcf_by='Magellan' \ | ||
78 | -Dprefix='/usr' \ | ||
79 | -Dvendorprefix='/usr' \ | ||
80 | -Dsiteprefix='/usr' \ | ||
81 | -Dman1dir=/usr/share/man/man1 \ | ||
82 | -Dman3dir=/usr/share/man/man3 \ | ||
83 | -Dinstallman1dir=/usr/share/man/man1 \ | ||
84 | -Dinstallman3dir=/usr/share/man/man3 \ | ||
85 | -Dman1ext='1' \ | ||
86 | -Dman3ext='3pm' \ | ||
87 | -Dlibpth='"/usr/local/$(mlibdir) /$(mlibdir) /usr/$(mlibdir)"' \ | ||
88 | || die | ||
89 | |||
90 | mmake || die | ||
91 | } | ||
92 | |||
93 | src_check() | ||
94 | { | ||
95 | mmake test_harness || die | ||
96 | } | ||
97 | |||
98 | src_install() | ||
99 | { | ||
100 | mmake -j1 DESTDIR=${BINDIR} install || die | ||
101 | minstalldocs AUTHORS Artistic Changes* Copying MANIFEST README* || die | ||
102 | |||
103 | # install multiarch-wrapper | ||
104 | if [[ $(mlibdir) != lib ]] | ||
105 | then | ||
106 | all-abis minstallexec perl /usr/bin/perl${PVER}-$(mabi) || die | ||
107 | mlink multiarch-wrapper /usr/bin/perl${PVER} || die | ||
108 | all-abis mlink perl${PVER}-$(mabi) /usr/bin/perl-$(mabi) || die | ||
109 | all-abis mlink perl${PVER} /usr/bin/perl || die | ||
110 | fi | ||
111 | } |