diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/relaxngcc/relaxngcc-1.12-r3.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/relaxngcc/relaxngcc-1.12-r3.ebuild')
-rw-r--r-- | dev-java/relaxngcc/relaxngcc-1.12-r3.ebuild | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/dev-java/relaxngcc/relaxngcc-1.12-r3.ebuild b/dev-java/relaxngcc/relaxngcc-1.12-r3.ebuild new file mode 100644 index 000000000000..dacdd1feb4fb --- /dev/null +++ b/dev-java/relaxngcc/relaxngcc-1.12-r3.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +JAVA_PKG_IUSE="doc examples source" + +inherit java-pkg-2 java-ant-2 + +MY_DATE="20031218" + +DESCRIPTION="RELAX NG Compiler Compiler" +HOMEPAGE="http://relaxngcc.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_DATE}.zip" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 x86 ~x86-fbsd" +IUSE="" + +CDEPEND="dev-java/msv:0 + dev-java/xsdlib:0 + dev-java/ant-core:0 + dev-java/iso-relax:0 + dev-java/relaxng-datatype:0" + +RDEPEND="${CDEPEND} + >=virtual/jre-1.6" + +DEPEND="${CDEPEND} + >=virtual/jdk-1.6 + app-arch/unzip" + +S="${WORKDIR}/${PN}-${MY_DATE}" + +java_prepare() { + mv relaxngcc.jar relaxngcc.orig.zip || die + + rm -v *.jar || die + rm -v sample/*/*.class || die + + mkdir lib || die + cd lib || die + + java-pkg_jarfrom msv + java-pkg_jarfrom xsdlib + java-pkg_jarfrom ant-core + java-pkg_jarfrom iso-relax + java-pkg_jarfrom relaxng-datatype + + cd "${S}" || die + + cp "${FILESDIR}/build.xml-1.12-r1" build.xml || die "cp failed" + + epatch \ + "${FILESDIR}"/${PV}-*.patch \ + "${FILESDIR}"/"${P}"-SwitchBlockInfo.java.patch + + rm -rf "src/relaxngcc/maven" + java-pkg_filter-compiler jikes +} + +EANT_DOC_TARGET="" + +src_install() { + java-pkg_dojar "${PN}".jar + + use source && java-pkg_dosrc src/* + use examples && java-pkg_doexamples sample + + dodoc readme.txt + use doc && dohtml -r doc/en/* +} |