From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-java/jdom/Manifest | 11 ++++++ dev-java/jdom/files/build-xml-2.patch | 36 +++++++++++++++++++ dev-java/jdom/jdom-1.0-r2.ebuild | 65 +++++++++++++++++++++++++++++++++++ dev-java/jdom/jdom-1.0-r4.ebuild | 52 ++++++++++++++++++++++++++++ dev-java/jdom/jdom-1.1.3.ebuild | 49 ++++++++++++++++++++++++++ dev-java/jdom/jdom-2.0.6-r4.ebuild | 63 +++++++++++++++++++++++++++++++++ dev-java/jdom/metadata.xml | 11 ++++++ 7 files changed, 287 insertions(+) create mode 100644 dev-java/jdom/Manifest create mode 100644 dev-java/jdom/files/build-xml-2.patch create mode 100644 dev-java/jdom/jdom-1.0-r2.ebuild create mode 100644 dev-java/jdom/jdom-1.0-r4.ebuild create mode 100644 dev-java/jdom/jdom-1.1.3.ebuild create mode 100644 dev-java/jdom/jdom-2.0.6-r4.ebuild create mode 100644 dev-java/jdom/metadata.xml (limited to 'dev-java/jdom') diff --git a/dev-java/jdom/Manifest b/dev-java/jdom/Manifest new file mode 100644 index 000000000000..f42dd6750df6 --- /dev/null +++ b/dev-java/jdom/Manifest @@ -0,0 +1,11 @@ +AUX build-xml-2.patch 1529 SHA256 5ae02e94deebf76a929b9f4e714bec777290b6dd1dbed34f12651b70cc563dbd SHA512 210f0fa113a75a0bb2f34b50e3893df69e5b7f02174f7f10ea981cd16371da515a6c8514c2f82045c3a6a64c5a11874b2f81e5ad975270f11eb8c12fa707f563 WHIRLPOOL 3ad81c67c147764ca5e387a1648f9b0bee13b36cc8e205ef7e194c1346c1de01e8a08370cbe843f4e728b1e37a7e98e5be83cbf778db9c6c70702f107b6d27b7 +DIST JDOM-2.0.6.tar.gz 8344114 SHA256 81790196ecbd9cf62cb2aa2a9c14153d74dae3a0364a9a262f42098c6d3c165d SHA512 d585b39159f0887485b2e681609b51113de6bc7c43627c42d7e81eb06ac65c507b43cf3d81c5df4399b1e3abf454c8852264a84567940bc5ba0c358eb9c0c4a1 WHIRLPOOL 71df273140951ac9f5b2f9b06b7f8aa2fe43d05d93ceec9a508856a1cd5c571d897809d5b692fcf28ea0f45c203346b02745f170fac548b77e47904a3f8ce817 +DIST jdom-1.0.tar.gz 3571788 SHA256 fdb77a2c9f8f91a9bd898a0d99b941b79137b5ab692e35ca17dcb73a58b15f77 SHA512 0bf1df21cdacdddb1df8bdfc2c4aa307bb6516a7614eb7382e99a60d03d9fcf77333e84f37ed653f264e7e9cdecb91fb9e2e11fcf76d70b3068bf238be4d0b24 WHIRLPOOL 329163b0a6838322be5174e7a6eddcafeddecc54e541cbdb28748f99da88c79349f67bd79c88bda6944d142440df8d21b21cb0fbb2b1497a6fc84f30a531f8f3 +DIST jdom-1.1.3.tar.gz 4233403 SHA256 d471718c4ac7a1a2f10715b93cb3fcd2ecbab60384b73ad1c089712e47bd8d1f SHA512 a693fcc0d5c8ab3cf086a7904c7fb711e7deedca542089b84c6d011584e0d889495a58843033bff25272fdf130b1347419e31b9a4650c85ce9dfa19022dc0278 WHIRLPOOL b9f610001e152c41fcd3a0328b4ff563b33220f2cde8571ba09dd9063bc63fe51af80229c2bfdd7aeff4a0b354cd04a8d11f9fccb42b8620b2225c6f9ecd38e0 +EBUILD jdom-1.0-r2.ebuild 1638 SHA256 6fb9f52673f6e65f877e8ebbf2e8d8a84c3f2ec1eb7b19d406bf0bea83e12d02 SHA512 f615d7b6ae05c42433d37d0978e4c87291388291fd2f6324c498fe2b9c7e06f2b7fb5cbb81e22429d7e5b6759ff51da4039d33638c43702a16cd0ea5cf1aa80b WHIRLPOOL efffb8cb11442d732417657e0327f58ff28b0c85c816237d7bd0b8dddc9be6ec58e0b4e50bafe91c65a4f356b78ce1d9f4cb5f1a18a6067208e60872d3727463 +EBUILD jdom-1.0-r4.ebuild 1357 SHA256 0b8014ddb54d88a4102654db5f732a62ae0ea1970eeecd14f97444e2c64f2cf4 SHA512 e328bbd9127c23764479d64df4703e204558a5d167b2c100741edcfc5f81e433d0e80c2df3b959d42ad61388f78f2ccc8f393864522cf75d540cf2ba7b807a08 WHIRLPOOL 986c1bd9fae58c27092ba3569f48938466aa5f54352725d8025889549b904a6df8c924e7a1f49c8e53c4c48a56b7ccf915b2b2252d0e28e2963f54e0e173c204 +EBUILD jdom-1.1.3.ebuild 1257 SHA256 d3235ae397f19caeba22451c2feb836ca8c532e3fcb78598f5794be87a7140fa SHA512 91cbb5345d46dcd100384da0f249749dc840aaddc90f4d525ae14dc22e2dcff06d8649713d343e81de1c5d9cb99c5559adcd23156a7be33e6be5ac428ab6be41 WHIRLPOOL b0e6e8309176336760b11c05b2b2cdd095024871151eebb1d2de1c0ba6320fc4387c45acac9a5e4e2beaa17e5a797307e0e60b86f9af79c90abf1703c6ef3d88 +EBUILD jdom-2.0.6-r4.ebuild 1358 SHA256 d4cb6f93522cc5256dde7a2bf55dbda8214d97a1efc7351cd670c55966543528 SHA512 32aaaca3059544b6aaae40545f3350799efd730cf790d5acb101886b3534f6b21d75df5bfc9e2addb0964cf5466a5f527a0ea127eeab2045b70ebbda9d488b01 WHIRLPOOL e311b76e4b58be3685fb2a1e19a30843bcc3681a064a76761f10898bc42a4d3902c56396b3112d344a332cd31ed5abb9709dbbb21c79c70c767519062e5c30bc +MISC ChangeLog 6090 SHA256 2a2cb2fde13bd7e9a08d10249ca498509e7e950ab0ea9baa9304d33dc77ae781 SHA512 bd9665416454ebf0b096a6a268f790f137bf82ff887f9339da1051f4911d5e475173c99918aeb221bf348ecc3bccb78c9f208a3acb300f3eef5b5d17a473d391 WHIRLPOOL 421c9c7efd4dc307f06338b4addfcff63834b431da9cbe07e160884a9af79db5023b1a6c3eef3a4b5561648395a8114301d65fe318806272c5882fb8587e2723 +MISC ChangeLog-2015 12386 SHA256 9323f57b5da0783f67c5a36c8aaac501a353560617e4ea52197a3d57eedee88d SHA512 7836863ced16a673d3158377a840df998060574690828cd541f35208e5c3686900ea418d41e893dadecbf3648a4b85b4c1f804d46999dc1ec0f22abdcdcc6f96 WHIRLPOOL 86549c47426aebd3e91dcfb30315d0de0ed73813da64349976193613fb4789328d271d24c67d01f82d1fc8578514da15d3bb84a9ef0ccc92914fd08a694a110e +MISC metadata.xml 318 SHA256 d212ac2f09db1ec67fc711d6829b9121471ea2491b95ecd25525f11a5e62384f SHA512 1587f961d80cba775d94e97a9c41516766d6a502f9b144f401ebcd0ee0b21b2e04220730c03a44986af8bc860a0311acdd6e721d4de201defcbc89599df5803b WHIRLPOOL e463e09b75d1bdf1299de6a4ce9940d18de95cda158bd6702c174f35597e4f96729a2247e9fad991ea324da1f32d3df74b022e04d4d3b269f7d06b4d2340e370 diff --git a/dev-java/jdom/files/build-xml-2.patch b/dev-java/jdom/files/build-xml-2.patch new file mode 100644 index 000000000000..2e3cb94ef1d2 --- /dev/null +++ b/dev-java/jdom/files/build-xml-2.patch @@ -0,0 +1,36 @@ +--- build.xml.orig 2015-02-15 02:58:04.000000000 +0000 ++++ build.xml 2015-08-27 23:11:09.807800249 +0100 +@@ -267,7 +267,7 @@ + + + +- + + +@@ -296,7 +296,7 @@ + + + +- + + +@@ -320,6 +320,7 @@ + + + ++ + + + diff --git a/dev-java/jdom/jdom-1.0-r2.ebuild b/dev-java/jdom/jdom-1.0-r2.ebuild new file mode 100644 index 000000000000..1f2e691c89e9 --- /dev/null +++ b/dev-java/jdom/jdom-1.0-r2.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +JAVA_PKG_IUSE="doc examples source" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Java API to manipulate XML data" +SRC_URI="http://www.jdom.org/dist/source/${P}.tar.gz" +HOMEPAGE="http://www.jdom.org" +LICENSE="JDOM" +SLOT="${PV}" +KEYWORDS="amd64 ppc64 x86 ~x86-fbsd" +COMMON_DEP="dev-java/saxpath + >=dev-java/xerces-2.7" +RDEPEND=">=virtual/jre-1.4 + ${COMMON_DEP}" +DEPEND=">=virtual/jdk-1.4 + ${COMMON_DEP}" +IUSE="" + +src_unpack() { + unpack ${A} + cd "${S}" + + rm -v build/*.jar lib/*.jar || die + rm -rf build/{apidocs,samples} || die + + cd "${S}/lib" + java-pkg_jar-from saxpath,xerces-2 + + if has_version '=dev-java/jaxen-1.1*'; then + elog "jaxen detected - building jaxen support." + elog "you can ignore the warnings below" + elog "one day there will be better solution" + JAVA_PKG_STRICT="" java-pkg_jar-from jaxen-1.1 + fi +} + +src_compile() { + # to prevent a newer jdom from going into cp + # (EANT_ANT_TASKS doesn't work with none) + ANT_TASKS="none" eant package $(use_doc) +} + +src_install() { + java-pkg_dojar build/*.jar + + dodoc CHANGES.txt COMMITTERS.txt README.txt TODO.txt || die + use doc && java-pkg_dojavadoc build/apidocs + use examples && java-pkg_doexamples samples + use source && java-pkg_dosrc src/java/org +} + +pkg_postinst() { + if ! has_version '=dev-java/jaxen-1.1*'; then + elog "" + elog "If you want jaxen support for jdom then" + elog "please emerge =dev-java/jaxen-1.1* first and" + elog "re-emerge jdom. Sorry for the" + elog "inconvenience, this is to break out of the" + elog "circular dependencies." + elog "" + fi +} diff --git a/dev-java/jdom/jdom-1.0-r4.ebuild b/dev-java/jdom/jdom-1.0-r4.ebuild new file mode 100644 index 000000000000..8351544e8888 --- /dev/null +++ b/dev-java/jdom/jdom-1.0-r4.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +JAVA_PKG_IUSE="doc examples source" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Java API to manipulate XML data" +SRC_URI="http://www.jdom.org/dist/source/archive/${P}.tar.gz" +HOMEPAGE="http://www.jdom.org" +LICENSE="JDOM" +SLOT="${PV}" +KEYWORDS="amd64 ~arm ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +COMMON_DEP="dev-java/saxpath + >=dev-java/xerces-2.7" +RDEPEND=">=virtual/jre-1.4 + ${COMMON_DEP}" +DEPEND=">=virtual/jdk-1.4 + ${COMMON_DEP}" +PDEPEND="~dev-java/jdom-jaxen-${PV}" +IUSE="" + +src_unpack() { + unpack ${A} + cd "${S}" + + rm -v build/*.jar lib/*.jar || die + rm -rf build/{apidocs,samples} || die + + rm -v src/java/org/jdom/xpath/JaxenXPath.java \ + || die "Unable to remove Jaxen Binding class." + + cd "${S}"/lib + java-pkg_jar-from saxpath,xerces-2 +} + +src_compile() { + # to prevent a newer jdom from going into cp + # (EANT_ANT_TASKS doesn't work with none) + ANT_TASKS="none" eant package $(use_doc) +} + +src_install() { + java-pkg_dojar build/*.jar + + java-pkg_register-dependency "jdom-jaxen-${SLOT}" + + dodoc CHANGES.txt COMMITTERS.txt README.txt TODO.txt || die + use doc && java-pkg_dojavadoc build/apidocs + use examples && java-pkg_doexamples samples + use source && java-pkg_dosrc src/java/org +} diff --git a/dev-java/jdom/jdom-1.1.3.ebuild b/dev-java/jdom/jdom-1.1.3.ebuild new file mode 100644 index 000000000000..50b12a26e0cf --- /dev/null +++ b/dev-java/jdom/jdom-1.1.3.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2017 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 + +DESCRIPTION="Java API to manipulate XML data" +SRC_URI="http://www.jdom.org/dist/binary/archive/${P}.tar.gz" +HOMEPAGE="http://www.jdom.org" +LICENSE="JDOM" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 ppc64 x86" +IUSE="" + +RDEPEND=">=virtual/jre-1.6" +DEPEND=">=virtual/jdk-1.6" + +S="${WORKDIR}/${PN}" + +java_prepare() { + java-pkg_clean + + rm -r build/apidocs || die + + rm -v src/java/org/jdom/xpath/JaxenXPath.java \ + || die "Unable to remove Jaxen Binding class." + + sed -i -e 's|${name}-${version.impl}|${name}|g' \ + -e 's||build.javadocs}" /> -->|' \ + "${S}"/build.xml || die + + if ! use doc; then + sed -i -e 's|depends="compile,javadoc"|depends="compile"|' \ + "${S}"/build.xml || die + fi +} + +EANT_BUILD_TARGET="package" + +src_install() { + java-pkg_dojar build/*.jar + dodoc CHANGES.txt COMMITTERS.txt README.txt TODO.txt || die + use doc && java-pkg_dojavadoc build/apidocs + use examples && java-pkg_doexamples samples + use source && java-pkg_dosrc src/java/org +} diff --git a/dev-java/jdom/jdom-2.0.6-r4.ebuild b/dev-java/jdom/jdom-2.0.6-r4.ebuild new file mode 100644 index 000000000000..d93a466620b3 --- /dev/null +++ b/dev-java/jdom/jdom-2.0.6-r4.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +MY_P="JDOM-${PV}" +JAVA_PKG_IUSE="doc source" + +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="Java API to manipulate XML data" +SRC_URI="https://github.com/hunterhacker/${PN}/archive/${MY_P}.tar.gz" +HOMEPAGE="http://www.jdom.org" +LICENSE="Apache-1.1" +SLOT="2" +KEYWORDS="amd64 ppc64 x86" +IUSE="test" + +CDEPEND=" + dev-java/xalan:0 + dev-java/jaxen:1.1 + dev-java/iso-relax:0" + +RDEPEND=" + ${CDEPEND} + >=virtual/jre-1.6" + +DEPEND=" + ${CDEPEND} + >=virtual/jdk-1.6 + test? ( dev-java/ant-junit:0 )" + +JAVA_ANT_REWRITE_CLASSPATH="true" +EANT_BUILD_TARGET="jars" +EANT_TEST_TARGET="junit" +EANT_GENTOO_CLASSPATH="iso-relax,jaxen-1.1,xalan" +S="${WORKDIR}/${PN}-${MY_P}" + +PATCHES=( + "${FILESDIR}/build-xml-2.patch" +) + +java_prepare() { + java-pkg_clean + + epatch "${PATCHES[@]}" + + # Remove Android stuff to avoid junit RDEPEND. + rm -vr contrib/src/java/org/jdom2/contrib/android || die +} + +src_install() { + java-pkg_newjar build/package/${PN}-${SLOT}.x-????.??.??.??.??.jar ${PN}.jar + java-pkg_newjar build/package/${PN}-${SLOT}.x-????.??.??.??.??-contrib.jar ${PN}-contrib.jar + + dodoc {CHANGES,COMMITTERS,README,TODO}.txt + use doc && java-pkg_dojavadoc build/apidocs + use source && java-pkg_dosrc {contrib,core}/src/java/* +} + +src_test() { + java-pkg-2_src_test +} diff --git a/dev-java/jdom/metadata.xml b/dev-java/jdom/metadata.xml new file mode 100644 index 000000000000..ea64c2542284 --- /dev/null +++ b/dev-java/jdom/metadata.xml @@ -0,0 +1,11 @@ + + + + + java@gentoo.org + Java + + + hunterhacker/jdom + + -- cgit v1.2.3