Magellan Linux

Contents of /branches/magellan-next/core/libxml2/libxml2-2.7.8-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7727 - (show annotations) (download)
Mon May 30 14:40:37 2011 UTC (12 years, 11 months ago) by niro
File size: 983 byte(s)
-build python module for all abis
1 # $Id$
2
3 PNAME="libxml2"
4 PVER="2.7.8"
5 PBUILD="r3"
6
7 PCATEGORIE="dev-libs"
8 STATE="unstable"
9
10 DESCRIPTION="Libxml2 is the XML C parser and toolkit developed for the Gnome project."
11 HOMEPAGE="http://xmlsoft.org/"
12
13 DEPEND=">= sys-libs/zlib-1.2.5"
14 SDEPEND=">= dev-lang/python-2.7"
15
16 SRCFILE="${PNAME}-${PVER}.tar.gz"
17 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
18
19 sminclude python multilib
20
21 SRC_URI=(
22 ftp://xmlsoft.org/${PNAME}/${SRCFILE}
23 mirror://${PNAME}/${SRCFILE}
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_compile()
29 {
30 mconfigure --with-zlib --with-python=/usr/bin/python$(get_python_version) || die
31 mmake || die
32 }
33
34 postinstall()
35 {
36 # create needed xml-catalog
37 CATALOG=${MROOT}/etc/xml/catalog
38 if [ ! -e ${CATALOG} ]
39 then
40 [ -d ${MROOT}/etc/xml ] || install -d ${MROOT}/etc/xml
41 ${MROOT}/usr/bin/xmlcatalog --create > ${CATALOG}
42 echo "Created XML catalog in ${CATALOG}"
43 fi
44 }