Annotation of /branches/magellan-next/extras/xerces2-j/xerces2-j-2.11.0-r1.smage2
Parent Directory | Revision Log
Revision 9636 -
(hide annotations)
(download)
Tue Jan 3 21:48:30 2012 UTC (12 years, 4 months ago) by niro
File size: 1141 byte(s)
Tue Jan 3 21:48:30 2012 UTC (12 years, 4 months ago) by niro
File size: 1141 byte(s)
auto added: ver bump to 2.11.0-r1
1 | niro | 9636 | # $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}/${PNAME/2/}_${PVER//./_}" | ||
16 | |||
17 | SRC_URI=( | ||
18 | http://www.apache.org/dist/xml/${PNAME}/binaries/${SRCFILE} | ||
19 | mirror://${PNAME}/${SRCFILE} | ||
20 | ) | ||
21 | |||
22 | UP2DATE="updatecmd http://www.apache.org/dist/xerces/j/binaries/ | grep 'tar.gz' | sed -n -e 's/.*Xerces-J-bin\.\(.*\)\.tar.*/\1/;$ p'" | ||
23 | |||
24 | src_prepare() | ||
25 | { | ||
26 | munpack ${SRCFILE} || die | ||
27 | cd ${SRCDIR} | ||
28 | rm xercesSamples.jar || 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 resolver.jar serializer.jar xercesImpl.jar xml-apis.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 NOTICE Readme.html || die | ||
51 | } |