summaryrefslogtreecommitdiff
path: root/dev-java/icedtea-web
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-java/icedtea-web
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.xz
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-java/icedtea-web')
-rw-r--r--dev-java/icedtea-web/Manifest1
-rw-r--r--dev-java/icedtea-web/files/README.gentoo21
-rw-r--r--dev-java/icedtea-web/files/icedtea-web-1.5-respect-ldflags.patch11
-rw-r--r--dev-java/icedtea-web/icedtea-web-1.5.1-r1.ebuild114
-rw-r--r--dev-java/icedtea-web/metadata.xml14
5 files changed, 161 insertions, 0 deletions
diff --git a/dev-java/icedtea-web/Manifest b/dev-java/icedtea-web/Manifest
new file mode 100644
index 00000000000..6b08126660d
--- /dev/null
+++ b/dev-java/icedtea-web/Manifest
@@ -0,0 +1 @@
+DIST icedtea-web-1.5.1.tar.gz 1616344 SHA256 03f16356fa84564f1ae32286e0a090a464c87ec123b40602dcea925757900195 SHA512 ef47eecbbb52fcb44ec9585db4c4428025201b04968dfcfc26061160d80b29ee649752f21ffe891cfa5c6bf775d0bc1dbb7dbd9a79794e052bb8b865fa94d039 WHIRLPOOL 955b5cc565fa62d2f5eb85a3253751cd284a4cb926619afe60920123878281a77f348a7c26cdafea2c6d4cd760fe4d399041b665b86ff1bbaf441e25f9f18379
diff --git a/dev-java/icedtea-web/files/README.gentoo b/dev-java/icedtea-web/files/README.gentoo
new file mode 100644
index 00000000000..0b4b644d035
--- /dev/null
+++ b/dev-java/icedtea-web/files/README.gentoo
@@ -0,0 +1,21 @@
+Manage Plugin
+-------------
+The IcedTea browser plugin (NPPlugin) can be enabled using
+eselect java-nsplugin.
+
+Select JVM
+----------
+IcedTea-Web (>=1.4) supports selecting the JVM to use for the plugin. Currently
+works for all IcedTea releases. The eselect module java-nsplugin in
+>=eselect-java-0.1.0 added support for this.
+
+Per user configuration
+----------------------
+IcedTea-Web also supports per user configuration which takes precedence over the
+global choice of JVM managed by the java-nsplugin module. If you made use of
+itweb-settings as user to set a JVM for instance and want to give control back
+to java-nsplugin to manage the JVM to use run as your user:
+'sed -i -e "/^deployment.jre.dir=/d" ~/.icedtea/deployment.properties'
+
+Per user plugin selection via eselect java-nsplugin is a longstanding feature
+request. Bug 148632
diff --git a/dev-java/icedtea-web/files/icedtea-web-1.5-respect-ldflags.patch b/dev-java/icedtea-web/files/icedtea-web-1.5-respect-ldflags.patch
new file mode 100644
index 00000000000..72ee9ebad58
--- /dev/null
+++ b/dev-java/icedtea-web/files/icedtea-web-1.5-respect-ldflags.patch
@@ -0,0 +1,11 @@
+--- Makefile.am.orig 2014-08-14 12:15:46.000000000 +0200
++++ Makefile.am 2014-11-01 23:09:49.543555638 +0100
+@@ -322,7 +322,7 @@
+
+ $(PLUGIN_DIR)/$(BUILT_PLUGIN_LIBRARY): $(addprefix $(PLUGIN_DIR)/,$(PLUGIN_OBJECTS))
+ cd $(PLUGIN_DIR) && \
+- $(CXX) $(CXXFLAGS) \
++ $(CXX) $(CXXFLAGS) $(LDFLAGS) \
+ $(PLUGIN_OBJECTS) \
+ $(GLIB_LIBS) \
+ $(MOZILLA_LIBS) \
diff --git a/dev-java/icedtea-web/icedtea-web-1.5.1-r1.ebuild b/dev-java/icedtea-web/icedtea-web-1.5.1-r1.ebuild
new file mode 100644
index 00000000000..dadc7bf4f2b
--- /dev/null
+++ b/dev-java/icedtea-web/icedtea-web-1.5.1-r1.ebuild
@@ -0,0 +1,114 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+# Build written by Andrew John Hughes (ahughes@redhat.com)
+
+EAPI="5"
+
+inherit autotools eutils readme.gentoo java-pkg-2 java-vm-2
+
+DESCRIPTION="FOSS Java browser plugin and Web Start implementation"
+HOMEPAGE="http://icedtea.classpath.org"
+SRC_URI="http://icedtea.classpath.org/download/source/${P}.tar.gz"
+
+LICENSE="GPL-2 GPL-2-with-linking-exception LGPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm ppc x86"
+
+IUSE="doc +icedtea7 javascript +nsplugin tagsoup test"
+
+COMMON_DEP="
+ icedtea7? ( || (
+ dev-java/icedtea:7 dev-java/icedtea-bin:7
+ ) )
+ !icedtea7? ( || (
+ dev-java/icedtea:7 dev-java/icedtea-bin:7
+ dev-java/icedtea:6 dev-java/icedtea-bin:6
+ ) )
+ app-eselect/eselect-java
+ tagsoup? ( dev-java/tagsoup )
+ nsplugin? (
+ >=dev-libs/glib-2.16
+ )"
+RDEPEND="${COMMON_DEP}"
+# Need system junit 4.8+. Bug #389795
+DEPEND="${COMMON_DEP}
+ virtual/pkgconfig
+ app-arch/zip
+ javascript? ( dev-java/rhino:1.6 )
+ nsplugin? ( net-misc/npapi-sdk )
+ test? ( >=dev-java/junit-4.8:4 )"
+
+# http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2010-December/011221.html
+pkg_setup() {
+ JAVA_PKG_WANT_BUILD_VM="icedtea-7 icedtea-bin-7"
+ if ! use icedtea7; then
+ JAVA_PKG_WANT_BUILD_VM="${JAVA_PKG_WANT_BUILD_VM} icedtea-6 icedtea-bin-6"
+ fi
+ JAVA_PKG_WANT_SOURCE="1.6"
+ JAVA_PKG_WANT_TARGET="1.6"
+
+ java-pkg-2_pkg_setup
+ java-vm-2_pkg_setup
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.5-respect-ldflags.patch # bug #356645
+ eautoreconf
+}
+
+src_configure() {
+ local tagsoup_jar
+ local config
+
+ # bug #527962
+ use tagsoup && tagsoup_jar="$(java-pkg_getjars tagsoup)"
+
+ config=(
+ # javaws is managed by eselect java-vm and symlinked to by icedtea so
+ # move it out of the way and symlink itweb-settings back to bin
+ --bindir="${EPREFIX}"/usr/libexec/${PN}
+ --with-jdk-home="${JAVA_HOME}"
+ $(use_enable doc docs)
+ $(use_enable nsplugin plugin)
+ $(use_with javascript rhino)
+ $(use_with tagsoup tagsoup ${tagsoup_jar})
+ )
+
+ unset JAVA_HOME JDK_HOME CLASSPATH JAVAC JAVACFLAGS
+ econf "${config[@]}"
+}
+
+src_compile() {
+ default
+}
+
+src_install() {
+ default
+
+ if use nsplugin; then
+ install_mozilla_plugin "/usr/$(get_libdir)/IcedTeaPlugin.so"
+ fi
+
+ mkdir -p "${ED}"/usr/bin || die
+ dosym /usr/libexec/${PN}/itweb-settings /usr/bin/itweb-settings || die
+
+ # Should we patch system default lookup instead?
+ mkdir -p "${ED}"/etc/.java/deployment/ || die
+ echo "deployment.jre.dir=/etc/java-config-2/current-icedtea-web-vm" \
+ > "${ED}"/etc/.java/deployment/deployment.properties || die
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ VMHANDLE="icedtea-web@${GENTOO_VM}" java-vm_check-nsplugin
+ java_mozilla_clean_
+ readme.gentoo_print_elog
+}
+
+pkg_prerm() {
+ # override the java-vm-2 eclass check for removing a system VM, as it
+ # doesn't make sense here.
+ :;
+}
diff --git a/dev-java/icedtea-web/metadata.xml b/dev-java/icedtea-web/metadata.xml
new file mode 100644
index 00000000000..a415350271b
--- /dev/null
+++ b/dev-java/icedtea-web/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+ <longdescription>
+ FOSS Java Web Start and optional browser plugin implementation based on NetX, to be used with icedtea.
+ </longdescription>
+ <use>
+ <flag name="javascript">Enable support for using proxy auto config (PAC) files.</flag>
+ <flag name="icedtea7">Build icedtea-7 support in addition to icedtea-6 support. Requires icedtea{-bin}-7</flag>
+ <flag name="nsplugin">Enable the browser plugin (NPPlugin).</flag>
+ <flag name="tagsoup">Depend on dev-java/tagsoup which allows parsing malformed .jnlp files</flag>
+ </use>
+</pkgmetadata>