Gentoo Archives: gentoo-commits

From: "Vlastimil Babka (caster)" <caster@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/icedtea-web: ChangeLog icedtea-web-1.1.1.ebuild icedtea-web-1.1.2.ebuild icedtea-web-1.1.ebuild
Date: Tue, 06 Sep 2011 09:57:21
Message-Id: 20110906095709.9C9D42004C@flycatcher.gentoo.org
1 caster 11/09/06 09:57:09
2
3 Modified: ChangeLog icedtea-web-1.1.1.ebuild
4 Added: icedtea-web-1.1.2.ebuild
5 Removed: icedtea-web-1.1.ebuild
6 Log:
7 Version bump. Support building against npapi-sdk instead of xulrunner, bug #381957. Also remove xulrunner from RDEPEND in all older versions, bug #381147.
8
9 (Portage version: 2.2.0_alpha51/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.8 dev-java/icedtea-web/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/icedtea-web/ChangeLog?rev=1.8&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/icedtea-web/ChangeLog?rev=1.8&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/icedtea-web/ChangeLog?r1=1.7&r2=1.8
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-java/icedtea-web/ChangeLog,v
21 retrieving revision 1.7
22 retrieving revision 1.8
23 diff -u -r1.7 -r1.8
24 --- ChangeLog 22 Jul 2011 09:08:37 -0000 1.7
25 +++ ChangeLog 6 Sep 2011 09:57:09 -0000 1.8
26 @@ -1,6 +1,14 @@
27 # ChangeLog for dev-java/icedtea-web
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea-web/ChangeLog,v 1.7 2011/07/22 09:08:37 caster Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea-web/ChangeLog,v 1.8 2011/09/06 09:57:09 caster Exp $
31 +
32 +*icedtea-web-1.1.2 (06 Sep 2011)
33 +
34 + 06 Sep 2011; Vlastimil Babka <caster@g.o> -icedtea-web-1.1.ebuild,
35 + icedtea-web-1.1.1.ebuild, +icedtea-web-1.1.2.ebuild:
36 + Version bump. Support building against npapi-sdk instead of xulrunner, bug
37 + #381957. Also remove xulrunner from RDEPEND in all older versions, bug
38 + #381147.
39
40 *icedtea-web-1.1.1 (22 Jul 2011)
41
42
43
44
45 1.2 dev-java/icedtea-web/icedtea-web-1.1.1.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/icedtea-web/icedtea-web-1.1.1.ebuild?rev=1.2&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/icedtea-web/icedtea-web-1.1.1.ebuild?rev=1.2&content-type=text/plain
49 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/icedtea-web/icedtea-web-1.1.1.ebuild?r1=1.1&r2=1.2
50
51 Index: icedtea-web-1.1.1.ebuild
52 ===================================================================
53 RCS file: /var/cvsroot/gentoo-x86/dev-java/icedtea-web/icedtea-web-1.1.1.ebuild,v
54 retrieving revision 1.1
55 retrieving revision 1.2
56 diff -u -r1.1 -r1.2
57 --- icedtea-web-1.1.1.ebuild 22 Jul 2011 09:08:37 -0000 1.1
58 +++ icedtea-web-1.1.1.ebuild 6 Sep 2011 09:57:09 -0000 1.2
59 @@ -1,6 +1,6 @@
60 # Copyright 1999-2011 Gentoo Foundation
61 # Distributed under the terms of the GNU General Public License v2
62 -# $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 $
63 +# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea-web/icedtea-web-1.1.1.ebuild,v 1.2 2011/09/06 09:57:09 caster Exp $
64 # Build written by Andrew John Hughes (ahughes@××××××.com)
65
66 EAPI="2"
67 @@ -17,9 +17,9 @@
68
69 IUSE="build doc +nsplugin"
70
71 -RDEPEND="dev-java/icedtea:${SLOT}
72 +RDEPEND="dev-java/icedtea:${SLOT}"
73 +DEPEND="${RDEPEND}
74 nsplugin? ( >=net-libs/xulrunner-1.9.1 )"
75 -DEPEND="${RDEPEND}"
76
77 # a bit of hack so the VM switching is triggered without causing dependency troubles
78 JAVA_PKG_NV_DEPEND=">=virtual/jdk-1.6"
79
80
81
82 1.1 dev-java/icedtea-web/icedtea-web-1.1.2.ebuild
83
84 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/icedtea-web/icedtea-web-1.1.2.ebuild?rev=1.1&view=markup
85 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/icedtea-web/icedtea-web-1.1.2.ebuild?rev=1.1&content-type=text/plain
86
87 Index: icedtea-web-1.1.2.ebuild
88 ===================================================================
89 # Copyright 1999-2011 Gentoo Foundation
90 # Distributed under the terms of the GNU General Public License v2
91 # $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea-web/icedtea-web-1.1.2.ebuild,v 1.1 2011/09/06 09:57:09 caster Exp $
92 # Build written by Andrew John Hughes (ahughes@××××××.com)
93
94 EAPI="2"
95
96 inherit autotools eutils java-pkg-2 java-vm-2
97
98 LICENSE="GPL-2 GPL-2-with-linking-exception LGPL-2"
99 SLOT="6"
100 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
101
102 DESCRIPTION="FOSS Java browser plugin and Web Start implementation"
103 SRC_URI="http://icedtea.classpath.org/download/source/${P}.tar.gz"
104 HOMEPAGE="http://icedtea.classpath.org"
105
106 IUSE="build doc +nsplugin"
107
108 RDEPEND="dev-java/icedtea:${SLOT}"
109 DEPEND="${RDEPEND}
110 nsplugin? (
111 || ( net-misc/npapi-sdk
112 >=net-libs/xulrunner-1.9.1 ) )"
113
114 # a bit of hack so the VM switching is triggered without causing dependency troubles
115 JAVA_PKG_NV_DEPEND=">=virtual/jdk-1.6"
116 JAVA_PKG_WANT_SOURCE="1.6"
117 JAVA_PKG_WANT_TARGET="1.6"
118
119 pkg_setup() {
120 # quite a hack since java-config does not provide a way for a package
121 # to limit supported VM's for building and their preferred order
122 if [[ -n "${JAVA_PKG_FORCE_VM}" ]]; then
123 einfo "Honoring user-set JAVA_PKG_FORCE_VM"
124 elif has_version dev-java/icedtea:${SLOT}; then
125 JAVA_PKG_FORCE_VM="icedtea${SLOT}"
126 else
127 JAVA_PKG_FORCE_VM=""
128 # don't die just yet if merging a binpkg - bug #258423
129 DIE_IF_NOT_BINPKG=true
130 fi
131
132 # if the previous failed, don't even run java eclasses pkg_setup
133 # as it might also die when no VM is present
134 if [[ -n "${JAVA_PKG_FORCE_VM}" ]]; then
135 einfo "Forced vm ${JAVA_PKG_FORCE_VM}"
136 java-vm-2_pkg_setup
137 java-pkg-2_pkg_setup
138 fi
139 }
140
141 unset_vars() {
142 unset JAVA_HOME JDK_HOME CLASSPATH JAVAC JAVACFLAGS
143 }
144
145 src_unpack() {
146 if [[ -n ${DIE_IF_NOT_BINPKG} ]]; then
147 die "Unable to find a supported VM for building"
148 fi
149
150 default
151 }
152
153 src_prepare() {
154 epatch "${FILESDIR}"/0001-Support-using-NPAPI-SDK-headers-instead-of-whole-xul.patch
155 eautoreconf
156 }
157
158 src_configure() {
159 local vmhome=$(java-config -O)
160
161 if use build; then
162 icedteadir="${ICEDTEA_BIN_DIR}"
163 installdir="/opt/icedtea${SLOT}-web-bin"
164 else
165 icedteadir="/usr/$(get_libdir)/icedtea${SLOT}"
166 installdir="/usr/$(get_libdir)/icedtea${SLOT}-web"
167 fi
168
169 unset_vars
170
171 if use build || [[ ${vmhome} == ${icedteadir} ]] ; then
172 VMHANDLE="icedtea${SLOT}"
173 else
174 die "Unexpected install location of IcedTea${SLOT}"
175 fi
176
177 einfo "Installing IcedTea-Web in ${installdir}"
178 einfo "Installing IcedTea-Web for Icedtea${SLOT} in ${icedteadir}"
179 if [ ! -e ${vmhome} ] ; then
180 eerror "Could not find JDK install directory ${vmhome}."
181 die
182 fi
183
184 # we need to override all *dir variables that econf sets
185 # man page (javaws) is installed directly to icedteadir because it's easier than symlinking, as we don't know
186 # the suffix the man page will end up compressed with, anyway
187 econf \
188 --prefix=${installdir} --mandir=${icedteadir}/man --infodir=${installdir}/share/info --datadir=${installdir}/share \
189 --with-jdk-home=${icedteadir} \
190 $(use_enable doc docs) \
191 $(use_enable nsplugin plugin) \
192 || die "configure failed"
193 }
194
195 src_compile() {
196 # we need this to override the src_compile from java-pkg-2
197 default
198 }
199
200 src_install() {
201 # parallel make problem bug #372235
202 emake -j1 DESTDIR="${D}" install || die "Install failed"
203 dodoc AUTHORS README NEWS || die
204
205 if use nsplugin; then
206 local arch=${ARCH};
207 use x86 && arch=i386;
208 install_mozilla_plugin "${installdir}/$(get_libdir)/IcedTeaPlugin.so";
209 fi
210
211 for binary in javaws itweb-settings; do
212 dosym ${installdir}/bin/${binary} ${icedteadir}/bin/${binary}
213 dosym ${installdir}/bin/${binary} ${icedteadir}/jre/bin/${binary}
214 done
215 }
216
217 pkg_postinst() {
218 java-vm_check-nsplugin
219 java_mozilla_clean_
220
221 if use nsplugin; then
222 elog "The icedtea browser plugin (NPPlugin) can be enabled using eselect java-nsplugin"
223 elog "Note that the plugin works only in browsers based on xulrunner-1.9.1 or later"
224 elog "such as Firefox 3.5+, Chromium and perhaps some others too."
225 fi
226 }
227
228 pkg_prerm() {
229 # override the java-vm-2 eclass check for removing a system VM, as it doesn't make sense here
230 :;
231 }