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