Magellan Linux

Contents of /trunk/core/libxml2/libxml2-2.9.8-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30704 - (show annotations) (download)
Mon Mar 12 13:57:35 2018 UTC (6 years ago) by niro
File size: 1268 byte(s)
auto added: ver bump to 2.9.8-r1
1 # $Id$
2
3 PNAME="libxml2"
4 PVER="2.9.8"
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.8"
13
14 SRCFILE="${PNAME}-${PVER}.tar.gz"
15 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
16
17 sminclude multilib python2 python3
18
19 SRC_URI=(
20 ftp://xmlsoft.org/${PNAME}/${SRCFILE}
21 mirror://${PNAME}/${SRCFILE}
22 )
23
24 UP2DATE="updatecmd ftp://xmlsoft.org/${PNAME} | grep LATEST_$(echo ${PNAME} | tr '[:lower:]' '[:upper:]')_IS | sed -n 's/.*_\([0-9].*\)/\1/g;$ p'"
25
26 src_prepare()
27 {
28 python2_multilib_src_prepare || die
29 python3_multilib_src_prepare || die
30 }
31
32 src_compile()
33 {
34 python2_multilib_src_compile --with-zlib --with-python=/usr/bin/python$(mget-python2-version) || die
35 PYTHONHASHSEED=0 python3_multilib_src_compile --with-zlib --with-python=/usr/bin/python$(mget-python3-version) || die
36 }
37
38 src_install()
39 {
40 python2_multilib_src_install || die
41 PYTHONHASHSEED=0 python3_multilib_src_install || die
42 }
43
44 postinstall()
45 {
46 # create needed xml-catalog
47 CATALOG=${MROOT}/etc/xml/catalog
48 if [ ! -e ${CATALOG} ]
49 then
50 [ -d ${MROOT}/etc/xml ] || install -d ${MROOT}/etc/xml
51 ${MROOT}/usr/bin/xmlcatalog --create > ${CATALOG}
52 echo "Created XML catalog in ${CATALOG}"
53 fi
54 }