Magellan Linux

Contents of /branches/magellan-next/core/libxml2/libxml2-2.7.6-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6137 - (show annotations) (download)
Thu Aug 19 15:55:50 2010 UTC (13 years, 8 months ago) by niro
File size: 1152 byte(s)
imported from trunk
1 # $Id$
2
3 PNAME="libxml2"
4 PVER="2.7.6"
5 PBUILD="r1"
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.3"
14 SDEPEND=">= dev-lang/python-2.6"
15
16 SRCFILE="${PNAME}-${PVER}.tar.gz"
17 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
18
19 sminclude 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 || die
35 else
36 mconfigure --with-zlib --with-python || 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} ]; then
46 [ -d ${MROOT}/etc/xml ] || install -d ${MROOT}/etc/xml
47 ${MROOT}/usr/bin/xmlcatalog --create > ${CATALOG}
48 echo "Created XML catalog in ${CATALOG}"
49 fi
50 }

Properties

Name Value
svn:keywords Id