aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Trigona-Harany <bosth@alumni.sfu.ca>2011-03-06 10:53:15 -0300
committerNiels Horn <niels.horn@slackbuilds.org>2011-03-06 10:53:15 -0300
commit2fbb29de1a632e8e7dfd689597c91c524dc761aa (patch)
treed0dfea72f179ddecb5430d2a76caf020aa9e8011
parent09cee93a1951d21141887a37ae175869d7f0434b (diff)
network/rubygem-sup: Updated for version 0.12.1.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
-rw-r--r--network/rubygem-sup/rubygem-sup.SlackBuild24
-rw-r--r--network/rubygem-sup/rubygem-sup.info8
2 files changed, 8 insertions, 24 deletions
diff --git a/network/rubygem-sup/rubygem-sup.SlackBuild b/network/rubygem-sup/rubygem-sup.SlackBuild
index d1d058b67382..839371204e61 100644
--- a/network/rubygem-sup/rubygem-sup.SlackBuild
+++ b/network/rubygem-sup/rubygem-sup.SlackBuild
@@ -4,12 +4,11 @@
# based on rubygem template by vbatts
PRGNAM=rubygem-sup
-VERSION=0.12_git60108ad # sbo package name
+VERSION=${VERSION:-0.12.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
SRCNAM=sup
-SUPVERSION=0.12 # ruby gems only allow numeric version numbers
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -43,21 +42,6 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $SRCNAM-$VERSION
-tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
-mv $SRCNAM-mainline $SRCNAM-$VERSION
-
-cd $SRCNAM-$VERSION
-
-# remove ncurses dependency since ncursesw is used in sup whenever available
-sed s/ncurses/ncursesw/ Rakefile > Rakefile.new
-mv Rakefile.new Rakefile
-
-# update the version number
-sed s/999/$SUPVERSION/ sup-version.rb > sup-version.rb.new
-mv sup-version.rb.new sup-version.rb
-
-rake --trace gem
DESTDIR=$( ruby -r rbconfig -e '
include RbConfig
@@ -69,7 +53,7 @@ printf("%s/%s/gems/%s\n",
')
# print a friendly warning of unsatisfied dependencies
-gem specification $TMP/$SRCNAM-$VERSION/pkg/$SRCNAM-$SUPVERSION.gem | \
+gem specification $CWD/$SRCNAM-$VERSION.gem | \
ruby -r rbconfig -r yaml -e '
c = Config::CONFIG
path = sprintf("%s/%s/gems/%s",
@@ -96,7 +80,7 @@ gem install \
--backtrace \
--bindir $PKG/usr/bin \
--install-dir $PKG/$DESTDIR \
- $TMP/$SRCNAM-$VERSION/pkg/$SRCNAM-$SUPVERSION.gem
+ $CWD/$SRCNAM-$VERSION.gem
# Strip binaries and libraries.
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
@@ -106,7 +90,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
rm -rf $PKG/$DESTDIR/cache
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-tar -x -O --file=$TMP/$SRCNAM-$VERSION/pkg/$SRCNAM-$SUPVERSION.gem data.tar.gz | tar -xz -C $PKG/usr/doc/$PRGNAM-$VERSION --file=- \
+tar -x -O --file=$CWD/$SRCNAM-$VERSION.gem data.tar.gz | tar -xz -C $PKG/usr/doc/$PRGNAM-$VERSION --file=- \
README.txt LICENSE History.txt ReleaseNotes
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/network/rubygem-sup/rubygem-sup.info b/network/rubygem-sup/rubygem-sup.info
index 8ae3c60af6e3..582a0b694e77 100644
--- a/network/rubygem-sup/rubygem-sup.info
+++ b/network/rubygem-sup/rubygem-sup.info
@@ -1,10 +1,10 @@
PRGNAM="rubygem-sup"
-VERSION="0.12_git60108ad"
+VERSION="0.12.1"
HOMEPAGE="http://sup.rubyforge.org/"
-DOWNLOAD="http://web.itu.edu.tr/~turkyilma1/sup-0.12_git60108ad.tar.gz"
-MD5SUM="75098597d9e80161ee54ae82301f82c3"
+DOWNLOAD="http://rubygems.org/downloads/sup-0.12.1.gem"
+MD5SUM="a96b39cd9e04f6550859b84bbf81e4ad"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Benjamin Trigona-Harany"
EMAIL="bosth@alumni.sfu.ca"
-APPROVED="dsomero"
+APPROVED="dsomero,Niels Horn"