Magellan Linux

Annotation of /trunk/core/libxml2/libxml2-2.11.4-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 33436 - (hide annotations) (download)
Wed Jul 19 11:41:15 2023 UTC (10 months, 1 week ago) by niro
File size: 1326 byte(s)
-ver bump to 2.11.4-r1
1 niro 33436 # $Id$
2    
3     PNAME="libxml2"
4     PVER="2.11.4"
5     PBUILD="r1"
6    
7     PCAT="dev-libs"
8    
9     DESCRIPTION="Libxml2 is the XML C parser and toolkit developed for the Gnome project."
10     HOMEPAGE="http://xmlsoft.org/"
11    
12     DEPEND=">= sys-libs/zlib-1.2.13"
13    
14     SRCFILE="v${PVER}.tar.gz"
15     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
16    
17     sminclude multilib python3
18    
19     SRC_URI=(
20     https://github.com/GNOME/${PNAME}/archive/refs/tags/${SRCFILE}
21     ftp://xmlsoft.org/${PNAME}/${SRCFILE}
22     mirror://${PNAME}/${SRCFILE}
23     )
24    
25     UP2SEPERATOR="v"
26     UP2DATE="updatecmd https://github.com/GNOME/${PNAME}/releases | highesttarball gz"
27    
28     src_prepare()
29     {
30     python3_multilib_src_prepare || die
31    
32     local abi
33     for abi in ${MULTILIB_ABIS}
34     do
35     cd ${MAGE_PYTHON3_SRCSUBDIR}/$(basename ${SRCDIR})-${abi} || die
36     MULTILIB_ENTER_SRCDIR=false oldmautoreconf || die
37     done
38     }
39    
40     src_compile()
41     {
42     PYTHONHASHSEED=0 python3_multilib_src_compile --with-zlib '$([[ ${abi} = m64 ]] && echo "--with-python=/usr/bin/python$(mget-python3-version)" || echo "--without-python")' || die
43     }
44    
45     src_install()
46     {
47     PYTHONHASHSEED=0 python3_multilib_src_install || die
48     }
49    
50     postinstall()
51     {
52     # create needed xml-catalog
53     CATALOG=${MROOT}/etc/xml/catalog
54     if [ ! -e ${CATALOG} ]
55     then
56     [ -d ${MROOT}/etc/xml ] || install -d ${MROOT}/etc/xml
57     ${MROOT}/usr/bin/xmlcatalog --create > ${CATALOG}
58     echo "Created XML catalog in ${CATALOG}"
59     fi
60     }