summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--development/gambas3/README8
-rw-r--r--development/gambas3/doinst.sh13
-rw-r--r--development/gambas3/gambas3.SlackBuild111
-rw-r--r--development/gambas3/gambas3.info10
-rw-r--r--development/gambas3/slack-desc19
5 files changed, 161 insertions, 0 deletions
diff --git a/development/gambas3/README b/development/gambas3/README
new file mode 100644
index 0000000000..371bdaeef1
--- /dev/null
+++ b/development/gambas3/README
@@ -0,0 +1,8 @@
+Gambas is a free IDE based on a Basic interpreter with object
+extensions, a bit like Visual Basic. With Gambas, you can quickly
+design your program GUI with Qt4 or GTK+, access MySQL, PostgreSQL,
+ODBC and SQLite databases, pilot applications with D-Bus, translate
+your program into any language, create network applications easily,
+make 3D OpenGL applications, make CGI web applications, and so on.
+
+unixODBC, sqlite2 and postgresql are optional dependencies.
diff --git a/development/gambas3/doinst.sh b/development/gambas3/doinst.sh
new file mode 100644
index 0000000000..9424ce43ff
--- /dev/null
+++ b/development/gambas3/doinst.sh
@@ -0,0 +1,13 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -x /usr/bin/update-mime-database ]; then
+ /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/development/gambas3/gambas3.SlackBuild b/development/gambas3/gambas3.SlackBuild
new file mode 100644
index 0000000000..6b4a77b1a3
--- /dev/null
+++ b/development/gambas3/gambas3.SlackBuild
@@ -0,0 +1,111 @@
+#!/bin/bash
+
+# Slackware build script for Gambas
+
+# Copyright 2012 Fridrich von Stauffenberg <cancellor2@gmail.com>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=gambas3
+VERSION=${VERSION:-3.0.0}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+SHORT_PRGNAM=${PRGNAM%$(cut -d . -f 1 <<< $VERSION)}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM-$VERSION
+chown -R root:root .
+
+./reconf-all
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --build=$ARCH-slackware-linux
+
+make -j1
+make install-strip DESTDIR=$PKG
+
+mkdir -p $PKG/usr/share/icons/hicolor/{scalable/apps,48x48/apps,64x64/mimetypes}
+cp app/desktop/$PRGNAM.svg \
+ $PKG/usr/share/icons/hicolor/scalable/apps
+cp app/desktop/$PRGNAM.png \
+ $PKG/usr/share/icons/hicolor/48x48/apps
+cp app/mime/application-x-${SHORT_PRGNAM}{script,serverpage}.png \
+ $PKG/usr/share/icons/hicolor/64x64/mimetypes
+cp main/mime/application-x-$PRGNAM.png \
+ $PKG/usr/share/icons/hicolor/64x64/mimetypes
+
+mkdir -p $PKG/usr/share/{applications,mime/application}
+cp app/desktop/$PRGNAM.desktop \
+ $PKG/usr/share/applications
+cp app/mime/application-x-${SHORT_PRGNAM}script.xml \
+ $PKG/usr/share/mime/application/x-${SHORT_PRGNAM}script.xml
+cp app/mime/application-x-${SHORT_PRGNAM}serverpage.xml \
+ $PKG/usr/share/mime/application/x-${SHORT_PRGNAM}serverpage.xml
+cp main/mime/application-x-$PRGNAM.xml \
+ $PKG/usr/share/mime/application/x-$PRGNAM.xml
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp ChangeLog AUTHORS COPYING INSTALL README NEWS TODO \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/development/gambas3/gambas3.info b/development/gambas3/gambas3.info
new file mode 100644
index 0000000000..cc6634a847
--- /dev/null
+++ b/development/gambas3/gambas3.info
@@ -0,0 +1,10 @@
+PRGNAM="gambas3"
+VERSION="3.0.0"
+HOMEPAGE="http://gambas.sourceforge.net"
+DOWNLOAD="http://downloads.sourceforge.net/project/gambas/gambas3/gambas3-3.0.0.tar.bz2"
+MD5SUM="f2c51e18b67ae6b21065ea0aed9b588e"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Fridrich von Stauffenberg"
+EMAIL="cancellor2@gmail.com"
+APPROVED="Erik Hanson"
diff --git a/development/gambas3/slack-desc b/development/gambas3/slack-desc
new file mode 100644
index 0000000000..fa076859ab
--- /dev/null
+++ b/development/gambas3/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+gambas3: gambas3 (Gambas Almost Means BASic)
+gambas3:
+gambas3: Gambas is a free IDE based on a Basic interpreter with object
+gambas3: extensions, a bit like Visual Basic. With Gambas, you can quickly
+gambas3: design your program GUI with Qt4 or GTK+, access MySQL, PostgreSQL,
+gambas3: ODBC and SQLite databases, pilot applications with D-Bus, translate
+gambas3: your program into any language, create network applications easily,
+gambas3: make 3D OpenGL applications, make CGI web applications, and so on.
+gambas3:
+gambas3: Homepage: http://gambas.sourceforge.net
+gambas3: