Magellan Linux

Contents of /trunk/core/libxslt/libxslt-1.1.38-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 33455 - (show annotations) (download)
Thu Jul 20 20:38:02 2023 UTC (10 months, 1 week ago) by niro
File size: 1684 byte(s)
-ver bump to 1.1.38-r1
1 # $Id$
2
3 PNAME="libxslt"
4 PVER="1.1.38"
5 PBUILD="r1"
6
7 SPLIT_PACKAGES="libxslt python3-libxslt"
8
9 PCAT="dev-libs"
10 HOMEPAGE="http://xmlsoft.org/XSLT.html"
11
12 DEPEND=">= dev-libs/libxml2-2.11"
13
14 SDEPEND=">= sys-dev/autoconf-10
15 >= sys-dev/automake-10"
16
17 SRCFILE="${PNAME}-v${PVER}.tar.gz"
18 SRCDIR="${BUILDDIR}/${PNAME}-v${PVER}"
19
20 sminclude multilib python3 cleanutils
21
22 SRC_URI=(
23 https://gitlab.gnome.org/GNOME/${PNAME}/-/archive/v${PVER}/${SRCFILE}
24 ftp://xmlsoft.org/libxml2/${SRCFILE}
25 mirror://${PNAME}/${SRCFILE}
26 )
27
28 UP2SEPERATOR="v"
29 UP2DATE="updatecmd https://gitlab.gnome.org/GNOME/${PNAME}/-/releases | highesttarball gz"
30
31 split_info_libxslt()
32 {
33 DESCRIPTION="XSL Transformations, is a language for transforming XML documents into other XML documents."
34 }
35
36 split_info_python3-libxslt()
37 {
38 DESCRIPTION="XSL Transformations python3 bindings."
39 DEPEND=">= dev-python/python3-libxml2-2.11"
40 }
41
42 src_prepare()
43 {
44 python3_multilib_src_prepare || die
45
46 local abi
47 for abi in ${MULTILIB_ABIS}
48 do
49 cd ${MAGE_PYTHON3_SRCSUBDIR}/$(basename ${SRCDIR})-${abi} || die
50 MULTILIB_ENTER_SRCDIR=false oldmautoreconf || die
51 done
52 }
53
54 src_compile()
55 {
56 python3_multilib_src_compile --with-zlib '$([[ ${abi} = m64 ]] && echo "--with-python=/usr/bin/python$(mget-python3-version)" || echo "--without-python")' || die
57 }
58
59 src_install_libxslt()
60 {
61 python3_multilib_src_install || die
62
63 # delete python bindings
64 mdelete -r $(dirname $(mget-python3-libdir)) || die
65 }
66
67 src_install_python3-libxslt()
68 {
69 python3_multilib_src_install || die
70
71 # remove / in the beginning of the path
72 local pylibdir=$(mget-python3-libdir)
73 pylibdir="${pylibdir#/*}"
74
75 # keep only python bindings
76 zapmost ${BINDIR} ${pylibdir} || die
77 }