mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
dev-java/icedtea-web: add 1.8.8
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST dunce-0.1.1.crate 4311 BLAKE2B 07b775c2e79d6414af5854282fdfbba26ac4675207f840cf627a33c7bdbca163283466011c641d62646fa77f8623f1f7143b5e3d87c34e0b9840e4807eea2df8 SHA512 3fa16c1d6d78374e6360b9e2349516859b617ac5532ade34359d952002a1fb6d5e70f27ce2c9b3d6e230c753218fcf6e9b3973161bf1f8dd9c08152fbda2f5ad
|
||||
DIST icedtea-web-1.8.4.tar.gz 2358591 BLAKE2B a62a88cfce49f473a0ab768ca386c4733d69fd3b603b29a8d5e7478b33030e2d016a0577bfc0fa4657bb0b3f99a2524d1b46cad7a8e4f97c1404eff5ca218613 SHA512 d155ec6ed9a007b2c59fd09fed9f4005a79640016ae62287eab7076c05b5ddd56d07b0ff86babf732f1bb82653fc0f7cf434550eabdaac8d666e64feabe4f890
|
||||
DIST icedtea-web-1.8.8.tar.gz 2365638 BLAKE2B 39a19bd46a235d016f9192da7f15ffa17546dfbe8502df4991f6d45c6211723504c0d2dc0bc7aaa508e4b47295f244c65b6e7113666028824562b8d2b0ccf5b2 SHA512 99f246ce603e3edd4357a2c4d280f1ef92e1f760ca5d843eaccf7ca60950a47defec64eed87dac26c5c2e9776bed2f3e53f2c8793dabd47e1b5fc82823190dcc
|
||||
|
||||
94
dev-java/icedtea-web/icedtea-web-1.8.8.ebuild
Normal file
94
dev-java/icedtea-web/icedtea-web-1.8.8.ebuild
Normal file
@@ -0,0 +1,94 @@
|
||||
# Copyright 1999-2021 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 bash-completion-r1 cargo readme.gentoo-r1 xdg-utils
|
||||
|
||||
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
|
||||
sys-devel/bc
|
||||
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() {
|
||||
xdg_environment_reset
|
||||
# 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)
|
||||
)
|
||||
unset _JAVA_OPTIONS
|
||||
export bashcompdir="$(get_bashcompdir)" # defaults to /etc if not found in pkg-config
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user