diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2021-04-22 16:20:12 +0200 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2021-04-23 11:41:29 +0200 |
commit | 11aa4194643fdcfeb4727a83622684d6f7fd1900 (patch) | |
tree | 2cfaf45fa35322ddbc9264d3da161a0e4fcf9693 /dev-java/browserlauncher2 | |
parent | net-misc/chrony: Restore stable keywords (diff) | |
download | gentoo-11aa4194643fdcfeb4727a83622684d6f7fd1900.tar.gz gentoo-11aa4194643fdcfeb4727a83622684d6f7fd1900.tar.bz2 gentoo-11aa4194643fdcfeb4727a83622684d6f7fd1900.zip |
dev-java/browserlauncher2: EAPI 7, min java 1.8
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/20500
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/browserlauncher2')
-rw-r--r-- | dev-java/browserlauncher2/browserlauncher2-1.3-r2.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/dev-java/browserlauncher2/browserlauncher2-1.3-r2.ebuild b/dev-java/browserlauncher2/browserlauncher2-1.3-r2.ebuild new file mode 100644 index 000000000000..58fe70c54181 --- /dev/null +++ b/dev-java/browserlauncher2/browserlauncher2-1.3-r2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 + +MY_PV="$(ver_rs 1- _)" + +DESCRIPTION="A library that facilitates opening a browser from a Java application" +HOMEPAGE="http://browserlaunch2.sourceforge.net/" +SRC_URI="https://downloads.sourceforge.net/project/browserlaunch2/browserlauncher2/${PV}/BrowserLauncher2-all-${MY_PV}.jar" + +LICENSE="LGPL-2.1" +SLOT="1.0" +KEYWORDS="~amd64 ~ppc64 ~x86" + +DEPEND=">=virtual/jdk-1.8:*" +RDEPEND=">=virtual/jre-1.8:*" +BDEPEND="app-arch/unzip" + +S="${WORKDIR}" + +src_prepare() { + default + unpack ${A} + find . -name "*.class" -exec rm -v {} \; || die + # fixing build.xml + sed -i -e "s: includes=\"\*\*/\*\.class\"::g" "${S}/build.xml" || die + + iconv -f ISO-8859-1 -t UTF8 -o /var/tmp/portage/dev-java/browserlauncher2-1.3-r2/work/source/at/jta/Regor.java~ \ + /var/tmp/portage/dev-java/browserlauncher2-1.3-r2/work/source/at/jta/Regor.java || die "recoding failed" + mv -f /var/tmp/portage/dev-java/browserlauncher2-1.3-r2/work/source/at/jta/Regor.java{~,} || die "cannot rename" +} + +EANT_BUILD_TARGET="build" +EANT_DOC_TARGET="api" + +src_install() { + java-pkg_newjar deployment/*.jar + java-pkg_dolauncher BrowserLauncherTestApp-${SLOT} \ + --main "edu.stanford.ejalbert.testing.BrowserLauncherTestApp" + + dodoc README* + use doc && java-pkg_dojavadoc api + use source && java-pkg_dosrc source +} |