aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--development/Pivy/Pivy.SlackBuild61
-rw-r--r--development/Pivy/Pivy.info8
-rw-r--r--development/Pivy/README12
-rw-r--r--development/Pivy/slack-desc19
4 files changed, 100 insertions, 0 deletions
diff --git a/development/Pivy/Pivy.SlackBuild b/development/Pivy/Pivy.SlackBuild
new file mode 100644
index 0000000000000..229c514b112cd
--- /dev/null
+++ b/development/Pivy/Pivy.SlackBuild
@@ -0,0 +1,61 @@
+#!/bin/sh
+
+# Slackware build script for Pivy
+
+# Written by Aleksandar Samardzic <asamardzic@gmail.com>
+
+PRGNAM=Pivy
+VERSION=${VERSION:-0.4.0_svn}
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=${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
+tar xvf $CWD/$PRGNAM-latest.tar.gz
+cd $PRGNAM
+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 {} \;
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+python setup.py build
+python setup.py install --root $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
+)
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS ChangeLog HACKING LICENSE NEWS README THANKS \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+find $PKG/usr/doc -type f -exec chmod 0644 {} \;
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/development/Pivy/Pivy.info b/development/Pivy/Pivy.info
new file mode 100644
index 0000000000000..106e3009f6ddf
--- /dev/null
+++ b/development/Pivy/Pivy.info
@@ -0,0 +1,8 @@
+PRGNAM="Pivy"
+VERSION="0.4.0-svn"
+HOMEPAGE="http://pivy.coin3d.org/"
+DOWNLOAD="http://pivy.coin3d.org/download/snapshot/releases/daily/Pivy-latest.tar.gz"
+MD5SUM="298fd0b60aeade579fa2b302298d9298"
+MAINTAINER="Aleksandar Samardzic"
+EMAIL="asamardzic@gmail.com"
+APPROVED="Michiel"
diff --git a/development/Pivy/README b/development/Pivy/README
new file mode 100644
index 0000000000000..a1bc2ffef6372
--- /dev/null
+++ b/development/Pivy/README
@@ -0,0 +1,12 @@
+Pivy is a Python binding for Coin where the interface is implemented
+using SWIG.
+
+Pivy allows:
+ * development of Coin applications in Python
+ * interactive modification of Coin programs from within the Python
+ interpreter at runtime
+ * incorporation of Scripting Nodes into the scene graph which are
+ capable of executing Python code and callback functions
+
+Pivy package depends on Coin and SWIG packages, both available from
+SlackBuilds.org. \ No newline at end of file
diff --git a/development/Pivy/slack-desc b/development/Pivy/slack-desc
new file mode 100644
index 0000000000000..ba0de98fc17c9
--- /dev/null
+++ b/development/Pivy/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------------------------------------------------------|
+Pivy: Pivy is a Coin binding for Python.
+Pivy:
+Pivy: Pivy is an extension to the Python programming language,
+Pivy: wrapping Coin C++ scene graph library for usage from Python.
+Pivy:
+Pivy: Homepage: http://pivy.coin3d.org/
+Pivy:
+Pivy:
+Pivy:
+Pivy:
+Pivy: