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