/[gentoo-x86]/dev-java/saxon/saxon-9.2.0.6.ebuild
Gentoo

Contents of /dev-java/saxon/saxon-9.2.0.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sun Dec 9 17:39:47 2012 UTC (16 months, 1 week ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -2 lines
Stable for ppc64, wrt bug #421733

(Portage version: 2.1.11.31/cvs/Linux ppc64, unsigned Manifest commit)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/saxon/saxon-9.2.0.6.ebuild,v 1.6 2012/10/10 21:32:05 naota Exp $
4
5 EAPI="3"
6
7 JAVA_PKG_IUSE="doc source"
8
9 inherit versionator java-pkg-2 java-ant-2
10
11 MY_PV="$(replace_all_version_separators -)"
12
13 DESCRIPTION="A XSLT and XQuery Processor"
14 HOMEPAGE="http://saxon.sourceforge.net/"
15 SRC_URI="mirror://sourceforge/${PN}/${PN}he${MY_PV}source.zip"
16
17 LICENSE="MPL-1.0"
18 SLOT="9"
19 KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd"
20
21 IUSE=""
22
23 # virtual/jdk slot for external javadoc
24 JDK_VER="6"
25 # dev-java/jdom slot for external javadoc
26 JDOM_VER="1.0"
27 # dev-java/dom4j slot
28 DOM4J_VER="1"
29
30 CDEPEND="dev-java/ant-core
31 dev-java/dom4j:${DOM4J_VER}
32 dev-java/jdom:${JDOM_VER}
33 dev-java/xom"
34 RDEPEND=">=virtual/jre-1.${JDK_VER}
35 ${CDEPEND}"
36 DEPEND=">=virtual/jdk-1.${JDK_VER}
37 app-arch/unzip
38 ${CDEPEND}"
39
40 S="${WORKDIR}"
41
42 # prepare eclass variables
43 JAVA_ANT_REWRITE_CLASSPATH="yes"
44 JAVA_ANT_CLASSPATH_TAGS="javac javadoc"
45
46 src_unpack() {
47 unpack ${A}
48
49 ### fedora-inspired remove
50
51 # deadNET
52 rm -rv net/sf/saxon/dotnet
53
54 # Depends on XQJ (javax.xml.xquery)
55 rm -rv net/sf/saxon/xqj
56
57 # This requires a EE edition feature (com.saxonica.xsltextn)
58 rm -v net/sf/saxon/option/sql/SQLElementFactory.java
59 }
60
61 java_prepare() {
62 # <major>.<minor> version
63 local version="$(get_version_component_range 1-2)"
64
65 # generate build.xml with external javadoc links
66 sed -e "s:@JDK@:${JDK_VER}:" \
67 -e "s:@JDOM@:${JDOM_VER}:" \
68 < "${FILESDIR}/${version}-build.xml" \
69 > "${S}/build.xml" \
70 || die "build.xml generation failed!"
71
72 # prepare creates the dir for properties
73 eant prepare
74
75 # properties
76 cp -v \
77 "${FILESDIR}/${version}-edition.properties" \
78 "${S}/build/classes/edition.properties"
79 }
80
81 src_compile() {
82 local gcp="$(java-pkg_getjars dom4j-${DOM4J_VER},jdom-${JDOM_VER},xom)"
83 gcp="${gcp}:$(java-pkg_getjars --build-only ant-core)"
84 eant -Dgentoo.classpath="${gcp}" jar $(use_doc)
85 }
86
87 src_install() {
88 java-pkg_dojar build/lib/${PN}.jar
89
90 java-pkg_dolauncher ${PN}${SLOT}-transform --main net.sf.saxon.Transform
91 java-pkg_dolauncher ${PN}${SLOT}-query --main net.sf.saxon.Query
92
93 java-pkg_register-ant-task
94
95 use doc && java-pkg_dojavadoc build/api
96
97 use source && java-pkg_dosrc src
98 }

  ViewVC Help
Powered by ViewVC 1.1.20