Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 33362 - (hide annotations) (download)
Thu Jul 13 12:46:02 2023 UTC (10 months, 2 weeks ago) by niro
File size: 2827 byte(s)
-ver bump to 5.36.1-r1
1 niro 33362 # $Id$
2    
3     PNAME="perl"
4     PVER="5.36.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.22
17     >= sys-libs/zlib-1.2.13
18     >= dev-db/db-6.2
19     >= dev-db/gdbm-1.23"
20    
21     SRCFILE="${PNAME}-${PVER}.tar.gz"
22     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
23    
24     # maybe this can be removed:
25     #EXPORT_ABI_LDFLAGS=false
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 ${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     if [[ $(ARCH=x86_64 mlibdir) = lib64 ]] || [[ $(ARCH=i686 mlibdir) = lib32 ]]
44     then
45     # allow configure to run successfully on multilib builds with lib64
46     mpatch ${PNAME}-5.8.7-Configure_multilib-1.patch || die
47     fi
48    
49     # tell perl where to install the libs to
50     all-abis 'echo "installstyle=\"$(mlibdir)/perl5\"" >>hints/linux.sh || die'
51     }
52    
53     src_compile()
54     {
55     # from gentoo:
56     # set a hook to check for each detected library whether it actually works.
57     export libscheck="
58     ( echo 'main(){}' > '${SRCDIR}'-$(mabi)/conftest.c &&
59     $(mabi-cc) -o '${SRCDIR}'-$(mabi)/conftest '${SRCDIR}'-$(mabi)/conftest.c -l\$thislib >/dev/null 2>/dev/null
60     ) || xxx=/dev/null"
61    
62     # # filter -march from cflags
63     # export CFLAGS=$(mfilterflag CFLAGS '-march=*')
64    
65     all-abis ./Configure \
66     -des \
67     -Darchname=${CHOST} \
68     -Doptimize='"${CFLAGS}"' \
69     -Dldflags='"${LDFLAGS}"' \
70     -Dcc='"${CC}"' \
71     -Dcccdlflags='-fPIC' \
72     -Dccdlflags='-rdynamic' \
73     -Dusethreads \
74     -Duseshrplib \
75     -Dpager='"/bin/less -isR"' \
76     -Dcf_by='Magellan' \
77     -Dprefix='/usr' \
78     -Dvendorprefix='/usr' \
79     -Dsiteprefix='/usr' \
80     -Dman1dir=/usr/share/man/man1 \
81     -Dman3dir=/usr/share/man/man3 \
82     -Dinstallman1dir=/usr/share/man/man1 \
83     -Dinstallman3dir=/usr/share/man/man3 \
84     -Dman1ext='1' \
85     -Dman3ext='3pm' \
86     -Dlibpth='"/usr/local/$(mlibdir) /$(mlibdir) /usr/$(mlibdir) "' \
87     -Dglibpth='"/$(mlibdir) /usr/$(mlibdir) "' \
88     -Dlocincpth='/usr/include ' \
89     || die
90    
91     mmake || die
92     }
93    
94     src_check()
95     {
96     mmake test_harness || die
97     }
98    
99     src_install()
100     {
101     mmake -j1 DESTDIR=${BINDIR} install || die
102     minstalldocs AUTHORS Artistic Changes* Copying MANIFEST README* || die
103    
104     # install multiarch-wrapper
105     if [[ ${ARCH} = x86_64 ]]
106     then
107     all-abis minstallexec perl /usr/bin/perl${PVER}-$(mabi) || die
108     mlink multiarch-wrapper /usr/bin/perl${PVER} || die
109     all-abis mlink perl${PVER}-$(mabi) /usr/bin/perl-$(mabi) || die
110     all-abis mlink perl${PVER} /usr/bin/perl || die
111     fi
112     }