Magellan Linux

Contents of /smage/trunk/core/libxml2/libxml2-2.9.2-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6645 - (show annotations) (download)
Wed Jul 15 10:53:43 2015 UTC (8 years, 10 months ago) by niro
File size: 1382 byte(s)
-fixed broken xmlcatalog
1 # $Id$
2
3 PNAME="libxml2"
4 PVER="2.9.2"
5 PBUILD="r3"
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.5"
13 SDEPEND=">= sys-libs/zlib-dev-1.2.5
14 >= dev-lang/python-2.7"
15
16 SRCFILE="${PNAME}-${PVER}.tar.gz"
17 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
18
19 ALX_PKG_KEEP="usr/bin/xmlcatalog usr/$(mlibdir)/*.so.*"
20 sminclude python multilib alx-split
21
22 SRC_URI=(
23 ftp://xmlsoft.org/${PNAME}/${SRCFILE}
24 mirror://${PNAME}/${SRCFILE}
25 mirror://${PNAME}/${PNAME}-${PVER}-revert-missing-initialization.patch
26 )
27
28 UP2DATE="updatecmd ftp://xmlsoft.org/${PNAME} | grep LATEST_$(echo ${PNAME} | tr [:lower:] [:upper:])_IS | sed -n 's/.*_\([0-9].*\)/\1/g;$ p'"
29
30 src_prepare()
31 {
32 munpack ${SRCFILE} || die
33
34 # fix broken xmlcatalog command, which breaks build-docbook-catalog (upstream)
35 # see: https://bugzilla.redhat.com/show_bug.cgi?id=1153753
36 mpatch ${PNAME}-${PVER}-revert-missing-initialization.patch || die
37 }
38
39 src_compile()
40 {
41 mconfigure --with-zlib --with-python=/usr/bin/python$(mget-python-version) || die
42 mmake || die
43 }
44
45 postinstall()
46 {
47 # create needed xml-catalog
48 CATALOG=${MROOT}/etc/xml/catalog
49 if [ ! -e ${CATALOG} ]
50 then
51 [ -d ${MROOT}/etc/xml ] || install -d ${MROOT}/etc/xml
52 ${MROOT}/usr/bin/xmlcatalog --create > ${CATALOG}
53 echo "Created XML catalog in ${CATALOG}"
54 fi
55 }