summaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
Diffstat (limited to 'development')
-rw-r--r--development/Ice/Ice.SlackBuild119
-rw-r--r--development/Ice/Ice.info8
-rw-r--r--development/Ice/README9
-rw-r--r--development/Ice/slack-desc19
4 files changed, 155 insertions, 0 deletions
diff --git a/development/Ice/Ice.SlackBuild b/development/Ice/Ice.SlackBuild
new file mode 100644
index 0000000000..914fc3f2a3
--- /dev/null
+++ b/development/Ice/Ice.SlackBuild
@@ -0,0 +1,119 @@
+#!/bin/sh
+
+# Slackware build script for Ice
+
+# Written by Aleksandar Samardzic <asamardzic@gmail.com>
+
+PRGNAM=Ice
+VERSION=${VERSION:-3.3.0}
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-2}
+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 {} \;
+
+# Now the fun begins. Ice build system consists of plain makefiles,
+# that doesn't seem as supposed to be easily configurable, and some of
+# which are plain buggy in some aspects. So we'll first have to patch
+# a bit.
+
+# First, select programming languages which Ice support will be built
+# for. The C++ support will be always enabled, and the default
+# selection for remaining languages supported by Ice consists of
+# Python, Ruby and PHP here, because Ice could be built for these on
+# vanilla Slackware installation.
+ICE_LANGUAGES="py rb php"
+
+# Patch top-level makefile with above selection.
+sed -i -r \
+ -e "s/^SUBDIRS\s+=.*/SUBDIRS = cpp $ICE_LANGUAGES/" \
+ -e "s/^CLEAN_SUBDIRS\s+=.*/CLEAN_SUBDIRS = cpp $ICE_LANGUAGES/" \
+ -e "s/^DEPEND_SUBDIRS\s+=.*/DEPEND_SUBDIRS = cpp $ICE_LANGUAGES/" \
+ -e "s/^INSTALL_SUBDIRS\s+=.*/INSTALL_SUBDIRS = cpp $ICE_LANGUAGES/" \
+ Makefile
+
+# Now, replace every $(CFLAGS) reference in Ice makefiles to $(CFLAGS)
+# $(EXTRA_CFLAGS), in order to be able to pass $SLKCFLAGS to the
+# compiler at "make" phase below; similarly, replace every $(CXXFLAGS)
+# reference in Ice makefiles to $(CXXFLAGS) $(EXTRA_CXXFLAGS).
+for file in $(grep -ril -E '\$\(CFLAGS\)' ./*); do
+ sed 's/$(CFLAGS)/$(CFLAGS) $(EXTRA_CFLAGS)/' -i $file;
+done
+for file in $(grep -ril -E '\$\(CXXFLAGS\)' ./*); do
+ sed 's/$(CXXFLAGS)/$(CXXFLAGS) $(EXTRA_CXXFLAGS)/' -i $file;
+done
+
+# Now, compile and install. Setting create_runpath_symlink variable to
+# "no" is to disable creating /opt/Ice-$VERSION link to the
+# installation directory.
+make \
+ EXTRA_CFLAGS="$SLKCFLAGS" \
+ EXTRA_CXXFLAGS="$SLKCFLAGS"
+make install \
+ create_runpath_symlink="no" \
+ prefix=$PKG/usr
+
+# Installation rules in Ice makefiles are written for installing
+# everything into completely separate tree (/opt/Ice-$VERSION by
+# default) from the rest of the file-system. Some of this is
+# overcame by setting "prefix=$PKG/usr" when doing "make install"
+# above, but we'll still have to move around some of installed files
+# here.
+rm $PKG/usr/ICE_LICENSE $PKG/usr/LICENSE
+mkdir -p $PKG/usr/share/Ice
+mv $PKG/usr/config $PKG/usr/share/Ice
+mv $PKG/usr/slice $PKG/usr/share/Ice
+if echo $ICE_LANGUAGES | grep -q py; then
+ PYTHON_VERSION=$(python --version 2>&1 | sed 's/[^0-9]*\([0-9]\)\.\([0-9]\).*/\1.\2/')
+ mkdir -p $PKG/usr/lib/python$PYTHON_VERSION/site-packages
+ mv $PKG/usr/python/* $PKG/usr/lib/python$PYTHON_VERSION/site-packages
+ rmdir $PKG/usr/python
+fi
+if echo $ICE_LANGUAGES | grep -q rb; then
+ RUBY_VERSION=$(ruby --version | sed 's/[^0-9]*\([0-9]\)\.\([0-9]\).*/\1.\2/')
+ mkdir -p $PKG/usr/lib/ruby/site_ruby/$RUBY_VERSION
+ mv $PKG/usr/ruby/* $PKG/usr/lib/ruby/site_ruby/$RUBY_VERSION
+ rmdir $PKG/usr/ruby
+fi
+
+( 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 CHANGES ICE_LICENSE LICENSE README RELEASE_NOTES \
+ $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
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/development/Ice/Ice.info b/development/Ice/Ice.info
new file mode 100644
index 0000000000..d092c9fb57
--- /dev/null
+++ b/development/Ice/Ice.info
@@ -0,0 +1,8 @@
+PRGNAM="Ice"
+VERSION="3.3.0"
+HOMEPAGE="http://www.zeroc.com/ice.html"
+DOWNLOAD="http://www.zeroc.com/download/Ice/3.3/Ice-3.3.0.tar.gz"
+MD5SUM="0500306d9cdbc0fbb553fbb529de557a"
+MAINTAINER="Aleksandar Samardzic"
+EMAIL="asamardzic@gmail.com"
+APPROVED="rworkman"
diff --git a/development/Ice/README b/development/Ice/README
new file mode 100644
index 0000000000..c0d890192b
--- /dev/null
+++ b/development/Ice/README
@@ -0,0 +1,9 @@
+Internet Communications Engine, or Ice, is a Remote Procedure Call and
+object middleware system developed by ZeroC (http://www.zeroc.com/)
+and dual-licensed under the GNU GPL and a proprietary license. It
+aims to be useful for real-world systems without being overly complex,
+and also being highly efficient and scalable. It's supported on a very
+large number of environments, including C++, Java, .NET, Visual Basic,
+Python, Ruby and PHP.
+
+Ice requires the mcpp package (also available at SlackBuilds.org).
diff --git a/development/Ice/slack-desc b/development/Ice/slack-desc
new file mode 100644
index 0000000000..0b2e423e2d
--- /dev/null
+++ b/development/Ice/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--------------------------------------------------------|
+Ice: Ice (RPC and object middleware system)
+Ice:
+Ice: Ice, the Internet Communications Engine, is middleware for the
+Ice: practical programmer. A high-performance Internet communications
+Ice: platform, Ice includes a wealth of layered services and plug-ins.
+Ice:
+Ice: Homepage: http://www.zeroc.com/ice.html
+Ice:
+Ice:
+Ice:
+Ice: