libraries/ncurses-ruby: Initial import
This commit is contained in:
parent
2400742b3a
commit
5d910a334d
|
@ -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.
|
|
@ -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
|
|
@ -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}"
|
|
@ -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:
|
Loading…
Reference in New Issue