/[gentoo-x86]/dev-java/saxon/saxon-8.4b-r3.ebuild
Gentoo

Contents of /dev-java/saxon/saxon-8.4b-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sun Mar 28 17:37:39 2010 UTC (4 years, 4 months ago) by caster
Branch: MAIN
Changes since 1.6: +4 -4 lines
Shut repoman up.
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/saxon/saxon-8.4b-r3.ebuild,v 1.6 2007/06/01 19:06:45 caster Exp $
4
5 JAVA_PKG_IUSE="doc examples source"
6
7 inherit java-pkg-2 eutils java-ant-2
8
9 DESCRIPTION="A collection of tools for processing XML documents: XSLT processor, XSL library, parser."
10 MyPV=${PV%b}
11 SRC_URI="mirror://sourceforge/saxon/saxonb${MyPV/./-}.zip"
12 HOMEPAGE="http://saxon.sourceforge.net/"
13
14 LICENSE="MPL-1.1"
15 SLOT="0"
16 KEYWORDS="amd64 ppc x86"
17 IUSE=""
18
19 COMMON_DEP="
20 dev-java/xom
21 ~dev-java/jdom-1.0
22 =dev-java/xml-commons-external-1.3*"
23 RDEPEND=">=virtual/jre-1.4
24 ${COMMON_DEP}"
25
26 DEPEND=">=virtual/jdk-1.4
27 app-arch/unzip
28 ${COMMON_DEP}"
29
30 S=${WORKDIR}
31
32 src_unpack() {
33 unpack ${A}
34
35 unpack ./source.zip
36 mkdir src
37 mv net src
38
39 epatch "${FILESDIR}/${P}-jikes.patch"
40
41 cp -i "${FILESDIR}/build-${PV}.xml" build.xml || die
42
43 rm -v *.jar || die
44 rm samples/java/*.class || die
45
46 mkdir lib && cd lib
47 java-pkg_jar-from jdom-1.0
48 java-pkg_jar-from xom
49 # Is not needed with 1.5 but gets pulled in by deps any way
50 # without this emerging with sun-jdk-1.4 fails with
51 # JAVA_PKG_STRICT
52 java-pkg_jar-from xml-commons-external-1.3
53 }
54
55 src_install() {
56 java-pkg_dojar dist/*.jar
57
58 # the jar is named saxon8 and and helps if new slots come along
59 java-pkg_dolauncher ${PN}8 --main net.sf.saxon.Transform
60 if use doc; then
61 java-pkg_dojavadoc dist/doc/api doc/*
62 java-pkg_dohtml doc/*
63 fi
64 use examples && java-pkg_doexamples samples
65 use source && java-pkg_dosrc src/*
66 }

  ViewVC Help
Powered by ViewVC 1.1.20