Magellan Linux

Contents of /branches/R11-unstable/core/libxml2/libxml2-2.9.2-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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