Contents of /smage/trunk/core/libxml2/libxml2-2.9.10-r2.smage2
Parent Directory | Revision Log
Revision 13913 -
(show annotations)
(download)
Sat Jun 27 17:40:18 2020 UTC (4 years, 3 months ago) by niro
File size: 1150 byte(s)
Sat Jun 27 17:40:18 2020 UTC (4 years, 3 months ago) by niro
File size: 1150 byte(s)
auto added: ver bump to 2.9.10-r2
1 | # $Id$ |
2 | |
3 | PNAME="libxml2" |
4 | PVER="2.9.10" |
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 | } |