Annotation of /branches/magellan-next/extras/xalan-j/xalan-j-2.7.1-r1.smage2
Parent Directory | Revision Log
Revision 9643 -
(hide annotations)
(download)
Tue Jan 3 21:58:18 2012 UTC (12 years, 5 months ago) by niro
File size: 1134 byte(s)
Tue Jan 3 21:58:18 2012 UTC (12 years, 5 months ago) by niro
File size: 1134 byte(s)
-fixed dependencies
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 | niro | 9643 | >= dev-java/xerces2-j-2.11" |
11 | niro | 9641 | |
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 | niro | 9642 | sminclude mtools |
19 | |||
20 | niro | 9641 | SRC_URI=( |
21 | http://www.apache.org/dist/xml/${PNAME}/binaries/${SRCFILE} | ||
22 | mirror://${PNAME}/${SRCFILE} | ||
23 | ) | ||
24 | UP2DATE="updatecmd http://www.apache.org/dist/xml/${PNAME}/binaries/ | sed -n -e 's/.*${PNAME}_\(.*\)-bin.*/\1/;$ p' | sed 's:_:.:g'" | ||
25 | |||
26 | src_prepare() | ||
27 | { | ||
28 | munpack ${SRCFILE} || die | ||
29 | } | ||
30 | |||
31 | src_install() | ||
32 | { | ||
33 | cd ${SRCDIR} || die | ||
34 | |||
35 | # needed directories | ||
36 | minstalldir /etc/env.d || die | ||
37 | minstalldir /usr/share/${PNAME}-${PVER}/lib || die | ||
38 | |||
39 | # classpath env | ||
40 | MCONFIG="/etc/env.d/22java-app-${PNAME}" | ||
41 | mclearconfig || die | ||
42 | |||
43 | local i | ||
44 | for i in xalan.jar xsltc.jar | ||
45 | do | ||
46 | minstallfile ${i} /usr/share/${PNAME}-${PVER}/lib || die | ||
47 | maddconfig "CLASSPATH=/usr/share/${PNAME}-${PVER}/lib/${i}" || die | ||
48 | done | ||
49 | |||
50 | minstalldocs LICENSE.txt NOTICE.txt || die | ||
51 | } |