summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLehman Black <bzqwerty[at]gmail[dot]com>2010-05-11 14:56:23 +0200
committerMichiel van Wessem <michiel@slackbuilds.org>2010-05-11 14:56:23 +0200
commit5d910a334da14606175309d7249ed839f24fc030 (patch)
treeed40c3ca4a015c1123bd9f79ef740a3aaa018b10
parent2400742b3a5d806ae0e03149fca53c098ea41707 (diff)
downloadslackbuilds-5d910a334da14606175309d7249ed839f24fc030.tar.gz
libraries/ncurses-ruby: Initial import
-rw-r--r--libraries/ncurses-ruby/README3
-rw-r--r--libraries/ncurses-ruby/ncurses-ruby.SlackBuild54
-rw-r--r--libraries/ncurses-ruby/ncurses-ruby.info8
-rw-r--r--libraries/ncurses-ruby/slack-desc19
4 files changed, 84 insertions, 0 deletions
diff --git a/libraries/ncurses-ruby/README b/libraries/ncurses-ruby/README
new file mode 100644
index 0000000000..6025fc5e76
--- /dev/null
+++ b/libraries/ncurses-ruby/README
@@ -0,0 +1,3 @@
+ncurses-ruby is an extension to the Ruby programming language that makes
+most functions, constants, and external variables of the C library ncurses
+accessible.
diff --git a/libraries/ncurses-ruby/ncurses-ruby.SlackBuild b/libraries/ncurses-ruby/ncurses-ruby.SlackBuild
new file mode 100644
index 0000000000..260efc56b2
--- /dev/null
+++ b/libraries/ncurses-ruby/ncurses-ruby.SlackBuild
@@ -0,0 +1,54 @@
+#!/bin/sh
+
+###############################################
+# BUILDS: ncurses-ruby #
+# HOME: http://ncurses-ruby.berlios.de #
+# CONTACT: bzqwerty[at]gmail[dot]com #
+###############################################
+
+# Assumed to be public domain per our submission policy
+# See the README for dependencies and other configuration information
+
+PRGNAM=ncurses-ruby
+VERSION=1.1
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+rm -rf $PKG $TMP/$PRGNAM-$VERSION
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP || exit 1
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1
+cd $PRGNAM-$VERSION || exit 1
+chown -R root:root .
+chmod -R a-s,u+w,go+r-w .
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+fi
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+ ruby extconf.rb || exit 1
+
+make
+make install DESTDIR=$PKG
+
+# no way to strip in Makefile
+strip --strip-unneeded $PKG/usr/lib/ruby/site_ruby/1.8/i486-linux/ncurses_bin.so
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING Changes README THANKS 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
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/libraries/ncurses-ruby/ncurses-ruby.info b/libraries/ncurses-ruby/ncurses-ruby.info
new file mode 100644
index 0000000000..d5d2f66aa8
--- /dev/null
+++ b/libraries/ncurses-ruby/ncurses-ruby.info
@@ -0,0 +1,8 @@
+PRGNAM="ncurses-ruby"
+VERSION="1.1"
+HOMEPAGE="http://ncurses-ruby.berlios.de"
+DOWNLOAD="http://download.berlios.de/ncurses-ruby/ncurses-ruby-1.1.tar.bz2"
+MD5SUM="c96ff6a2fb971aeccebe33cfc6b46035"
+MAINTAINER="Lehman Black"
+EMAIL="bzqwerty[at]gmail[dot]com"
+APPROVED="BP{k}" \ No newline at end of file
diff --git a/libraries/ncurses-ruby/slack-desc b/libraries/ncurses-ruby/slack-desc
new file mode 100644
index 0000000000..33501d9aa4
--- /dev/null
+++ b/libraries/ncurses-ruby/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 ':'.
+
+ |-----------------------------------------------------------------|
+ncurses-ruby: ncurses-ruby (ncurses ruby extention)
+ncurses-ruby:
+ncurses-ruby: ncurses-ruby is an extention to the Ruby programming language
+ncurses-ruby: that makes most functions, constants, and variables of the
+ncurses-ruby: ncurses library accesible to ruby.
+ncurses-ruby:
+ncurses-ruby: Homepage: http://ncurses-ruby.berlios.de
+ncurses-ruby:
+ncurses-ruby:
+ncurses-ruby:
+ncurses-ruby: