Annotation of /branches/magellan-next/extras/xalan-j/xalan-j-2.7.1-r1.smage2
Parent Directory | Revision Log
Revision 9641 -
(hide annotations)
(download)
Tue Jan 3 21:55:57 2012 UTC (12 years, 4 months ago) by niro
File size: 1116 byte(s)
Tue Jan 3 21:55:57 2012 UTC (12 years, 4 months ago) by niro
File size: 1116 byte(s)
auto added: ver bump to 2.7.1-r1
1 | niro | 9641 | # $Id$ |
2 | |||
3 | PNAME="xalan-j" | ||
4 | PVER="2.7.1" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCATEGORIE="dev-java" | ||
8 | |||
9 | DEPEND=">= virtual/java | ||
10 | >= dev-util/xerces2-j-2.11" | ||
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/xerces-c/" | ||
14 | |||
15 | SRCFILE="${PNAME}_${PVER//./_}-bin-2jars.tar.gz" | ||
16 | SRCDIR="${BUILDDIR}/${PNAME}_${PVER//./_}" | ||
17 | |||
18 | SRC_URI=( | ||
19 | http://www.apache.org/dist/xml/${PNAME}/binaries/${SRCFILE} | ||
20 | mirror://${PNAME}/${SRCFILE} | ||
21 | ) | ||
22 | UP2DATE="updatecmd http://www.apache.org/dist/xml/${PNAME}/binaries/ | sed -n -e 's/.*${PNAME}_\(.*\)-bin.*/\1/;$ p' | sed 's:_:.:g'" | ||
23 | |||
24 | src_prepare() | ||
25 | { | ||
26 | munpack ${SRCFILE} || die | ||
27 | } | ||
28 | |||
29 | src_install() | ||
30 | { | ||
31 | cd ${SRCDIR} || die | ||
32 | |||
33 | # needed directories | ||
34 | minstalldir /etc/env.d || die | ||
35 | minstalldir /usr/share/${PNAME}-${PVER}/lib || die | ||
36 | |||
37 | # classpath env | ||
38 | MCONFIG="/etc/env.d/22java-app-${PNAME}" | ||
39 | mclearconfig || die | ||
40 | |||
41 | local i | ||
42 | for i in xalan.jar xsltc.jar | ||
43 | do | ||
44 | minstallfile ${i} /usr/share/${PNAME}-${PVER}/lib || die | ||
45 | maddconfig "CLASSPATH=/usr/share/${PNAME}-${PVER}/lib/${i}" || die | ||
46 | done | ||
47 | |||
48 | minstalldocs LICENSE.txt NOTICE.txt || die | ||
49 | } |