Contents of /branches/magellan-next/extras/xerces2-j/xerces2-j-2.11.0-r1.smage2
Parent Directory | Revision Log
Revision 9640 -
(show annotations)
(download)
Tue Jan 3 21:55:04 2012 UTC (12 years, 5 months ago) by niro
File size: 1150 byte(s)
Tue Jan 3 21:55:04 2012 UTC (12 years, 5 months ago) by niro
File size: 1150 byte(s)
-fixed missing includes
1 | # $Id$ |
2 | |
3 | PNAME="xerces2-j" |
4 | PVER="2.11.0" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="dev-java" |
8 | |
9 | DEPEND=">= virtual/java" |
10 | |
11 | DESCRIPTION="Xerces2-J is a validating XML parser written in a portable subset of Java." |
12 | HOMEPAGE="http://xml.apache.org/xerces2-j/" |
13 | |
14 | SRCFILE="Xerces-J-bin.${PVER}.tar.gz" |
15 | SRCDIR="${BUILDDIR}/xerces-${PVER//./_}" |
16 | |
17 | sminclude mtools |
18 | |
19 | SRC_URI=( |
20 | http://www.apache.org/dist/xerces/j/binaries/${SRCFILE} |
21 | mirror://${PNAME}/${SRCFILE} |
22 | ) |
23 | |
24 | UP2DATE="updatecmd http://www.apache.org/dist/xerces/j/binaries/ | grep 'tar.gz' | sed -n -e 's/.*Xerces-J-bin\.\(.*\)\.tar.*/\1/;$ p'" |
25 | |
26 | src_prepare() |
27 | { |
28 | munpack ${SRCFILE} || die |
29 | cd ${SRCDIR} |
30 | rm xercesSamples.jar || die |
31 | } |
32 | |
33 | src_install() |
34 | { |
35 | cd ${SRCDIR} || die |
36 | |
37 | # needed directories |
38 | minstalldir /etc/env.d || die |
39 | minstalldir /usr/share/${PNAME}-${PVER}/lib || die |
40 | |
41 | # classpath env |
42 | MCONFIG="/etc/env.d/22java-app-${PNAME}" |
43 | mclearconfig || die |
44 | |
45 | local i |
46 | for i in resolver.jar serializer.jar xercesImpl.jar xml-apis.jar |
47 | do |
48 | minstallfile ${i} /usr/share/${PNAME}-${PVER}/lib || die |
49 | maddconfig "CLASSPATH=/usr/share/${PNAME}-${PVER}/lib/${i}" || die |
50 | done |
51 | |
52 | minstalldocs LICENSE NOTICE Readme.html || die |
53 | } |