Contents of /branches/magellan-next/extras/xalan-c/xalan-c-1.11.0_pre797991-r2.smage2
Parent Directory | Revision Log
Revision 8049 -
(show annotations)
(download)
Wed Jun 29 13:21:32 2011 UTC (13 years, 3 months ago) by niro
File size: 1507 byte(s)
Wed Jun 29 13:21:32 2011 UTC (13 years, 3 months ago) by niro
File size: 1507 byte(s)
-fixed typos
1 | # $Id$ |
2 | |
3 | PNAME="xalan-c" |
4 | PVER="1.11.0_pre797991" |
5 | PBUILD="r2" |
6 | |
7 | PCATEGORIE="dev-util" |
8 | |
9 | DEPEND=">= dev-util/xerces-c-3.1" |
10 | |
11 | DESCRIPTION="Xalan is an XSLT processor for transforming XML documents into HTML, text, or other XML document types." |
12 | HOMEPAGE="http://xml.apache.org/xalan-c/" |
13 | |
14 | SRCFILE="Xalan-C_r${PVER#*pre}-src.tar.gz" |
15 | SRCDIR="${BUILDDIR}/xml-xalan" |
16 | |
17 | SRC_URI=( |
18 | http://www.apache.org/dist/xml/${PNAME}/${SRCFILE} |
19 | mirror://${PNAME}/${SRCFILE} |
20 | mirror://${PNAME}/${PNAME}-${PVER}-as-needed.patch |
21 | mirror://${PNAME}/${PNAME}-${PVER}-bugfixes.patch |
22 | mirror://${PNAME}/${PNAME}-${PVER}-parallel-build.patch |
23 | mirror://${PNAME}/${PNAME}-${PVER}-gcc46.patch |
24 | ) |
25 | |
26 | UP2DATE="updatecmd http://www.apache.org/dist/xml/${PNAME}/source/ | sed -n -e 's/.*Xalan-C_\(.*\)-src.*/\1/;$ p' | sed 's:_:.:g'" |
27 | |
28 | src_prepare() |
29 | { |
30 | munpack ${SRCFILE} || die |
31 | cd ${SRCDIR} |
32 | |
33 | mpatch ${PNAME}-${PVER}-as-needed.patch || die |
34 | mpatch ${PNAME}-${PVER}-bugfixes.patch || die |
35 | mpatch ${PNAME}-${PVER}-parallel-build.patch || die |
36 | mpatch ${PNAME}-${PVER}-gcc46.patch || die |
37 | } |
38 | |
39 | src_compile() |
40 | { |
41 | cd ${SRCDIR}/c || die |
42 | |
43 | export XERCESCROOT=/usr/include/xercesc || die |
44 | export XALANCROOT=${SRCDIR}/c || die |
45 | |
46 | ./runConfigure -p linux -P /usr -C --libdir=/usr/$(mlibdir) || die |
47 | mmake -j1 || die |
48 | } |
49 | |
50 | src_install() |
51 | { |
52 | cd ${SRCDIR}/c || die |
53 | |
54 | export XERCESCROOT=/usr/include/xercesc || die |
55 | export XALANCROOT=${SRCDIR}/c || die |
56 | |
57 | mmake DESTDIR=${BINDIR} install || die |
58 | |
59 | cd ${SRCDIR} |
60 | minstalldocs c/{KEYS,LICENSE,NOTICE,README,readme.html} || die |
61 | } |