1 |
fordfrog 11/03/30 10:25:34 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: netbeans-7.0_rc1.ebuild |
5 |
Log: |
6 |
dev-util/netbeans: version bump |
7 |
|
8 |
(Portage version: 2.1.9.45/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.152 dev-util/netbeans/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/netbeans/ChangeLog?rev=1.152&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/netbeans/ChangeLog?rev=1.152&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/netbeans/ChangeLog?r1=1.151&r2=1.152 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-util/netbeans/ChangeLog,v |
20 |
retrieving revision 1.151 |
21 |
retrieving revision 1.152 |
22 |
diff -u -r1.151 -r1.152 |
23 |
--- ChangeLog 23 Jan 2011 00:13:36 -0000 1.151 |
24 |
+++ ChangeLog 30 Mar 2011 10:25:34 -0000 1.152 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for dev-util/netbeans |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-util/netbeans/ChangeLog,v 1.151 2011/01/23 00:13:36 fordfrog Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-util/netbeans/ChangeLog,v 1.152 2011/03/30 10:25:34 fordfrog Exp $ |
30 |
+ |
31 |
+*netbeans-7.0_rc1 (30 Mar 2011) |
32 |
+ |
33 |
+ 30 Mar 2011; Miroslav Šulc <fordfrog@g.o> +netbeans-7.0_rc1.ebuild: |
34 |
+ Added ebuild for netbeans 7.0 rc1. This release is split into separate |
35 |
+ ebuilds for each cluster. Also the way how bundled jars are handled has |
36 |
+ changed to be more transparent and easier to handle. |
37 |
|
38 |
23 Jan 2011; Miroslav Šulc <fordfrog@g.o> netbeans-6.9.1.ebuild: |
39 |
Fixed typo in support for custom patches |
40 |
|
41 |
|
42 |
|
43 |
1.1 dev-util/netbeans/netbeans-7.0_rc1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/netbeans/netbeans-7.0_rc1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/netbeans/netbeans-7.0_rc1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: netbeans-7.0_rc1.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_rc1.ebuild,v 1.1 2011/03/30 10:25:34 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://dlc.sun.com.edgesuite.net/netbeans/7.0/rc1/zip/netbeans-7.0rc1-201103280000-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-20101108.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 |
|
193 |
src_unpack() { |
194 |
if [ -n "${NBLOCALES}" ] ; then |
195 |
unpack $(basename ${SOURCE_URL}) |
196 |
unpack $(basename ${L10N_URL}) |
197 |
|
198 |
einfo "Deleting bundled jars..." |
199 |
find -name "*.jar" -type f -delete |
200 |
|
201 |
unpack netbeans-7.0-build.xml-r1.patch.bz2 |
202 |
fi |
203 |
} |
204 |
|
205 |
src_prepare() { |
206 |
if [ -n "${NBLOCALES}" ] ; then |
207 |
einfo "Deleting bundled class files..." |
208 |
find -name "*.class" -type f | xargs rm -vf |
209 |
|
210 |
epatch netbeans-7.0-build.xml-r1.patch |
211 |
|
212 |
# Support for custom patches |
213 |
if [ -n "${NETBEANS70_PATCHES_DIR}" -a -d "${NETBEANS70_PATCHES_DIR}" ] ; then |
214 |
local files=`find "${NETBEANS70_PATCHES_DIR}" -type f` |
215 |
|
216 |
if [ -n "${files}" ] ; then |
217 |
einfo "Applying custom patches:" |
218 |
|
219 |
for file in ${files} ; do |
220 |
epatch "${file}" |
221 |
done |
222 |
fi |
223 |
fi |
224 |
|
225 |
einfo "Symlinking external libraries..." |
226 |
java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar |
227 |
fi |
228 |
|
229 |
java-pkg-2_src_prepare |
230 |
} |
231 |
|
232 |
src_compile() { |
233 |
if [ -n "${NBLOCALES}" ] ; then |
234 |
einfo "Compiling support for locales: ${NBLOCALES}" |
235 |
eant -f nbbuild/build.xml bootstrap || die |
236 |
eant -Dlocales=${NBLOCALES} -Ddist.dir=../nbbuild/netbeans -Dnbms.dir="" -Dnbms.dist.dir="" \ |
237 |
-f l10n/build.xml build || die |
238 |
fi |
239 |
} |
240 |
|
241 |
src_install() { |
242 |
if [ -n "${NBLOCALES}" ] ; then |
243 |
pushd "${S}"/nbbuild/netbeans >/dev/null || die |
244 |
|
245 |
for cluster in apisupport cnd dlight enterprise ergonomics groovy harness ide java javacard mobility php platform profiler websvccommon ; do |
246 |
if [ -d "${cluster}" ] ; then |
247 |
insinto /usr/share/netbeans-${cluster}-${SLOT} |
248 |
doins -r ${cluster}/* |
249 |
fi |
250 |
done |
251 |
|
252 |
if [ -d nb ] ; then |
253 |
insinto /usr/share/netbeans-nb-${SLOT}/nb |
254 |
doins -r nb/* |
255 |
fi |
256 |
|
257 |
popd >/dev/null || die |
258 |
fi |
259 |
} |
260 |
|
261 |
pkg_postinst() { |
262 |
if [ -n "${NBLOCALES}" ] ; then |
263 |
einfo "Netbeans automatically starts with the locale you have set in your user profile, if" |
264 |
einfo "the locale is built for Netbeans." |
265 |
einfo "If you want to force specific locale, use --locale argument, for example:" |
266 |
einfo "${PN}-${SLOT} --locale de" |
267 |
einfo "${PN}-${SLOT} --locale pt:BR" |
268 |
fi |
269 |
|
270 |
if use linguas_ar ; then |
271 |
einfo |
272 |
einfo "You selected Arabic locale so you can choose either ar:EG or ar:SA variant." |
273 |
fi |
274 |
|
275 |
if use linguas_es ; then |
276 |
einfo |
277 |
einfo "You selected Spanish locale so you can choose either es or es:CO variant." |
278 |
fi |
279 |
|
280 |
if use linguas_gl ; then |
281 |
einfo |
282 |
einfo "You selected Galician locale which has locale code gl:ES in Netbeans." |
283 |
fi |
284 |
|
285 |
if use linguas_id ; then |
286 |
einfo |
287 |
einfo "You selected Indonesian locale which has locale code in:ID in Netbeans." |
288 |
fi |
289 |
|
290 |
if use linguas_nl ; then |
291 |
einfo |
292 |
einfo "You selected Dutch locale so you can choose either nl:BE or nl:NL variant." |
293 |
fi |
294 |
|
295 |
if use linguas_tl ; then |
296 |
einfo |
297 |
einfo "You selected Tagalog locale which has for Filipino locale code fil:PH in Netbeans." |
298 |
fi |
299 |
} |