diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2020-09-04 23:31:00 -0700 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2020-09-04 23:31:19 -0700 |
commit | e005b2257d8f841bb6944f737d5baea1af6581a8 (patch) | |
tree | 3a65b8d389428fc7eb2cc362961377518c3e388c /dev-java/icedtea-web/icedtea-web-1.8.4-r1.ebuild | |
parent | dev-java/icedtea-bin: drop nsplugin, webstart useflags (diff) | |
download | gentoo-e005b2257d8f841bb6944f737d5baea1af6581a8.tar.gz gentoo-e005b2257d8f841bb6944f737d5baea1af6581a8.tar.bz2 gentoo-e005b2257d8f841bb6944f737d5baea1af6581a8.zip |
dev-java/icedtea-web: revbump, specify exact jdk dep
Package-Manager: Portage-3.0.5, Repoman-3.0.1
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-java/icedtea-web/icedtea-web-1.8.4-r1.ebuild')
-rw-r--r-- | dev-java/icedtea-web/icedtea-web-1.8.4-r1.ebuild | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/dev-java/icedtea-web/icedtea-web-1.8.4-r1.ebuild b/dev-java/icedtea-web/icedtea-web-1.8.4-r1.ebuild new file mode 100644 index 000000000000..56974b9a4136 --- /dev/null +++ b/dev-java/icedtea-web/icedtea-web-1.8.4-r1.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +README_GENTOO_SUFFIX="-r2" +CRATES="dunce-0.1.1" + +inherit autotools cargo readme.gentoo-r1 + +DESCRIPTION="FOSS Java browser plugin and Web Start implementation" +HOMEPAGE="https://github.com/AdoptOpenJDK/IcedTea-Web" +SRC_URI="https://github.com/AdoptOpenJDK/${PN}/archive/${P}.tar.gz + $(cargo_crate_uris ${CRATES})" +LICENSE="GPL-2 GPL-2-with-linking-exception LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" +IUSE="doc" + +# tests require ton of java deps we don't have packaged/working +# but rust tests pass. +RESTRICT="test" + +BDEPEND=" + app-arch/zip + virtual/jdk:1.8 + virtual/pkgconfig + virtual/rust + doc? ( sys-devel/bc ) +" + +RDEPEND=" + >=app-eselect/eselect-java-0.2.0 + >=virtual/jre-1.8 +" + +S="${WORKDIR}/IcedTea-Web-${P}" + +QA_FLAGS_IGNORED="usr/bin/.*" + +src_prepare() { + eapply_user + sed -i 's/JAVADOC_OPTS=/\0-Xdoclint:none /g' Makefile.am || die + eautoreconf + cargo_gen_config +} + +src_configure() { + # some functionality (tagsoup rhino) is disabled, because dev-java is + # unmaintained and a lot of things simply does not build anymore. + # native plugins also disabled, modern browsers no longer support it. + local myconf=( + --disable-native-plugin + --program-transform-name='s/^javaws$/itweb-javaws/' + --with-java="${EPREFIX}/usr/bin/java" + --with-jdk-home="${EPREFIX}/etc/java-config-2/current-system-vm" + --with-itw-libs=DISTRIBUTION + --without-rhino + --without-tagsoup + $(use_enable doc docs) + ) + export CARGO_HOME="${ECARGO_HOME}" + CONFIG_SHELL="${EPREFIX}/bin/bash" econf "${myconf[@]}" +} + +src_compile() { + # races in makefile + emake -j1 #nowarn +} + +src_install() { + default + rm -v "${ED}/usr/bin/itw-modularjdk.args" || die + rename -v '.bash' '' "${ED}/usr/share/bash-completion/completions/"*.bash || die + rename -v 'javaws' 'itweb-javaws' "${ED}/usr/share/man/man1/"javaws.1* || die + mv -v "${ED}/usr/share/bash-completion/completions/"{javaws,itweb-javaws} || die + sed -i 's/javaws/itweb-javaws/g' \ + "${ED}/usr/share/bash-completion/completions/itweb-javaws" || die + + readme.gentoo_create_doc +} + +src_test() { + # we want to override cargo.eclass' src_test + : +} + +pkg_postinst() { + readme.gentoo_print_elog +} |