Magellan Linux

Annotation of /smage/trunk/core/libxml2/libxml2-2.7.8-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1402 - (hide annotations) (download)
Tue Mar 1 21:51:49 2011 UTC (13 years, 2 months ago) by niro
File size: 1037 byte(s)
-rebuild with python enabled for mesa-7.10
1 niro 1402 # $Id$
2    
3     PNAME="libxml2"
4     PVER="2.7.8"
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     MCORE_ONLY_KEEP="usr/bin/xmlcatalog usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*"
20     sminclude python multilib mcore-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     }