/[gentoo-x86]/app-text/jing/jing-20091111-r1.ebuild
Gentoo

Contents of /app-text/jing/jing-20091111-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Wed Jul 25 14:51:38 2012 UTC (2 years, 2 months ago) by sera
Branch: MAIN
Avoid bogous QA warning. #423103
Fix saxon slot for classpath.

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 sera 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/app-text/jing/jing-20091111.ebuild,v 1.1 2012/05/24 15:28:19 sera Exp $
4    
5     EAPI=4
6    
7     JAVA_PKG_IUSE="doc examples source"
8    
9     inherit java-pkg-2 java-pkg-simple
10    
11     DESCRIPTION="Jing: A RELAX NG validator in Java"
12     HOMEPAGE="http://thaiopensource.com/relaxng/jing.html"
13     SRC_URI="http://jing-trang.googlecode.com/files/${P}.zip"
14    
15     LICENSE="BSD"
16     SLOT="0"
17     KEYWORDS="~amd64 ~ppc ~x86"
18     IUSE=""
19    
20     COMMON_DEPEND="
21     dev-java/ant-core:0
22     dev-java/iso-relax:0
23     dev-java/relaxng-datatype:0
24     dev-java/saxon:9
25     dev-java/xalan:0
26     dev-java/xerces:2
27     dev-java/xml-commons-resolver:0"
28     RDEPEND="${COMMON_DEPEND}
29     >=virtual/jre-1.5"
30     DEPEND="${COMMON_DEPEND}
31     >=virtual/jdk-1.5
32     app-arch/unzip"
33    
34     # Avoid bogous QA warning, no usable build.xml. The one that exists belongs to
35     # the examples.
36     S="${WORKDIR}/${P}/src"
37    
38     src_unpack() {
39     default
40    
41     mkdir -p "${S}" || die
42     pushd "${S}" >/dev/null || die
43     unpack ./../src.zip
44     popd >/dev/null
45    
46     # get the resourses from prebuilt jar
47     # http://code.google.com/p/jing-trang/issues/detail?id=84
48     mkdir -p "${S}"/target/classes || die
49     pushd "${S}"/target/classes >/dev/null || die
50     unpack ./../../../bin/${PN}.jar
51     find -name '*.class' -exec rm {} + || die
52     popd >/dev/null
53     }
54    
55     java_prepare() {
56     find "${WORKDIR}" -name '*.jar' -exec rm -v {} + || die
57    
58     #remove bundled relaxng-datatype
59     rm -rv org || die
60    
61     # for use with saxon:6.5
62     rm -v com/thaiopensource/validate/schematron/OldSaxonSchemaReaderFactory.java || die
63     sed -i -e '/OldSaxonSchemaReaderFactory/d' \
64     target/classes/META-INF/services/com.thaiopensource.validate.SchemaReaderFactory || die
65     }
66    
67     JAVA_GENTOO_CLASSPATH="ant-core,iso-relax,relaxng-datatype,saxon-9,xalan,xerces-2,xml-commons-resolver"
68    
69     #src_test() {
70     # # would need some test files could probably take this from the gcj version
71     # #java -cp ${cp} com.thaiopensource.datatype.xsd.regex.test.TestDriver || die
72     # #java -cp ${cp} com.thaiopensource.datatype.relaxng.util.TestDriver || die
73     # #java -cp ${cp} com.thaiopensource.datatype.xsd.regex.test.CategoryTest \
74     # # || die
75     #}
76    
77     src_install() {
78     java-pkg-simple_src_install
79     java-pkg_dolauncher ${PN} --main com.thaiopensource.relaxng.util.Driver
80    
81     use doc && dohtml ../doc/*html
82     use examples && java-pkg_doexamples ../sample
83     }

  ViewVC Help
Powered by ViewVC 1.1.20