1 |
commit: e8bdb751bc41a2d89fb20eaa1de1bf10536641a2 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 4 22:33:34 2011 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 4 22:33:34 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/mgorny.git;a=commit;h=e8bdb751 |
7 |
|
8 |
dev-java/icedtea-web: Import icedtea-web from gx86. |
9 |
|
10 |
(Portage version: 2.2.0_alpha51_p82/git/Linux x86_64, signed Manifest commit with key 42B9401D) |
11 |
|
12 |
--- |
13 |
dev-java/icedtea-web/Manifest | 15 +++ |
14 |
dev-java/icedtea-web/icedtea-web-1.1.1.ebuild | 136 +++++++++++++++++++++++++ |
15 |
dev-java/icedtea-web/metadata.xml | 19 ++++ |
16 |
3 files changed, 170 insertions(+), 0 deletions(-) |
17 |
|
18 |
diff --git a/dev-java/icedtea-web/Manifest b/dev-java/icedtea-web/Manifest |
19 |
new file mode 100644 |
20 |
index 0000000..7ed6481 |
21 |
--- /dev/null |
22 |
+++ b/dev-java/icedtea-web/Manifest |
23 |
@@ -0,0 +1,15 @@ |
24 |
+-----BEGIN PGP SIGNED MESSAGE----- |
25 |
+Hash: SHA256 |
26 |
+ |
27 |
+DIST icedtea-web-1.1.1.tar.gz 806633 RMD160 7267f279726bc1aa70f298721f757822b5189cfb SHA1 332874daf5f01fd6db3e60b4dbe3b40b8b269014 SHA256 0051005302e698f2468e6cae275b8c58869c85be04c269f2f266389a4e6a66c7 |
28 |
+EBUILD icedtea-web-1.1.1.ebuild 3939 RMD160 5c9b89c18766dde518b8f6f5a442464a5cff1d80 SHA1 cab1ac9021a1adcb1d237dc11224c08143481423 SHA256 cf529d6217d81edfbe9bdf40e4a36bfef0e84352c553e2120b76814a661e63b4 |
29 |
+MISC metadata.xml 666 RMD160 0b4a727787334a8fb0755705a9a9abbea0ed2540 SHA1 529ff0c8f099d6b65d47880b4f5a338ef94c63fd SHA256 39c40293e8df643512c54fdfe6c2cae952fa38229b137c039c1477e4fb758bb6 |
30 |
+-----BEGIN PGP SIGNATURE----- |
31 |
+Version: GnuPG v2.0.18 (GNU/Linux) |
32 |
+ |
33 |
+iJwEAQEIAAYFAk5j/L4ACgkQfXuS5UK5QB1gOwP+ISk3tSUNS450W+KlQ271xwcZ |
34 |
+LJQ5dT/M5bwj9OwO0Jy+MVelbA21npcwSlstlxhezITd+HrdIiz9KTPf1X3rpsDg |
35 |
+tZrA8FyVLcsgxEmgQ3CbSWu+2pQAS91TfZHx9Ms1z2SMIqrPXGv5Mk2mrUj8daF8 |
36 |
+arYINW608mr6Qkg7ykw= |
37 |
+=LlwC |
38 |
+-----END PGP SIGNATURE----- |
39 |
|
40 |
diff --git a/dev-java/icedtea-web/icedtea-web-1.1.1.ebuild b/dev-java/icedtea-web/icedtea-web-1.1.1.ebuild |
41 |
new file mode 100644 |
42 |
index 0000000..a9fe311 |
43 |
--- /dev/null |
44 |
+++ b/dev-java/icedtea-web/icedtea-web-1.1.1.ebuild |
45 |
@@ -0,0 +1,136 @@ |
46 |
+# Copyright 1999-2011 Gentoo Foundation |
47 |
+# Distributed under the terms of the GNU General Public License v2 |
48 |
+# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea-web/icedtea-web-1.1.1.ebuild,v 1.1 2011/07/22 09:08:37 caster Exp $ |
49 |
+# Build written by Andrew John Hughes (ahughes@××××××.com) |
50 |
+ |
51 |
+EAPI="2" |
52 |
+ |
53 |
+inherit eutils java-pkg-2 java-vm-2 |
54 |
+ |
55 |
+LICENSE="GPL-2 GPL-2-with-linking-exception LGPL-2" |
56 |
+SLOT="6" |
57 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
58 |
+ |
59 |
+DESCRIPTION="FOSS Java browser plugin and Web Start implementation" |
60 |
+SRC_URI="http://icedtea.classpath.org/download/source/${P}.tar.gz" |
61 |
+HOMEPAGE="http://icedtea.classpath.org" |
62 |
+ |
63 |
+IUSE="build doc +nsplugin" |
64 |
+ |
65 |
+RDEPEND="dev-java/icedtea:${SLOT} |
66 |
+ nsplugin? ( >=net-libs/xulrunner-1.9.1 )" |
67 |
+DEPEND="${RDEPEND}" |
68 |
+ |
69 |
+# a bit of hack so the VM switching is triggered without causing dependency troubles |
70 |
+JAVA_PKG_NV_DEPEND=">=virtual/jdk-1.6" |
71 |
+JAVA_PKG_WANT_SOURCE="1.6" |
72 |
+JAVA_PKG_WANT_TARGET="1.6" |
73 |
+ |
74 |
+pkg_setup() { |
75 |
+ # quite a hack since java-config does not provide a way for a package |
76 |
+ # to limit supported VM's for building and their preferred order |
77 |
+ if [[ -n "${JAVA_PKG_FORCE_VM}" ]]; then |
78 |
+ einfo "Honoring user-set JAVA_PKG_FORCE_VM" |
79 |
+ elif has_version dev-java/icedtea:${SLOT}; then |
80 |
+ JAVA_PKG_FORCE_VM="icedtea${SLOT}" |
81 |
+ else |
82 |
+ JAVA_PKG_FORCE_VM="" |
83 |
+ # don't die just yet if merging a binpkg - bug #258423 |
84 |
+ DIE_IF_NOT_BINPKG=true |
85 |
+ fi |
86 |
+ |
87 |
+ # if the previous failed, don't even run java eclasses pkg_setup |
88 |
+ # as it might also die when no VM is present |
89 |
+ if [[ -n "${JAVA_PKG_FORCE_VM}" ]]; then |
90 |
+ einfo "Forced vm ${JAVA_PKG_FORCE_VM}" |
91 |
+ java-vm-2_pkg_setup |
92 |
+ java-pkg-2_pkg_setup |
93 |
+ fi |
94 |
+} |
95 |
+ |
96 |
+unset_vars() { |
97 |
+ unset JAVA_HOME JDK_HOME CLASSPATH JAVAC JAVACFLAGS |
98 |
+} |
99 |
+ |
100 |
+src_unpack() { |
101 |
+ if [[ -n ${DIE_IF_NOT_BINPKG} ]]; then |
102 |
+ die "Unable to find a supported VM for building" |
103 |
+ fi |
104 |
+ |
105 |
+ default |
106 |
+} |
107 |
+ |
108 |
+src_configure() { |
109 |
+ local vmhome=$(java-config -O) |
110 |
+ |
111 |
+ if use build; then |
112 |
+ icedteadir="${ICEDTEA_BIN_DIR}" |
113 |
+ installdir="/opt/icedtea${SLOT}-web-bin" |
114 |
+ else |
115 |
+ icedteadir="/usr/$(get_libdir)/icedtea${SLOT}" |
116 |
+ installdir="/usr/$(get_libdir)/icedtea${SLOT}-web" |
117 |
+ fi |
118 |
+ |
119 |
+ unset_vars |
120 |
+ |
121 |
+ if use build || [[ ${vmhome} == ${icedteadir} ]] ; then |
122 |
+ VMHANDLE="icedtea${SLOT}" |
123 |
+ else |
124 |
+ die "Unexpected install location of IcedTea${SLOT}" |
125 |
+ fi |
126 |
+ |
127 |
+ einfo "Installing IcedTea-Web in ${installdir}" |
128 |
+ einfo "Installing IcedTea-Web for Icedtea${SLOT} in ${icedteadir}" |
129 |
+ if [ ! -e ${vmhome} ] ; then |
130 |
+ eerror "Could not find JDK install directory ${vmhome}." |
131 |
+ die |
132 |
+ fi |
133 |
+ |
134 |
+ # we need to override all *dir variables that econf sets |
135 |
+ # man page (javaws) is installed directly to icedteadir because it's easier than symlinking, as we don't know |
136 |
+ # the suffix the man page will end up compressed with, anyway |
137 |
+ econf \ |
138 |
+ --prefix=${installdir} --mandir=${icedteadir}/man --infodir=${installdir}/share/info --datadir=${installdir}/share \ |
139 |
+ --with-jdk-home=${icedteadir} \ |
140 |
+ $(use_enable doc docs) \ |
141 |
+ $(use_enable nsplugin plugin) \ |
142 |
+ || die "configure failed" |
143 |
+} |
144 |
+ |
145 |
+src_compile() { |
146 |
+ # we need this to override the src_compile from java-pkg-2 |
147 |
+ default |
148 |
+} |
149 |
+ |
150 |
+src_install() { |
151 |
+ # parallel make problem bug #372235 |
152 |
+ emake -j1 DESTDIR="${D}" install || die "Install failed" |
153 |
+ dodoc AUTHORS README NEWS || die |
154 |
+ |
155 |
+ if use nsplugin; then |
156 |
+ local arch=${ARCH}; |
157 |
+ use x86 && arch=i386; |
158 |
+ install_mozilla_plugin "${installdir}/$(get_libdir)/IcedTeaPlugin.so"; |
159 |
+ fi |
160 |
+ |
161 |
+ for binary in javaws itweb-settings; do |
162 |
+ dosym ${installdir}/bin/${binary} ${icedteadir}/bin/${binary} |
163 |
+ dosym ${installdir}/bin/${binary} ${icedteadir}/jre/bin/${binary} |
164 |
+ done |
165 |
+} |
166 |
+ |
167 |
+pkg_postinst() { |
168 |
+ java-vm_check-nsplugin |
169 |
+ java_mozilla_clean_ |
170 |
+ |
171 |
+ if use nsplugin; then |
172 |
+ elog "The icedtea browser plugin (NPPlugin) can be enabled using eselect java-nsplugin" |
173 |
+ elog "Note that the plugin works only in browsers based on xulrunner-1.9.1 or later" |
174 |
+ elog "such as Firefox 3.5+, Chromium and perhaps some others too." |
175 |
+ fi |
176 |
+} |
177 |
+ |
178 |
+pkg_prerm() { |
179 |
+ # override the java-vm-2 eclass check for removing a system VM, as it doesn't make sense here |
180 |
+ :; |
181 |
+} |
182 |
|
183 |
diff --git a/dev-java/icedtea-web/metadata.xml b/dev-java/icedtea-web/metadata.xml |
184 |
new file mode 100644 |
185 |
index 0000000..08e1286 |
186 |
--- /dev/null |
187 |
+++ b/dev-java/icedtea-web/metadata.xml |
188 |
@@ -0,0 +1,19 @@ |
189 |
+<?xml version="1.0" encoding="UTF-8"?> |
190 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
191 |
+<pkgmetadata> |
192 |
+<herd>java</herd> |
193 |
+<maintainer> |
194 |
+ <email>gnu_andrew@××××××××××.org</email> |
195 |
+ <name>Andrew John Hughes</name> |
196 |
+ <description>Proxy Maintainer</description> |
197 |
+</maintainer> |
198 |
+<maintainer> |
199 |
+ <email>caster@g.o</email> |
200 |
+ <name>Vlastimil Babka</name> |
201 |
+ <description>Commiter (CC me)</description> |
202 |
+</maintainer> |
203 |
+<longdescription>FOSS Java Web Start and optional browser plugin implementation based on NetX, to be used with icedtea.</longdescription> |
204 |
+<use> |
205 |
+ <flag name="nsplugin">Enable the browser plugin (NPPlugin).</flag> |
206 |
+</use> |
207 |
+</pkgmetadata> |