Magellan Linux

Contents of /smage/branches/alx-0_6_0/core/libxml2/libxml2-2.7.8-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2060 - (show annotations) (download)
Wed May 11 20:58:59 2011 UTC (13 years, 1 month ago) by niro
File size: 1090 byte(s)
-use alx-split_postinstall
1 # $Id$
2
3 PNAME="libxml2"
4 PVER="2.7.8"
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.5"
14 SDEPEND=">= dev-lang/python-2.7"
15
16 SRCFILE="${PNAME}-${PVER}.tar.gz"
17 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
18
19 REMOVE_DEPRECATED_MAGE_TARGETS=1
20 ALX_ONLY_KEEP="usr/bin/xmlcatalog usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*"
21 sminclude python multilib alx-split
22
23 SRC_URI=(
24 ftp://xmlsoft.org/${PNAME}/${SRCFILE}
25 mirror://${PNAME}/${SRCFILE}
26 )
27
28 UP2DATE="updatecmd ftp://xmlsoft.org/${PNAME} | grep LATEST_$(echo ${PNAME} | tr [:lower:] [:upper:])_IS | sed -n 's/.*_\([0-9].*\)/\1/g;$ p'"
29
30 src_compile()
31 {
32 mconfigure --with-zlib --with-python || die
33 mmake || die
34 }
35
36 postinstall()
37 {
38 # create needed xml-catalog
39 CATALOG=${MROOT}/etc/xml/catalog
40 if [ ! -e ${CATALOG} ]
41 then
42 [ -d ${MROOT}/etc/xml ] || install -d ${MROOT}/etc/xml
43 ${MROOT}/usr/bin/xmlcatalog --create > ${CATALOG}
44 echo "Created XML catalog in ${CATALOG}"
45 fi
46
47 alx-split_postinstall
48 }