Contents of /trunk/core/libxml2/libxml2-2.9.4-r1.smage2
Parent Directory
|
Revision Log
Revision 28197 -
(show annotations)
(download)
Thu Jun 23 13:28:25 2016 UTC (7 years, 11 months ago) by niro
File size: 965 byte(s)
Thu Jun 23 13:28:25 2016 UTC (7 years, 11 months ago) by niro
File size: 965 byte(s)
auto added: ver bump to 2.9.4-r1
1 | # $Id$ |
2 | |
3 | PNAME="libxml2" |
4 | PVER="2.9.4" |
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.8" |
13 | SDEPEND=">= dev-lang/python-2.7" |
14 | |
15 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
17 | |
18 | sminclude python multilib |
19 | |
20 | SRC_URI=( |
21 | ftp://xmlsoft.org/${PNAME}/${SRCFILE} |
22 | mirror://${PNAME}/${SRCFILE} |
23 | ) |
24 | |
25 | UP2DATE="updatecmd ftp://xmlsoft.org/${PNAME} | grep LATEST_$(echo ${PNAME} | tr '[:lower:]' '[:upper:]')_IS | sed -n 's/.*_\([0-9].*\)/\1/g;$ p'" |
26 | |
27 | src_compile() |
28 | { |
29 | mconfigure --with-zlib --with-python=/usr/bin/python$(mget-python-version) || die |
30 | mmake || die |
31 | } |
32 | |
33 | postinstall() |
34 | { |
35 | # create needed xml-catalog |
36 | CATALOG=${MROOT}/etc/xml/catalog |
37 | if [ ! -e ${CATALOG} ] |
38 | then |
39 | [ -d ${MROOT}/etc/xml ] || install -d ${MROOT}/etc/xml |
40 | ${MROOT}/usr/bin/xmlcatalog --create > ${CATALOG} |
41 | echo "Created XML catalog in ${CATALOG}" |
42 | fi |
43 | } |