diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2019-10-24 02:09:32 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2019-10-24 02:09:32 +0200 |
commit | dd2aea324c07fe1bd13143bb37eff11117b6130a (patch) | |
tree | 771ed8c8b9b1eb2f02b5843363eed86839ed6e5a /app-text/jing/jing-20151127.ebuild | |
parent | 576b6208d6defe240bfa2477d6dd19f1ed83bfaf (diff) | |
download | darklin4-dd2aea324c07fe1bd13143bb37eff11117b6130a.tar.gz darklin4-dd2aea324c07fe1bd13143bb37eff11117b6130a.tar.bz2 darklin4-dd2aea324c07fe1bd13143bb37eff11117b6130a.tar.xz darklin4-dd2aea324c07fe1bd13143bb37eff11117b6130a.zip |
Dice(kiwi) and dependencies; kiwi and dependecies (still missing zypper)
Diffstat (limited to 'app-text/jing/jing-20151127.ebuild')
-rw-r--r-- | app-text/jing/jing-20151127.ebuild | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/app-text/jing/jing-20151127.ebuild b/app-text/jing/jing-20151127.ebuild new file mode 100644 index 0000000..46cf4dd --- /dev/null +++ b/app-text/jing/jing-20151127.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +COMMIT="1e74846999bbd14ce5248acbd2be9f1e624a9846" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Multi-format schema converter based on RELAX NG" +HOMEPAGE="http://thaiopensource.com/relaxng/trang.html" +SRC_URI="https://github.com/relaxng/jing-trang/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86" + +COMMON_DEP=" + dev-java/ant-core:0 + dev-java/iso-relax:0 + dev-java/relaxng-datatype:0 + dev-java/saxon:9 + dev-java/xalan:0 + dev-java/xerces:2 + dev-java/xml-commons-resolver:0" + +RDEPEND=" + >=virtual/jre-1.7 + ${COMMON_DEP}" + +DEPEND=" + >=virtual/jdk-1.7 + dev-java/javacc:0 + dev-java/saxon:6.5 + dev-java/testng:0 + ${COMMON_DEP}" + +S="${WORKDIR}/${PN}-trang-${COMMIT}" + +EANT_ANT_TASKS="testng" +EANT_GENTOO_CLASSPATH="xerces-2,xml-commons-resolver" +JAVA_ANT_REWRITE_CLASSPATH="yes" +JAVA_PKG_BSFIX_NAME="build.xsl" + +java_prepare() { + java-pkg_clean + echo "<version>${PV}</version>" > version.xml || die + + #DS Not sure why this symbol is not found... + sed -i -e '/FeatureKeys/d' \ + mod/schematron/src/main/com/thaiopensource/validate/schematron/OldSaxonSchemaReaderFactory.java || die + + sed -i -e '/FeatureKeys/d' \ + mod/schematron/src/main/com/thaiopensource/validate/schematron/NewSaxonSchemaReaderFactory.java || die + + + # for use with saxon:6.5 + rm -v mod/schematron/src/main/com/thaiopensource/validate/schematron/OldSaxonSchemaReaderFactory.java || die + sed -i -e '/OldSaxonSchemaReaderFactory/d' \ + mod/schematron/mod.xml || die +} + + +src_configure() { + java-ant-2_src_configure + + # Because this crazy package uses XSLT, we need to escape this. + sed -i 's:\${gentoo\.classpath}:${{gentoo.classpath}}:g' build.xsl || die + + EANT_EXTRA_ARGS="-Djavacc.dir=${EROOT}usr/share/javacc/lib" + export LOCALCLASSPATH=$(java-pkg_getjars --build-only --with-dependencies saxon-6.5) +} + + +src_compile() { + EANT_BUILD_TARGET="modbuild" java-pkg-2_src_compile + EANT_GENTOO_CLASSPATH="ant-core,iso-relax,relaxng-datatype,saxon-9,xalan,xerces-2,xml-commons-resolver,iso-relax" \ + EANT_BUILD_TARGET="mod.jing.jar" EANT_BUILD_XML="modbuild.xml" java-pkg-2_src_compile +} + +src_install() { + java-pkg_dojar build/${PN}.jar + java-pkg_dolauncher ${PN} \ + --main com.thaiopensource.relaxng.util.Driver +} |