diff options
author | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
commit | 7a65a910b77ad191d69881098c47f9b0c852d92e (patch) | |
tree | 9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/gambas3 | |
parent | 60da6abff6c9577a783d72865f11de7a585e912e (diff) |
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/gambas3')
-rw-r--r-- | community/gambas3/PKGBUILD | 909 | ||||
-rw-r--r-- | community/gambas3/gambas3-3.4.1-llvm-3.3.patch | 86 | ||||
-rw-r--r-- | community/gambas3/gambas3-runtime.install | 10 | ||||
-rw-r--r-- | community/gambas3/gambas3-script.install | 15 |
4 files changed, 1020 insertions, 0 deletions
diff --git a/community/gambas3/PKGBUILD b/community/gambas3/PKGBUILD new file mode 100644 index 000000000..7b5647b76 --- /dev/null +++ b/community/gambas3/PKGBUILD @@ -0,0 +1,909 @@ +# $Id: PKGBUILD 95094 2013-08-05 14:15:46Z andyrtr $ +# Maintainer: Laurent Carlier <lordheavym@gmail.com> +# Contributor : sebikul <sebikul@gmail.com> + +pkgbase=gambas3 +_components=('gambas3-gb-args' 'gambas3-gb-cairo' 'gambas3-gb-chart' 'gambas3-gb-dbus' 'gambas3-gb-complex' + 'gambas3-gb-compress' 'gambas3-gb-crypt' 'gambas3-gb-data' 'gambas3-gb-db-form' 'gambas3-gb-db-mysql' + 'gambas3-gb-db-odbc' 'gambas3-gb-db-postgresql' 'gambas3-gb-db-sqlite2' 'gambas3-gb-db-sqlite3' 'gambas3-gb-db' + 'gambas3-gb-desktop-gnome' 'gambas3-gb-desktop' 'gambas3-gb-eval-highlight' 'gambas3-gb-httpd' 'gambas3-gb-form-dialog' 'gambas3-gb-form-mdi' + 'gambas3-gb-form-stock' 'gambas3-gb-form' 'gambas3-gb-gsl' 'gambas3-gb-gtk-opengl' 'gambas3-gb-gtk' 'gambas3-gb-image-effect' + 'gambas3-gb-image-imlib' 'gambas3-gb-image-io' 'gambas3-gb-image' 'gambas3-gb-jit' 'gambas3-gb-libxml' 'gambas3-gb-map' + 'gambas3-gb-media' 'gambas3-gb-memcached' 'gambas3-gb-mime' 'gambas3-gb-mysql' 'gambas3-gb-ncurses' 'gambas3-gb-net-curl' 'gambas3-gb-net-pop3' + 'gambas3-gb-net-smtp' 'gambas3-gb-net' 'gambas3-gb-opengl-glu' 'gambas3-gb-opengl-glsl' 'gambas3-gb-opengl' 'gambas3-gb-option' + 'gambas3-gb-pcre' 'gambas3-gb-pdf' 'gambas3-gb-qt4-ext' 'gambas3-gb-qt4-opengl' 'gambas3-gb-qt4-webkit' 'gambas3-gb-qt4' + 'gambas3-gb-report' 'gambas3-gb-sdl-sound' 'gambas3-gb-sdl' 'gambas3-gb-settings' 'gambas3-gb-signal' 'gambas3-gb-v4l' 'gambas3-gb-vb' + 'gambas3-gb-xml-html' 'gambas3-gb-xml-rpc' 'gambas3-gb-xml-xslt' 'gambas3-gb-xml' 'gambas3-gb-web') +pkgname=(${_components[@]} 'gambas3-runtime' 'gambas3-devel' 'gambas3-ide' 'gambas3-script' 'gambas3-examples') +pkgver=3.4.2 +pkgrel=2 +pkgdesc="A free development environment based on a Basic interpreter." +arch=('i686' 'x86_64') +url="http://gambas.sourceforge.net/" +license=('GPL2') +groups=('gambas3') +makedepends=('intltool' 'mariadb' 'postgresql' 'libffi' 'bzip2' 'glib2' 'v4l-utils' + 'zlib' 'mesa' 'glew' 'xdg-utils' 'gtk2' 'imlib2' 'gdk-pixbuf2' + 'postgresql-libs' 'libmariadbclient' 'unixodbc' 'sqlite2' 'sqlite' 'librsvg' + 'curl' 'poppler-glib' 'sdl_mixer' 'sdl_ttf' 'libxtst' 'pcre' 'qtwebkit' + 'libxcursor' 'libsm' 'dbus-core' 'libxml2' 'libxslt' 'libgnome-keyring' + 'gsl' 'gstreamer0.10' 'gstreamer0.10-base' 'gtkglext' 'ncurses' 'llvm' + 'gmime') +options=(!emptydirs) +source=("http://downloads.sourceforge.net/gambas/${pkgbase}-${pkgver}.tar.bz2" + gambas3-3.4.1-llvm-3.3.patch) +md5sums=('c35c0f88211e2c0203d2467acb8d384d' + '04bf972f5d5546118ecbcc1f24271216') + +create_dirs() { + install -dm755 ${pkgdir}/usr/lib/gambas3 + install -dm755 ${pkgdir}/usr/share/gambas3/info/control +} + +prepare() { + cd ${srcdir}/${pkgbase}-${pkgver} + + # Fix build with LLVM 3.3 (patch from Fedora) + patch -Np1 -i../gambas3-3.4.1-llvm-3.3.patch + + ./reconf-all +} + +build() { + cd ${srcdir}/${pkgbase}-${pkgver} + + ./configure --prefix=/usr -C + + make bindir=${pkgdir}/usr/bin + + mkdir -p ${srcdir}/fakeinstall + make -j1 XDG_UTILS='' DESTDIR=${srcdir}/fakeinstall install +} + +package_gambas3-gb-args() { + depends=('gambas3-runtime') + pkgdesc="Command-line options analyzer component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.args.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.args.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-cairo() { + depends=('gambas3-runtime' 'cairo') + pkgdesc="Cairo component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.cairo.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.cairo.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-chart() { + depends=('gambas3-gb-form') + pkgdesc="Chart component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.chart.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.chart.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-complex() { + depends=('gambas3-runtime') + pkgdesc="Complex numbers component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.complex.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.complex.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-compress() { + depends=('gambas3-runtime' 'bzip2' 'zlib') + pkgdesc="Compression support component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.compress.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.compress.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-crypt() { + depends=('gambas3-runtime') + pkgdesc="MD5/DES crypting component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.crypt.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.crypt.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-data() { + depends=('gambas3-runtime') + pkgdesc="Data containers component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.data.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.data.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-db-form() { + depends=('gambas3-gb-db' 'gambas3-gb-form') + pkgdesc="Database form component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.db.form.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.db.form.* ${pkgdir}/usr/share/gambas3/info/ + mv -v usr/share/gambas3/control/gb.db.form ${pkgdir}/usr/share/gambas3/control/ +} + +package_gambas3-gb-db-mysql() { + depends=('gambas3-gb-db' 'libmariadbclient') + pkgdesc="MySQL database access component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.db.mysql.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.db.mysql.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-db-odbc() { + depends=('gambas3-gb-db' 'unixodbc') + pkgdesc="ODBC database access component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.db.odbc.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.db.odbc.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-db-postgresql() { + depends=('gambas3-gb-db' 'postgresql-libs') + pkgdesc="PostgreSQL database access component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.db.postgresql.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.db.postgresql.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-db-sqlite2() { + depends=('gambas3-gb-db' 'sqlite2' 'gcc-libs') + pkgdesc="Sqlite2 database access component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.db.sqlite2.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.db.sqlite2.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-db-sqlite3() { + depends=('gambas3-gb-db' 'sqlite' 'gcc-libs') + pkgdesc="Sqlite3 database access component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.db.sqlite3.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.db.sqlite3.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-db() { + depends=('gambas3-runtime') + pkgdesc="Database access component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.db.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.db.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-dbus() { + depends=('gambas3-runtime' 'dbus-core') + pkgdesc="DBUS component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.dbus.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.dbus.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-desktop-gnome() { + depends=('gambas3-gb-desktop' 'libgnome-keyring') + pkgdesc="Desktop component for Gnome" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.desktop.gnome.* ${pkgdir}/usr/lib/gambas3/ +} + +package_gambas3-gb-desktop() { + depends=('gambas3-gb-image' 'libsm' 'libxtst') + pkgdesc="Desktop component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.desktop.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.desktop.* ${pkgdir}/usr/share/gambas3/info/ + mv -v usr/share/gambas3/control/gb.desktop ${pkgdir}/usr/share/gambas3/control/ +} + +package_gambas3-gb-eval-highlight() { + depends=('gambas3-runtime') + pkgdesc="Expression evaluator highlight component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.eval.highlight.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.eval.highlight.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-form-dialog() { + depends=('gambas3-gb-form') + pkgdesc="Form dialog component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.form.dialog.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.form.dialog.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-form-mdi() { + depends=('gambas3-gb-form') + pkgdesc="Form MDI component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.form.mdi.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.form.mdi.* ${pkgdir}/usr/share/gambas3/info/ + mv -v usr/share/gambas3/control/gb.form.mdi ${pkgdir}/usr/share/gambas3/control/ +} + +package_gambas3-gb-form-stock() { + depends=('gambas3-runtime') + pkgdesc="Default stock icons component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.form.stock.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.form.stock.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-form() { + depends=('gambas3-runtime') + pkgdesc="Form component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.form.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.form.* ${pkgdir}/usr/share/gambas3/info/ + mv -v usr/share/gambas3/control/gb.form ${pkgdir}/usr/share/gambas3/control/ +} + +package_gambas3-gb-gsl() { + depends=('gambas3-runtime' 'gsl') + pkgdesc="The GNU Scientific Library component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.gsl.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.gsl.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-gtk-opengl() { + depends=('gambas3-gb-gtk' 'gambas3-gb-opengl' 'gtkglext') + pkgdesc="GTK+ toolkit OpenGL component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.gtk.opengl.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.gtk.opengl.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-gtk() { + depends=('gambas3-gb-image' 'gtk2' 'librsvg') + pkgdesc="GTK+ toolkit component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.gtk.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.gtk.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-httpd() { + depends=('gambas3-runtime') + pkgdesc="Embedded HTTP server for the interpreter" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.httpd.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.httpd.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-image-effect() { + depends=('gambas3-gb-image' 'gcc-libs') + pkgdesc="Image effect component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.image.effect.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.image.effect.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-image-imlib() { + depends=('gambas3-gb-image' 'imlib2') + pkgdesc="Imlib component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.image.imlib.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.image.imlib.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-image-io() { + depends=('gambas3-gb-image' 'gdk-pixbuf2') + pkgdesc="Input/Output image component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.image.io.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.image.io.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-image() { + depends=('gambas3-runtime') + pkgdesc="Image component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.image.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.image.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-jit() { + depends=('gambas3-runtime' 'llvm-libs') + pkgdesc="Just-in-time compiler component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.jit.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.jit.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-libxml() { + depends=('gambas3-runtime' 'libxml2') + pkgdesc="libxml2 component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.libxml.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.libxml.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-map() { + depends=('gambas3-gb-image-io' 'gambas3-gb-form') + pkgdesc="Display maps component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.map.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.map.* ${pkgdir}/usr/share/gambas3/info/ + mv -v usr/share/gambas3/control/gb.map ${pkgdir}/usr/share/gambas3/control/ +} + +package_gambas3-gb-media() { + depends=('gambas3-runtime' 'gstreamer0.10' 'gstreamer0.10-base') + pkgdesc="Simplified interface to the GStreamer library component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.media.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.media.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-memcached() { + depends=('gambas3-gb-net') + pkgdesc="Memcached client component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.memcached.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.memcached.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-mime() { + depends=('gambas3-runtime' 'gmime') + pkgdesc="MIME message component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.mime.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.mime.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-mysql() { + depends=('gambas3-runtime' 'gambas3-gb-db-mysql') + pkgdesc="Mysql extra component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.mysql.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.mysql.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-ncurses() { + depends=('gambas3-runtime' 'ncurses') + pkgdesc="Ncurses component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.ncurses.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.ncurses.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-net-curl() { + depends=('gambas3-gb-net' 'curl') + pkgdesc="Curl component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.net.curl.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.net.curl.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-net-pop3() { + depends=('gambas3-gb-net' 'gambas3-gb-mime') + pkgdesc="POP3 component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.net.pop3.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.net.pop3.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-net-smtp() { + depends=('gambas3-runtime' 'glib2') + pkgdesc="SMTP component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.net.smtp.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.net.smtp.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-net() { + depends=('gambas3-runtime') + pkgdesc="Network component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.net.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.net.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-opengl-glu() { + depends=('gambas3-gb-opengl') + pkgdesc="GL Utility component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.opengl.glu.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.opengl.glu.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-opengl-glsl() { + depends=('gambas3-gb-opengl') + pkgdesc="GLSL component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.opengl.glsl.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.opengl.glsl.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-opengl() { + depends=('gambas3-runtime' 'glew') + pkgdesc="OpenGL component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.opengl.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.opengl.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-option() { + depends=('gambas3-runtime') + pkgdesc="Getopt component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.option.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.option.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-pcre() { + depends=('gambas3-runtime' 'pcre') + pkgdesc="PCRE component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.pcre.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.pcre.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-pdf() { + depends=('gambas3-runtime' 'poppler') + pkgdesc="PDF component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.pdf.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.pdf.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-qt4-ext() { + depends=('gambas3-gb-qt4') + pkgdesc="Qt4 toolkit extended component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.qt4.ext.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.qt4.ext.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-qt4-opengl() { + depends=('gambas3-gb-qt4' 'gambas3-gb-opengl') + pkgdesc="Qt4 toolkit OpenGL component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.qt4.opengl.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.qt4.opengl.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-qt4-webkit() { + depends=('gambas3-gb-qt4' 'qtwebkit') + pkgdesc="Qt4 toolkit webkit component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.qt4.webkit.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.qt4.webkit.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-qt4() { + depends=('gambas3-gb-image' 'qt4') + pkgdesc="Qt4 toolkit component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.qt4.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.qt4.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-report() { + depends=('gambas3-gb-form' 'gambas3-gb-image-io') + pkgdesc="Report component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.report.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.report.* ${pkgdir}/usr/share/gambas3/info/ + mv -v usr/share/gambas3/control/gb.report ${pkgdir}/usr/share/gambas3/control/ +} + +package_gambas3-gb-sdl-sound() { + depends=('gambas3-runtime' 'sdl_mixer') + pkgdesc="SDL sound component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.sdl.sound.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.sdl.sound.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-sdl() { + depends=('gambas3-gb-image-io' 'sdl_ttf' 'libxcursor' 'glew') + pkgdesc="SDL component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.sdl.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.sdl.* ${pkgdir}/usr/share/gambas3/info/ + mv -v usr/share/gambas3/gb.sdl ${pkgdir}/usr/share/gambas3 +} + +package_gambas3-gb-settings() { + depends=('gambas3-runtime') + pkgdesc="Setting component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.settings.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.settings.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-signal() { + depends=('gambas3-runtime') + pkgdesc="POSIX Signals component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.signal.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.signal.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-v4l() { + depends=('gambas3-runtime' 'v4l-utils' 'libjpeg' 'libpng') + pkgdesc="Video4linux component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.v4l.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.v4l.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-vb() { + depends=('gambas3-runtime') + pkgdesc="Visual Basic transitional component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.vb.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.vb.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-web() { + depends=('gambas3-runtime') + pkgdesc="CGI component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.web.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.web.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-xml-html() { + depends=('gambas3-gb-xml') + pkgdesc="HTML generator component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.xml.html.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.xml.html.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-xml-rpc() { + depends=('gambas3-gb-xml' 'gambas3-gb-net-curl') + pkgdesc="XML-RPC component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.xml.rpc.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.xml.rpc.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-xml-xslt() { + depends=('gambas3-gb-xml' 'libxslt') + pkgdesc="XML-XSLT component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.xml.xslt.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.xml.xslt.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-gb-xml() { + depends=('gambas3-runtime' 'gcc-libs') + pkgdesc="XML component" + + cd ${srcdir}/fakeinstall + + create_dirs + + mv -v usr/lib/gambas3/gb.xml.* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/gb.xml.* ${pkgdir}/usr/share/gambas3/info/ +} + +package_gambas3-runtime() { + depends=('libffi' 'xdg-utils') + pkgdesc="Runtime environment" + conflicts=('gambas3-gb-gui') + replaces=('gambas3-gb-gui') + provides=("gambas3-gb-gui=${pkgver}") + install=gambas3-runtime.install + + cd ${srcdir}/fakeinstall + + create_dirs + + install -dm755 ${pkgdir}/usr/bin + install -dm755 ${pkgdir}/usr/share/gambas3/{icons,mime} + + mv -v usr/bin/gb{r,x}3 ${pkgdir}/usr/bin + mv -v usr/lib/gambas3/* ${pkgdir}/usr/lib/gambas3/ + mv -v usr/share/gambas3/info/* ${pkgdir}/usr/share/gambas3/info/ + install -m644 ${srcdir}/${pkgbase}-${pkgver}/main/mime/* ${pkgdir}/usr/share/gambas3/mime/ + install -m644 ${pkgdir}/usr/share/gambas3/mime/application-x-gambas3.png ${pkgdir}/usr/share/gambas3/icons/ +} + +package_gambas3-devel() { + depends=('gambas3-runtime') + pkgdesc="Development environment" + + cd ${srcdir}/fakeinstall + + install -dm755 ${pkgdir}/usr/bin + + mv -v usr/bin/gb{a,c,i}3 ${pkgdir}/usr/bin +} + +package_gambas3-ide() { + depends=('gambas3-devel' 'gambas3-gb-db-form' 'gambas3-gb-desktop' 'gambas3-gb-eval-highlight' + 'gambas3-gb-form-dialog' 'gambas3-gb-form-stock' 'gambas3-gb-settings' 'gambas3-gb-form-mdi' + 'gambas3-gb-image-effect' 'gambas3-gb-qt4-ext' 'gambas3-gb-qt4-webkit') + pkgdesc="Integrated Development Environment" + + cd ${srcdir}/fakeinstall + + install -dm755 ${pkgdir}/usr/{bin,share/{applications,pixmaps}} + + mv -v usr/bin/gambas3* ${pkgdir}/usr/bin/ + + install -m644 ${srcdir}/${pkgbase}-${pkgver}/app/desktop/gambas3.desktop ${pkgdir}/usr/share/applications/ + install -m644 ${srcdir}/${pkgbase}-${pkgver}/app/desktop/gambas3.png ${pkgdir}/usr/share/pixmaps/ +} + +package_gambas3-script() { + depends=('gambas3-devel') + pkgdesc="Scripter and server programs support" + install=gambas3-script.install + + cd ${srcdir}/fakeinstall + + install -dm755 ${pkgdir}/usr/bin + install -dm755 ${pkgdir}/usr/share/gambas3/mime + + mv -v usr/bin/gb{s,w}3* ${pkgdir}/usr/bin/ + install -m644 ${srcdir}/${pkgbase}-${pkgver}/app/mime/* ${pkgdir}/usr/share/gambas3/mime/ +} + +package_gambas3-examples() { + depends=(${_components[@]} 'gambas3-runtime' 'gambas3-ide') + pkgdesc="Applications examples" + + cd ${srcdir}/fakeinstall + + install -dm755 ${pkgdir}/usr/share/gambas3 + + mv -v usr/share/gambas3/examples ${pkgdir}/usr/share/gambas3/ +} diff --git a/community/gambas3/gambas3-3.4.1-llvm-3.3.patch b/community/gambas3/gambas3-3.4.1-llvm-3.3.patch new file mode 100644 index 000000000..a5f75fe78 --- /dev/null +++ b/community/gambas3/gambas3-3.4.1-llvm-3.3.patch @@ -0,0 +1,86 @@ +diff -up gambas3-3.4.1/gb.jit/configure.ac.jx gambas3-3.4.1/gb.jit/configure.ac +--- gambas3-3.4.1/gb.jit/configure.ac.jx 2013-03-24 13:34:31.000000000 -0400 ++++ gambas3-3.4.1/gb.jit/configure.ac 2013-05-02 13:42:02.911687100 -0400 +@@ -32,7 +32,7 @@ fi + + GB_COMPONENT( + jit, JIT, gb.jit, [src], +- [GB_FIND(llvm/LLVMContext.h, /usr/lib/llvm* /usr/local/lib /usr/local /usr/lib /usr `$LLVM_CONFIG --prefix`, include)], ++ [GB_FIND(llvm/IR/LLVMContext.h, /usr/lib/llvm* /usr/local/lib /usr/local /usr/lib /usr `$LLVM_CONFIG --prefix`, include)], + [GB_FIND(libLLVM-$LLVM_VERSION.$SHLIBEXT, /usr/lib/llvm* /usr/local /usr `$LLVM_CONFIG --prefix`, lib)], + [$C_LIB `$LLVM_CONFIG --ldflags` -lLLVM-$LLVM_VERSION], + [-I../../main/gbx -I../../main/share -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS]) +diff -up gambas3-3.4.1/gb.jit/src/jit_codegen.cpp.jx gambas3-3.4.1/gb.jit/src/jit_codegen.cpp +--- gambas3-3.4.1/gb.jit/src/jit_codegen.cpp.jx 2013-03-24 13:34:31.000000000 -0400 ++++ gambas3-3.4.1/gb.jit/src/jit_codegen.cpp 2013-05-02 13:54:30.344186594 -0400 +@@ -3614,11 +3614,7 @@ void TryExpression::codegen(){ + create_gep(temp_errcontext1, TARGET_BITS, 0, TARGET_BITS, 0)); + + llvm::Function* f = llvm::cast<llvm::Function>(get_global_function(_setjmp, 'i', "p")); +-#if LLVM_VERSION_MAJOR > 3 || (LLVM_VERSION_MAJOR == 3 && LLVM_VERSION_MINOR >= 2) +- f->addFnAttr(llvm::Attributes::ReturnsTwice); +-#else + f->addFnAttr(llvm::Attribute::ReturnsTwice); +-#endif + + llvm::Value* setjmp_return = builder->CreateCall(f, jmpbuf); + +@@ -3669,11 +3665,7 @@ void LargeTryExpression::codegen(){ + create_gep(temp_errcontext2, TARGET_BITS, 0, TARGET_BITS, 0)); + + llvm::Function* f = llvm::cast<llvm::Function>(get_global_function(_setjmp, 'i', "p")); +-#if LLVM_VERSION_MAJOR > 3 || (LLVM_VERSION_MAJOR == 3 && LLVM_VERSION_MINOR >= 2) +- f->addFnAttr(llvm::Attributes::ReturnsTwice); +-#else + f->addFnAttr(llvm::Attribute::ReturnsTwice); +-#endif + + llvm::Value* setjmp_return = builder->CreateCall(f, jmpbuf); + +diff -up gambas3-3.4.1/gb.jit/src/jit_gambas_pass.cpp.jx gambas3-3.4.1/gb.jit/src/jit_gambas_pass.cpp +--- gambas3-3.4.1/gb.jit/src/jit_gambas_pass.cpp.jx 2013-03-24 13:34:31.000000000 -0400 ++++ gambas3-3.4.1/gb.jit/src/jit_gambas_pass.cpp 2013-05-02 13:42:02.912687103 -0400 +@@ -24,9 +24,9 @@ + ***************************************************************************/ + + #include "llvm/Pass.h" +-#include "llvm/Function.h" ++#include "llvm/IR/Function.h" + #if LLVM_VERSION_MAJOR > 3 || (LLVM_VERSION_MAJOR == 3 && LLVM_VERSION_MINOR >= 2) +-#include "llvm/IRBuilder.h" ++#include "llvm/IR/IRBuilder.h" + #else + #include "llvm/Support/IRBuilder.h" + #endif +diff -up gambas3-3.4.1/gb.jit/src/jit.h.jx gambas3-3.4.1/gb.jit/src/jit.h +--- gambas3-3.4.1/gb.jit/src/jit.h.jx 2013-03-24 13:34:31.000000000 -0400 ++++ gambas3-3.4.1/gb.jit/src/jit.h 2013-05-02 13:42:02.912687103 -0400 +@@ -26,13 +26,13 @@ + #ifndef __JIT_H + #define __JIT_H + +-#include "llvm/LLVMContext.h" +-#include "llvm/Module.h" ++#include "llvm/IR/LLVMContext.h" ++#include "llvm/IR/Module.h" + #include "llvm/Analysis/Verifier.h" +-#include "llvm/Constants.h" +-#include "llvm/DerivedTypes.h" +-#include "llvm/Intrinsics.h" +-#include "llvm/Instructions.h" ++#include "llvm/IR/Constants.h" ++#include "llvm/IR/DerivedTypes.h" ++#include "llvm/IR/Intrinsics.h" ++#include "llvm/IR/Instructions.h" + #include "llvm/ExecutionEngine/JIT.h" + #include "llvm/ExecutionEngine/Interpreter.h" + #include "llvm/ExecutionEngine/GenericValue.h" +@@ -40,7 +40,7 @@ + #include "llvm/Support/ManagedStatic.h" + #include "llvm/Support/raw_ostream.h" + #if LLVM_VERSION_MAJOR > 3 || (LLVM_VERSION_MAJOR == 3 && LLVM_VERSION_MINOR >= 2) +-#include "llvm/IRBuilder.h" ++#include "llvm/IR/IRBuilder.h" + #else + #include "llvm/Support/IRBuilder.h" + #endif diff --git a/community/gambas3/gambas3-runtime.install b/community/gambas3/gambas3-runtime.install new file mode 100644 index 000000000..cfb5812fe --- /dev/null +++ b/community/gambas3/gambas3-runtime.install @@ -0,0 +1,10 @@ +post_install() { + xdg-icon-resource install --context mimetypes --size 64 \ + /usr/share/gambas3/mime/application-x-gambas3.png application-x-gambas3 + xdg-mime install /usr/share/gambas3/mime/application-x-gambas3.xml +} + +pre_remove() { + xdg-icon-resource uninstall --context mimetypes --size 64 application-x-gambas3 + xdg-mime uninstall /usr/share/gambas3/mime/application-x-gambas3.xml +} diff --git a/community/gambas3/gambas3-script.install b/community/gambas3/gambas3-script.install new file mode 100644 index 000000000..77c1aa52f --- /dev/null +++ b/community/gambas3/gambas3-script.install @@ -0,0 +1,15 @@ +post_install() { + xdg-icon-resource install --context mimetypes --size 64 \ + /usr/share/gambas3/mime/application-x-gambasscript.png application-x-gambasscript + xdg-icon-resource install --context mimetypes --size 64 \ + /usr/share/gambas3/mime/application-x-gambasserverpage.png application-x-gambasserverpage + xdg-mime install /usr/share/gambas3/mime/application-x-gambasscript.xml + xdg-mime install /usr/share/gambas3/mime/application-x-gambasserverpage.xml +} + +pre_remove() { + xdg-icon-resource uninstall --context mimetypes --size 64 application-x-gambasscript + xdg-icon-resource uninstall --context mimetypes --size 64 application-x-gambasserverpage + xdg-mime uninstall /usr/share/gambas3/mime/application-x-gambasscript.xml + xdg-mime uninstall /usr/share/gambas3/mime/application-x-gambasserverpage.xml +} |