diff options
Diffstat (limited to 'network/rubygem-sup/rubygem-sup.SlackBuild')
-rw-r--r-- | network/rubygem-sup/rubygem-sup.SlackBuild | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/network/rubygem-sup/rubygem-sup.SlackBuild b/network/rubygem-sup/rubygem-sup.SlackBuild index d1d058b673..839371204e 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 |