Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 33000 - (hide annotations) (download)
Tue Oct 8 15:06:13 2019 UTC (4 years, 7 months ago) by niro
File size: 2742 byte(s)
auto added: ver bump to 5.30.0-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 33000 # maybe this can be removed:
24 niro 31561 EXPORT_ABI_LDFLAGS=false
25 niro 31547 sminclude multilib
26     msetfeature "!check"
27    
28     SRC_URI=(
29 niro 31548 #http://www.cpan.org/src/${PVER%%.*}.0/${SRCFILE}
30 niro 31547 mirror://${PNAME}/${SRCFILE}
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     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 niro 31550 # from gentoo:
55     # set a hook to check for each detected library whether it actually works.
56     export libscheck="
57 niro 31558 ( echo 'main(){}' > '${SRCDIR}'-$(mabi)/conftest.c &&
58 niro 31562 $(mabi-cc) -o '${SRCDIR}'-$(mabi)/conftest '${SRCDIR}'-$(mabi)/conftest.c -l\$thislib >/dev/null 2>/dev/null
59 niro 31550 ) || xxx=/dev/null"
60    
61 niro 31555 # filter -march from cflags
62     export CFLAGS=$(mfilterflag CFLAGS '-march=*')
63    
64 niro 31547 all-abis ./Configure \
65     -des \
66 niro 31561 -Darchname=${CHOST} \
67 niro 31547 -Doptimize='"${CFLAGS}"' \
68 niro 31550 -Dldflags='"${LDFLAGS}"' \
69 niro 31547 -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 niro 31550 -Dlibpth='"/usr/local/$(mlibdir) /$(mlibdir) /usr/$(mlibdir) "' \
86     -Dglibpth='"/$(mlibdir) /usr/$(mlibdir) "' \
87     -Dlocincpth='/usr/include ' \
88 niro 31547 || 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     }