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