Magellan Linux

Contents of /smage/trunk/core/libxml2/libxml2-2.7.7-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 846 - (show annotations) (download)
Thu Oct 21 21:18:06 2010 UTC (13 years, 6 months ago) by niro
File size: 1290 byte(s)
auto added: ver bump to 2.7.7-r2
1 # $Id: libxml2-2.7.6-r1.smage2 3181 2009-10-14 10:55:47Z niro $
2
3 PNAME="libxml2"
4 PVER="2.7.7"
5 PBUILD="r2"
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 # build 32bit libs without python on multilib systems
31 if [[ $(mlibdir) != lib ]]
32 then
33 only-m32 mconfigure --with-zlib --without-python || die
34 only-m64 mconfigure --with-zlib --with-python=/usr/bin/python$(get_python_version) || die
35 else
36 mconfigure --with-zlib --with-python=/usr/bin/python$(get_python_version) || die
37 fi
38 mmake || die
39 }
40
41 postinstall()
42 {
43 # create needed xml-catalog
44 CATALOG=${MROOT}/etc/xml/catalog
45 if [ ! -e ${CATALOG} ]
46 then
47 [ -d ${MROOT}/etc/xml ] || install -d ${MROOT}/etc/xml
48 ${MROOT}/usr/bin/xmlcatalog --create > ${CATALOG}
49 echo "Created XML catalog in ${CATALOG}"
50 fi
51 }