Magellan Linux

Annotation of /trunk/core/perl/perl-5.28.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31553 - (hide annotations) (download)
Fri Nov 30 09:29:09 2018 UTC (5 years, 5 months ago) by niro
File size: 3168 byte(s)
auto added: ver bump to 5.28.1-r1
1 niro 31547 # $Id$
2    
3     PNAME="perl"
4     PVER="5.28.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 niro 31552 EMUL_LINUX_32=true
24 niro 31547 sminclude multilib
25     msetfeature "!check"
26    
27     SRC_URI=(
28 niro 31548 #http://www.cpan.org/src/${PVER%%.*}.0/${SRCFILE}
29 niro 31547 mirror://${PNAME}/${SRCFILE}
30     mirror://${PNAME}/${PNAME}-5.10.1-picdl.patch
31     mirror://${PNAME}/${PNAME}-5.8.7-sharedlinker.patch
32     mirror://${PNAME}/${PNAME}-5.8.7-Configure_multilib-1.patch
33     )
34    
35     #UP2DATE="updatecmd ${HOMEPAGE} | grep 'download now' | sed 's/.*\[.*\]\(.*\) -.*/\1/'"
36     UP2DATE="updatecmd https://www.perl.org/get.html | highesttarball gz"
37    
38     src_prepare()
39     {
40     munpack ${SRCFILE} || die
41     cd ${SRCDIR}
42    
43     # enable dynamic loader
44 niro 31553 # mpatch ${PNAME}-5.10.1-picdl.patch || die
45 niro 31547
46     # and proper ldflags for shrlibs
47 niro 31553 # mpatch ${PNAME}-5.8.7-sharedlinker.patch || die
48 niro 31547
49     if [[ $(mlibdir) != lib ]]
50     then
51     # allow configure to run successfully on multilib builds
52     mpatch ${PNAME}-5.8.7-Configure_multilib-1.patch || die
53     fi
54    
55     # force use of system-zlib
56     all-abis 'sed -i "/^BUILD_ZLIB/s/True/False/" cpan/Compress-Raw-Zlib/config.in || die'
57     all-abis 'sed -i "/^INCLUDE/s,\./zlib-src,/usr/include," cpan/Compress-Raw-Zlib/config.in || die'
58     all-abis 'sed -i "/^LIB/s,\./zlib-src,/usr/lib," cpan/Compress-Raw-Zlib/config.in || die'
59    
60     # tell perl where to install the libs to
61     all-abis 'echo "installstyle=\"$(mlibdir)/perl5\"" >>hints/linux.sh || die'
62     }
63    
64     src_compile()
65     {
66 niro 31550 # from gentoo:
67     # set a hook to check for each detected library whether it actually works.
68     export libscheck="
69     ( echo 'main(){}' > '${SRCDIR}'/conftest.c &&
70     ${CC} -o '${SRCDIR}'/conftest '${SRCDIR}'/conftest.c -l\$thislib >/dev/null 2>/dev/null
71     ) || xxx=/dev/null"
72    
73 niro 31547 all-abis ./Configure \
74     -des \
75 niro 31551 -Darchname='"${CHOST}"' \
76 niro 31547 -Doptimize='"${CFLAGS}"' \
77 niro 31550 -Dldflags='"${LDFLAGS}"' \
78 niro 31547 -Dcc='"${CC}"' \
79     -Dcccdlflags='-fPIC' \
80     -Dccdlflags='-rdynamic' \
81     -Dusethreads \
82     -Duseshrplib \
83     -Dpager='"/bin/less -isR"' \
84     -Dcf_by='Magellan' \
85     -Dprefix='/usr' \
86     -Dvendorprefix='/usr' \
87     -Dsiteprefix='/usr' \
88     -Dman1dir=/usr/share/man/man1 \
89     -Dman3dir=/usr/share/man/man3 \
90     -Dinstallman1dir=/usr/share/man/man1 \
91     -Dinstallman3dir=/usr/share/man/man3 \
92     -Dman1ext='1' \
93     -Dman3ext='3pm' \
94 niro 31550 -Dlibpth='"/usr/local/$(mlibdir) /$(mlibdir) /usr/$(mlibdir) "' \
95     -Dglibpth='"/$(mlibdir) /usr/$(mlibdir) "' \
96     -Dlocincpth='/usr/include ' \
97 niro 31547 || die
98    
99     mmake || die
100     }
101    
102     src_check()
103     {
104     mmake test_harness || die
105     }
106    
107     src_install()
108     {
109     mmake -j1 DESTDIR=${BINDIR} install || die
110     minstalldocs AUTHORS Artistic Changes* Copying MANIFEST README* || die
111    
112     # install multiarch-wrapper
113     if [[ $(mlibdir) != lib ]]
114     then
115     all-abis minstallexec perl /usr/bin/perl${PVER}-$(mabi) || die
116     mlink multiarch-wrapper /usr/bin/perl${PVER} || die
117     all-abis mlink perl${PVER}-$(mabi) /usr/bin/perl-$(mabi) || die
118     all-abis mlink perl${PVER} /usr/bin/perl || die
119     fi
120     }