1 |
patrick 09/04/23 19:13:39 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: gambas-2.11.1.ebuild |
5 |
Log: |
6 |
Bump to 2.11.1. Thanks to Lars Wendler and Boian Berberov for the ebuilds and patches. Fixes #249339 |
7 |
(Portage version: 2.2_rc31/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.54 dev-util/gambas/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/gambas/ChangeLog?rev=1.54&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/gambas/ChangeLog?rev=1.54&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/gambas/ChangeLog?r1=1.53&r2=1.54 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-util/gambas/ChangeLog,v |
19 |
retrieving revision 1.53 |
20 |
retrieving revision 1.54 |
21 |
diff -u -r1.53 -r1.54 |
22 |
--- ChangeLog 30 Mar 2009 15:24:41 -0000 1.53 |
23 |
+++ ChangeLog 23 Apr 2009 19:13:39 -0000 1.54 |
24 |
@@ -1,6 +1,19 @@ |
25 |
# ChangeLog for dev-util/gambas |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-util/gambas/ChangeLog,v 1.53 2009/03/30 15:24:41 loki_val Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-util/gambas/ChangeLog,v 1.54 2009/04/23 19:13:39 patrick Exp $ |
29 |
+ |
30 |
+*gambas-2.11.1 (23 Apr 2009) |
31 |
+ |
32 |
+ 23 Apr 2009; Patrick Lauer <patrick@g.o> |
33 |
+ +files/gambas-2.9.0-app_Makefile.am.patch, |
34 |
+ +files/gambas-2.9.0-comp_Makefile.am.patch, |
35 |
+ +files/gambas-2.9.0-component.am.patch, |
36 |
+ +files/gambas-2.9.0-examples_Makefile.am.patch, |
37 |
+ +files/gambas-2.9.0-help_Makefile.am.patch, |
38 |
+ +files/gambas-2.9.0-main_Makefile.am.patch, |
39 |
+ +files/svn-r1636-xdg-utils.patch, +gambas-2.11.1.ebuild: |
40 |
+ Bump to 2.11.1. Thanks to Lars Wendler and Boian Berberov for the ebuilds |
41 |
+ and patches. Fixes #249339 |
42 |
|
43 |
30 Mar 2009; Peter Alfredsen <loki_val@g.o> gambas-2.7.0.ebuild, |
44 |
gambas-2.8.2.ebuild: |
45 |
|
46 |
|
47 |
|
48 |
1.1 dev-util/gambas/gambas-2.11.1.ebuild |
49 |
|
50 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/gambas/gambas-2.11.1.ebuild?rev=1.1&view=markup |
51 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/gambas/gambas-2.11.1.ebuild?rev=1.1&content-type=text/plain |
52 |
|
53 |
Index: gambas-2.11.1.ebuild |
54 |
=================================================================== |
55 |
# Copyright 1999-2009 Gentoo Foundation |
56 |
# Distributed under the terms of the GNU General Public License v2 |
57 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/gambas/gambas-2.11.1.ebuild,v 1.1 2009/04/23 19:13:39 patrick Exp $ |
58 |
|
59 |
EAPI="2" |
60 |
|
61 |
inherit autotools eutils fdo-mime qt3 multilib toolchain-funcs |
62 |
|
63 |
DESCRIPTION="Gambas is a free development environment based on a Basic interpreter with object extensions" |
64 |
HOMEPAGE="http://gambas.sourceforge.net/" |
65 |
|
66 |
SLOT="2" |
67 |
MY_PN="${PN}${SLOT}" |
68 |
MY_P="${MY_PN}-${PV}" |
69 |
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2" |
70 |
LICENSE="GPL-2" |
71 |
|
72 |
KEYWORDS="~amd64 ~x86" |
73 |
IUSE=" |
74 |
bzip2 corba curl debug doc examples firebird gtk kde mysql odbc opengl pcre |
75 |
pdf postgres qt3 sdl smtp sqlite sqlite3 svg v4l xml zlib |
76 |
" |
77 |
|
78 |
COMMON_DEPEND=" |
79 |
bzip2? ( >=app-arch/bzip2-1.0.5 ) |
80 |
corba? ( >=net-misc/omniORB-4.1.0 ) |
81 |
curl? ( >=net-misc/curl-7.15.5-r1 ) |
82 |
firebird? ( >=dev-libs/ibpp-2.5.3.1 ) |
83 |
gtk? ( |
84 |
>=x11-libs/gtk+-2.10.14 |
85 |
svg? ( >=gnome-base/librsvg-2.16.1-r2 ) |
86 |
) |
87 |
mysql? ( >=virtual/mysql-5.0 ) |
88 |
odbc? ( >=dev-db/unixODBC-2.2.12 ) |
89 |
opengl? ( >=media-libs/mesa-7.0.2 ) |
90 |
pcre? ( >=dev-libs/libpcre-7.6-r1 ) |
91 |
pdf? ( >=app-text/poppler-0.5.3 ) |
92 |
postgres? ( >=virtual/postgresql-base-8.2 ) |
93 |
qt3? ( |
94 |
>=x11-libs/qt-3.2:3 |
95 |
kde? ( >=kde-base/kdelibs-3.5.9-r1:3.5 ) |
96 |
) |
97 |
sdl? ( |
98 |
>=media-libs/sdl-image-1.2.6-r1 |
99 |
>=media-libs/sdl-mixer-1.2.7 |
100 |
) |
101 |
smtp? ( >=dev-libs/glib-2.16.2 ) |
102 |
sqlite? ( =dev-db/sqlite-2* ) |
103 |
sqlite3? ( >=dev-db/sqlite-3.5.6 ) |
104 |
v4l? ( |
105 |
>=media-libs/libpng-1.2.26 |
106 |
>=media-libs/jpeg-6b-r8 |
107 |
) |
108 |
xml? ( |
109 |
>=dev-libs/libxml2-2.6.31 |
110 |
>=dev-libs/libxslt-1.1.22 |
111 |
) |
112 |
zlib? ( >=sys-libs/zlib-1.2.3-r1 ) |
113 |
sys-devel/gcc[libffi] |
114 |
" |
115 |
DEPEND="${COMMON_DEPEND} |
116 |
dev-util/pkgconfig |
117 |
" |
118 |
RDEPEND="${COMMON_DEPEND}" |
119 |
|
120 |
S="${WORKDIR}/${MY_P}" |
121 |
|
122 |
pkg_setup() { |
123 |
# ImageProvider implementers, see .component files for more info |
124 |
if ! { use qt3 || use gtk || use sdl; } ; then |
125 |
use pdf && die "PDF support depends on Qt, GTK or SDL being enabled" |
126 |
use v4l && die "V4L support depends on Qt, GTK or SDL being enabled" |
127 |
fi |
128 |
|
129 |
# OpenGLViewer implementers, see .component files for more info |
130 |
if ! { use qt3 || use sdl; } ; then |
131 |
use opengl && die "OpenGL support depends on Qt or SDL being enabled" |
132 |
fi |
133 |
|
134 |
if ! use gtk; then |
135 |
use svg && die "SVG support depends on GTK being enabled" |
136 |
fi |
137 |
|
138 |
if ! use qt3; then |
139 |
use kde && die "KDE support depends on Qt being enabled" |
140 |
|
141 |
einfo |
142 |
ewarn "The Gambas IDE currently cannot be be build without Qt being enabled." |
143 |
if use gtk; then |
144 |
einfo |
145 |
ewarn "You are using the USE flag gtk, but not qt3. Attempting to use GTK instead" |
146 |
ewarn "of Qt for certain components. This is considered EXPERIMENTAL and the" |
147 |
ewarn "resulting components may not function." |
148 |
fi |
149 |
einfo |
150 |
ebeep 3 |
151 |
fi |
152 |
} |
153 |
|
154 |
my_reduce_eautoreconf() { |
155 |
sed -i -e "/^\(AC\|GB\)_CONFIG_SUBDIRS(${1}[,)]/d" \ |
156 |
configure.ac \ |
157 |
|| die "my_reduce_eautoreconf: sed on configure.ac failed with ${1}" |
158 |
|
159 |
sed -i -e "/^SUBDIRS/s/\ \(@${1}_dir@\|${1}\)//1" \ |
160 |
Makefile.am \ |
161 |
|| die "my_reduce_eautoreconf: sed on Makefile.am failed with ${1}" |
162 |
} |
163 |
|
164 |
my_examine_components() { |
165 |
local comp="gb.*/src/*.component gb.*/src/*/*.component main/lib/*/*.component comp/src/*/.component" |
166 |
|
167 |
# Examine app/src/gambas2/CComponent.class for more info |
168 |
echo |
169 |
einfo "Checking component files ..." |
170 |
einfo |
171 |
elog "The following components are reported stable, but incomplete:" |
172 |
elog "$(grep '^State=1' ${comp} | sed -e 's/.*\(gb\.[^/]*\)[/]\?\.component.*/\1/')" |
173 |
einfo |
174 |
ewarn "The following components are reported unstable:" |
175 |
ewarn "$(grep '^\(State=2\|Alpha\)' ${comp} | sed -e 's/.*\(gb\.[^/]*\)[/]\?\.component.*/\1/')" |
176 |
echo |
177 |
} |
178 |
|
179 |
src_prepare() { |
180 |
if { ! use qt3; } && use gtk; then |
181 |
ebegin "Applying sed no-Qt-use-GTK-workaround-patch (EXPERIMENTAL)" |
182 |
# Gentoo-specific patch/workaround |
183 |
sed -i -e 's/EXPORT = "gb.qt"/EXPORT = "gb.gtk"/' \ |
184 |
main/lib/gui/main.c \ |
185 |
|| die "sed no-Qt-use-GTK-workaround-patch (EXPERIMENTAL)" |
186 |
eend 0 |
187 |
fi |
188 |
|
189 |
ebegin "Applying sed no-automagic-patch" |
190 |
# Gentoo-specific patch |
191 |
sed -i -e 's/gb_enable_\$1=yes/gb_enable_\$1=no/' \ |
192 |
acinclude.m4 \ |
193 |
|| die "sed no-automagic-patch failed" |
194 |
eend 0 |
195 |
|
196 |
# Gentoo-specific patches for libtool compatibility |
197 |
epatch "${FILESDIR}/${PN}-2.7.0-r1-remove-libltdl-from-main.patch" |
198 |
epatch "${FILESDIR}/${PN}-2.8.0-libtool.patch" |
199 |
|
200 |
# Gentoo-specific patch |
201 |
epatch "${FILESDIR}/${PN}-2.8.2-FLAGS.patch" |
202 |
|
203 |
# Replacement for Gentoo-specific gambas-2.5.0-mimetype-registration.patch |
204 |
# submitted upstream |
205 |
epatch "${FILESDIR}/svn-r1636-xdg-utils.patch" |
206 |
|
207 |
epatch "${FILESDIR}/${PN}-2.9.0-app_Makefile.am.patch" |
208 |
epatch "${FILESDIR}/${PN}-2.9.0-comp_Makefile.am.patch" |
209 |
epatch "${FILESDIR}/${PN}-2.9.0-examples_Makefile.am.patch" |
210 |
epatch "${FILESDIR}/${PN}-2.9.0-help_Makefile.am.patch" |
211 |
epatch "${FILESDIR}/${PN}-2.9.0-main_Makefile.am.patch" |
212 |
epatch "${FILESDIR}/${PN}-2.9.0-component.am.patch" |
213 |
|
214 |
ebegin "Applying sed remove-dist_gblib_DATA-patch" |
215 |
# Prevent repeat installation of component files |
216 |
sed -i -e '/^dist_gblib_DATA/d' \ |
217 |
component.am \ |
218 |
main/lib/Makefile.am \ |
219 |
|| die "sed remove-dist_gblib_DATA-patch failed" |
220 |
eend 0 |
221 |
|
222 |
ebegin "Applying sed remove-libtool-patch" |
223 |
# Gentoo-specific patch, may be obsoleted in the future |
224 |
# Remove embedded libtool.m4 file |
225 |
sed -i -e '/[-][*][-]Autoconf[-][*][-]$/,$d' \ |
226 |
acinclude.m4 \ |
227 |
|| die "sed remove-libtool-patch failed" |
228 |
eend 0 |
229 |
|
230 |
my_examine_components |
231 |
|
232 |
ebegin "Removing provided libtool/libltdl" |
233 |
rm -R ./main/libltdl \ |
234 |
&& rm config.guess config.sub install-sh ltmain.sh \ |
235 |
&& rm */config.guess */config.sub */install-sh */ltmain.sh \ |
236 |
|| die "removing libtool failed" |
237 |
eend 0 |
238 |
|
239 |
ebegin "Reducing eautoreconf" |
240 |
# Keep synchronized with myconf in src_compile |
241 |
use bzip2 || my_reduce_eautoreconf bzlib2 |
242 |
use zlib || my_reduce_eautoreconf zlib |
243 |
use mysql || my_reduce_eautoreconf mysql |
244 |
use odbc || my_reduce_eautoreconf odbc |
245 |
use postgres || my_reduce_eautoreconf postgresql |
246 |
use sqlite || my_reduce_eautoreconf sqlite2 |
247 |
use sqlite3 || my_reduce_eautoreconf sqlite3 |
248 |
use firebird || my_reduce_eautoreconf firebird |
249 |
use gtk || my_reduce_eautoreconf gtk |
250 |
use svg || my_reduce_eautoreconf gtksvg |
251 |
use pdf || my_reduce_eautoreconf pdf |
252 |
#net |
253 |
use curl || my_reduce_eautoreconf curl |
254 |
use smtp || my_reduce_eautoreconf smtp |
255 |
use pcre || my_reduce_eautoreconf pcre |
256 |
use qt3 || my_reduce_eautoreconf qt |
257 |
my_reduce_eautoreconf qte |
258 |
use kde || my_reduce_eautoreconf kde |
259 |
use sdl || my_reduce_eautoreconf sdl |
260 |
use sdl || my_reduce_eautoreconf sdlsound |
261 |
use xml || my_reduce_eautoreconf xml |
262 |
use v4l || my_reduce_eautoreconf v4l |
263 |
#crypt |
264 |
use opengl || my_reduce_eautoreconf opengl |
265 |
use corba || my_reduce_eautoreconf corba |
266 |
{ use qt3 || use gtk || \ |
267 |
use sdl; } || my_reduce_eautoreconf image |
268 |
use qt3 || my_reduce_eautoreconf desktop |
269 |
# This may work in the future, but it does not work now. |
270 |
# { use qt3 || \ |
271 |
# use gtk; } || my_reduce_eautoreconf desktop |
272 |
|
273 |
use doc || my_reduce_eautoreconf help |
274 |
use examples || my_reduce_eautoreconf examples |
275 |
eend 0 |
276 |
|
277 |
eautoreconf || die "eautoreconf failed" |
278 |
} |
279 |
|
280 |
src_configure() { |
281 |
local myconf=" |
282 |
$(use_enable bzip2 bzlib2) |
283 |
$(use_enable zlib) |
284 |
$(use_enable mysql) |
285 |
$(use_enable odbc) |
286 |
$(use_enable postgres postgresql) |
287 |
$(use_enable sqlite sqlite2) |
288 |
$(use_enable sqlite3) |
289 |
$(use_enable firebird) |
290 |
$(use_enable gtk) |
291 |
$(use_enable svg gtksvg) |
292 |
$(use_enable pdf) |
293 |
--enable-net |
294 |
$(use_enable curl) |
295 |
$(use_enable smtp) |
296 |
$(use_enable pcre) |
297 |
$(use_enable qt3 qt) |
298 |
--disable-qte |
299 |
$(use_enable kde) |
300 |
$(use_enable sdl) |
301 |
$(use_enable sdl sdlsound) |
302 |
$(use_enable xml) |
303 |
$(use_enable v4l) |
304 |
--enable-crypt |
305 |
$(use_enable opengl) |
306 |
$(use_enable corba) |
307 |
$( { use qt3 || use gtk || use sdl; } \ |
308 |
&& echo '--enable-image' || echo '--disable-image') |
309 |
$(use_enable qt3 desktop) |
310 |
" |
311 |
# This may work in the future, but it does not work now. |
312 |
# $( { use qt3 || use gtk; } && echo '--enable-desktop' || echo '--disable-desktop')" |
313 |
|
314 |
myconf="${myconf} |
315 |
--enable-intl |
316 |
--enable-conv |
317 |
--enable-ffi |
318 |
--with-ffi-libraries=/usr/$(get_libdir)/gcc/${CHOST}/$(gcc-fullversion) |
319 |
--enable-preloading |
320 |
--disable-profiling |
321 |
$(use_enable debug) |
322 |
$(use_enable xml xslt) |
323 |
" |
324 |
if use qt3; then |
325 |
myconf="${myconf} |
326 |
$(use_enable opengl qtopengl) |
327 |
--enable-qt-translation |
328 |
" |
329 |
if use kde; then |
330 |
myconf="${myconf} |
331 |
--with-kde-includes=/usr/kde/3.5/include |
332 |
--with-kde-libraries=/usr/kde/3.5/$(get_libdir) |
333 |
" |
334 |
fi |
335 |
fi |
336 |
|
337 |
# --without-xdg-utils comes from svn-r1636-xdg-utils.patch |
338 |
econf --config-cache ${myconf} --without-xdg-utils \ |
339 |
--docdir=/usr/share/doc/${PF} --htmldir=/usr/share/doc/${PF}/html |
340 |
} |
341 |
|
342 |
my_dekstop_and_icon() { |
343 |
# USAGE: <executable> <name> <category> <icon_source_file> <icon_target_dir> |
344 |
local icon="${1}.png" |
345 |
|
346 |
make_desktop_entry "${1}" "${2}" "${5}/${icon}" "${3}" \ |
347 |
|| die "make_desktop_entry failed for ${1}" |
348 |
|
349 |
insinto ${5} |
350 |
newins ${4} ${icon} || die "newins failed for ${1}" |
351 |
} |
352 |
|
353 |
src_compile() { |
354 |
emake LIBTOOLFLAGS="--quiet" || die "emake failed" |
355 |
} |
356 |
|
357 |
src_install() { |
358 |
emake DESTDIR="${D}" LIBTOOLFLAGS="--quiet" install -j1 || die "emake install failed" |
359 |
|
360 |
dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed" |
361 |
newdoc gb.net/src/doc/README gb.net-README || die "newdoc failed" |
362 |
newdoc gb.net/src/doc/changes.txt gb.net-ChangeLog || die "newdoc failed" |
363 |
use pcre && { newdoc gb.pcre/src/README gb.pcre-README || die "newdoc failed"; } |
364 |
|
365 |
if { use qt3 || use gtk; } ; then |
366 |
# Remove qt3 test when it works without it |
367 |
use qt3 && \ |
368 |
my_dekstop_and_icon \ |
369 |
"${MY_PN}" "Gambas" "Development" \ |
370 |
"app/src/${MY_PN}/img/logo/new-logo.png" \ |
371 |
"/usr/share/icons/hicolor/128x128/apps" |
372 |
|
373 |
my_dekstop_and_icon \ |
374 |
"${MY_PN}-database-manager" "Gambas Database Manager" "Development" \ |
375 |
"app/src/${MY_PN}-database-manager/img/logo/logo-128.png" \ |
376 |
"/usr/share/icons/hicolor/128x128/apps" |
377 |
|
378 |
insinto /usr/share/icons/hicolor/64x64/mimetypes |
379 |
doins app/mime/*.png main/mime/*.png || die "doins failed" |
380 |
|
381 |
insinto /usr/share/mime/application |
382 |
doins app/mime/*.xml main/mime/*.xml || die "doins failed" |
383 |
fi |
384 |
|
385 |
use doc && { dosym "/usr/share/${MY_PN}/help" "/usr/share/doc/${PF}/html" \ |
386 |
|| die "dosym failed"; } |
387 |
} |
388 |
|
389 |
my_fdo_update() { |
390 |
{ use qt3 || use gtk; } && fdo-mime_desktop_database_update |
391 |
fdo-mime_mime_database_update |
392 |
} |
393 |
|
394 |
pkg_postinst() { |
395 |
my_fdo_update |
396 |
} |
397 |
|
398 |
pkg_postrm() { |
399 |
my_fdo_update |
400 |
} |