aboutsummaryrefslogtreecommitdiff
path: root/academic/gcompris
diff options
context:
space:
mode:
Diffstat (limited to 'academic/gcompris')
-rw-r--r--academic/gcompris/README9
-rw-r--r--academic/gcompris/doinst.sh3
-rw-r--r--academic/gcompris/gcompris.SlackBuild110
-rw-r--r--academic/gcompris/gcompris.info8
-rw-r--r--academic/gcompris/python-sqlite3.patch302
-rw-r--r--academic/gcompris/slack-desc19
6 files changed, 451 insertions, 0 deletions
diff --git a/academic/gcompris/README b/academic/gcompris/README
new file mode 100644
index 0000000000000..8447c7a1f9261
--- /dev/null
+++ b/academic/gcompris/README
@@ -0,0 +1,9 @@
+GCompris is an educational software suite comprising of numerous
+activities for children aged 2 to 10. Some of the activities are game
+orientated, but nonetheless still educational. Currently GCompris
+offers in excess of 80 activities and more are being developed.
+GCompris currently is translated in more than 40 languages.
+GCompris runs fine on the PC 233MHz with 64MB of memory and 150MB of
+disk space. Gcompris REQUIRES gnet & pysqlite2 @ slackbuilds.org .
+
+GCompris requires gnet available at http://slackbuilds.org
diff --git a/academic/gcompris/doinst.sh b/academic/gcompris/doinst.sh
new file mode 100644
index 0000000000000..3857649f506a8
--- /dev/null
+++ b/academic/gcompris/doinst.sh
@@ -0,0 +1,3 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications &> /dev/null
+fi
diff --git a/academic/gcompris/gcompris.SlackBuild b/academic/gcompris/gcompris.SlackBuild
new file mode 100644
index 0000000000000..a4071ea5c7853
--- /dev/null
+++ b/academic/gcompris/gcompris.SlackBuild
@@ -0,0 +1,110 @@
+#!/bin/sh
+# A slackbuild script to build gCompris-8.4.12
+
+# Copyright (c) 2009, Paul Liconti
+
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without modification,
+# are permitted provided that the following conditions are met:
+#
+# * Redistributions of source code must retain the above copyright notice,
+# this list of conditions and the following disclaimer.
+# * Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "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 COPYRIGHT
+# OWNER OR
+# CONTRIBUTORS 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.
+#
+# Modified by SlackBuilds.org
+
+PRGNAM=gcompris
+VERSION=8.4.12
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+patch -p0 < $CWD/python-sqlite3.patch
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --infodir=/usr/info \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --build=$ARCH-slackware-linux
+
+make
+make install DESTDIR=$PKG
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+)
+
+( cd $PKG/usr/man
+ find . -type f -exec gzip -9 {} \;
+ for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+)
+
+rm -f $PKG/usr/info/dir
+gzip -9 $PKG/usr/info/*.info*
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+ cp -a ABOUT-NLS AUTHORS ChangeLog COPYING INSTALL README TODO docs \
+ $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.tgz \ No newline at end of file
diff --git a/academic/gcompris/gcompris.info b/academic/gcompris/gcompris.info
new file mode 100644
index 0000000000000..1d7f4ce279672
--- /dev/null
+++ b/academic/gcompris/gcompris.info
@@ -0,0 +1,8 @@
+PRGNAM="gcompris"
+VERSION="8.4.12"
+HOMEPAGE="http://gcompris.net/"
+DOWNLOAD="http://downloads.sourceforge.net/gcompris/gcompris-8.4.12.tar.gz"
+MD5SUM="8a1519e71caa0924d5df73faa311eea3"
+MAINTAINER="Paul Liconti"
+EMAIL=""
+APPROVED="dsomero"
diff --git a/academic/gcompris/python-sqlite3.patch b/academic/gcompris/python-sqlite3.patch
new file mode 100644
index 0000000000000..4d727cc08845d
--- /dev/null
+++ b/academic/gcompris/python-sqlite3.patch
@@ -0,0 +1,302 @@
+--- configure 2009-03-29 06:39:51.000000000 -0400
++++ configure 2009-04-19 17:38:50.000000000 -0400
+@@ -19578,7 +19578,7 @@
+ prog="
+ import sys
+ try:
+- import pysqlite2
++ import sqlite3 as sqlite
+ except ImportError:
+ sys.exit(1)
+ except:
+--- src/boards/python/admin/module_users.py
++++ src/boards/python/admin/module_users.py
+@@ -26,7 +26,13 @@
+ from gcompris import gcompris_gettext as _
+
+ # Database
+-from pysqlite2 import dbapi2 as sqlite
++try:
++ import sqlite3 as sqlite
++except ImportError:
++ try:
++ from pysqlite2 import dbapi2 as sqlite
++ except ImportError:
++ raise ImportError, "no module named sqlite3 or pysqlite2.dbapi2"
+
+ import module
+ import class_list
+--- src/boards/python/admin/class_edit.py
++++ src/boards/python/admin/class_edit.py
+@@ -23,7 +23,13 @@
+ from gcompris import gcompris_gettext as _
+
+ # Database
+-from pysqlite2 import dbapi2 as sqlite
++try:
++ import sqlite3 as sqlite
++except ImportError:
++ try:
++ from pysqlite2 import dbapi2 as sqlite
++ except ImportError:
++ raise ImportError, "no module named sqlite3 or pysqlite2.dbapi2"
+
+ import user_list
+
+--- src/boards/python/admin/class_list.py
++++ src/boards/python/admin/class_list.py
+@@ -26,7 +26,13 @@
+ from gcompris import gcompris_gettext as _
+
+ # Database
+-from pysqlite2 import dbapi2 as sqlite
++try:
++ import sqlite3 as sqlite
++except ImportError:
++ try:
++ from pysqlite2 import dbapi2 as sqlite
++ except ImportError:
++ raise ImportError, "no module named sqlite3 or pysqlite2.dbapi2"
+
+ import constants
+
+--- src/boards/python/admin/module_boards.py
++++ src/boards/python/admin/module_boards.py
+@@ -27,7 +27,13 @@
+ import sys;
+
+ # Database
+-from pysqlite2 import dbapi2 as sqlite
++try:
++ import sqlite3 as sqlite
++except ImportError:
++ try:
++ from pysqlite2 import dbapi2 as sqlite
++ except ImportError:
++ raise ImportError, "no module named sqlite3 or pysqlite2.dbapi2"
+
+ import module
+ import board_list
+--- src/boards/python/admin/user_edit.py
++++ src/boards/python/admin/user_edit.py
+@@ -23,7 +23,13 @@
+ from gcompris import gcompris_gettext as _
+
+ # Database
+-from pysqlite2 import dbapi2 as sqlite
++try:
++ import sqlite3 as sqlite
++except ImportError:
++ try:
++ from pysqlite2 import dbapi2 as sqlite
++ except ImportError:
++ raise ImportError, "no module named sqlite3 or pysqlite2.dbapi2"
+
+ import user_list
+
+--- src/boards/python/admin/group_list.py
++++ src/boards/python/admin/group_list.py
+@@ -26,7 +26,13 @@
+ from gcompris import gcompris_gettext as _
+
+ # Database
+-from pysqlite2 import dbapi2 as sqlite
++try:
++ import sqlite3 as sqlite
++except ImportError:
++ try:
++ from pysqlite2 import dbapi2 as sqlite
++ except ImportError:
++ raise ImportError, "no module named sqlite3 or pysqlite2.dbapi2"
+
+ import group_user_list
+ import group_edit
+--- src/boards/python/admin/profile_list.py
++++ src/boards/python/admin/profile_list.py
+@@ -26,7 +26,13 @@
+ from gcompris import gcompris_gettext as _
+
+ # Database
+-from pysqlite2 import dbapi2 as sqlite
++try:
++ import sqlite3 as sqlite
++except ImportError:
++ try:
++ from pysqlite2 import dbapi2 as sqlite
++ except ImportError:
++ raise ImportError, "no module named sqlite3 or pysqlite2.dbapi2"
+
+ import profile_group_list
+ import profile_edit
+--- src/boards/python/admin/log_list.py
++++ src/boards/python/admin/log_list.py
+@@ -27,7 +27,13 @@
+ from gcompris import gcompris_gettext as _
+
+ # Database
+-from pysqlite2 import dbapi2 as sqlite
++try:
++ import sqlite3 as sqlite
++except ImportError:
++ try:
++ from pysqlite2 import dbapi2 as sqlite
++ except ImportError:
++ raise ImportError, "no module named sqlite3 or pysqlite2.dbapi2"
+
+ import constants
+
+--- src/boards/python/admin/profile_group_list.py
++++ src/boards/python/admin/profile_group_list.py
+@@ -28,7 +28,13 @@
+ import constants
+
+ # Database
+-from pysqlite2 import dbapi2 as sqlite
++try:
++ import sqlite3 as sqlite
++except ImportError:
++ try:
++ from pysqlite2 import dbapi2 as sqlite
++ except ImportError:
++ raise ImportError, "no module named sqlite3 or pysqlite2.dbapi2"
+
+ #import group_edit
+
+--- src/boards/python/admin/profile_edit.py
++++ src/boards/python/admin/profile_edit.py
+@@ -27,7 +27,13 @@
+ import constants
+
+ # Database
+-from pysqlite2 import dbapi2 as sqlite
++try:
++ import sqlite3 as sqlite
++except ImportError:
++ try:
++ from pysqlite2 import dbapi2 as sqlite
++ except ImportError:
++ raise ImportError, "no module named sqlite3 or pysqlite2.dbapi2"
+
+ # Group Management
+ (
+--- src/boards/python/admin/group_edit.py
++++ src/boards/python/admin/group_edit.py
+@@ -27,7 +27,13 @@
+ import constants
+
+ # Database
+-from pysqlite2 import dbapi2 as sqlite
++try:
++ import sqlite3 as sqlite
++except ImportError:
++ try:
++ from pysqlite2 import dbapi2 as sqlite
++ except ImportError:
++ raise ImportError, "no module named sqlite3 or pysqlite2.dbapi2"
+
+ # User List Management
+ (
+--- src/boards/python/admin/module_groups.py
++++ src/boards/python/admin/module_groups.py
+@@ -25,7 +25,13 @@
+ from gcompris import gcompris_gettext as _
+
+ # Database
+-from pysqlite2 import dbapi2 as sqlite
++try:
++ import sqlite3 as sqlite
++except ImportError:
++ try:
++ from pysqlite2 import dbapi2 as sqlite
++ except ImportError:
++ raise ImportError, "no module named sqlite3 or pysqlite2.dbapi2"
+
+ import module
+ import group_list
+--- src/boards/python/admin/module_reports.py
++++ src/boards/python/admin/module_reports.py
+@@ -26,8 +26,14 @@
+ from gcompris import gcompris_gettext as _
+
+ # Database
+-from pysqlite2 import dbapi2 as sqlite
+-
++try:
++ import sqlite3 as sqlite
++except ImportError:
++ try:
++ from pysqlite2 import dbapi2 as sqlite
++ except ImportError:
++ raise ImportError, "no module named sqlite3 or pysqlite2.dbapi2"
++
+ import module
+ import log_list
+
+--- src/boards/python/admin/module_profiles.py
++++ src/boards/python/admin/module_profiles.py
+@@ -28,7 +28,13 @@
+ import profile_list
+
+ # Database
+-from pysqlite2 import dbapi2 as sqlite
++try:
++ import sqlite3 as sqlite
++except ImportError:
++ try:
++ from pysqlite2 import dbapi2 as sqlite
++ except ImportError:
++ raise ImportError, "no module named sqlite3 or pysqlite2.dbapi2"
+
+ class Profiles(module.Module):
+ """Administrating GCompris Profiles"""
+--- src/boards/python/admin/group_user_list.py
++++ src/boards/python/admin/group_user_list.py
+@@ -28,7 +28,13 @@
+ import constants
+
+ # Database
+-from pysqlite2 import dbapi2 as sqlite
++try:
++ import sqlite3 as sqlite
++except ImportError:
++ try:
++ from pysqlite2 import dbapi2 as sqlite
++ except ImportError:
++ raise ImportError, "no module named sqlite3 or pysqlite2.dbapi2"
+
+ #import group_edit
+
+--- src/boards/python/admin/board_list.py
++++ src/boards/python/admin/board_list.py
+@@ -27,7 +27,13 @@
+ from gcompris import gcompris_gettext as _
+
+ # Database
+-#from pysqlite2 import dbapi2 as sqlite
++#try:
++# import sqlite3 as sqlite
++#except ImportError:
++# try:
++# from pysqlite2 import dbapi2 as sqlite
++# except ImportError:
++# raise ImportError, "no module named sqlite3 or pysqlite2.dbapi2"
+
+ # Board Management
+ (
+--- src/boards/python/admin/user_list.py
++++ src/boards/python/admin/user_list.py
+@@ -25,7 +25,13 @@
+ from gcompris import gcompris_gettext as _
+
+ # Database
+-from pysqlite2 import dbapi2 as sqlite
++try:
++ import sqlite3 as sqlite
++except ImportError:
++ try:
++ from pysqlite2 import dbapi2 as sqlite
++ except ImportError:
++ raise ImportError, "no module named sqlite3 or pysqlite2.dbapi2"
+
+ import constants
+ import user_edit
diff --git a/academic/gcompris/slack-desc b/academic/gcompris/slack-desc
new file mode 100644
index 0000000000000..fdd2fca737171
--- /dev/null
+++ b/academic/gcompris/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 ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+gcompris: GCompris (an educational software suite for children ages 2 to 10)
+gcompris:
+gcompris: GCompris is an educational software suite comprising of numerous
+gcompris: activities for children aged 2 to 10. Some of the activities are game
+gcompris: orientated, but nonetheless still educational. Currently GCompris
+gcompris: offers in excess of 80 activities and more are being developed.
+gcompris: GCompris currently is translated in more than 40 languages.
+gcompris: GCompris runs fine on the PC 233MHz with 64MB of memory and 150MB of
+gcompris: disk space. Gcompris REQUIRES gnet & pysqlite2 @ slackbuilds.org .
+gcompris:
+gcompris: Homepage: http://gcompris.net/