Contents of /smage/trunk/core/perl/perl-5.32.0-r4.smage2
Parent Directory | Revision Log
Revision 13934 -
(show annotations)
(download)
Sat Jun 27 19:30:02 2020 UTC (3 years, 10 months ago) by niro
File size: 2774 byte(s)
Sat Jun 27 19:30:02 2020 UTC (3 years, 10 months ago) by niro
File size: 2774 byte(s)
auto added: ver bump to 5.32.0-r4
1 | # $Id$ |
2 | |
3 | PNAME="perl" |
4 | PVER="5.32.0" |
5 | PBUILD="r4" |
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 | SDEPEND=">= sys-libs/zlib-dev-1.2.5 |
21 | >= dev-db/db-dev-6.2" |
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://www.cpan.org/src/${PVER%%.*}.0/${SRCFILE} |
31 | mirror://${PNAME}/${SRCFILE} |
32 | mirror://${PNAME}/${PNAME}-5.8.7-Configure_multilib-1.patch |
33 | ) |
34 | |
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 | if [[ $(mlibdir) != lib ]] |
43 | then |
44 | # allow configure to run successfully on multilib builds |
45 | mpatch ${PNAME}-5.8.7-Configure_multilib-1.patch || die |
46 | fi |
47 | |
48 | # tell perl where to install the libs to |
49 | all-abis 'echo "installstyle=\"$(mlibdir)/perl5\"" >>hints/linux.sh || die' |
50 | } |
51 | |
52 | src_compile() |
53 | { |
54 | local myopts |
55 | |
56 | # from gentoo: |
57 | # set a hook to check for each detected library whether it actually works. |
58 | export libscheck=" |
59 | ( echo 'main(){}' > '${SRCDIR}'-$(mabi)/conftest.c && |
60 | $(mabi-cc) -o '${SRCDIR}'-$(mabi)/conftest '${SRCDIR}'-$(mabi)/conftest.c -l\$thislib >/dev/null 2>/dev/null |
61 | ) || xxx=/dev/null" |
62 | |
63 | # filter -march from cflags |
64 | export CFLAGS=$(mfilterflag CFLAGS '-march=*') |
65 | |
66 | if [[ ${ARCH} = x86_64 ]] |
67 | then |
68 | myopts+=" -Dcccdlflags='-fPIC'" |
69 | fi |
70 | |
71 | all-abis ./Configure \ |
72 | -des \ |
73 | -Darchname=${CHOST} \ |
74 | -Doptimize='"${CFLAGS}"' \ |
75 | -Dlddlflags='"-shared ${LDFLAGS}"' \ |
76 | -Dldflags='"${LDFLAGS}"' \ |
77 | -Dcc='"${CC}"' \ |
78 | -Dccdlflags='-rdynamic' \ |
79 | -Dusethreads \ |
80 | -Duseshrplib \ |
81 | -Dpager='"/bin/less -isR"' \ |
82 | -Dcf_by='Magellan' \ |
83 | -Dprefix='/usr' \ |
84 | -Dvendorprefix='/usr' \ |
85 | -Dsiteprefix='/usr' \ |
86 | -Dman1dir=/usr/share/man/man1 \ |
87 | -Dman3dir=/usr/share/man/man3 \ |
88 | -Dinstallman1dir=/usr/share/man/man1 \ |
89 | -Dinstallman3dir=/usr/share/man/man3 \ |
90 | -Dman1ext='1' \ |
91 | -Dman3ext='3pm' \ |
92 | -Dlibpth='"/usr/local/$(mlibdir) /$(mlibdir) /usr/$(mlibdir) "' \ |
93 | -Dglibpth='"/$(mlibdir) /usr/$(mlibdir) "' \ |
94 | -Dlocincpth='/usr/include ' \ |
95 | ${myopts} \ |
96 | || die |
97 | |
98 | mmake || die |
99 | } |
100 | |
101 | src_check() |
102 | { |
103 | mmake test_harness || die |
104 | } |
105 | |
106 | src_install() |
107 | { |
108 | mmake -j1 DESTDIR=${BINDIR} install || die |
109 | minstalldocs AUTHORS Artistic Changes* Copying MANIFEST README* || die |
110 | |
111 | # install multiarch-wrapper |
112 | if [[ $(mlibdir) != lib ]] |
113 | then |
114 | all-abis minstallexec perl /usr/bin/perl${PVER}-$(mabi) || die |
115 | mlink multiarch-wrapper /usr/bin/perl${PVER} || die |
116 | all-abis mlink perl${PVER}-$(mabi) /usr/bin/perl-$(mabi) || die |
117 | all-abis mlink perl${PVER} /usr/bin/perl || die |
118 | fi |
119 | } |