diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2022-01-21 07:49:23 +0100 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2022-02-22 08:43:04 +0100 |
commit | 43b025d545593362dca6b89292ca42fe86c951be (patch) | |
tree | a34bb5d340fd3fc3b6267e2f054e92e03acef0bb | |
parent | db-use.eclass: add support for EAPI 8, die on unknown EAPI (diff) | |
download | gentoo-43b025d545593362dca6b89292ca42fe86c951be.tar.gz gentoo-43b025d545593362dca6b89292ca42fe86c951be.tar.bz2 gentoo-43b025d545593362dca6b89292ca42fe86c951be.zip |
dev-java/rome: EAPI 8, min java 1.8:*
Bug: https://bugs.gentoo.org/831010
Bug: https://bugs.gentoo.org/833410
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/24236
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
-rw-r--r-- | dev-java/rome/metadata.xml | 9 | ||||
-rw-r--r-- | dev-java/rome/rome-0.9-r4.ebuild | 53 |
2 files changed, 59 insertions, 3 deletions
diff --git a/dev-java/rome/metadata.xml b/dev-java/rome/metadata.xml index 851b900d2361..2b16361c3e20 100644 --- a/dev-java/rome/metadata.xml +++ b/dev-java/rome/metadata.xml @@ -1,7 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<maintainer type="project"> - <email>java@gentoo.org</email> -</maintainer> + <maintainer type="project"> + <email>java@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="github">rometools/rome</remote-id> + </upstream> </pkgmetadata> diff --git a/dev-java/rome/rome-0.9-r4.ebuild b/dev-java/rome/rome-0.9-r4.ebuild new file mode 100644 index 000000000000..c92d79f20e09 --- /dev/null +++ b/dev-java/rome/rome-0.9-r4.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +JAVA_TESTING_FRAMEWORKS="junit" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Java framework for RSS and Atom feeds" +HOMEPAGE="https://rometools.github.io/rome/" +SRC_URI="mirror://gentoo/${P}.zip" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +CP_DEPEND="dev-java/jdom:0" + +DEPEND=" + ${CP_DEPEND} + >=virtual/jdk-1.8:* + test? ( dev-java/ant-junit:0 )" + +RDEPEND=" + ${CP_DEPEND} + >=virtual/jre-1.8:*" + +BDEPEND="app-arch/unzip" + +JAVA_ENCODING="ISO-8859-1" +JAVA_SRC_DIR="src/java" +JAVA_RESOURCE_DIRS="res/java" +JAVA_TEST_SRC_DIRS="src/test" +JAVA_TEST_GENTOO_CLASSPATH="junit" + +S="${WORKDIR}/${P}" + +src_prepare() { + default + mkdir -p res/java/com/sun/syndication || die + cp {src,res}/java/com/sun/syndication/rome.properties || die + + sed -e 's:\(public \)\(Module\):\1com.sun.syndication.feed.module.\2:' \ + -e 's:\(,\)\(Module\):\1com.sun.syndication.feed.module.\2:' \ + -i src/java/com/sun/syndication/feed/synd/Synd{Feed,Entry}Impl.java || die +} + +src_install() { + default # https://bugs.gentoo.org/789582 + java-pkg-simple_src_install +} |