Contents of /smage/trunk/core/libxml2/libxml2-2.9.8-r1.smage2
Parent Directory | Revision Log
Revision 11838 -
(show annotations)
(download)
Wed Aug 15 09:31:25 2018 UTC (6 years, 1 month ago) by niro
File size: 1062 byte(s)
Wed Aug 15 09:31:25 2018 UTC (6 years, 1 month ago) by niro
File size: 1062 byte(s)
auto added: ver bump to 2.9.8-r1
1 | # $Id$ |
2 | |
3 | PNAME="libxml2" |
4 | PVER="2.9.8" |
5 | PBUILD="r1" |
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 | SDEPEND=">= sys-libs/zlib-dev-1.2.5 |
14 | >= dev-lang/python-2.7" |
15 | |
16 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
17 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
18 | |
19 | ALX_PKG_KEEP="usr/bin/xmlcatalog usr/$(mlibdir)/*.so.*" |
20 | sminclude python multilib mbuild 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=/usr/bin/python$(mget-python-version) || 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 | } |