Magellan Linux

Annotation of /smage/branches/alx07x-unstable/core/libxml2/libxml2-2.9.9-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 13138 - (hide annotations) (download)
Fri Jun 28 11:09:53 2019 UTC (4 years, 10 months ago) by niro
Original Path: smage/trunk/core/libxml2/libxml2-2.9.9-r2.smage2
File size: 1149 byte(s)
-added xz-utils to dev runtime
1 niro 13138 # $Id$
2    
3     PNAME="libxml2"
4     PVER="2.9.9"
5     PBUILD="r2"
6    
7     PCAT="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    
14     # dev runtime requirement
15     ALX_DEV_DEPEND=">= app-arch/xz-utils-5"
16    
17     SDEPEND="${ALX_DEV_DEPEND}
18     >= sys-libs/zlib-dev-1.2.5
19     >= dev-lang/python-2.7"
20    
21     SRCFILE="${PNAME}-${PVER}.tar.gz"
22     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
23    
24     ALX_PKG_KEEP="usr/bin/xmlcatalog usr/$(mlibdir)/*.so.*"
25     sminclude python multilib mbuild alx-split
26    
27     SRC_URI=(
28     ftp://xmlsoft.org/${PNAME}/${SRCFILE}
29     mirror://${PNAME}/${SRCFILE}
30     )
31    
32     UP2DATE="updatecmd ftp://xmlsoft.org/${PNAME} | grep LATEST_$(echo ${PNAME} | tr [:lower:] [:upper:])_IS | sed -n 's/.*_\([0-9].*\)/\1/g;$ p'"
33    
34     src_compile()
35     {
36     mconfigure --with-zlib --with-python=/usr/bin/python$(mget-python-version) || die
37     mmake || die
38     }
39    
40     postinstall()
41     {
42     # create needed xml-catalog
43     CATALOG=${MROOT}/etc/xml/catalog
44     if [ ! -e ${CATALOG} ]
45     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     }