summaryrefslogtreecommitdiff
path: root/dev-java/icedtea-web
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/icedtea-web')
-rw-r--r--dev-java/icedtea-web/Manifest13
-rw-r--r--dev-java/icedtea-web/files/README.gentoo-r156
-rw-r--r--dev-java/icedtea-web/files/icedtea-web-1.6-javadoc.patch11
-rw-r--r--dev-java/icedtea-web/files/icedtea-web-1.6-launchers.patch79
-rw-r--r--dev-java/icedtea-web/files/icedtea-web-1.6-no-hg.patch49
-rw-r--r--dev-java/icedtea-web/files/icedtea-web-1.6-respect-ldflags.patch20
-rw-r--r--dev-java/icedtea-web/files/icedtea-web-1.6-unused-libs.patch20
-rw-r--r--dev-java/icedtea-web/icedtea-web-1.6.1-r1.ebuild88
-rw-r--r--dev-java/icedtea-web/icedtea-web-1.6.2.ebuild86
-rw-r--r--dev-java/icedtea-web/metadata.xml16
10 files changed, 438 insertions, 0 deletions
diff --git a/dev-java/icedtea-web/Manifest b/dev-java/icedtea-web/Manifest
new file mode 100644
index 000000000000..8555736d4d6e
--- /dev/null
+++ b/dev-java/icedtea-web/Manifest
@@ -0,0 +1,13 @@
+AUX README.gentoo-r1 2328 SHA256 7d3b2d55b616323fbcc08c41bd2926e4bd61d5a48a1399ef68bdd631763ad6e3 SHA512 bac787d49827e651fa9a87a2d8a8a64fb714282f569474ebf69712bd2a329c12f7d6fed2b015467c857b66cc0c9e10e7e60ab2186de00f8f3ac6e72353b76628 WHIRLPOOL 811a928b581dfc2d9c15bdf3166413738042516d369009084105be57f7930d8bd88d035c1711966bc99defe9601394aa74425cfc7ac8016aa7c845f0b5298fee
+AUX icedtea-web-1.6-javadoc.patch 463 SHA256 c01d6b700444677e98128d3f94061ea99b1a4778b5f6e49bfaaf95ff155c5668 SHA512 faa9b4cd96bd6658a9f55ebf7a5f3b75db65a6a813489739df2b8e903bc62cab2cf222a936a52230ff91943263e3ccc303ed7abe4fe8da7bf89a2eed95b3e66d WHIRLPOOL 801552767fc85b72c1ebcb823d82d9074d327aadbbb2ea0ee40aa0ca24b948ba8ed307f83a2c22bd3be1d655e3760ea6943883e6d19cc8a960d7e0f5aa2ecd23
+AUX icedtea-web-1.6-launchers.patch 3136 SHA256 c6a13ad2cfca80872c48986c428b5d4eb9cd88c0300bd802b715d7dd28b7b644 SHA512 585a8e12a438f884f6b3c24aacb04a7330bf65388c18a51697c17041f5dfa3df3a24474d5d6b2dc43886dafabf0a05e525ef40ac8247c726797750dcb25d5d92 WHIRLPOOL 1766439039f63bea068e432c08a094b50d808f1451b4693b41410e647ddc98dbcab17e1fe931b6bf66ac617fa815d6ffdd1954f59ebd835d76ab8b5f699e6bbd
+AUX icedtea-web-1.6-no-hg.patch 2254 SHA256 9e292a1d417212a97517ad6885b4214f3700c94eca8b0776ce6b53568a0af56b SHA512 22e30347bbb759b60b954acafb8a920e23f673915e89eb13ad9917b6669e8059d52aacb0b90874427376730840e8ed954b14e2de65e8b594a10616b999863523 WHIRLPOOL 0c59b4a6e99d0e6fa8784fd62c3654fd738dd71bc91cb75747822a593d533266350e02ed3eaa75b75c4d1812d0104d489d9ae7ff5b66150e6b9c8b0f57b19b86
+AUX icedtea-web-1.6-respect-ldflags.patch 667 SHA256 d73d5018e261b85af076f8851e20a6605c98747c63b9712af7180af3267e55e1 SHA512 23903931c48e47cd78d1d73cf2bd5e06249e26939bbef4f41f09d3c3d69d0418e65fe83be542807452ed41bebfd88d2081d731f03dfbd4950495fc16dc9edb1e WHIRLPOOL 0fec3d03119871fbc8c954863a596b5d8c042bbdc0686e8565e50e5a130cb7b8b543faf8615c77258a8a2941d5218c7713d974c30c7feab0eac766c8a2574115
+AUX icedtea-web-1.6-unused-libs.patch 697 SHA256 05e271f2a536da9d4cf7ca9bd17a6606fc39b0fbd90d499d8bc8759669a31572 SHA512 215242b418159a8ab3d1523f1ef0765d40212feb572441719a830251fc602620f29a254a5734ab08a6b7a902bc1f27060bbf638826e2291305966edfd3062b74 WHIRLPOOL d976f536f1eb9c2495de967fb804c5ce1a6d97a56fddf95e323f9f7b6cf0abc27f2dd4c76fa6f8206fa549429aaf028d46e6cdaa70bafd4530e067a6e35568c8
+DIST icedtea-web-1.6.1.tar.gz 1776222 SHA256 a9b46ab6c9dc303c89651143596bc5abea29242b9bdcabdd2dab7c606592c920 SHA512 dae39818f74a098289acd0736d27c2e68b10b603a3fb0a180cf4b6444345cbe71ab1ba77dfb198f053f9567bb18aa96de09049c3b595b3d292d142a7ae7d3ef9 WHIRLPOOL 96826d17daee16dfa99f6439678cc509c94556955839b7e8bc43c1993ee04740f35b0547d56649bb9f7a625b5b2515be9d173b642ccb15cb1dead83a03586a6e
+DIST icedtea-web-1.6.2.tar.gz 1824557 SHA256 ce67034096d6b960e2b6cfb5c41a7bd6b30eb2ec7f13bf3ecdb477ff6ce69300 SHA512 32c9618a575bf05d3fbe5fec3f8429d55036acde70bf7ccf40b59e14eba775d1f561640acbf673b1737a8c5c3a8eadb74e8f1bef525cfa6060e3f1968d45b3f7 WHIRLPOOL 623a8ea5d5f00aa5e323c4f2de4617a4809149a25f3fbcfbbed76b4a5ecd452c372420dcffd2ad303f815c89168d8820d2997d286e0cc3360054a2c28732b603
+EBUILD icedtea-web-1.6.1-r1.ebuild 2245 SHA256 d57674fdde4fd1621e639a6cf874517312c19d2b3001e2248deaed1e0f402469 SHA512 37c9aefae8a58b59e455ae6614d6e57367f5f461f3f71c0bb1cdb8d5988fc3b513ec2977a953af7b1f20e0e4a8322413d8f8dd8feecb576768ec1624d99b8255 WHIRLPOOL be65cedf7918ee3aba034b127584341ae069824dc490d397cb47266ac5abed0d843d22aea39a1b4d69017f48c3ac0b309683b55c5fe897468e91c1e2865e02fe
+EBUILD icedtea-web-1.6.2.ebuild 2117 SHA256 dd29f18eed1f708337fc2b8e462d05cfd6a672f51dd41e4a35b64becfff12960 SHA512 55f30c8352625da7ac0d2d96c627903e60a4953f0932ceaca93967a5eecc3c22e09903acf8fd722deaa2ef9a60ce356c2d1db750382cf7287080bef28908b567 WHIRLPOOL a53833534b6e4fda7e443a7871bf4f292f2acf33419f42e6800e8230a152e5e5796182168045c54eeb1f1ac5b3c30c3b3722527a676872553963d49e9e1af74c
+MISC ChangeLog 5842 SHA256 f99b1fd956e7a7ee66f7efdc93c236a75f08b179795b3d8620975ff4b41abd36 SHA512 ef717c37c1b60b44d0383fbe81078ef50eb57bd2a7a1f906c333f9eaf9cf4f9a5206e772a5e96bd07c4dd66186c79b53646b148035e3cb86cd62c976c500f1bb WHIRLPOOL f1adc6e5b3445c5c753e76bc80d0ebb17cbce0107b18c8e780e9ffff86622d821f40daa11fc73c8362b3cdece0569e6dfb3acec72106224707baedfacfbe0b34
+MISC ChangeLog-2015 11345 SHA256 01881d8e37fdd9ae9da297a600477bcf83129eefdfe7178f2d4eec7559c1f382 SHA512 c6773927afd52b9940487a219b56f9e9f8d1cc2d31d954fa81791bce95c8b5754f0e97e85991b2ed7e02faaeb74f77c9474d79d79c38fa047b84c93c6c6ce1f4 WHIRLPOOL 8a2b0ecac405693812f1c3aa89c1d227587b151a8c78b36ea79378523d5e5d0e2856824cd30246f381a432ce85703c2397d5db694a81354d9443320a9ceaf494
+MISC metadata.xml 668 SHA256 8626542e303fa1a84dc32000be912428a9e3995f3bba49092c2edcddafa67b99 SHA512 59b016e44c6a594bb597d7952e62346f108fc082e74fc17639580ef281c05513bbbfa50f362427f969e320f8f9dbf647c772a5760ae6045e6092f3e617740ed6 WHIRLPOOL 1120f58f1645e9acd808c0e828a63625e5841d4c9a2cea8624e09cbd6332c780229ddc2d00fa43ea003ea3a2562f0046ca34459a08ebbfeea3eb038e8b7ef44f
diff --git a/dev-java/icedtea-web/files/README.gentoo-r1 b/dev-java/icedtea-web/files/README.gentoo-r1
new file mode 100644
index 000000000000..219e14e7f7c3
--- /dev/null
+++ b/dev-java/icedtea-web/files/README.gentoo-r1
@@ -0,0 +1,56 @@
+Browser plugin
+--------------
+
+The IcedTea browser plugin (NPPlugin) is now made immediately
+available to supporting browsers without the need for eselect. Note
+that Chromium-based browsers no longer support NPAPI-based plugins
+since the code was removed in September 2015. The list of supporting
+browsers is shrinking but still includes Firefox as of version 46.
+
+JVM selection
+-------------
+
+By default, IcedTea's browser plugin and Web Start uses the JVM
+selected via eselect or the GENTOO_VM environment variable. Note that
+this doesn't have to be an IcedTea JVM. An Oracle JVM will also
+work. The choice can be overridden using the itweb-settings
+program. Simply blank out the field to restore the default behaviour.
+
+Coexistence with Oracle's plugin
+--------------------------------
+
+The IcedTea browser plugin can no longer be installed alongside
+Oracle's plugin. This used to be possible thanks to eselect
+java-nsplugin but this was removed in an effort to simplify things. No
+one is likely to need both, especially with plugins being all but
+outlawed these days. To avoid any blockers, simply enable the nsplugin
+USE flag on icedtea-web or the Oracle packages, but not both.
+
+If you're wondering why we don't just leave plugin selection to the
+browser, it's because Firefox (and probably others) only allows you to
+disable all the Java plugins together, not individually.
+
+Coexistence with Oracle's Web Start
+-----------------------------------
+
+/usr/bin/javaws, the executable used to launch JNLP files from a
+browser, will always use IcedTea's implementation over Oracle's when
+icedtea-web is installed, regardless of which JVM has been
+selected. This is primarily for consistency with the browser
+plugin. If you want to use Oracle's implementation then simply
+uninstall icedtea-web.
+
+32-bit plugin on 64-bit systems
+-------------------------------
+
+This is no longer supported as the 64-bit plugin can launch a 32-bit
+JVM. Other reasons for running a 32-bit browser on a 64-bit system
+have long passed.
+
+32-bit JVM on 64-bit systems
+----------------------------
+
+The emul-linux-x86-java package was removed in 2015 with the migration
+to full multilib. icedtea-bin now provides this feature via the
+multilib USE flag. Once installed, using the 32-bit variant is simply
+a case of selecting that VM as described above.
diff --git a/dev-java/icedtea-web/files/icedtea-web-1.6-javadoc.patch b/dev-java/icedtea-web/files/icedtea-web-1.6-javadoc.patch
new file mode 100644
index 000000000000..f69db9b6f582
--- /dev/null
+++ b/dev-java/icedtea-web/files/icedtea-web-1.6-javadoc.patch
@@ -0,0 +1,11 @@
+--- Makefile.am.orig 2015-09-11 14:02:04.245280051 +0100
++++ Makefile.am 2016-01-01 14:00:49.857225492 +0000
+@@ -652,7 +652,7 @@
+
+ stamps/netx-docs.stamp:
+ if ENABLE_DOCS
+- $(SYSTEM_JDK_DIR)/bin/javadoc $(JAVADOC_MEM_OPTS) $( _OPTS) \
++ $(SYSTEM_JDK_DIR)/bin/javadoc $(JAVADOC_MEM_OPTS) $(JAVADOC_OPTS) \
+ -d ${abs_top_builddir}/docs/netx -sourcepath $(NETX_SRCDIR) \
+ -doctitle 'IcedTea-Web: NetX API Specification' \
+ -windowtitle 'IcedTea-Web: NetX ' \
diff --git a/dev-java/icedtea-web/files/icedtea-web-1.6-launchers.patch b/dev-java/icedtea-web/files/icedtea-web-1.6-launchers.patch
new file mode 100644
index 000000000000..57f793a2ff30
--- /dev/null
+++ b/dev-java/icedtea-web/files/icedtea-web-1.6-launchers.patch
@@ -0,0 +1,79 @@
+--- launcher/launchers.in.orig 2015-09-11 14:02:04.252280131 +0100
++++ launcher/launchers.in 2015-12-18 23:06:35.721135526 +0000
+@@ -7,7 +7,7 @@
+ BINARY_LOCATION=@BIN_LOCATION@
+ SPLASH_LOCATION=@JAVAWS_SPLASH_LOCATION@
+ PROGRAM_NAME=@PROGRAM_NAME@
+-CP=@JRE@/lib/rt.jar:@JRE@/lib/jfxrt.jar
++CP=$(java-config -r)
+
+ CONFIG_HOME=$XDG_CONFIG_HOME
+ if [ "x$CONFIG_HOME" = "x" ] ; then
+--- plugin/icedteanp/IcedTeaNPPlugin.cc.orig 2015-09-11 14:02:04.219279754 +0100
++++ plugin/icedteanp/IcedTeaNPPlugin.cc 2015-12-19 22:35:23.479775591 +0000
+@@ -137,8 +137,7 @@
+ static DIR *data_directory_descriptor;
+
+ // Fully-qualified appletviewer default executable and rt.jar
+-static const char* appletviewer_default_executable = ICEDTEA_WEB_JRE "/bin/java";
+-static const char* appletviewer_default_rtjar = ICEDTEA_WEB_JRE "/lib/rt.jar";
++static const char* appletviewer_default_executable = ICEDTEA_WEB_JAVA;
+ //javaws name and binary
+ static const char* javaws_bin_property = "-Dicedtea-web.bin.location=" JAVAWS_BIN;
+ static const char* javaws_name_property = "-Dicedtea-web.bin.name=" JAVAWS_NAME;
+@@ -298,7 +297,15 @@
+ PLUGIN_ERROR("Your custom jre (/lib/rt.jar check) %s is not valid. Please fix %s in your %s. In attempt to run using default one. \n", custom_jre.c_str(), custom_jre_key.c_str(), default_file_ITW_deploy_props_name.c_str());
+ }
+ }
+- return appletviewer_default_rtjar;
++ gchar *stdout;
++ if (g_spawn_command_line_sync("java-config -r", &stdout, NULL, NULL, NULL)) {
++ std::string result = g_strchomp(stdout);
++ g_free(stdout);
++ return result;
++ } else {
++ PLUGIN_ERROR("Failed to query jre bootclasspath with java-config.\n");
++ return "";
++ }
+ }
+
+ static void cleanUpDir(){
+--- plugin/icedteanp/IcedTeaParseProperties.cc.orig 2015-09-11 14:02:04.220279765 +0100
++++ plugin/icedteanp/IcedTeaParseProperties.cc 2015-12-19 23:06:05.095409132 +0000
+@@ -151,7 +151,15 @@
+ }
+
+ string default_java_properties_file(){
+- return ICEDTEA_WEB_JRE "/lib/"+default_file_ITW_deploy_props_name;
++ gchar *stdout;
++ if (g_spawn_command_line_sync("java-config -o", &stdout, NULL, NULL, NULL)) {
++ string result = g_strchomp(stdout);
++ g_free(stdout);
++ return result+"/lib/"+default_file_ITW_deploy_props_name;
++ } else {
++ PLUGIN_ERROR("Failed to query jre location with java-config.\n");
++ return "";
++ }
+ }
+
+
+@@ -224,7 +232,7 @@
+ dest = custom_jre_file;
+ return true;
+ }
+- } else {
++ } else if (!default_java_file.empty()) {
+ if(IcedTeaPluginUtilities::file_exists(default_java_file)) {
+ dest = default_java_file;
+ return true;
+--- Makefile.am.orig 2015-09-11 14:02:04.245280051 +0100
++++ Makefile.am 2015-12-19 22:37:35.460518630 +0000
+@@ -353,7 +353,7 @@
+ -DPLUGIN_VERSION="\"$(PLUGIN_VERSION)\"" \
+ -DPACKAGE_URL="\"$(PACKAGE_URL)\"" \
+ -DMOZILLA_VERSION_COLLAPSED="$(MOZILLA_VERSION_COLLAPSED)" \
+- -DICEDTEA_WEB_JRE="\"$(SYSTEM_JRE_DIR)\"" \
++ -DICEDTEA_WEB_JAVA="\"$(JAVA)\"" \
+ -DPLUGIN_BOOTCLASSPATH=$(PLUGIN_BOOTCLASSPATH) \
+ $(GLIB_CFLAGS) \
+ $(MOZILLA_CFLAGS) \
diff --git a/dev-java/icedtea-web/files/icedtea-web-1.6-no-hg.patch b/dev-java/icedtea-web/files/icedtea-web-1.6-no-hg.patch
new file mode 100644
index 000000000000..a76780e500cb
--- /dev/null
+++ b/dev-java/icedtea-web/files/icedtea-web-1.6-no-hg.patch
@@ -0,0 +1,49 @@
+--- html-gen.sh.orig 2015-09-11 14:02:04.250280108 +0100
++++ html-gen.sh 2016-01-01 14:13:46.693307166 +0000
+@@ -67,13 +67,18 @@
+ if [ -z "$CHANGESETS" ] || [ "$CHANGESETS" -lt 0 ]; then CHANGESETS=10; fi
+
+ NEWS_ITEMS=2
+-REPO_URL="$(hg paths default | sed -r 's/.*icedtea.classpath.org\/(.*)/\1/')"
++
++if [ -d .hg ]; then
++ REPO_URL="$(hg paths default | sed -r 's/.*icedtea.classpath.org\/(.*)/\1/')"
++else
++ unset REPO_URL
++fi
+
+ start_time="$(date +%s.%N)"
+
+ cd html-gen
+
+-print_debug "Generating HTML content for javaws -about for $REPO_URL. $CHANGESETS changesets, $NEWS_ITEMS news items"
++print_debug "Generating HTML content for javaws -about${REPO_URL:+ for }$REPO_URL. $CHANGESETS changesets, $NEWS_ITEMS news items"
+ print_debug "Starting sed substitutions"
+ for FILE in NEWS AUTHORS COPYING ChangeLog
+ do
+@@ -99,7 +104,9 @@
+ sed -i '5i <br><img src="jamIcon.jpg" alt="Jam Icon" width="87" height="84"><br><br>' AUTHORS.html
+ echo "</center>" >> AUTHORS.html
+
+-REVS=(`hg log -l"$CHANGESETS" | grep 'changeset:' | cut -d: -f3 | tr '\n' ' '`)
++if [ -n "${REPO_URL}" ]; then
++ REVS=(`hg log -l"$CHANGESETS" | grep 'changeset:' | cut -d: -f3 | tr '\n' ' '`)
++fi
+
+ print_debug "Done. Starting formatting (bolding, mailto and hyperlink creation)"
+
+@@ -132,9 +139,11 @@
+ if [[ "$LINE" =~ $date_regex* ]] # Matches line starting with eg 2013-07-01
+ then
+ html_space="\&ensp;\&ensp;"
+- REV="${REVS["$COUNTER"]}"
+- # Turn the date into a hyperlink for the revision this changelog entry describes
+- LINE=$(echo "$LINE" | sed -r "s|($date_regex)($html_space.*$html_space.*)|<a href=http://icedtea.classpath.org/$REPO_URL/rev/$REV>\1</a>\2|")
++ if [ -n "${REPO_URL}" ]; then
++ REV="${REVS["$COUNTER"]}"
++ # Turn the date into a hyperlink for the revision this changelog entry describes
++ LINE=$(echo "$LINE" | sed -r "s|($date_regex)($html_space.*$html_space.*)|<a href=http://icedtea.classpath.org/$REPO_URL/rev/$REV>\1</a>\2|")
++ fi
+ COUNTER="$(( COUNTER + 1 ))"
+ fi
+ if [ "$COUNTER" -gt "$CHANGESETS" ] # Cut to ten changesets
diff --git a/dev-java/icedtea-web/files/icedtea-web-1.6-respect-ldflags.patch b/dev-java/icedtea-web/files/icedtea-web-1.6-respect-ldflags.patch
new file mode 100644
index 000000000000..1d03b7c4fd16
--- /dev/null
+++ b/dev-java/icedtea-web/files/icedtea-web-1.6-respect-ldflags.patch
@@ -0,0 +1,20 @@
+--- Makefile.am.orig 2015-09-11 14:02:04.245280051 +0100
++++ Makefile.am 2015-12-18 21:37:43.328862431 +0000
+@@ -344,7 +344,7 @@
+ $(PLUGIN_DIR)/%.o: $(PLUGIN_SRCDIR)/%.cc
+ mkdir -p $(PLUGIN_DIR) && \
+ cd $(PLUGIN_DIR) && \
+- $(CXX) $(CXXFLAGS) \
++ $(CXX) $(CXXFLAGS) $(LDFLAGS) \
+ $(DEFS) $(VERSION_DEFS) \
+ -DJDK_UPDATE_VERSION="\"$(JDK_UPDATE_VERSION)\"" \
+ -DPLUGIN_NAME="\"IcedTea-Web Plugin\"" \
+@@ -362,7 +362,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/files/icedtea-web-1.6-unused-libs.patch b/dev-java/icedtea-web/files/icedtea-web-1.6-unused-libs.patch
new file mode 100644
index 000000000000..b0dc15d32c78
--- /dev/null
+++ b/dev-java/icedtea-web/files/icedtea-web-1.6-unused-libs.patch
@@ -0,0 +1,20 @@
+--- configure.ac.orig 2015-09-11 14:02:04.250280108 +0100
++++ configure.ac 2016-02-18 09:36:04.684624293 +0000
+@@ -55,17 +55,6 @@
+ IT_SET_VERSION
+ IT_CHECK_XULRUNNER_VERSION
+
+-AC_CHECK_LIB(z, main,, [AC_MSG_ERROR("zlib not found - try installing zlib-devel")])
+-dnl Check for libX11 headers and libraries.
+-PKG_CHECK_MODULES(X11, x11,[X11_FOUND=yes],[X11_FOUND=no])
+-if test "x${X11_FOUND}" = xno
+-then
+- AC_MSG_ERROR([Could not find x11 - \
+- Try installing libX11-devel.])
+-fi
+-AC_SUBST(X11_CFLAGS)
+-AC_SUBST(X11_LIBS)
+-
+ dnl PR46074 (gcc) - Missing java.net cookie code required by IcedTea plugin
+ dnl IT563 - NetX uses sun.security code
+ dnl IT605 - NetX depends on sun.misc.HexDumpEncoder
diff --git a/dev-java/icedtea-web/icedtea-web-1.6.1-r1.ebuild b/dev-java/icedtea-web/icedtea-web-1.6.1-r1.ebuild
new file mode 100644
index 000000000000..ce19e653d3c5
--- /dev/null
+++ b/dev-java/icedtea-web/icedtea-web-1.6.1-r1.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+README_GENTOO_SUFFIX="-r1"
+
+inherit autotools eutils multilib readme.gentoo-r1 java-pkg-2 xdg-utils
+
+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 ppc64 x86"
+IUSE="doc javascript nsplugin tagsoup test"
+RESTRICT="test"
+
+CDEPEND="javascript? ( dev-java/rhino:1.6 )
+ nsplugin? ( >=dev-libs/glib-2.16:2= )
+ tagsoup? ( dev-java/tagsoup:0 )"
+
+DEPEND="${CDEPEND}
+ app-arch/zip
+ >=virtual/jdk-1.7
+ virtual/pkgconfig
+ nsplugin? ( net-misc/npapi-sdk )
+ test? ( >=dev-java/junit-4.8:4 )"
+
+RDEPEND="${CDEPEND}
+ >=app-eselect/eselect-java-0.2.0
+ >=virtual/jre-1.7
+ nsplugin? (
+ !dev-java/oracle-jdk-bin[nsplugin]
+ !dev-java/oracle-jre-bin[nsplugin]
+ )"
+
+src_prepare() {
+ # http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2779
+ # http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2780
+ # http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2855
+ epatch "${FILESDIR}"/${PN}-1.6-{javadoc,no-hg,launchers,respect-ldflags,unused-libs}.patch
+
+ if java-pkg_is-vm-version-ge "1.8" ; then
+ sed -i 's/JAVADOC_OPTS=/\0-Xdoclint:none /g' Makefile.am || die
+ fi
+
+ eautoreconf
+}
+
+src_configure() {
+ local tagsoup
+ use tagsoup && tagsoup="$(java-pkg_getjars tagsoup)"
+
+ local config=(
+ # Rename javaws to itweb-javaws as eselect java-vm manages
+ # javaws to prevent a clash with Oracle's implementation.
+ --program-transform-name='s/^javaws$/itweb-javaws/'
+ --libdir="${EPREFIX}"/usr/$(get_libdir)/nsbrowser/plugins
+ --with-java="${EPREFIX}"/usr/bin/java
+ --with-jdk-home="${JAVA_HOME}"
+ $(use_enable doc docs)
+ $(use_enable nsplugin plugin)
+ $(use_with javascript rhino)
+ $(use_with tagsoup tagsoup "${tagsoup}")
+ )
+
+ # See bug #573060.
+ xdg_environment_reset
+
+ # Rely on the --with-jdk-home option given above.
+ unset JAVA_HOME JDK_HOME CLASSPATH JAVAC JAVACFLAGS
+
+ econf "${config[@]}"
+}
+
+src_compile() {
+ default
+}
+
+src_install() {
+ default
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+}
diff --git a/dev-java/icedtea-web/icedtea-web-1.6.2.ebuild b/dev-java/icedtea-web/icedtea-web-1.6.2.ebuild
new file mode 100644
index 000000000000..39097f756844
--- /dev/null
+++ b/dev-java/icedtea-web/icedtea-web-1.6.2.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+README_GENTOO_SUFFIX="-r1"
+
+inherit autotools eutils multilib readme.gentoo-r1 java-pkg-2 xdg-utils
+
+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 ~arm64 ~ppc64 ~x86"
+IUSE="doc javascript nsplugin tagsoup test"
+RESTRICT="test"
+
+CDEPEND="javascript? ( dev-java/rhino:1.6 )
+ nsplugin? ( >=dev-libs/glib-2.16:2= )
+ tagsoup? ( dev-java/tagsoup:0 )"
+
+DEPEND="${CDEPEND}
+ app-arch/zip
+ >=virtual/jdk-1.7
+ virtual/pkgconfig
+ nsplugin? ( net-misc/npapi-sdk )
+ test? ( >=dev-java/junit-4.8:4 )"
+
+RDEPEND="${CDEPEND}
+ >=app-eselect/eselect-java-0.2.0
+ >=virtual/jre-1.7
+ nsplugin? (
+ !dev-java/oracle-jdk-bin[nsplugin]
+ !dev-java/oracle-jre-bin[nsplugin]
+ )"
+
+src_prepare() {
+ # http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2855
+ epatch "${FILESDIR}"/${PN}-1.6-{launchers,respect-ldflags,unused-libs}.patch
+
+ if java-pkg_is-vm-version-ge "1.8" ; then
+ sed -i 's/JAVADOC_OPTS=/\0-Xdoclint:none /g' Makefile.am || die
+ fi
+
+ eautoreconf
+}
+
+src_configure() {
+ local tagsoup
+ use tagsoup && tagsoup="$(java-pkg_getjars tagsoup)"
+
+ local config=(
+ # Rename javaws to itweb-javaws as eselect java-vm manages
+ # javaws to prevent a clash with Oracle's implementation.
+ --program-transform-name='s/^javaws$/itweb-javaws/'
+ --libdir="${EPREFIX}"/usr/$(get_libdir)/nsbrowser/plugins
+ --with-java="${EPREFIX}"/usr/bin/java
+ --with-jdk-home="${JAVA_HOME}"
+ $(use_enable doc docs)
+ $(use_enable nsplugin plugin)
+ $(use_with javascript rhino)
+ $(use_with tagsoup tagsoup "${tagsoup}")
+ )
+
+ # See bug #573060.
+ xdg_environment_reset
+
+ # Rely on the --with-jdk-home option given above.
+ unset JAVA_HOME JDK_HOME CLASSPATH JAVAC JAVACFLAGS
+
+ econf "${config[@]}"
+}
+
+src_compile() {
+ default
+}
+
+src_install() {
+ default
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+}
diff --git a/dev-java/icedtea-web/metadata.xml b/dev-java/icedtea-web/metadata.xml
new file mode 100644
index 000000000000..a073aa0c3e71
--- /dev/null
+++ b/dev-java/icedtea-web/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+ <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="nsplugin">Enable the browser plugin (NPPlugin).</flag>
+ <flag name="tagsoup">Depend on dev-java/tagsoup which allows parsing malformed .jnlp files</flag>
+ </use>
+</pkgmetadata>