Gentoo Archives: gentoo-commits

From: "Miroslav Sulc (fordfrog)" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/netbeans: ChangeLog netbeans-8.0.ebuild
Date: Sun, 23 Mar 2014 19:01:07
Message-Id: 20140323190103.1C5972004F@flycatcher.gentoo.org
1 fordfrog 14/03/23 19:01:03
2
3 Modified: ChangeLog
4 Added: netbeans-8.0.ebuild
5 Log:
6 dev-util/netbeans: new ebuild for version 8.0
7
8 (Portage version: 2.2.9-r1/cvs/Linux x86_64, signed Manifest commit with key CFE47E2F)
9
10 Revision Changes Path
11 1.176 dev-util/netbeans/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/netbeans/ChangeLog?rev=1.176&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/netbeans/ChangeLog?rev=1.176&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/netbeans/ChangeLog?r1=1.175&r2=1.176
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-util/netbeans/ChangeLog,v
20 retrieving revision 1.175
21 retrieving revision 1.176
22 diff -u -r1.175 -r1.176
23 --- ChangeLog 16 Oct 2013 09:53:39 -0000 1.175
24 +++ ChangeLog 23 Mar 2014 19:01:02 -0000 1.176
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-util/netbeans
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-util/netbeans/ChangeLog,v 1.175 2013/10/16 09:53:39 fordfrog Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-util/netbeans/ChangeLog,v 1.176 2014/03/23 19:01:02 fordfrog Exp $
31 +
32 +*netbeans-8.0 (23 Mar 2014)
33 +
34 + 23 Mar 2014; Miroslav Ć ulc <fordfrog@g.o> +netbeans-8.0.ebuild:
35 + new ebuild for version 8.0
36
37 *netbeans-7.4 (16 Oct 2013)
38
39
40
41
42 1.1 dev-util/netbeans/netbeans-8.0.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/netbeans/netbeans-8.0.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/netbeans/netbeans-8.0.ebuild?rev=1.1&content-type=text/plain
46
47 Index: netbeans-8.0.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-util/netbeans/netbeans-8.0.ebuild,v 1.1 2014/03/23 19:01:02 fordfrog Exp $
52
53 EAPI="4"
54 inherit eutils java-pkg-2 java-ant-2
55
56 DESCRIPTION="Netbeans IDE"
57 HOMEPAGE="http://netbeans.org/"
58 SLOT="8.0"
59 SOURCE_URL="http://download.netbeans.org/netbeans/8.0/final/zip/netbeans-8.0-201403101706-src.zip"
60 PATCHES_URL="http://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.0-build.xml.patch.bz2"
61 L10N_URL="http://dev.gentoo.org/~fordfrog/distfiles/netbeans-l10n-8.0-20140228.tar.bz2"
62 ALL_URLS="${SOURCE_URL} ${PATCHES_URL} ${L10N_URL}"
63 SRC_URI="linguas_af? ( ${ALL_URLS} )
64 linguas_ar? ( ${ALL_URLS} )
65 linguas_bg? ( ${ALL_URLS} )
66 linguas_ca? ( ${ALL_URLS} )
67 linguas_cs? ( ${ALL_URLS} )
68 linguas_de? ( ${ALL_URLS} )
69 linguas_el? ( ${ALL_URLS} )
70 linguas_es? ( ${ALL_URLS} )
71 linguas_fr? ( ${ALL_URLS} )
72 linguas_gl? ( ${ALL_URLS} )
73 linguas_hi_IN? ( ${ALL_URLS} )
74 linguas_id? ( ${ALL_URLS} )
75 linguas_it? ( ${ALL_URLS} )
76 linguas_ja? ( ${ALL_URLS} )
77 linguas_ko? ( ${ALL_URLS} )
78 linguas_lt? ( ${ALL_URLS} )
79 linguas_nl? ( ${ALL_URLS} )
80 linguas_pl? ( ${ALL_URLS} )
81 linguas_pt_BR? ( ${ALL_URLS} )
82 linguas_pt_PT? ( ${ALL_URLS} )
83 linguas_ro? ( ${ALL_URLS} )
84 linguas_ru? ( ${ALL_URLS} )
85 linguas_si? ( ${ALL_URLS} )
86 linguas_sq? ( ${ALL_URLS} )
87 linguas_sr? ( ${ALL_URLS} )
88 linguas_sv? ( ${ALL_URLS} )
89 linguas_ta_IN? ( ${ALL_URLS} )
90 linguas_tl? ( ${ALL_URLS} )
91 linguas_tr? ( ${ALL_URLS} )
92 linguas_vi? ( ${ALL_URLS} )
93 linguas_zh_CN? ( ${ALL_URLS} )
94 linguas_zh_TW? ( ${ALL_URLS} )
95 "
96 LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
97 KEYWORDS="~amd64 ~x86"
98 IUSE_NETBEANS_MODULES="
99 +netbeans_modules_apisupport
100 netbeans_modules_cnd
101 netbeans_modules_dlight
102 netbeans_modules_enterprise
103 netbeans_modules_ergonomics
104 netbeans_modules_extide
105 netbeans_modules_groovy
106 +netbeans_modules_java
107 netbeans_modules_javacard
108 +netbeans_modules_javafx
109 netbeans_modules_mobility
110 netbeans_modules_php
111 +netbeans_modules_profiler
112 netbeans_modules_webcommon
113 +netbeans_modules_websvccommon"
114 IUSE_LINGUAS="
115 linguas_af
116 linguas_ar
117 linguas_bg
118 linguas_ca
119 linguas_cs
120 linguas_de
121 linguas_el
122 linguas_es
123 linguas_fr
124 linguas_gl
125 linguas_hi_IN
126 linguas_id
127 linguas_it
128 linguas_ja
129 linguas_ko
130 linguas_lt
131 linguas_nl
132 linguas_pl
133 linguas_pt_BR
134 linguas_pt_PT
135 linguas_ro
136 linguas_ru
137 linguas_si
138 linguas_sq
139 linguas_sr
140 linguas_sv
141 linguas_ta_IN
142 linguas_tl
143 linguas_tr
144 linguas_vi
145 linguas_zh_CN
146 linguas_zh_TW"
147 IUSE="doc ${IUSE_NETBEANS_MODULES} ${IUSE_LINGUAS}"
148 S="${WORKDIR}"
149
150 DEPEND=">=virtual/jdk-1.7
151 dev-java/javahelp:0"
152 RDEPEND=">=virtual/jdk-1.7
153 ~dev-java/netbeans-harness-${PV}
154 ~dev-java/netbeans-ide-${PV}
155 ~dev-java/netbeans-nb-${PV}
156 ~dev-java/netbeans-platform-${PV}
157 netbeans_modules_apisupport? ( ~dev-java/netbeans-apisupport-${PV} )
158 netbeans_modules_cnd? ( ~dev-java/netbeans-cnd-${PV} )
159 netbeans_modules_dlight? ( ~dev-java/netbeans-dlight-${PV} )
160 netbeans_modules_enterprise? ( ~dev-java/netbeans-enterprise-${PV} )
161 netbeans_modules_ergonomics? ( ~dev-java/netbeans-ergonomics-${PV} )
162 netbeans_modules_extide? ( ~dev-java/netbeans-extide-${PV} )
163 netbeans_modules_groovy? ( ~dev-java/netbeans-groovy-${PV} )
164 netbeans_modules_java? ( ~dev-java/netbeans-java-${PV} )
165 netbeans_modules_javacard? ( ~dev-java/netbeans-javacard-${PV} )
166 netbeans_modules_javafx? ( ~dev-java/netbeans-javafx-${PV} )
167 netbeans_modules_mobility? ( ~dev-java/netbeans-mobility-${PV} )
168 netbeans_modules_php? ( ~dev-java/netbeans-php-${PV} )
169 netbeans_modules_profiler? ( ~dev-java/netbeans-profiler-${PV} )
170 netbeans_modules_webcommon? ( ~dev-java/netbeans-webcommon-${PV} )
171 netbeans_modules_websvccommon? ( ~dev-java/netbeans-websvccommon-${PV} )
172 doc? ( ~dev-java/netbeans-javadoc-${PV} )"
173 JAVA_PKG_BSFIX="off"
174 NBLOCALES=""
175
176 pkg_setup() {
177 for lingua in ${IUSE_LINGUAS} ; do
178 local lang=${lingua/linguas_/}
179
180 if [[ "${lang}" = "ar" ]] ; then
181 lang="ar_EG,ar_SA"
182 elif [[ "${lang}" = "es" ]] ; then
183 lang="es,es_CO"
184 elif [[ "${lang}" = "gl" ]] ; then
185 lang="gl_ES"
186 elif [[ "${lang}" = "id" ]] ; then
187 lang="in_ID"
188 elif [[ "${lang}" = "nl" ]] ; then
189 lang="nl_BE,nl_NL"
190 elif [[ "${lang}" = "tl" ]] ; then
191 lang="fil_PH"
192 fi
193
194 if use ${lingua} ; then
195 if [ -z "${NBLOCALES}" ] ; then
196 NBLOCALES="${lang}"
197 else
198 NBLOCALES="${NBLOCALES},${lang}"
199 fi
200 fi
201 done
202
203 java-pkg-2_pkg_setup
204 }
205
206 src_unpack() {
207 if [ -n "${NBLOCALES}" ] ; then
208 unpack $(basename ${SOURCE_URL})
209 unpack $(basename ${L10N_URL})
210
211 einfo "Deleting bundled jars..."
212 find -name "*.jar" -type f -delete
213
214 unpack netbeans-8.0-build.xml.patch.bz2
215 fi
216 }
217
218 src_prepare() {
219 if [ -n "${NBLOCALES}" ] ; then
220 einfo "Deleting bundled class files..."
221 find -name "*.class" -type f | xargs rm -vf
222
223 epatch netbeans-8.0-build.xml.patch
224
225 # Support for custom patches
226 if [ -n "${NETBEANS80_PATCHES_DIR}" -a -d "${NETBEANS80_PATCHES_DIR}" ] ; then
227 local files=`find "${NETBEANS80_PATCHES_DIR}" -type f`
228
229 if [ -n "${files}" ] ; then
230 einfo "Applying custom patches:"
231
232 for file in ${files} ; do
233 epatch "${file}"
234 done
235 fi
236 fi
237
238 einfo "Symlinking external libraries..."
239 java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
240 fi
241
242 java-pkg-2_src_prepare
243 }
244
245 src_compile() {
246 if [ -n "${NBLOCALES}" ] ; then
247 einfo "Compiling support for locales: ${NBLOCALES}"
248 eant -f nbbuild/build.xml bootstrap || die
249 eant -Dlocales=${NBLOCALES} -Ddist.dir=../nbbuild/netbeans -Dnbms.dir="" -Dnbms.dist.dir="" \
250 -Dpermit.jdk7.builds=true -f l10n/build.xml build || die
251 fi
252 }
253
254 src_install() {
255 if [ -n "${NBLOCALES}" ] ; then
256 pushd "${S}"/nbbuild/netbeans >/dev/null || die
257
258 for cluster in apisupport cnd dlight enterprise ergonomics groovy harness ide java javacard javafx mobility php platform profiler webcommon websvccommon ; do
259 if [ -d "${cluster}" ] ; then
260 insinto /usr/share/netbeans-${cluster}-${SLOT}
261 doins -r ${cluster}/*
262 fi
263 done
264
265 if [ -d nb ] ; then
266 insinto /usr/share/netbeans-nb-${SLOT}/nb
267 doins -r nb/*
268 fi
269
270 popd >/dev/null || die
271 fi
272 }
273
274 pkg_postinst() {
275 if [ -n "${NBLOCALES}" ] ; then
276 einfo "Netbeans automatically starts with the locale you have set in your user profile, if"
277 einfo "the locale is built for Netbeans."
278 einfo "If you want to force specific locale, use --locale argument, for example:"
279 einfo "${PN}-${SLOT} --locale de"
280 einfo "${PN}-${SLOT} --locale pt:BR"
281 fi
282
283 if use linguas_ar ; then
284 einfo
285 einfo "You selected Arabic locale so you can choose either ar:EG or ar:SA variant."
286 fi
287
288 if use linguas_es ; then
289 einfo
290 einfo "You selected Spanish locale so you can choose either es or es:CO variant."
291 fi
292
293 if use linguas_gl ; then
294 einfo
295 einfo "You selected Galician locale which has locale code gl:ES in Netbeans."
296 fi
297
298 if use linguas_id ; then
299 einfo
300 einfo "You selected Indonesian locale which has locale code in:ID in Netbeans."
301 fi
302
303 if use linguas_nl ; then
304 einfo
305 einfo "You selected Dutch locale so you can choose either nl:BE or nl:NL variant."
306 fi
307
308 if use linguas_tl ; then
309 einfo
310 einfo "You selected Tagalog locale which has for Filipino locale code fil:PH in Netbeans."
311 fi
312 }