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