Magellan Linux

Contents of /smage/tags/alx-0_6_10/core/libxml2/libxml2-2.7.8-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8058 - (show annotations) (download)
Wed Dec 30 11:56:10 2015 UTC (8 years, 5 months ago) by niro
File size: 1073 byte(s)
tagged 'alx-0_6_10'
1 # $Id$
2
3 PNAME="libxml2"
4 PVER="2.7.8"
5 PBUILD="r1"
6
7 PCATEGORIE="dev-libs"
8
9 DESCRIPTION="Libxml2 is the XML C parser and toolkit developed for the Gnome project."
10 HOMEPAGE="http://xmlsoft.org/"
11
12 DEPEND=">= sys-libs/zlib-1.2.5"
13 SDEPEND=">= dev-lang/python-2.7"
14
15 SRCFILE="${PNAME}-${PVER}.tar.gz"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17
18 REMOVE_DEPRECATED_MAGE_TARGETS=1
19 ALX_ONLY_KEEP="usr/bin/xmlcatalog usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*"
20 sminclude python multilib alx-split
21
22 SRC_URI=(
23 ftp://xmlsoft.org/${PNAME}/${SRCFILE}
24 mirror://${PNAME}/${SRCFILE}
25 )
26
27 UP2DATE="updatecmd ftp://xmlsoft.org/${PNAME} | grep LATEST_$(echo ${PNAME} | tr [:lower:] [:upper:])_IS | sed -n 's/.*_\([0-9].*\)/\1/g;$ p'"
28
29 src_compile()
30 {
31 mconfigure --with-zlib --with-python || die
32 mmake || die
33 }
34
35 postinstall()
36 {
37 # create needed xml-catalog
38 CATALOG=${MROOT}/etc/xml/catalog
39 if [ ! -e ${CATALOG} ]
40 then
41 [ -d ${MROOT}/etc/xml ] || install -d ${MROOT}/etc/xml
42 ${MROOT}/usr/bin/xmlcatalog --create > ${CATALOG}
43 echo "Created XML catalog in ${CATALOG}"
44 fi
45
46 alx-split_postinstall
47 }