Magellan Linux

Contents of /trunk/core/libxml2/libxml2-2.6.31-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 220 - (show annotations) (download)
Wed Oct 15 18:05:18 2008 UTC (15 years, 7 months ago) by niro
File size: 1103 byte(s)


1 # $Header: /magellan-cvs/smage/libxml2/libxml2-2.6.31-r1.smage2,v 1.1 2008/02/12 13:49:07 niro Exp $
2
3 PNAME="libxml2"
4 PVER="2.6.31"
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.5"
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 src_compile()
27 {
28 # build 32bit libs without python on multilib systems
29 if [[ $(mlibdir) != lib ]]
30 then
31 only-m32 mconfigure --with-zlib --without-python || die
32 only-m64 mconfigure --with-zlib --with-python || die
33 else
34 mconfigure --with-zlib --with-python || die
35 fi
36 mmake || die
37 }
38
39 postinstall()
40 {
41 # create needed xml-catalog
42 CATALOG=${MROOT}/etc/xml/catalog
43 if [ ! -e ${CATALOG} ]; then
44 [ -d ${MROOT}/etc/xml ] || install -d ${MROOT}/etc/xml
45 ${MROOT}/usr/bin/xmlcatalog --create > ${CATALOG}
46 echo "Created XML catalog in ${CATALOG}"
47 fi
48 }

Properties

Name Value
svn:keywords Id