summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Olexa <darkside@gentoo.org>2008-09-14 18:21:21 +0000
committerJeremy Olexa <darkside@gentoo.org>2008-09-14 18:21:21 +0000
commitb224414ccb641bff9f83bc10bdf5b1cc746f6ebf (patch)
tree8647433b7b975ecf97c40001fd5e7504db507c5c /dev-util/gambas
parentForgot to drop x86-fbsd (for metacity-python). (diff)
downloadhistorical-b224414ccb641bff9f83bc10bdf5b1cc746f6ebf.tar.gz
historical-b224414ccb641bff9f83bc10bdf5b1cc746f6ebf.tar.bz2
historical-b224414ccb641bff9f83bc10bdf5b1cc746f6ebf.zip
(non maintainer commit) version bump dev-util/gambas. ebuild + patches submitted by Boian Berberov in bug #229821
Package-Manager: portage-2.2_rc8/cvs/Linux 2.6.26-gentoo x86_64
Diffstat (limited to 'dev-util/gambas')
-rw-r--r--dev-util/gambas/ChangeLog17
-rw-r--r--dev-util/gambas/Manifest14
-rw-r--r--dev-util/gambas/files/gambas-2.7.0-r1-gb.qt-QT_LDFLAGS.patch33
-rw-r--r--dev-util/gambas/files/gambas-2.7.0-r1-help-GB_INIT_SHORT.patch11
-rw-r--r--dev-util/gambas/files/gambas-2.7.0-r1-remove-libltdl-from-main.patch20
-rw-r--r--dev-util/gambas/files/gambas-2.8.0-help-path.patch17
-rw-r--r--dev-util/gambas/files/gambas-2.8.0-libtool.patch11
-rw-r--r--dev-util/gambas/files/gambas-2.8.0-sdl-component-name.patch19
-rw-r--r--dev-util/gambas/files/gambas-2.8.2-FLAGS.patch39
-rw-r--r--dev-util/gambas/files/gambas-2.8.2-app-Makefile-install.patch43
-rw-r--r--dev-util/gambas/files/gambas-2.8.2-comp-Makefile-install.patch27
-rw-r--r--dev-util/gambas/files/gambas-2.8.2-examples-Makefile-install.patch28
-rw-r--r--dev-util/gambas/gambas-2.8.2.ebuild323
13 files changed, 600 insertions, 2 deletions
diff --git a/dev-util/gambas/ChangeLog b/dev-util/gambas/ChangeLog
index 08e27f340c1f..77ce7ba655a8 100644
--- a/dev-util/gambas/ChangeLog
+++ b/dev-util/gambas/ChangeLog
@@ -1,6 +1,21 @@
# ChangeLog for dev-util/gambas
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/gambas/ChangeLog,v 1.47 2008/07/27 21:33:25 carlo Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/gambas/ChangeLog,v 1.48 2008/09/14 18:21:20 darkside Exp $
+
+*gambas-2.8.2 (14 Sep 2008)
+
+ 14 Sep 2008; Jeremy Olexa <darkside@gentoo.org>
+ +files/gambas-2.7.0-r1-gb.qt-QT_LDFLAGS.patch,
+ +files/gambas-2.7.0-r1-help-GB_INIT_SHORT.patch,
+ +files/gambas-2.7.0-r1-remove-libltdl-from-main.patch,
+ +files/gambas-2.8.0-help-path.patch, +files/gambas-2.8.0-libtool.patch,
+ +files/gambas-2.8.0-sdl-component-name.patch,
+ +files/gambas-2.8.2-FLAGS.patch,
+ +files/gambas-2.8.2-app-Makefile-install.patch,
+ +files/gambas-2.8.2-comp-Makefile-install.patch,
+ +files/gambas-2.8.2-examples-Makefile-install.patch, +gambas-2.8.2.ebuild:
+ (non maintainer commit) version bump dev-util/gambas. ebuild + patches
+ submitted by Boian Berberov in bug #229821
27 Jul 2008; Carsten Lohrke <carlo@gentoo.org> gambas-1.0.14.ebuild,
gambas-1.0.16.ebuild, gambas-1.0.17.ebuild, gambas-1.9.23.ebuild,
diff --git a/dev-util/gambas/Manifest b/dev-util/gambas/Manifest
index 306747c3eea5..48ec62035a44 100644
--- a/dev-util/gambas/Manifest
+++ b/dev-util/gambas/Manifest
@@ -6,15 +6,27 @@ AUX gambas-2.5.0-gcc-libffi-path.patch 386 RMD160 c9778522f499668e65c429a25b6f5e
AUX gambas-2.5.0-mimetype-registration.patch 1446 RMD160 68ca3eeb6b9fa42dc616d4f2e54dcc0b2adafd25 SHA1 36d0b6f9de4653db8b4da98691c7616fc30d96df SHA256 adfbd5c849638f0e5cb2925953c7c4b97c21031f275a464e10225fc16941833e
AUX gambas-2.5.0-sdl.patch 624 RMD160 c25679b20dae844eec8d397048cf971cc8752a94 SHA1 53f9f4fc5a38003f06951f2dce37ab8a31dc32a2 SHA256 150a584757f42fa0a49bcd6149c746d354d39d8e82c516d2323d6e1440b572b4
AUX gambas-2.7.0-help-path.patch 915 RMD160 f36967a64843c34a97d5a7d55fd4bfd2ae242b03 SHA1 a3c9862511fcd691dd4fe40d367629c21dd7a06d SHA256 d579cd0ee82d9e92c06895f9bced716b4638da8e06911244503be3fbe0b02d24
+AUX gambas-2.7.0-r1-gb.qt-QT_LDFLAGS.patch 1015 RMD160 c782e6a497edefada755d665bb1d186d0176706a SHA1 2396bae88181e964b0cf6ee994bb175e3410d879 SHA256 13a4ba41402ddc205e5402ccc50b5cb4dad0c48f6265470481270547b87c715d
+AUX gambas-2.7.0-r1-help-GB_INIT_SHORT.patch 220 RMD160 aa0a5ddd845abda166fef3a8cc743176c126979c SHA1 d6b64e392d53c7063bfaae551e93f1bca4f360da SHA256 79d5f448ae168e3214747c4e7421a0833a5c05e2ec879cbf2efaa658aa65a7a8
+AUX gambas-2.7.0-r1-remove-libltdl-from-main.patch 507 RMD160 000b176579625e2511786afbc515c22e575fb5fe SHA1 b0474fd354e4fa8ee9a4fdd5779603bb2ae8e1ba SHA256 e9da8b3abc46ee6b115a946013ad2e1ec8c53e33fe561ae7530abed96e87bcc5
+AUX gambas-2.8.0-help-path.patch 782 RMD160 a01be3e65e62b1cbcd5134b552cf0311cbf64ea1 SHA1 c3187e8e006d8626e91e8701aeb3aa224c0c172c SHA256 94ca8c0e1647728d8e80912fe089703e38f515c05f956ed33461c298c5e81825
+AUX gambas-2.8.0-libtool.patch 216 RMD160 90b05728a8970fdf410cd691cdf62b1fd2d0c4cc SHA1 2c7ba31f58efad80822a8a22398f5d4474c1bcfa SHA256 460daf39e9ef748e3cc23ddcf52172ed318c241399f1616ac1d68590329911bb
+AUX gambas-2.8.0-sdl-component-name.patch 1237 RMD160 1bde3b1d46e15be660448e8c3ee37366b2741fcd SHA1 e0da44fd1e444876de3ca9e441005abc3d1f83eb SHA256 fb8b4a216d88b4c230450843561fb15f43236343fd00bdf7a236322e91763732
+AUX gambas-2.8.2-FLAGS.patch 1031 RMD160 50afdc80666a1d71ac484535d5bb0bd46ee638e1 SHA1 f9596f2af645939ae2d4e498dd64e82a3cef8854 SHA256 6622ce7bcc989735eccff7e6681754f7146b55e53a33bbbb37854a139f2f001e
+AUX gambas-2.8.2-app-Makefile-install.patch 1745 RMD160 d69c0e254626f5999c479ff98b57ac36e89ab16c SHA1 37c4e0a64b1b3c2fd973979fdb8978b48ff91397 SHA256 16303ce5d4f3c1dbfafb915eae673d0e815b1b0144db59d6e7c9f41a99bfbb25
+AUX gambas-2.8.2-comp-Makefile-install.patch 1134 RMD160 91e90ada77112ed619593c978b52149974f118be SHA1 f6065ff340493deb50f9e84ac12bbf3fd9d1d835 SHA256 9b2f64404f2ffabc50a6cb00887aaf4da658c26e94c1b37ac11560f83f926a35
+AUX gambas-2.8.2-examples-Makefile-install.patch 1042 RMD160 7d3fc04b5c0a91cfc96559f69ef990ee8bae5a0f SHA1 6e5c5151615f9938fe912846ea5c2e3b2147c0a8 SHA256 bbe1fb7cc299547fd8c121a7e75187a135c22d3687207990c1658f953c5e77ab
DIST gambas-1.0.14.tar.bz2 4504399 RMD160 613db5727c92fe160de14e269f16a783ea2978b3 SHA1 7967e1b271d1ba29ff3f92261333e241cdf9b9f3 SHA256 5e81a4492a0e5499323fdfcd104129d4a1935f695b95775f0d449be9528608c3
DIST gambas-1.0.16.tar.bz2 4502796 RMD160 5c4f929af2f937f78703b82cb6c7280514438384 SHA1 56e7721da84b00f27b9e1462034720213f22859e SHA256 5c06c97f1c3d57e0dcefc0074eaf30b2f93e8dcaa06611200632ce1d07e4644a
DIST gambas-1.0.17.tar.bz2 4503254 RMD160 41dec84b1ff386695024852c0d2aae7008c9cafc SHA1 7e9ea626718c763fde1718b854e47feed3b01b38 SHA256 a3cc619033f1a917b5e258dbb21b0abb3d365b19f1e37f2343820f8870c7ed80
DIST gambas2-1.9.23.tar.bz2 8213765 RMD160 ddad436e17bb959ce7e26a4284cc0e9b65b3ea16 SHA1 baa8f8667f5ec9e386ffe522b959345944443b2c SHA256 ca049da1accf363165403b73f5639ebe258fd3e8996827ec671dcdac5f74e57e
DIST gambas2-2.7.0.tar.bz2 12617961 RMD160 80ac7a6f2f4f76b90001e9e3e9a5362c48a7a9c1 SHA1 1b886ab838d8294a4bbfe3b9206c708b76ddfa9a SHA256 b6fb6bbcb144ce3b73e8b108287029b8916f851ff17da601a5bb7f0a9331f6a2
+DIST gambas2-2.8.2.tar.bz2 12596906 RMD160 bd2fe01e1ff1850851e2a381194766aa70526298 SHA1 f5b1870b433c4878c79b513ed7c97ff850584266 SHA256 5fa736be967db5f3de15abcfb0b8d5889fbcb4efe188915dd504f5bb4aa869fd
EBUILD gambas-1.0.14.ebuild 2217 RMD160 793776b66b65430cab52861eb068ab3e80fe4017 SHA1 e84cf40c08f1817c885cde144028d86a7af2fa98 SHA256 e25368db2d0bec9e1236fd3f4c99558d8fed89ebd1bdc88475910fd4eb1ac2ca
EBUILD gambas-1.0.16.ebuild 2216 RMD160 68de3081492ab1193de6892e76ba41efab7f67ed SHA1 a581a39b66bcad79cbd16e50d696f6a5786d0a0f SHA256 7fb7eda79712f53098a74d6c7a7d186042f0bb5ecb8916ed2fcc74c3f734b804
EBUILD gambas-1.0.17.ebuild 2216 RMD160 b6c89319492b0eee2c49abec7349e57b5b6cdcc3 SHA1 9f12d08bc0de0ca5faf801ea090f1e329a6ccaf5 SHA256 71bf07b26e35a226f9e57818b76ee2cf56b13407b708ac02236964ebf9173cf1
EBUILD gambas-1.9.23.ebuild 3025 RMD160 925264035e8dc890fe7890313b40e741bc8c15fd SHA1 c89b0cb7a76045ab548fc9b136056aaf06b0ce9f SHA256 f6a8ed01b843d1264d448997483474b7e731ae2742ef41b11677b30dde787905
EBUILD gambas-2.7.0.ebuild 3997 RMD160 fd3f46f385b6e74db259af663105341e1fe9877d SHA1 011a94b3fa9053e81bd410b2e57652b06613c90c SHA256 0d1a5155beae86c4534890bbadbd7eda792afd4b82e4d3162b27d1c3efe3f5a8
-MISC ChangeLog 8773 RMD160 c41b5f46edc89159f75fb4b88fbf986e2385b8b4 SHA1 9b6fdd96ee6ba21f4f8bc6025a8d78cab6d05609 SHA256 d008189d1391d361ce6bcd6faee1d33add5973d4b2b11a3344bc6dfd9db895e2
+EBUILD gambas-2.8.2.ebuild 10126 RMD160 ed7ada679f53d21f749eae96fa42d6751ab0d710 SHA1 d9d3c09c73599a47503b304f33968e42035643ee SHA256 3ef43cc2d5b9d28edbe0101c31e438ec056ff1d2a6b640c33ebabd63911f2e62
+MISC ChangeLog 9466 RMD160 afbeb9e042a28f252ee56b376d58358072476252 SHA1 c2d57f3a4fd0a9fc86870068a28920c1709d4fdd SHA256 34133ce0a3116d1496833e05cac39f3a95d71e55b9f99fe1c68c10a1ae80802b
MISC metadata.xml 387 RMD160 853bcfba2413158ab1e8e1067b04b85fdf80745d SHA1 107b0ee68139f955029d12ac7c6101ab52d9ffce SHA256 704a6b0d9e9b4e814b76161d11bb1669d85493e6a358537fd1f1c7682e440998
diff --git a/dev-util/gambas/files/gambas-2.7.0-r1-gb.qt-QT_LDFLAGS.patch b/dev-util/gambas/files/gambas-2.7.0-r1-gb.qt-QT_LDFLAGS.patch
new file mode 100644
index 000000000000..7241d5df63ce
--- /dev/null
+++ b/dev-util/gambas/files/gambas-2.7.0-r1-gb.qt-QT_LDFLAGS.patch
@@ -0,0 +1,33 @@
+--- gb.qt/src/Makefile.am.orig 2008-07-22
++++ gb.qt/src/Makefile.am 2008-07-22
+@@ -10,7 +10,7 @@
+ gblib_LTLIBRARIES = gb.qt.la
+
+ gb_qt_la_LIBADD = @QT_LIB@
+-gb_qt_la_LDFLAGS = -module @LD_FLAGS@ @QT_LDFLAGS@
++gb_qt_la_LDFLAGS = -module @LD_FLAGS@
+ gb_qt_la_CXXFLAGS = -DGB_QT_COMPONENT $(AM_CFLAGS)
+
+ gb_qt_la_SOURCES = \
+--- gb.qt/src/ext/Makefile.am.orig 2008-07-22
++++ gb.qt/src/ext/Makefile.am 2008-07-22
+@@ -7,7 +7,7 @@
+ gblib_LTLIBRARIES = gb.qt.ext.la
+
+ gb_qt_ext_la_LIBADD = @QT_LIB@
+-gb_qt_ext_la_LDFLAGS = -module @LD_FLAGS@ @QT_LDFLAGS@
++gb_qt_ext_la_LDFLAGS = -module @LD_FLAGS@
+
+ gb_qt_ext_la_SOURCES = \
+ main.h main.cpp \
+--- gb.qt/src/opengl/Makefile.am.orig 2008-07-22
++++ gb.qt/src/opengl/Makefile.am 2008-07-22
+@@ -7,7 +7,7 @@
+ gblib_LTLIBRARIES = gb.qt.opengl.la
+
+ gb_qt_opengl_la_LIBADD = @QT_LIB@ @QTOPENGL_LIB@
+-gb_qt_opengl_la_LDFLAGS = -module @LD_FLAGS@ @QT_LDFLAGS@ @QTOPENGL_LDFLAGS@
++gb_qt_opengl_la_LDFLAGS = -module @LD_FLAGS@
+
+ gb_qt_opengl_la_SOURCES = \
+ main.h main.cpp \
diff --git a/dev-util/gambas/files/gambas-2.7.0-r1-help-GB_INIT_SHORT.patch b/dev-util/gambas/files/gambas-2.7.0-r1-help-GB_INIT_SHORT.patch
new file mode 100644
index 000000000000..cecfbbb6c61c
--- /dev/null
+++ b/dev-util/gambas/files/gambas-2.7.0-r1-help-GB_INIT_SHORT.patch
@@ -0,0 +1,11 @@
+--- help/configure.ac.orig 2008-07-21
++++ help/configure.ac 2008-07-21
+@@ -1,7 +1,7 @@
+ dnl ---- configure.ac for documentation
+
+ AC_INIT(configure.ac)
+-GB_INIT(help)
++GB_INIT_SHORT(help)
+
+ dnl ---- Create makefiles
+
diff --git a/dev-util/gambas/files/gambas-2.7.0-r1-remove-libltdl-from-main.patch b/dev-util/gambas/files/gambas-2.7.0-r1-remove-libltdl-from-main.patch
new file mode 100644
index 000000000000..9056bab092e6
--- /dev/null
+++ b/dev-util/gambas/files/gambas-2.7.0-r1-remove-libltdl-from-main.patch
@@ -0,0 +1,20 @@
+--- main/configure.ac.orig 2008-07-21
++++ main/configure.ac 2008-07-21
+@@ -1,7 +1,6 @@
+ dnl ---- configure.ac for main programs
+
+ AC_INIT(configure.ac)
+-AC_CONFIG_SUBDIRS(libltdl)
+ GB_INIT(main)
+ AC_PROG_LIBTOOL
+ AM_PROG_CC_C_O
+--- main/Makefile.am.orig 2008-07-21
++++ main/Makefile.am 2008-07-21
+@@ -1,6 +1,6 @@
+ ## Process this file with automake to produce Makefile.in
+
+-SUBDIRS = libltdl gbx gbc lib share
++SUBDIRS = gbx gbc lib share
+ EXTRA_DIST = TODO reconf spec README mime
+
+ install-exec-local:
diff --git a/dev-util/gambas/files/gambas-2.8.0-help-path.patch b/dev-util/gambas/files/gambas-2.8.0-help-path.patch
new file mode 100644
index 000000000000..4f13c36b53cf
--- /dev/null
+++ b/dev-util/gambas/files/gambas-2.8.0-help-path.patch
@@ -0,0 +1,17 @@
+--- help/Makefile.am.orig 2008-08-19
++++ help/Makefile.am 2008-08-19
+@@ -4,10 +4,11 @@
+ install-exec-local:
+ @echo
+ @echo "Installing the gambas help files..."
+- @$(INSTALL) -d $(DESTDIR)$(gbdatadir)/help
+ @rm -rf $(DESTDIR)$(gbdatadir)/help
+- @cp -R $(srcdir)/help $(DESTDIR)$(gbdatadir)
+- @(cd $(DESTDIR)$(gbdatadir)/help; tar xfz $(DESTDIR)$(gbdatadir)/help/help.tar.gz; $(LN_S) help/img img; $(LN_S) help/image image; rm -f Makefile*)
++ @$(INSTALL) -d $(DESTDIR)$(gbdatadir)/help
++ @cp -R $(srcdir)/help/{tree,*.css,*.png} $(DESTDIR)$(gbdatadir)/help
++ @tar xfz $(srcdir)/help/help.tar.gz -C $(DESTDIR)$(gbdatadir)/help
++ @(cd $(DESTDIR)$(gbdatadir)/help; ln -s help/img img; ln -s help/image image; rm -f Makefile*)
+
+ uninstall-local:
+ @rm -rf $(DESTDIR)$(gbdatadir)/help
diff --git a/dev-util/gambas/files/gambas-2.8.0-libtool.patch b/dev-util/gambas/files/gambas-2.8.0-libtool.patch
new file mode 100644
index 000000000000..08a1706f8f64
--- /dev/null
+++ b/dev-util/gambas/files/gambas-2.8.0-libtool.patch
@@ -0,0 +1,11 @@
+--- acinclude.m4.orig 2008-08-18
++++ acinclude.m4 2008-08-18
+@@ -83,7 +83,7 @@
+ AC_DEFUN([GB_LIBTOOL],
+ [
+ AC_LIBTOOL_DLOPEN
+- AC_LIBLTDL_CONVENIENCE
++ AC_WITH_LTDL
+ AC_LIBTOOL_WIN32_DLL
+ AC_DISABLE_STATIC
+
diff --git a/dev-util/gambas/files/gambas-2.8.0-sdl-component-name.patch b/dev-util/gambas/files/gambas-2.8.0-sdl-component-name.patch
new file mode 100644
index 000000000000..2aa86a45ced5
--- /dev/null
+++ b/dev-util/gambas/files/gambas-2.8.0-sdl-component-name.patch
@@ -0,0 +1,19 @@
+--- configure.ac.orig 2008-08-19
++++ configure.ac 2008-08-19
+@@ -28,7 +28,7 @@
+ GB_CONFIG_SUBDIRS(qte, gb.qte)
+ GB_CONFIG_SUBDIRS(kde, gb.qt.kde)
+ GB_CONFIG_SUBDIRS(sdl, gb.sdl)
+-GB_CONFIG_SUBDIRS(sdlsound, gb.sdl.sound)
++GB_CONFIG_SUBDIRS(sdl_sound, gb.sdl.sound)
+ GB_CONFIG_SUBDIRS(xml, gb.xml)
+ GB_CONFIG_SUBDIRS(v4l, gb.v4l)
+ GB_CONFIG_SUBDIRS(crypt, gb.crypt)
+--- Makefile.am.orig 2008-08-19
++++ Makefile.am 2008-08-19
+@@ -1,4 +1,4 @@
+-SUBDIRS = main @bzlib2_dir@ @zlib_dir@ @mysql_dir@ @odbc_dir@ @postgresql_dir@ @sqlite3_dir@ @sqlite2_dir@ @firebird_dir@ @gtk_dir@ @net_dir@ @curl_dir@ @smtp_dir@ @pcre_dir@ @qt_dir@ @qte_dir@ @kde_dir@ @sdl_dir@ @sdlsound_dir@ @xml_dir@ @v4l_dir@ @crypt_dir@ @opengl_dir@ @corba_dir@ @pdf_dir@ @gtksvg_dir@ @image_dir@ @desktop_dir@ comp app help examples
++SUBDIRS = main @bzlib2_dir@ @zlib_dir@ @mysql_dir@ @odbc_dir@ @postgresql_dir@ @sqlite3_dir@ @sqlite2_dir@ @firebird_dir@ @gtk_dir@ @net_dir@ @curl_dir@ @smtp_dir@ @pcre_dir@ @qt_dir@ @qte_dir@ @kde_dir@ @sdl_dir@ @sdl_sound_dir@ @xml_dir@ @v4l_dir@ @crypt_dir@ @opengl_dir@ @corba_dir@ @pdf_dir@ @gtksvg_dir@ @image_dir@ @desktop_dir@ comp app help examples
+
+ EXTRA_DIST = component.am README README.*[^~] TEMPLATE reconf reconf-all
+
diff --git a/dev-util/gambas/files/gambas-2.8.2-FLAGS.patch b/dev-util/gambas/files/gambas-2.8.2-FLAGS.patch
new file mode 100644
index 000000000000..b0fb3736fcaf
--- /dev/null
+++ b/dev-util/gambas/files/gambas-2.8.2-FLAGS.patch
@@ -0,0 +1,39 @@
+--- acinclude.m4.orig 2008-08-31
++++ acinclude.m4 2008-08-31
+@@ -194,17 +194,6 @@
+
+ AM_CONDITIONAL(DEBUG, test "$gambas_debug" = yes)
+
+- dnl ---- optimization option
+-
+- AC_ARG_ENABLE(
+- optimization,
+- [ --enable-optimization compile with optimizations (default: yes)],
+- gambas_optimization=$enableval,
+- gambas_optimization=yes
+- )
+-
+- AM_CONDITIONAL(OPTIMIZE, test "$gambas_optimization" = yes)
+-
+ AM_CFLAGS="$AM_CFLAGS -pipe -Wall -Wno-unused-value -fsigned-char"
+ AM_CXXFLAGS="$AM_CXXFLAGS -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char"
+
+@@ -229,18 +218,7 @@
+
+ dnl ---- Optimization flags
+
+- if test "x$gambas_optimization" = "xyes"; then
+ AM_CFLAGS_OPT="$AM_CFLAGS -O3"
+- AM_CFLAGS="$AM_CFLAGS -Os"
+- AM_CXXFLAGS="$AM_CXXFLAGS -Os -fno-omit-frame-pointer"
+- else
+- AM_CFLAGS_OPT="$AM_CFLAGS -O0"
+- AM_CFLAGS="$AM_CFLAGS -O0"
+- AM_CXXFLAGS="$AM_CXXFLAGS -O0"
+- fi
+-
+- CFLAGS=""
+- CXXFLAGS=""
+
+ AC_SUBST(AM_CFLAGS)
+ AC_SUBST(AM_CFLAGS_OPT)
diff --git a/dev-util/gambas/files/gambas-2.8.2-app-Makefile-install.patch b/dev-util/gambas/files/gambas-2.8.2-app-Makefile-install.patch
new file mode 100644
index 000000000000..4f9af8bc78c6
--- /dev/null
+++ b/dev-util/gambas/files/gambas-2.8.2-app-Makefile-install.patch
@@ -0,0 +1,43 @@
+--- app/Makefile.am.orig 2008-09-01
++++ app/Makefile.am 2008-09-01
+@@ -4,17 +4,35 @@
+ @echo "Installing the development environment..."
+ @(cd $(srcdir)/src; d=`pwd`; \
+ for p in `cat INSTALL`; do \
+- echo "Compiling $$p..."; cd $$d/$$p; \
+- $(DESTDIR)$(bindir)/gbc$(GAMBAS_VERSION) -ag -r $(DESTDIR)$(prefix); \
++ echo "Compiling $$p..."; \
++ cd $$d/$$p; \
++ { \
++ $(DESTDIR)$(bindir)/gbc$(GAMBAS_VERSION) -ag -r $(DESTDIR)$(prefix) && \
+ $(DESTDIR)$(bindir)/gba$(GAMBAS_VERSION); \
++ } && { \
+ rm -rf .gambas; \
++ echo "Installing $$p..."; \
+ $(INSTALL) $$p.gambas $(DESTDIR)$(bindir); \
++ } || echo "Failed"; \
+ done)
+ ##@if test "$(bindir)" != "$(ROOT)/usr/bin" && test "$(bindir)" != "$(ROOT)/usr/bin/"; then
+- @ln -s gambas$(GAMBAS_VERSION).gambas $(DESTDIR)$(bindir)/gambas$(GAMBAS_VERSION) || true
++ @[[ -e $(DESTDIR)$(bindir)/gambas$(GAMBAS_VERSION).gambas ]] && \
++ { \
++ echo "Installing the IDE..."; \
++ ln -s gambas$(GAMBAS_VERSION).gambas $(DESTDIR)$(bindir)/gambas$(GAMBAS_VERSION); \
++ } || true
+
+- @echo "Installing the scripter..."
+- @ln -s gbs$(GAMBAS_VERSION).gambas $(DESTDIR)$(bindir)/gbs$(GAMBAS_VERSION) || true
++ @[[ -e $(DESTDIR)$(bindir)/gambas$(GAMBAS_VERSION)-database-manager.gambas ]] && \
++ { \
++ echo "Installing the Database Manager..."; \
++ ln -s gambas$(GAMBAS_VERSION)-database-manager.gambas $(DESTDIR)$(bindir)/gambas$(GAMBAS_VERSION)-database-manager; \
++ } || true
++
++ @[[ -e $(DESTDIR)$(bindir)/gbs$(GAMBAS_VERSION).gambas ]] && \
++ { \
++ echo "Installing the scripter..."; \
++ ln -s gbs$(GAMBAS_VERSION).gambas $(DESTDIR)$(bindir)/gbs$(GAMBAS_VERSION); \
++ } || true
+
+ uninstall-local:
+ @rm -f $(DESTDIR)$(bindir)/gambas$(GAMBAS_VERSION)
diff --git a/dev-util/gambas/files/gambas-2.8.2-comp-Makefile-install.patch b/dev-util/gambas/files/gambas-2.8.2-comp-Makefile-install.patch
new file mode 100644
index 000000000000..5907623ee37b
--- /dev/null
+++ b/dev-util/gambas/files/gambas-2.8.2-comp-Makefile-install.patch
@@ -0,0 +1,27 @@
+--- comp/Makefile.am.orig 2008-08-31
++++ comp/Makefile.am 2008-08-31
+@@ -22,17 +22,17 @@
+ @(cd $(srcdir)/src; d=`pwd`; for p in `cat order`; do \
+ echo "Compiling $$p..."; \
+ cd $$d/$$p; \
+- $(DESTDIR)$(bindir)/gbc$(GAMBAS_VERSION) -ag -r $(DESTDIR)$(prefix); \
++ { \
++ $(DESTDIR)$(bindir)/gbc$(GAMBAS_VERSION) -ag -r $(DESTDIR)$(prefix) && \
+ $(DESTDIR)$(bindir)/gba$(GAMBAS_VERSION); \
++ } && { \
+ rm -rf .gambas; \
+ echo "Installing $$p..."; \
+ $(INSTALL) $$p.gambas $(DESTDIR)$(gblibdir); \
+- $(INSTALL) .component $(DESTDIR)$(gblibdir)/$$p.component; \
+- chmod a-x $(DESTDIR)$(gblibdir)/$$p.component; \
+- $(INSTALL) .info $(DESTDIR)$(gbdatadir)/info/$$p.info; \
+- chmod a-x $(DESTDIR)$(gbdatadir)/info/$$p.info; \
+- $(INSTALL) .list $(DESTDIR)$(gbdatadir)/info/$$p.list; \
+- chmod a-x $(DESTDIR)$(gbdatadir)/info/$$p.list; \
++ $(INSTALL) -m 644 .component $(DESTDIR)$(gblibdir)/$$p.component; \
++ $(INSTALL) -m 644 .info $(DESTDIR)$(gbdatadir)/info/$$p.info; \
++ $(INSTALL) -m 644 .list $(DESTDIR)$(gbdatadir)/info/$$p.list; \
++ } || echo "Failed"; \
+ done)
+
+ uninstall-local:
diff --git a/dev-util/gambas/files/gambas-2.8.2-examples-Makefile-install.patch b/dev-util/gambas/files/gambas-2.8.2-examples-Makefile-install.patch
new file mode 100644
index 000000000000..a7220f72e501
--- /dev/null
+++ b/dev-util/gambas/files/gambas-2.8.2-examples-Makefile-install.patch
@@ -0,0 +1,28 @@
+--- examples/Makefile.am.orig 2008-09-01
++++ examples/Makefile.am 2008-09-01
+@@ -19,11 +19,20 @@
+ @rm -rf $(DESTDIR)$(gbdatadir)/examples
+ @$(INSTALL) -d $(DESTDIR)$(gbdatadir)/examples
+ @cp -R $(srcdir)/examples $(DESTDIR)$(gbdatadir)
+- @(cd $(DESTDIR)$(gbdatadir)/examples; d=`pwd`; for p in */ */*/; do cd $$d/$$p; \
+- if test -e .project; then \
+- echo "Compiling $$p..."; cd $$d/$$p; $(DESTDIR)$(bindir)/gbc$(GAMBAS_VERSION) -ag -r $(DESTDIR)$(prefix); $(DESTDIR)$(bindir)/gba$(GAMBAS_VERSION); \
+- fi \
+- done)
++ @(cd $(DESTDIR)$(gbdatadir)/examples; d=`pwd`; \
++ for p in */ */*/; do \
++ cd $$d/$$p; \
++ if test -e .project; then \
++ echo "Compiling $$p..."; \
++ cd $$d/$$p; \
++ { \
++ $(DESTDIR)$(bindir)/gbc$(GAMBAS_VERSION) -ag -r $(DESTDIR)$(prefix) && \
++ $(DESTDIR)$(bindir)/gba$(GAMBAS_VERSION); \
++ } \
++ && rm -rf .gambas \
++ || { echo "Failed"; rm -rf .gambas *.gambas; } \
++ fi \
++ done)
+
+ uninstall-local:
+ @rm -rf $(DESTDIR)$(gbdatadir)/examples
diff --git a/dev-util/gambas/gambas-2.8.2.ebuild b/dev-util/gambas/gambas-2.8.2.ebuild
new file mode 100644
index 000000000000..328ac28c4a9e
--- /dev/null
+++ b/dev-util/gambas/gambas-2.8.2.ebuild
@@ -0,0 +1,323 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/gambas/gambas-2.8.2.ebuild,v 1.1 2008/09/14 18:21:20 darkside Exp $
+
+EAPI="1"
+
+inherit autotools eutils fdo-mime qt3 multilib toolchain-funcs
+
+DESCRIPTION="Gambas is a free development environment based on a Basic interpreter with object extensions"
+HOMEPAGE="http://gambas.sourceforge.net/"
+
+SLOT="2"
+MY_PN="${PN}${SLOT}"
+MY_P="${MY_PN}-${PV}"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
+LICENSE="GPL-2"
+
+KEYWORDS="~amd64 ~x86"
+IUSE="bzip2 corba curl debug doc examples firebird gtk kde mysql odbc opengl pcre pdf postgres qt3 sdl smtp sqlite sqlite3 svg v4l xml zlib"
+
+DEPEND=""
+RDEPEND="bzip2? ( >=app-arch/bzip2-1.0.5 )
+ corba? ( >=net-misc/omniORB-4.1.0 )
+ curl? ( >=net-misc/curl-7.15.5-r1 )
+ firebird? ( >=dev-db/firebird-2.1.0.17755_rc2-r1 )
+ gtk? ( >=x11-libs/gtk+-2.10.14 )
+ kde? ( >=kde-base/kdelibs-3.5.9-r1 )
+ mysql? ( >=virtual/mysql-5.0 )
+ odbc? ( >=dev-db/unixODBC-2.2.12 )
+ opengl? ( >=media-libs/mesa-7.0.2 )
+ pcre? ( >=dev-libs/libpcre-7.6-r1 )
+ pdf? ( >=app-text/poppler-0.5.3 )
+ postgres? ( >=virtual/postgresql-base-8.2 )
+ qt3? ( >=x11-libs/qt-3.2:3 )
+ sdl? ( >=media-libs/sdl-image-1.2.6-r1 >=media-libs/sdl-mixer-1.2.7 )
+ smtp? ( >=dev-libs/glib-2.16.2 )
+ sqlite? ( =dev-db/sqlite-2* )
+ sqlite3? ( >=dev-db/sqlite-3.5.6 )
+ svg? ( >=gnome-base/librsvg-2.16.1-r2 )
+ v4l? ( >=media-libs/libpng-1.2.26 >=media-libs/jpeg-6b-r8 )
+ xml? ( >=dev-libs/libxml2-2.6.31 >=dev-libs/libxslt-1.1.22 )
+ zlib? ( >=sys-libs/zlib-1.2.3-r1 )"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ built_with_use sys-devel/gcc libffi \
+ || die "gcc needs to be build with the USE flag libffi"
+
+ # ImageProvider implementers, see .component files for more info
+ if ! { use qt3 || use gtk || use sdl; } ; then
+ use pdf && die "PDF support depends on Qt, GTK or SDL being enabled"
+ use v4l && die "V4L support depends on Qt, GTK or SDL being enabled"
+ fi
+
+ # OpenGLViewer implementers, see .component files for more info
+ if ! { use qt3 || use sdl; } ; then
+ use opengl && die "OpenGL support depends on Qt or SDL being enabled"
+ fi
+
+ if ! use gtk; then
+ use svg && die "SVG support depends on GTK being enabled"
+ fi
+
+ if ! use qt3; then
+ use kde && die "KDE support depends on Qt being enabled"
+
+ einfo
+ ewarn "The Gambas IDE currently cannot be be build without Qt being enabled."
+ if use gtk; then
+ einfo
+ ewarn "You are using the USE flag gtk, but not qt3. Attempting to use GTK instead"
+ ewarn "of Qt for certain components. This is considered EXPERIMENTAL and the"
+ ewarn "resulting components may not function."
+ fi
+ einfo
+ ebeep 3
+ fi
+}
+
+my_reduce_eautoreconf () {
+ sed -i -e "/^\(AC\|GB\)_CONFIG_SUBDIRS(${1}[,)]/d" \
+ configure.ac \
+ || die "my_reduce_eautoreconf: sed on configure.ac failed with ${1}"
+
+ sed -i -e "/^SUBDIRS/s/\ \(@${1}_dir@\|${1}\)//1" \
+ Makefile.am \
+ || die "my_reduce_eautoreconf: sed on Makefile.am failed with ${1}"
+}
+
+my_examine_components () {
+ local comp="gb.*/src/*.component gb.*/src/*/*.component main/lib/*/*.component comp/src/*/.component"
+
+ # Examine app/src/gambas2/CComponent.class for more info
+ einfo
+ einfo "Checking component files ..."
+ einfo
+ elog "The following components are reported stable, but incomplete:"
+ elog "$(grep '^State=1' ${comp} | sed -e 's/.*gb\.\([^/]*\)[/]\?\.component.*/\t\1/')"
+ einfo
+ ewarn "The following components are reported unstable:"
+ ewarn "$(grep '^\(State=2\|Alpha\)' ${comp} | sed -e 's/.*gb\.\([^/]*\)[/]\?\.component.*/\t\1/')"
+ einfo
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ if { ! use qt3; } && use gtk; then
+ ebegin "Applying sed no-Qt-use-GTK-workaround-patch (EXPERIMENTAL)"
+ # Gentoo-specific patch/workaround
+ sed -i -e 's/EXPORT = "gb.qt"/EXPORT = "gb.gtk"/' \
+ main/lib/gui/main.c \
+ || die "sed no-Qt-use-GTK-workaround-patch (EXPERIMENTAL)"
+ eend 0
+ fi
+
+ ebegin "Applying sed no-automagic-patch"
+ # Gentoo-specific patch
+ sed -i -e 's/gb_enable_\$1=yes/gb_enable_\$1=no/' \
+ acinclude.m4 \
+ || die "sed no-automagic-patch failed"
+ eend 0
+
+ # Gentoo-specific patch
+ epatch "${FILESDIR}/${PN}-2.5.0-mimetype-registration.patch"
+
+ # gb.qt needs this patch because it does not use GB_COMPONENT_PKG_CONFIG in qt.gb/configure.ac
+ epatch "${FILESDIR}/${PN}-2.7.0-r1-gb.qt-QT_LDFLAGS.patch"
+
+ # help does not appear to need libtool, see acinclude.m4 for more info
+ epatch "${FILESDIR}/${PN}-2.7.0-r1-help-GB_INIT_SHORT.patch"
+
+ # Gentoo-specific patches for libtool compatibility
+ epatch "${FILESDIR}/${PN}-2.7.0-r1-remove-libltdl-from-main.patch"
+ epatch "${FILESDIR}/${PN}-2.8.0-libtool.patch"
+
+ epatch "${FILESDIR}/${PN}-2.8.0-help-path.patch"
+
+ # sdl_sound appears inconsistently named and disables itself
+ epatch "${FILESDIR}/${PN}-2.8.0-sdl-component-name.patch"
+
+ # Gentoo-specific patch
+ epatch "${FILESDIR}/${PN}-2.8.2-FLAGS.patch"
+
+ epatch "${FILESDIR}/${PN}-2.8.2-app-Makefile-install.patch"
+ epatch "${FILESDIR}/${PN}-2.8.2-comp-Makefile-install.patch"
+ epatch "${FILESDIR}/${PN}-2.8.2-examples-Makefile-install.patch"
+
+ ebegin "Applying sed remove-libtool-patch"
+ # Gentoo-specific patch, may be obsoleted in the future
+ # Remove embedded libtool.m4 file
+ sed -i -e '/[-][*][-]Autoconf[-][*][-]$/,/^dnl\ Like\ AC_CHECK_HEADER,\ but/d' \
+ acinclude.m4 \
+ || die "sed remove-libtool-patch failed"
+ eend 0
+
+ my_examine_components
+
+ ebegin "Removing provided libtool/libltdl"
+ rm -R ./main/libltdl \
+ && rm config.guess config.sub install-sh ltmain.sh \
+ && rm */config.guess */config.sub */install-sh */ltmain.sh \
+ || die "removing libtool failed"
+ eend 0
+
+ ebegin "Reducing eautoreconf"
+ # Keep synchronized with myconf in src_compile
+ use bzip2 || my_reduce_eautoreconf bzlib2
+ use zlib || my_reduce_eautoreconf zlib
+ use mysql || my_reduce_eautoreconf mysql
+ use odbc || my_reduce_eautoreconf odbc
+ use postgres || my_reduce_eautoreconf postgresql
+ use sqlite || my_reduce_eautoreconf sqlite2
+ use sqlite3 || my_reduce_eautoreconf sqlite3
+ use firebird || my_reduce_eautoreconf firebird
+ use gtk || my_reduce_eautoreconf gtk
+ use svg || my_reduce_eautoreconf gtksvg
+ use pdf || my_reduce_eautoreconf pdf
+ #net
+ use curl || my_reduce_eautoreconf curl
+ use smtp || my_reduce_eautoreconf smtp
+ use pcre || my_reduce_eautoreconf pcre
+ use qt3 || my_reduce_eautoreconf qt
+ my_reduce_eautoreconf qte
+ use kde || my_reduce_eautoreconf kde
+ use sdl || my_reduce_eautoreconf sdl
+ use sdl || my_reduce_eautoreconf sdl_sound
+ use xml || my_reduce_eautoreconf xml
+ use v4l || my_reduce_eautoreconf v4l
+ #crypt
+ use opengl || my_reduce_eautoreconf opengl
+ use corba || my_reduce_eautoreconf corba
+ { use qt3 || use gtk || \
+ use sdl; } || my_reduce_eautoreconf image
+ use qt3 || my_reduce_eautoreconf desktop
+ # This may work in the future, but it does not work now.
+# { use qt3 || \
+# use gtk; } || my_reduce_eautoreconf desktop
+
+ use doc || my_reduce_eautoreconf help
+ use examples || my_reduce_eautoreconf examples
+ eend 0
+
+ eautoreconf || die "eautoreconf failed"
+}
+
+src_compile() {
+ local myconf
+ local myconf_main
+ local myconf_qt
+ local myconf_xml
+
+ myconf="$(use_enable bzip2 bzlib2)
+ $(use_enable zlib)
+ $(use_enable mysql)
+ $(use_enable odbc)
+ $(use_enable postgres postgresql)
+ $(use_enable sqlite sqlite2)
+ $(use_enable sqlite3)
+ $(use_enable firebird)
+ $(use_enable gtk)
+ $(use_enable svg gtksvg)
+ $(use_enable pdf)
+ --enable-net
+ $(use_enable curl)
+ $(use_enable smtp)
+ $(use_enable pcre)
+ $(use_enable qt3 qt)
+ --disable-qte
+ $(use_enable kde)
+ $(use_enable sdl)
+ $(use_enable sdl sdl_sound)
+ $(use_enable xml)
+ $(use_enable v4l)
+ --enable-crypt
+ $(use_enable opengl)
+ $(use_enable corba)
+ $( { use qt3 || use gtk || use sdl; } \
+ && echo '--enable-image' || echo '--disable-image')
+ $(use_enable qt3 desktop)"
+ # This may work in the future, but it does not work now.
+# $( { use qt3 || use gtk; } && echo '--enable-desktop' || echo '--disable-desktop')"
+
+ myconf_main="--enable-intl
+ --enable-conv
+ --enable-ffi
+ --with-ffi-libraries=/usr/$(get_libdir)/gcc/${CHOST}/$(gcc-fullversion)/
+ --enable-preloading"
+
+ if use qt3; then
+ myconf_qt="$(use_enable opengl qtopengl)
+ --enable-qt-translation "
+ fi
+
+ myconf_xml="$(use_enable xml xslt)"
+
+ econf --config-cache \
+ ${myconf} ${myconf_main} ${myconf_qt} ${myconf_xml} \
+ $(use_enable debug) --disable-profiling \
+ --docdir=/usr/share/doc/${PF} --htmldir=/usr/share/doc/${PF}/html \
+ || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+my_dekstop_and_icon () {
+ # USAGE: <executable> <name> <category> <icon_source_file> <icon_target_dir>
+ local icon="${1}.png"
+
+ make_desktop_entry "${1}" "${2}" "${5}/${icon}" "${3}" \
+ || die "make_desktop_entry failed for ${1}"
+
+ insinto ${5}
+ newins ${4} ${icon} || die "newins failed for ${1}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install -j1 || die "emake install failed"
+
+ dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed"
+ newdoc gb.net/src/doc/README gb.net-README || die "newdoc failed"
+ newdoc gb.net/src/doc/changes.txt gb.net-ChangeLog || die "newdoc failed"
+ use pcre && { newdoc gb.pcre/src/README gb.pcre-README || die "newdoc failed"; }
+
+ if use qt3 || use gtk; then
+ use qt3 && \
+ my_dekstop_and_icon \
+ "${MY_PN}" "Gambas" "Development" \
+ "app/src/${MY_PN}/img/logo/new-logo.png" \
+ "/usr/share/icons/hicolor/128x128/apps"
+
+ my_dekstop_and_icon \
+ "${MY_PN}-database-manager" "Gambas Database Manager" "Development" \
+ "app/src/${MY_PN}-database-manager/img/logo/logo-128.png" \
+ "/usr/share/icons/hicolor/128x128/apps"
+
+ insinto /usr/share/icons/hicolor/64x64/mimetypes
+ doins app/mime/application-x-gambasscript.png main/mime/application-x-gambas.png \
+ || die "doins failed"
+
+ insinto /usr/share/mime/application
+ doins app/mime/application-x-gambasscript.xml main/mime/application-x-gambas.xml \
+ || die "doins failed"
+ fi
+
+ use doc && { dosym "/usr/share/${MY_PN}/help" "/usr/share/doc/${PF}/html" \
+ || die "dosym failed"; }
+}
+
+my_fdo_update() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
+
+pkg_postinst() {
+ my_fdo_update
+}
+
+pkg_postrm() {
+ my_fdo_update
+}