diff options
Diffstat (limited to 'dev-java/saxon')
-rw-r--r-- | dev-java/saxon/Manifest | 1 | ||||
-rw-r--r-- | dev-java/saxon/saxon-9.2.0.6-r2.ebuild | 90 |
2 files changed, 91 insertions, 0 deletions
diff --git a/dev-java/saxon/Manifest b/dev-java/saxon/Manifest index 14507e867973..57ce9290ec8f 100644 --- a/dev-java/saxon/Manifest +++ b/dev-java/saxon/Manifest @@ -4,5 +4,6 @@ DIST saxon6-5-5.zip 3346162 BLAKE2B 63d49545d101c3b595ff3f3db6d781158b8a51862ccd DIST saxonhe9-2-0-6source.zip 2942625 BLAKE2B 45f9cc12591ebb94076392b16edba52811d911c41f2f197ffe864e37c1ef478670ff276b7dc8dff316dcd2986f777b4cc2d43989e5d300510ee0edfe7e54103d SHA512 6c59c0cbed905cf561387acb54bb31f0a251432deb0edf498ec4f4d9955bbcc12d1765ace594090d3ccb0416e3e72349466e430bb4f799b51fd12ce8fc5a144e EBUILD saxon-6.5.5-r2.ebuild 867 BLAKE2B a5879fbeb51e113e05dfbfe4dff8088e26621278c76f83cde4b47b6744cf83e9fb94fd25f661f25e57a3f8a5d513d903f3808dfb6fb6ba79d6e450cbccb03b5a SHA512 a8a6978c47998380b6c7ec09f7102584007aedd829cd95d0ff629d2df9062c5eb46ceecff88b2bb0fa575907810fb21fa14dc1253ff0da3f9962687935f53df1 EBUILD saxon-9.2.0.6-r1.ebuild 2187 BLAKE2B 05de676a17049541880b530f6034eeb5bd17743e13ffc65f535b8aae674cdf0f243f56eeba2a93fc0a5a367bf3bf11f87f70a1abdb1cd593fbffcb2db7426bd9 SHA512 04fd1f6c2528ff86e26f553b20cd88d9c41652bc5407184f1ca4d134d68b8a96333dca911900ddc68afb76aeede7d25c01f85709ebab4dfd04f0feba4e698c89 +EBUILD saxon-9.2.0.6-r2.ebuild 1968 BLAKE2B 8fdfcee1e941b9c67cdfe5a8e9a9a511c157e07a4af04e80ffb57673f9457df52d3c1176af4e826e300189a944b525becff79eddc6d41e5e83726abe6ddad813 SHA512 1f1548e5f8bbea6a93a62cfee588939a6a50290a236075fe2968d4fd266f7cb5f69e85a8891a936f3560610db132caf6915252ea6eaa3cf656d19dbc858ffa49 EBUILD saxon-9.2.0.6.ebuild 2191 BLAKE2B a383bf6d0e8cde78e45945ec028fa2fe5ff0a21051b4a05eb325147c88adc0376b6c250339da2fbcc99a8495d3975845aa832cd22c2cb235e4747cee333ba70d SHA512 c20b14dbad9faf4306a7ac0a1ccb3c49388197521185e4d6bbc3b9bfed9535432105cb3645071ba4ca0ed2faf1a7e40b2f6cbcf1e48abf1d6e305a28fcc29f85 MISC metadata.xml 311 BLAKE2B fdce161da5c8394b66ee6b1bcebbccd863cd5e70291afab04400c4d806afc955f803b5c5aa15601157f2784e434baf505dcbebdbff9817fe960961f8108d3b63 SHA512 2fc12b71b9e977a095610f8f784f19252d44e31442cc5d5ce513f601a2394f4bf491fc9065de88bbf45afe7b8f1ca33ea907e31aa26875f48846856f1bf51126 diff --git a/dev-java/saxon/saxon-9.2.0.6-r2.ebuild b/dev-java/saxon/saxon-9.2.0.6-r2.ebuild new file mode 100644 index 000000000000..f65040049f69 --- /dev/null +++ b/dev-java/saxon/saxon-9.2.0.6-r2.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +JAVA_PKG_IUSE="doc source" + +inherit versionator java-pkg-2 java-ant-2 + +MY_PV="$(replace_all_version_separators -)" + +DESCRIPTION="A XSLT and XQuery Processor" +HOMEPAGE="http://saxon.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${PN}he${MY_PV}source.zip" + +LICENSE="MPL-1.0" +SLOT="9" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" + +CDEPEND=" + dev-java/xom:0 + dev-java/jdom:0 + dev-java/dom4j:1 + dev-java/ant-core" + +RDEPEND=" + ${CDEPEND} + >=virtual/jre-1.6" + +DEPEND=" + ${CDEPEND} + >=virtual/jdk-1.6" + +S="${WORKDIR}" + +# prepare eclass variables +JAVA_ANT_REWRITE_CLASSPATH="yes" +JAVA_ANT_CLASSPATH_TAGS="javac javadoc" + +src_prepare() { + default + + # Fedora-inspired removal. + + # deadNET. + rm -rv net/sf/saxon/dotnet || die + + # Depends on XQJ (javax.xml.xquery). + rm -rv net/sf/saxon/xqj || die + + # This requires a EE edition feature (com.saxonica.xsltextn). + rm -v net/sf/saxon/option/sql/SQLElementFactory.java || die + + # <major>.<minor> version + local version="$(get_version_component_range 1-2)" + + # generate build.xml with external javadoc links + sed -e "s:@JDK@:1.6:" \ + -e "s:@JDOM@:1:" \ + < "${FILESDIR}/${version}-build.xml" \ + > "${S}/build.xml" \ + || die "build.xml generation failed!" + + # prepare creates the dir for properties + eant prepare + + # properties + cp -v \ + "${FILESDIR}/${version}-edition.properties" \ + "${S}/build/classes/edition.properties" || die +} + +src_compile() { + local gcp="$(java-pkg_getjars dom4j-1,jdom,xom)" + gcp="${gcp}:$(java-pkg_getjars --build-only ant-core)" + eant -Dgentoo.classpath="${gcp}" jar $(use_doc) +} + +src_install() { + java-pkg_dojar build/lib/${PN}.jar + + java-pkg_dolauncher ${PN}${SLOT}-transform --main net.sf.saxon.Transform + java-pkg_dolauncher ${PN}${SLOT}-query --main net.sf.saxon.Query + + java-pkg_register-ant-task + + use doc && java-pkg_dojavadoc build/api + + use source && java-pkg_dosrc src +} |