diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2011-03-16 00:48:27 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-03-20 12:32:51 -0500 |
commit | 987d45e99a299c3b24418b2976e8ec9d5f3bf404 (patch) | |
tree | 2e1a731642cf7dc9e4e620bad0a425418f33d36e /ruby | |
parent | 93ba4df5022a8c4d422dd97a2a13ffa8a8946453 (diff) |
ruby/*: Moved all (or at least most) Ruby stuff to here
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'ruby')
48 files changed, 1595 insertions, 0 deletions
diff --git a/ruby/ruby-gtk2/README b/ruby/ruby-gtk2/README new file mode 100644 index 0000000000000..739f55c30bc4f --- /dev/null +++ b/ruby/ruby-gtk2/README @@ -0,0 +1,8 @@ +ruby-gtk2 (ruby bindings for gtk2) + +This is a subset of the Ruby-GNOME2 project. Ruby-GNOME2 is a set of +Ruby language bindings for the GNOME 2.0 development environment. +This is the next generation of Ruby-GNOME. + +Included libraries are Ruby/GLib2, Ruby/ATK, Ruby/Pango, Ruby/GdkPixbuf2, +and Ruby/GTK2. diff --git a/ruby/ruby-gtk2/ruby-gtk2.SlackBuild b/ruby/ruby-gtk2/ruby-gtk2.SlackBuild new file mode 100644 index 0000000000000..e4f3fcf15917c --- /dev/null +++ b/ruby/ruby-gtk2/ruby-gtk2.SlackBuild @@ -0,0 +1,56 @@ +#!/bin/sh + +# Slackware build script for ruby-gtk2 + +# Written by Vincent Batts, vbatts@hashbangbash.com + +PRGNAM=ruby-gtk2 +VERSION=${VERSION:-0.19.3} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +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 {} \; + +ruby extconf.rb +make +make install DESTDIR=$PKG + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS COPYING.LIB ChangeLog NEWS README \ + $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.${PKGTYPE:-tgz} diff --git a/ruby/ruby-gtk2/ruby-gtk2.info b/ruby/ruby-gtk2/ruby-gtk2.info new file mode 100644 index 0000000000000..43cec1c97ee2e --- /dev/null +++ b/ruby/ruby-gtk2/ruby-gtk2.info @@ -0,0 +1,10 @@ +PRGNAM="ruby-gtk2" +VERSION="0.19.3" +HOMEPAGE="http://ruby-gnome2.sourceforge.jp/" +DOWNLOAD="http://downloads.sourceforge.net/sourceforge/ruby-gnome2/ruby-gtk2-0.19.3.tar.gz" +MD5SUM="a8f8dac03008d7c6397a3fe225ef5929" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Vincent Batts" +EMAIL="vbatts@hashbangbash.com" +APPROVED="rworkman" diff --git a/ruby/ruby-gtk2/slack-desc b/ruby/ruby-gtk2/slack-desc new file mode 100644 index 0000000000000..b3387142efe5f --- /dev/null +++ b/ruby/ruby-gtk2/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------------------------------------------------------| +ruby-gtk2: ruby-gtk2 (ruby bindings for gtk2) +ruby-gtk2: +ruby-gtk2: This is a subset of the Ruby-GNOME2 project. Ruby-GNOME2 is a set of +ruby-gtk2: Ruby language bindings for the GNOME 2.0 development environment. +ruby-gtk2: +ruby-gtk2: This is the next generation of Ruby-GNOME. +ruby-gtk2: +ruby-gtk2: Homepage: http://ruby-gnome2.sourceforge.jp/ +ruby-gtk2: +ruby-gtk2: +ruby-gtk2: diff --git a/ruby/rubygem-gettext/README b/ruby/rubygem-gettext/README new file mode 100644 index 0000000000000..2e1ca6eab9f46 --- /dev/null +++ b/ruby/rubygem-gettext/README @@ -0,0 +1,4 @@ +Rubygem-gettext is a GNU GetText-like program for Ruby. The catalog file +(po-file) uses the same format as GNU GetText. + +This requires rubygem-locale. diff --git a/ruby/rubygem-gettext/rubygem-gettext.SlackBuild b/ruby/rubygem-gettext/rubygem-gettext.SlackBuild new file mode 100644 index 0000000000000..8d49c5db0ddb6 --- /dev/null +++ b/ruby/rubygem-gettext/rubygem-gettext.SlackBuild @@ -0,0 +1,99 @@ +#!/bin/sh + +# Script written by Benjamin Trigona-Harany (bosth@alumni.sfu.ca) +# based on rubygem template by vbatts + +PRGNAM=rubygem-gettext +VERSION=${VERSION:-2.1.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +SRCNAM=gettext + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP + +DESTDIR=$( ruby -r rbconfig -e ' +include RbConfig +printf("%s/%s/gems/%s\n", + CONFIG["libdir"], + CONFIG["RUBY_INSTALL_NAME"], + CONFIG["ruby_version"] + ) +') + +# print a friendly warning of unsatisfied dependencies +gem specification $CWD/$SRCNAM-$VERSION.gem | \ + ruby -r yaml -r rbconfig -e ' +c = Config::CONFIG +path = sprintf("%s/%s/gems/%s", + c["libdir"], + c["RUBY_INSTALL_NAME"], + c["ruby_version"]) +sys_gemspecs = Dir.glob(path + "/specifications/*").map {|g| gs = Gem::Specification.load(g); gs.name } +obj = Gem::Specification.from_yaml($stdin) +obj.dependencies.each {|dep| + if not(dep.type == :runtime) + next + end + if not(sys_gemspecs.include?(dep.name)) + $stderr.write("WARNING: #{dep.name} gem not found\n") + sleep 0.5 + end +}' + +gem install \ + --local \ + --no-update-sources \ + --ignore-dependencies \ + --backtrace \ + --install-dir $PKG/$DESTDIR \ + $CWD/$SRCNAM-$VERSION.gem + +# Strip binaries and libraries. +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +# Remove cached gem from install +rm -rf $PKG/$DESTDIR/cache + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +tar -x -O --file=$CWD/$SRCNAM-$VERSION.gem data.tar.gz | tar -xz -C $PKG/usr/doc/$PRGNAM-$VERSION --file=- \ + COPYING ChangeLog NEWS-1 README.rdoc +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.${PKGTYPE:-tgz} diff --git a/ruby/rubygem-gettext/rubygem-gettext.info b/ruby/rubygem-gettext/rubygem-gettext.info new file mode 100644 index 0000000000000..6be0a82d35ca5 --- /dev/null +++ b/ruby/rubygem-gettext/rubygem-gettext.info @@ -0,0 +1,10 @@ +PRGNAM="rubygem-gettext" +VERSION="2.1.0" +HOMEPAGE="http://www.yotabanana.com/hiki/ruby-gettext.html" +DOWNLOAD="http://rubygems.org/downloads/gettext-2.1.0.gem" +MD5SUM="5b6fc788ca241aeb5997c4081cbb311d" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Benjamin Trigona-Harany" +EMAIL="bosth@alumni.sfu.ca" +APPROVED="dsomero" diff --git a/ruby/rubygem-gettext/slack-desc b/ruby/rubygem-gettext/slack-desc new file mode 100644 index 0000000000000..e4ca3365ba806 --- /dev/null +++ b/ruby/rubygem-gettext/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 ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +rubygem-gettext: rubygem-gettext (gettext for ruby) +rubygem-gettext: +rubygem-gettext: Ruby-GetText is a GNU GetText-like program for Ruby. +rubygem-gettext: +rubygem-gettext: +rubygem-gettext: +rubygem-gettext: +rubygem-gettext: +rubygem-gettext: +rubygem-gettext: +rubygem-gettext: diff --git a/ruby/rubygem-highline/README b/ruby/rubygem-highline/README new file mode 100644 index 0000000000000..04cdaac4a1cd9 --- /dev/null +++ b/ruby/rubygem-highline/README @@ -0,0 +1,7 @@ +HighLine is a Ruby Gem designed to ease the tasks of doing console +input and output with low-level methods like gets() and puts(). +HighLine provides a robust system for requesting data from a user, +without needing to code all the error checking and validation rules and +without needing to convert the typed Strings into what your program +really needs. Just tell HighLine what you're after, and let it do +all the work. diff --git a/ruby/rubygem-highline/rubygem-highline.SlackBuild b/ruby/rubygem-highline/rubygem-highline.SlackBuild new file mode 100644 index 0000000000000..0aba1771e6b65 --- /dev/null +++ b/ruby/rubygem-highline/rubygem-highline.SlackBuild @@ -0,0 +1,99 @@ +#!/bin/sh + +# Script written by Benjamin Trigona-Harany (bosth@alumni.sfu.ca) +# based on rubygem template by vbatts + +PRGNAM=rubygem-highline +VERSION=${VERSION:-1.6.1} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +SRCNAM=highline + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP + +DESTDIR=$( ruby -r rbconfig -e ' +include RbConfig +printf("%s/%s/gems/%s\n", + CONFIG["libdir"], + CONFIG["RUBY_INSTALL_NAME"], + CONFIG["ruby_version"] + ) +') + +# print a friendly warning of unsatisfied dependencies +gem specification $CWD/$SRCNAM-$VERSION.gem | \ + ruby -r yaml -r rbconfig -e ' +c = Config::CONFIG +path = sprintf("%s/%s/gems/%s", + c["libdir"], + c["RUBY_INSTALL_NAME"], + c["ruby_version"]) +sys_gemspecs = Dir.glob(path + "/specifications/*").map {|g| gs = Gem::Specification.load(g); gs.name } +obj = Gem::Specification.from_yaml($stdin) +obj.dependencies.each {|dep| + if not(dep.type == :runtime) + next + end + if not(sys_gemspecs.include?(dep.name)) + $stderr.write("WARNING: #{dep.name} gem not found\n") + sleep 0.5 + end +}' + +gem install \ + --local \ + --no-update-sources \ + --ignore-dependencies \ + --backtrace \ + --install-dir $PKG/$DESTDIR \ + $CWD/$SRCNAM-$VERSION.gem + +# Strip binaries and libraries. +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +# Remove cached gem from install +rm -rf $PKG/$DESTDIR/cache + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +tar -x -O --file=$CWD/$SRCNAM-$VERSION.gem data.tar.gz | tar -xz -C $PKG/usr/doc/$PRGNAM-$VERSION --file=- \ + CHANGELOG INSTALL LICENSE README TODO +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.${PKGTYPE:-tgz} diff --git a/ruby/rubygem-highline/rubygem-highline.info b/ruby/rubygem-highline/rubygem-highline.info new file mode 100644 index 0000000000000..c28301a99b523 --- /dev/null +++ b/ruby/rubygem-highline/rubygem-highline.info @@ -0,0 +1,10 @@ +PRGNAM="rubygem-highline" +VERSION="1.6.1" +HOMEPAGE="http://highline.rubyforge.org/" +DOWNLOAD="http://rubygems.org/downloads/highline-1.6.1.gem" +MD5SUM="7df5009f04255c573751661bc58459f8" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Benjamin Trigona-Harany" +EMAIL="bosth@alumni.sfu.ca" +APPROVED="dsomero" diff --git a/ruby/rubygem-highline/slack-desc b/ruby/rubygem-highline/slack-desc new file mode 100644 index 0000000000000..0fad89ef8c0d3 --- /dev/null +++ b/ruby/rubygem-highline/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 ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +rubygem-highline: rubygem-highline (ruby console input library) +rubygem-highline: +rubygem-highline: HighLine is a Ruby Gem designed to ease the tasks of doing console +rubygem-highline: input and output with low-level methods like gets() and puts(). +rubygem-highline: HighLine provides a robust system for requesting data from a user, +rubygem-highline: without needing to code all the error checking and validation rules +rubygem-highline: and without needing to convert the typed strings into what your +rubygem-highline: program really needs. +rubygem-highline: +rubygem-highline: +rubygem-highline: diff --git a/ruby/rubygem-locale/README b/ruby/rubygem-locale/README new file mode 100644 index 0000000000000..9cea5089cfec2 --- /dev/null +++ b/ruby/rubygem-locale/README @@ -0,0 +1,2 @@ +Ruby-Locale is the pure ruby library which provides basic APIs for +localization. diff --git a/ruby/rubygem-locale/rubygem-locale.SlackBuild b/ruby/rubygem-locale/rubygem-locale.SlackBuild new file mode 100644 index 0000000000000..3bfc52f257e06 --- /dev/null +++ b/ruby/rubygem-locale/rubygem-locale.SlackBuild @@ -0,0 +1,99 @@ +#!/bin/sh + +# Script written by Benjamin Trigona-Harany (bosth@alumni.sfu.ca) +# based on rubygem template by vbatts + +PRGNAM=rubygem-locale +VERSION=${VERSION:-2.0.5} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +SRCNAM=locale + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP + +DESTDIR=$( ruby -r rbconfig -e ' +include RbConfig +printf("%s/%s/gems/%s\n", + CONFIG["libdir"], + CONFIG["RUBY_INSTALL_NAME"], + CONFIG["ruby_version"] + ) +') + +# print a friendly warning of unsatisfied dependencies +gem specification $CWD/$SRCNAM-$VERSION.gem | \ + ruby -r yaml -r rbconfig -e ' +c = Config::CONFIG +path = sprintf("%s/%s/gems/%s", + c["libdir"], + c["RUBY_INSTALL_NAME"], + c["ruby_version"]) +sys_gemspecs = Dir.glob(path + "/specifications/*").map {|g| gs = Gem::Specification.load(g); gs.name } +obj = Gem::Specification.from_yaml($stdin) +obj.dependencies.each {|dep| + if not(dep.type == :runtime) + next + end + if not(sys_gemspecs.include?(dep.name)) + $stderr.write("WARNING: #{dep.name} gem not found\n") + sleep 0.5 + end +}' + +gem install \ + --local \ + --no-update-sources \ + --ignore-dependencies \ + --backtrace \ + --install-dir $PKG/$DESTDIR \ + $CWD/$SRCNAM-$VERSION.gem + +# Strip binaries and libraries. +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +# Remove cached gem from install +rm -rf $PKG/$DESTDIR/cache + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +tar -x -O --file=$CWD/$SRCNAM-$VERSION.gem data.tar.gz | tar -xz -C $PKG/usr/doc/$PRGNAM-$VERSION --file=- \ + ChangeLog COPYING +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.${PKGTYPE:-tgz} diff --git a/ruby/rubygem-locale/rubygem-locale.info b/ruby/rubygem-locale/rubygem-locale.info new file mode 100644 index 0000000000000..ea6a359dccae6 --- /dev/null +++ b/ruby/rubygem-locale/rubygem-locale.info @@ -0,0 +1,10 @@ +PRGNAM="rubygem-locale" +VERSION="2.0.5" +HOMEPAGE="http://locale.rubyforge.org/" +DOWNLOAD="http://rubygems.org/downloads/locale-2.0.5.gem" +MD5SUM="90d530335d0210f8e58c2bad95003951" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Benjamin Trigona-Harany" +EMAIL="bosth@alumni.sfu.ca" +APPROVED="dsomero" diff --git a/ruby/rubygem-locale/slack-desc b/ruby/rubygem-locale/slack-desc new file mode 100644 index 0000000000000..53d971c8b5695 --- /dev/null +++ b/ruby/rubygem-locale/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 ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +rubygem-locale: rubygem-locale (localisation API for Ruby) +rubygem-locale: +rubygem-locale: Rubygem of the pure ruby library which provides basic APIs for +rubygem-locale: localisation. +rubygem-locale: +rubygem-locale: +rubygem-locale: +rubygem-locale: +rubygem-locale: +rubygem-locale: +rubygem-locale: diff --git a/ruby/rubygem-lockfile/README b/ruby/rubygem-lockfile/README new file mode 100644 index 0000000000000..c4a7ebd72a49a --- /dev/null +++ b/ruby/rubygem-lockfile/README @@ -0,0 +1 @@ +Rubygem package for creating lockfiles under Ruby. diff --git a/ruby/rubygem-lockfile/rubygem-lockfile.SlackBuild b/ruby/rubygem-lockfile/rubygem-lockfile.SlackBuild new file mode 100644 index 0000000000000..72581961dd52d --- /dev/null +++ b/ruby/rubygem-lockfile/rubygem-lockfile.SlackBuild @@ -0,0 +1,99 @@ +#!/bin/sh + +# Script written by Benjamin Trigona-Harany (bosth@alumni.sfu.ca) +# based on rubygem template by vbatts + +PRGNAM=rubygem-lockfile +VERSION=${VERSION:-1.4.3} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +SRCNAM=lockfile + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP + +DESTDIR=$( ruby -r rbconfig -e ' +include RbConfig +printf("%s/%s/gems/%s\n", + CONFIG["libdir"], + CONFIG["RUBY_INSTALL_NAME"], + CONFIG["ruby_version"] + ) +') + +# print a friendly warning of unsatisfied dependencies +gem specification $CWD/$SRCNAM-$VERSION.gem | \ + ruby -r yaml -r rbconfig -e ' +c = Config::CONFIG +path = sprintf("%s/%s/gems/%s", + c["libdir"], + c["RUBY_INSTALL_NAME"], + c["ruby_version"]) +sys_gemspecs = Dir.glob(path + "/specifications/*").map {|g| gs = Gem::Specification.load(g); gs.name } +obj = Gem::Specification.from_yaml($stdin) +obj.dependencies.each {|dep| + if not(dep.type == :runtime) + next + end + if not(sys_gemspecs.include?(dep.name)) + $stderr.write("WARNING: #{dep.name} gem not found\n") + sleep 0.5 + end +}' + +gem install \ + --local \ + --no-update-sources \ + --ignore-dependencies \ + --backtrace \ + --install-dir $PKG/$DESTDIR \ + $CWD/$SRCNAM-$VERSION.gem + +# Strip binaries and libraries. +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +# Remove cached gem from install +rm -rf $PKG/$DESTDIR/cache + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +tar -x -O --file=$CWD/$SRCNAM-$VERSION.gem data.tar.gz | tar -xz -C $PKG/usr/doc/$PRGNAM-$VERSION --file=- \ + README +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.${PKGTYPE:-tgz} diff --git a/ruby/rubygem-lockfile/rubygem-lockfile.info b/ruby/rubygem-lockfile/rubygem-lockfile.info new file mode 100644 index 0000000000000..1aa400d15b2b1 --- /dev/null +++ b/ruby/rubygem-lockfile/rubygem-lockfile.info @@ -0,0 +1,10 @@ +PRGNAM="rubygem-lockfile" +VERSION="1.4.3" +HOMEPAGE="http://rubygems.org/gems/lockfile" +DOWNLOAD="http://rubygems.org/downloads/lockfile-1.4.3.gem" +MD5SUM="53a63206bbaefb7106db5a74a5adf148" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Benjamin Trigona-Harany" +EMAIL="bosth@alumni.sfu.ca" +APPROVED="dsomero" diff --git a/ruby/rubygem-lockfile/slack-desc b/ruby/rubygem-lockfile/slack-desc new file mode 100644 index 0000000000000..c33e1f136ff31 --- /dev/null +++ b/ruby/rubygem-lockfile/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 ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +rubygem-lockfile: rubygem-lockfile (Ruby lockfiles) +rubygem-lockfile: +rubygem-lockfile: Rubygem for creating lockfiles under ruby. +rubygem-lockfile: +rubygem-lockfile: +rubygem-lockfile: +rubygem-lockfile: +rubygem-lockfile: +rubygem-lockfile: +rubygem-lockfile: +rubygem-lockfile: diff --git a/ruby/rubygem-mime-types/README b/ruby/rubygem-mime-types/README new file mode 100644 index 0000000000000..3386d7c796d8b --- /dev/null +++ b/ruby/rubygem-mime-types/README @@ -0,0 +1,3 @@ +This library allows for the identification of a file's likely MIME +content type. The identification of MIME content type is based on a +file's filename extensions. diff --git a/ruby/rubygem-mime-types/rubygem-mime-types.SlackBuild b/ruby/rubygem-mime-types/rubygem-mime-types.SlackBuild new file mode 100644 index 0000000000000..eb01209dd8da5 --- /dev/null +++ b/ruby/rubygem-mime-types/rubygem-mime-types.SlackBuild @@ -0,0 +1,99 @@ +#!/bin/sh + +# Script written by Benjamin Trigona-Harany (bosth@alumni.sfu.ca) +# based on rubygem template by vbatts + +PRGNAM=rubygem-mime-types +VERSION=${VERSION:-1.16} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +SRCNAM=mime-types + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP + +DESTDIR=$( ruby -r rbconfig -e ' +include RbConfig +printf("%s/%s/gems/%s\n", + CONFIG["libdir"], + CONFIG["RUBY_INSTALL_NAME"], + CONFIG["ruby_version"] + ) +') + +# print a friendly warning of unsatisfied dependencies +gem specification $CWD/$SRCNAM-$VERSION.gem | \ + ruby -r yaml -r rbconfig -e ' +c = Config::CONFIG +path = sprintf("%s/%s/gems/%s", + c["libdir"], + c["RUBY_INSTALL_NAME"], + c["ruby_version"]) +sys_gemspecs = Dir.glob(path + "/specifications/*").map {|g| gs = Gem::Specification.load(g); gs.name } +obj = Gem::Specification.from_yaml($stdin) +obj.dependencies.each {|dep| + if not(dep.type == :runtime) + next + end + if not(sys_gemspecs.include?(dep.name)) + $stderr.write("WARNING: #{dep.name} gem not found\n") + sleep 0.5 + end +}' + +gem install \ + --local \ + --no-update-sources \ + --ignore-dependencies \ + --backtrace \ + --install-dir $PKG/$DESTDIR \ + $CWD/$SRCNAM-$VERSION.gem + +# Strip binaries and libraries. +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +# Remove cached gem from install +rm -rf $PKG/$DESTDIR/cache + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +tar -x -O --file=$CWD/$SRCNAM-$VERSION.gem data.tar.gz | tar -xz -C $PKG/usr/doc/$PRGNAM-$VERSION --file=- \ + README.txt Install.txt History.txt Licence.txt +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.${PKGTYPE:-tgz} diff --git a/ruby/rubygem-mime-types/rubygem-mime-types.info b/ruby/rubygem-mime-types/rubygem-mime-types.info new file mode 100644 index 0000000000000..e1bdb2b2e3869 --- /dev/null +++ b/ruby/rubygem-mime-types/rubygem-mime-types.info @@ -0,0 +1,10 @@ +PRGNAM="rubygem-mime-types" +VERSION="1.16" +HOMEPAGE="http://mime-types.rubyforge.org" +DOWNLOAD="http://rubygems.org/downloads/mime-types-1.16.gem" +MD5SUM="2c9b8568a76cc632578a292db4a71b9a" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Benjamin Trigona-Harany" +EMAIL="bosth@alumni.sfu.ca" +APPROVED="dsomero" diff --git a/ruby/rubygem-mime-types/slack-desc b/ruby/rubygem-mime-types/slack-desc new file mode 100644 index 0000000000000..8cd146c29ec65 --- /dev/null +++ b/ruby/rubygem-mime-types/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 ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +rubygem-mime-types: rubygem-mime-types (mime-types) +rubygem-mime-types: +rubygem-mime-types: This library allows for the identification of a file's likely MIME +rubygem-mime-types: content type. The identification of MIME content type is based on a +rubygem-mime-types: file's filename extensions. +rubygem-mime-types: +rubygem-mime-types: +rubygem-mime-types: +rubygem-mime-types: +rubygem-mime-types: +rubygem-mime-types: diff --git a/ruby/rubygem-ncursesw/README b/ruby/rubygem-ncursesw/README new file mode 100644 index 0000000000000..4f45455a9a4b1 --- /dev/null +++ b/ruby/rubygem-ncursesw/README @@ -0,0 +1,3 @@ +This ruby extension makes most functions, constants, and external +variables of the C library ncurses accessible from the Ruby programming +language. This implementation has wide character support. diff --git a/ruby/rubygem-ncursesw/rubygem-ncursesw.SlackBuild b/ruby/rubygem-ncursesw/rubygem-ncursesw.SlackBuild new file mode 100644 index 0000000000000..df14e2ab86993 --- /dev/null +++ b/ruby/rubygem-ncursesw/rubygem-ncursesw.SlackBuild @@ -0,0 +1,99 @@ +#!/bin/sh + +# Script written by Benjamin Trigona-Harany (bosth@alumni.sfu.ca) +# based on rubygem template by vbatts + +PRGNAM=rubygem-ncursesw +VERSION=${VERSION:-1.2.4.2} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +SRCNAM=ncursesw + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP + +DESTDIR=$( ruby -r rbconfig -e ' +include RbConfig +printf("%s/%s/gems/%s\n", + CONFIG["libdir"], + CONFIG["RUBY_INSTALL_NAME"], + CONFIG["ruby_version"] + ) +') + +# print a friendly warning of unsatisfied dependencies +gem specification $CWD/$SRCNAM-$VERSION.gem | \ + ruby -r yaml -r rbconfig -e ' +c = Config::CONFIG +path = sprintf("%s/%s/gems/%s", + c["libdir"], + c["RUBY_INSTALL_NAME"], + c["ruby_version"]) +sys_gemspecs = Dir.glob(path + "/specifications/*").map {|g| gs = Gem::Specification.load(g); gs.name } +obj = Gem::Specification.from_yaml($stdin) +obj.dependencies.each {|dep| + if not(dep.type == :runtime) + next + end + if not(sys_gemspecs.include?(dep.name)) + $stderr.write("WARNING: #{dep.name} gem not found\n") + sleep 0.5 + end +}' + +gem install \ + --local \ + --no-update-sources \ + --ignore-dependencies \ + --backtrace \ + --install-dir $PKG/$DESTDIR \ + $CWD/$SRCNAM-$VERSION.gem + +# Strip binaries and libraries. +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +# Remove cached gem from install +rm -rf $PKG/$DESTDIR/cache + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +tar -x -O --file=$CWD/$SRCNAM-$VERSION.gem data.tar.gz | tar -xz -C $PKG/usr/doc/$PRGNAM-$VERSION --file=- \ + COPYING Changes README THANKS TODO +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.${PKGTYPE:-tgz} diff --git a/ruby/rubygem-ncursesw/rubygem-ncursesw.info b/ruby/rubygem-ncursesw/rubygem-ncursesw.info new file mode 100644 index 0000000000000..3f6fba9d79de4 --- /dev/null +++ b/ruby/rubygem-ncursesw/rubygem-ncursesw.info @@ -0,0 +1,10 @@ +PRGNAM="rubygem-ncursesw" +VERSION="1.2.4.2" +HOMEPAGE="http://ncurses-ruby.berlios.de" +DOWNLOAD="http://rubygems.org/downloads/ncursesw-1.2.4.2.gem" +MD5SUM="07530a297ce1b7d7a18f4f416e941f98" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Benjamin Trigona-Harany" +EMAIL="bosth@alumni.sfu.ca" +APPROVED="dsomero" diff --git a/ruby/rubygem-ncursesw/slack-desc b/ruby/rubygem-ncursesw/slack-desc new file mode 100644 index 0000000000000..e79a88ee79c75 --- /dev/null +++ b/ruby/rubygem-ncursesw/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 ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +rubygem-ncursesw: rubygem-ncursesw (ncurses library with wide-char support) +rubygem-ncursesw: +rubygem-ncursesw: This ruby extension makes most functions, constants, and external +rubygem-ncursesw: variables of the C library ncurses accessible from the Ruby +rubygem-ncursesw: programming language. +rubygem-ncursesw: +rubygem-ncursesw: This implementation supports wide characters. +rubygem-ncursesw: +rubygem-ncursesw: +rubygem-ncursesw: +rubygem-ncursesw: diff --git a/ruby/rubygem-net-ssh/README b/ruby/rubygem-net-ssh/README new file mode 100644 index 0000000000000..0d867380a6a16 --- /dev/null +++ b/ruby/rubygem-net-ssh/README @@ -0,0 +1 @@ +Net-ssh is a pure-Ruby implementation of the SSH2 client protocol. diff --git a/ruby/rubygem-net-ssh/rubygem-net-ssh.SlackBuild b/ruby/rubygem-net-ssh/rubygem-net-ssh.SlackBuild new file mode 100644 index 0000000000000..bf7c6c20b7c60 --- /dev/null +++ b/ruby/rubygem-net-ssh/rubygem-net-ssh.SlackBuild @@ -0,0 +1,99 @@ +#!/bin/sh + +# Script written by Benjamin Trigona-Harany (bosth@alumni.sfu.ca) +# based on rubygem template by vbatts + +PRGNAM=rubygem-net-ssh +VERSION=${VERSION:-2.0.23} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +SRCNAM=net-ssh + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP + +DESTDIR=$( ruby -r rbconfig -e ' +include RbConfig +printf("%s/%s/gems/%s\n", + CONFIG["libdir"], + CONFIG["RUBY_INSTALL_NAME"], + CONFIG["ruby_version"] + ) +') + +# print a friendly warning of unsatisfied dependencies +gem specification $CWD/$SRCNAM-$VERSION.gem | \ + ruby -r yaml -r rbconfig -e ' +c = Config::CONFIG +path = sprintf("%s/%s/gems/%s", + c["libdir"], + c["RUBY_INSTALL_NAME"], + c["ruby_version"]) +sys_gemspecs = Dir.glob(path + "/specifications/*").map {|g| gs = Gem::Specification.load(g); gs.name } +obj = Gem::Specification.from_yaml($stdin) +obj.dependencies.each {|dep| + if not(dep.type == :runtime) + next + end + if not(sys_gemspecs.include?(dep.name)) + $stderr.write("WARNING: #{dep.name} gem not found\n") + sleep 0.5 + end +}' + +gem install \ + --local \ + --no-update-sources \ + --ignore-dependencies \ + --backtrace \ + --install-dir $PKG/$DESTDIR \ + $CWD/$SRCNAM-$VERSION.gem + +# Strip binaries and libraries. +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +# Remove cached gem from install +rm -rf $PKG/$DESTDIR/cache + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +tar -x -O --file=$CWD/$SRCNAM-$VERSION.gem data.tar.gz | tar -xz -C $PKG/usr/doc/$PRGNAM-$VERSION --file=- \ + README.rdoc +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.${PKGTYPE:-tgz} diff --git a/ruby/rubygem-net-ssh/rubygem-net-ssh.info b/ruby/rubygem-net-ssh/rubygem-net-ssh.info new file mode 100644 index 0000000000000..0d21f29c06b09 --- /dev/null +++ b/ruby/rubygem-net-ssh/rubygem-net-ssh.info @@ -0,0 +1,10 @@ +PRGNAM="rubygem-net-ssh" +VERSION="2.0.23" +HOMEPAGE="http://github.com/net-ssh/net-ssh" +DOWNLOAD="http://rubygems.org/downloads/net-ssh-2.0.23.gem" +MD5SUM="14d51aab0ac31f2af9646236a6af848e" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Benjamin Trigona-Harany" +EMAIL="bosth@alumni.sfu.ca" +APPROVED="dsomero" diff --git a/ruby/rubygem-net-ssh/slack-desc b/ruby/rubygem-net-ssh/slack-desc new file mode 100644 index 0000000000000..b74dc78d89435 --- /dev/null +++ b/ruby/rubygem-net-ssh/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 ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +rubygem-net-ssh: rubygem-net-ssh (ruby implementation of ssh2) +rubygem-net-ssh: +rubygem-net-ssh: A pure Ruby implementation of the ssh2 client protocol. +rubygem-net-ssh: +rubygem-net-ssh: +rubygem-net-ssh: +rubygem-net-ssh: +rubygem-net-ssh: +rubygem-net-ssh: +rubygem-net-ssh: +rubygem-net-ssh: diff --git a/ruby/rubygem-rmail/README b/ruby/rubygem-rmail/README new file mode 100644 index 0000000000000..c4e9601543978 --- /dev/null +++ b/ruby/rubygem-rmail/README @@ -0,0 +1,3 @@ +RMail is a lightweight mail library containing various utility classes +and modules that allow ruby scripts to parse, modify, and generate +MIME mail messages. diff --git a/ruby/rubygem-rmail/rubygem-rmail.SlackBuild b/ruby/rubygem-rmail/rubygem-rmail.SlackBuild new file mode 100644 index 0000000000000..fc7119278cd6f --- /dev/null +++ b/ruby/rubygem-rmail/rubygem-rmail.SlackBuild @@ -0,0 +1,99 @@ +#!/bin/sh + +# Script written by Benjamin Trigona-Harany (bosth@alumni.sfu.ca) +# based on rubygem template by vbatts + +PRGNAM=rubygem-rmail +VERSION=${VERSION:-1.0.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +SRCNAM=rmail + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP + +DESTDIR=$( ruby -r rbconfig -e ' +include RbConfig +printf("%s/%s/gems/%s\n", + CONFIG["libdir"], + CONFIG["RUBY_INSTALL_NAME"], + CONFIG["ruby_version"] + ) +') + +# print a friendly warning of unsatisfied dependencies +gem specification $CWD/$SRCNAM-$VERSION.gem | \ + ruby -r yaml -r rbconfig -e ' +c = Config::CONFIG +path = sprintf("%s/%s/gems/%s", + c["libdir"], + c["RUBY_INSTALL_NAME"], + c["ruby_version"]) +sys_gemspecs = Dir.glob(path + "/specifications/*").map {|g| gs = Gem::Specification.load(g); gs.name } +obj = Gem::Specification.from_yaml($stdin) +obj.dependencies.each {|dep| + if not(dep.type == :runtime) + next + end + if not(sys_gemspecs.include?(dep.name)) + $stderr.write("WARNING: #{dep.name} gem not found\n") + sleep 0.5 + end +}' + +gem install \ + --local \ + --no-update-sources \ + --ignore-dependencies \ + --backtrace \ + --install-dir $PKG/$DESTDIR \ + $CWD/$SRCNAM-$VERSION.gem + +# Strip binaries and libraries. +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +# Remove cached gem from install +rm -rf $PKG/$DESTDIR/cache + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +tar -x -O --file=$CWD/$SRCNAM-$VERSION.gem data.tar.gz | tar -xz -C $PKG/usr/doc/$PRGNAM-$VERSION --file=- \ + NEWS NOTES README TODO +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.${PKGTYPE:-tgz} diff --git a/ruby/rubygem-rmail/rubygem-rmail.info b/ruby/rubygem-rmail/rubygem-rmail.info new file mode 100644 index 0000000000000..a1ed9a93bdd1d --- /dev/null +++ b/ruby/rubygem-rmail/rubygem-rmail.info @@ -0,0 +1,10 @@ +PRGNAM="rubygem-rmail" +VERSION="1.0.0" +HOMEPAGE="http://www.rfc20.org/rubymail" +DOWNLOAD="http://rubygems.org/downloads/rmail-1.0.0.gem" +MD5SUM="c94a6595a71aec61da5723699caea38c" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Benjamin Trigona-Harany" +EMAIL="bosth@alumni.sfu.ca" +APPROVED="dsomero" diff --git a/ruby/rubygem-rmail/slack-desc b/ruby/rubygem-rmail/slack-desc new file mode 100644 index 0000000000000..34d160117dc7e --- /dev/null +++ b/ruby/rubygem-rmail/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 ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +rubygem-rmail: rubygem-rmail (mail library for Ruby) +rubygem-rmail: +rubygem-rmail: RMail is a lightweight mail library containing various utility +rubygem-rmail: classes and modules that allow ruby scripts to parse, modify, and +rubygem-rmail: generate MIME mail messages. +rubygem-rmail: +rubygem-rmail: +rubygem-rmail: +rubygem-rmail: +rubygem-rmail: +rubygem-rmail: diff --git a/ruby/rubygem-sup/README b/ruby/rubygem-sup/README new file mode 100644 index 0000000000000..d5378b82b6e92 --- /dev/null +++ b/ruby/rubygem-sup/README @@ -0,0 +1,25 @@ +Sup is a console-based email client for people with a lot of email. It +supports tagging, very fast full-text search, automatic contact-list +management, and more. + +Sup makes it easy to: +- Handle massive amounts of email. +- Mix email from different sources: mbox files (even across different + machines), Maildir directories, IMAP folders, POP accounts, and GMail + accounts. +- Instantaneously search over your entire email collection. Search over + body text, or use a query language to combine search predicates in any + way. +- Handle multiple accounts. Replying to email sent to a particular + account will use the correct SMTP server, signature, and from address. +- Add custom code to handle certain types of messages or to handle + certain types of text within messages. +- Organize email with user-defined labels, automatically track recent + contacts, and much more + +This Slackbuild packages a development version of Sup which is patched +to use ncursesw, allowing for Unicode support. + +This requires rubygem-locale, rubygem-gettext, rubygem-highline, +rubygem-lockfile, rubygem-mime-types, rubygem-ncursesw, rubygem-net-ssh, +rubygem-rmail, rubygem-trollop and rubygem-xapian-full. diff --git a/ruby/rubygem-sup/rubygem-sup.SlackBuild b/ruby/rubygem-sup/rubygem-sup.SlackBuild new file mode 100644 index 0000000000000..839371204e618 --- /dev/null +++ b/ruby/rubygem-sup/rubygem-sup.SlackBuild @@ -0,0 +1,101 @@ +#!/bin/sh + +# Script written by Benjamin Trigona-Harany (bosth@alumni.sfu.ca) +# based on rubygem template by vbatts + +PRGNAM=rubygem-sup +VERSION=${VERSION:-0.12.1} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +SRCNAM=sup + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP + +DESTDIR=$( ruby -r rbconfig -e ' +include RbConfig +printf("%s/%s/gems/%s\n", + CONFIG["libdir"], + CONFIG["RUBY_INSTALL_NAME"], + CONFIG["ruby_version"] + ) +') + +# print a friendly warning of unsatisfied dependencies +gem specification $CWD/$SRCNAM-$VERSION.gem | \ + ruby -r rbconfig -r yaml -e ' +c = Config::CONFIG +path = sprintf("%s/%s/gems/%s", + c["libdir"], + c["RUBY_INSTALL_NAME"], + c["ruby_version"]) +sys_gemspecs = Dir.glob(path + "/specifications/*").map {|g| gs = Gem::Specification.load(g); gs.name } +obj = Gem::Specification.from_yaml($stdin) +obj.dependencies.each {|dep| + if not(dep.type == :runtime) + next + end + if not(sys_gemspecs.include?(dep.name)) + $stderr.write("WARNING: #{dep.name} gem not found\n") + sleep 0.5 + end +}' + + +gem install \ + --local \ + --no-update-sources \ + --ignore-dependencies \ + --backtrace \ + --bindir $PKG/usr/bin \ + --install-dir $PKG/$DESTDIR \ + $CWD/$SRCNAM-$VERSION.gem + +# Strip binaries and libraries. +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +# Remove cached gem from install +rm -rf $PKG/$DESTDIR/cache + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +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 + +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.${PKGTYPE:-tgz} diff --git a/ruby/rubygem-sup/rubygem-sup.info b/ruby/rubygem-sup/rubygem-sup.info new file mode 100644 index 0000000000000..582a0b694e776 --- /dev/null +++ b/ruby/rubygem-sup/rubygem-sup.info @@ -0,0 +1,10 @@ +PRGNAM="rubygem-sup" +VERSION="0.12.1" +HOMEPAGE="http://sup.rubyforge.org/" +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,Niels Horn" diff --git a/ruby/rubygem-sup/slack-desc b/ruby/rubygem-sup/slack-desc new file mode 100644 index 0000000000000..85f8b2a480eb0 --- /dev/null +++ b/ruby/rubygem-sup/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------------------------------------------------------| +rubygem-sup: rubygem-sup (CLI mail client) +rubygem-sup: +rubygem-sup: Sup is a mail client for the console which supports tagging, full +rubygem-sup: text search and multiple mail accounts in a variety of formats. +rubygem-sup: +rubygem-sup: +rubygem-sup: +rubygem-sup: +rubygem-sup: +rubygem-sup: +rubygem-sup: diff --git a/ruby/rubygem-trollop/README b/ruby/rubygem-trollop/README new file mode 100644 index 0000000000000..f12d071998c83 --- /dev/null +++ b/ruby/rubygem-trollop/README @@ -0,0 +1,5 @@ +Trollop is a commandline option parser for Ruby that just gets out of +your way. One line of code per option is all you need to write. For +that, you get a nice automatically-generated help page, robust option +parsing, command subcompletion, and sensible defaults for everything +you don't specify. diff --git a/ruby/rubygem-trollop/rubygem-trollop.SlackBuild b/ruby/rubygem-trollop/rubygem-trollop.SlackBuild new file mode 100644 index 0000000000000..ee301994fe6a3 --- /dev/null +++ b/ruby/rubygem-trollop/rubygem-trollop.SlackBuild @@ -0,0 +1,99 @@ +#!/bin/sh + +# Script written by Benjamin Trigona-Harany (bosth@alumni.sfu.ca) +# based on rubygem template by vbatts + +PRGNAM=rubygem-trollop +VERSION=${VERSION:-1.16.2} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +SRCNAM=trollop + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP + +DESTDIR=$( ruby -r rbconfig -e ' +include RbConfig +printf("%s/%s/gems/%s\n", + CONFIG["libdir"], + CONFIG["RUBY_INSTALL_NAME"], + CONFIG["ruby_version"] + ) +') + +# print a friendly warning of unsatisfied dependencies +gem specification $CWD/$SRCNAM-$VERSION.gem | \ + ruby -r yaml -r rbconfig -e ' +c = Config::CONFIG +path = sprintf("%s/%s/gems/%s", + c["libdir"], + c["RUBY_INSTALL_NAME"], + c["ruby_version"]) +sys_gemspecs = Dir.glob(path + "/specifications/*").map {|g| gs = Gem::Specification.load(g); gs.name } +obj = Gem::Specification.from_yaml($stdin) +obj.dependencies.each {|dep| + if not(dep.type == :runtime) + next + end + if not(sys_gemspecs.include?(dep.name)) + $stderr.write("WARNING: #{dep.name} gem not found\n") + sleep 0.5 + end +}' + +gem install \ + --local \ + --no-update-sources \ + --ignore-dependencies \ + --backtrace \ + --install-dir $PKG/$DESTDIR \ + $CWD/$SRCNAM-$VERSION.gem + +# Strip binaries and libraries. +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +# Remove cached gem from install +rm -rf $PKG/$DESTDIR/cache + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +tar -x -O --file=$CWD/$SRCNAM-$VERSION.gem data.tar.gz | tar -xz -C $PKG/usr/doc/$PRGNAM-$VERSION --file=- \ + FAQ.txt History.txt README.txt +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.${PKGTYPE:-tgz} diff --git a/ruby/rubygem-trollop/rubygem-trollop.info b/ruby/rubygem-trollop/rubygem-trollop.info new file mode 100644 index 0000000000000..402a3a8522803 --- /dev/null +++ b/ruby/rubygem-trollop/rubygem-trollop.info @@ -0,0 +1,10 @@ +PRGNAM="rubygem-trollop" +VERSION="1.16.2" +HOMEPAGE="http://trollop.rubyforge.org" +DOWNLOAD="http://rubygems.org/downloads/trollop-1.16.2.gem" +MD5SUM="8e7060748d49647cd9760e99ed745fbc" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Benjamin Trigona-Harany" +EMAIL="bosth@alumni.sfu.ca" +APPROVED="dsomero" diff --git a/ruby/rubygem-trollop/slack-desc b/ruby/rubygem-trollop/slack-desc new file mode 100644 index 0000000000000..443431d0a8614 --- /dev/null +++ b/ruby/rubygem-trollop/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 ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +rubygem-trollop: rubygem-trollop (Ruby commandline parser) +rubygem-trollop: +rubygem-trollop: Trollop is a commandline option parser for Ruby that just gets out +rubygem-trollop: of your way. One line of code per option is all you need to write. +rubygem-trollop: +rubygem-trollop: +rubygem-trollop: +rubygem-trollop: +rubygem-trollop: +rubygem-trollop: +rubygem-trollop: diff --git a/ruby/rubygem-xapian-full/README b/ruby/rubygem-xapian-full/README new file mode 100644 index 0000000000000..590f150ae34aa --- /dev/null +++ b/ruby/rubygem-xapian-full/README @@ -0,0 +1,2 @@ +Xapian bindings for Ruby without dependency on the xapian-core (or +any other) SlackBuild. diff --git a/ruby/rubygem-xapian-full/rubygem-xapian-full.SlackBuild b/ruby/rubygem-xapian-full/rubygem-xapian-full.SlackBuild new file mode 100644 index 0000000000000..2a19efdbea23a --- /dev/null +++ b/ruby/rubygem-xapian-full/rubygem-xapian-full.SlackBuild @@ -0,0 +1,135 @@ +#!/bin/sh + +# Script written by Benjamin Trigona-Harany (bosth@alumni.sfu.ca) +# based on rubygem template by vbatts + +PRGNAM=rubygem-xapian-full +VERSION=${VERSION:-1.2.3} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +SRCNAM=xapian-full + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +rm -rf $PKG $TMP/$SRCNAM-$VERSION +mkdir -p $TMP $PKG $OUTPUT +cd $TMP + +DESTDIR=$( ruby -r rbconfig -e ' +include RbConfig +printf("%s/%s/gems/%s\n", + CONFIG["libdir"], + CONFIG["RUBY_INSTALL_NAME"], + CONFIG["ruby_version"] + ) +') + +# print a friendly warning of unsatisfied dependencies +gem specification $CWD/$SRCNAM-$VERSION.gem | \ + ruby -r yaml -r rbconfig -e ' +obj = YAML::load($stdin) +obj.ivars["dependencies"].each {|d| + if not(d.ivars["type"] == :runtime) + next + end + + name = d.ivars["name"] + begin + require name + rescue LoadError + $stderr.write("WARNING: #{name} gem not found\n") + sleep 0.5 + end +}' + +gem unpack $CWD/$SRCNAM-$VERSION.gem +cd $SRCNAM-$VERSION + +mkdir -p $PKG/$DESTDIR/specifications +mv $SRCNAM.gemspec $PKG/$DESTDIR/specifications/$SRCNAM-$VERSION.gemspec + +( tar xvf xapian-core-$VERSION.tar.gz + cd xapian-core-$VERSION + chown -R root:root . + CFLAGS="${SLKCFLAGS}" \ + CPPFLAGS="${SLKCFLAGS}" \ + ./configure \ + --prefix=$DESTDIR/gems/$SRCNAM-$VERSION \ + --libdir=$DESTDIR/gems/$SRCNAM-$VERSION/lib \ + --disable-static \ + --disable-documentaion \ + --build=$ARCH-slackware-linux + + make + make install DESTDIR=$PKG +) + +( tar xvf xapian-bindings-$VERSION.tar.gz + cd xapian-bindings-$VERSION + chown -R root:root . + CFLAGS="${SLKCFLAGS} -I$PKG/$DESTDIR/gems/$SRCNAM-$VERSION/include -L$PKG/$DESTDIR/gems/$SRCNAM-$VERSION/lib" \ + LDFLAGS="${SLKCFLAGS} -L$PKG/$DESTDIR/gems/$SRCNAM-$VERSION/lib" \ + CPPFLAGS="-I$PKG/$DESTDIR/gems/$SRCNAM-$VERSION/include -L$PKG/$DESTDIR/gems/$SRCNAM-$VERSION/lib" \ + XAPIAN_CONFIG="`pwd`/../xapian-core-$VERSION/xapian-config" \ + ./configure \ + --prefix=$DESTDIR/gems/$SRCNAM-$VERSION \ + --with-ruby \ + --build=$ARCH-slackware-linux || exit + + make + make install DESTDIR=$PKG + + mv $PKG/$DESTDIR/../../site_ruby/*/xapian.rb $PKG/$DESTDIR/gems/$SRCNAM-$VERSION/lib + mv $PKG/$DESTDIR/../../site_ruby/*/*/_xapian.so $PKG/$DESTDIR/gems/$SRCNAM-$VERSION/lib + rm -rf $PKG/$DESTDIR/../../site_ruby +) + +# Don't need this +rm -rf $PKG/$DESTDIR/gems/$SRCNAM-$VERSION/share + +# Strip binaries and libraries. +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/bindings +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/core + +(cd xapian-bindings-$VERSION +cp -a ChangeLog COPYING HACKING INSTALL NEWS README TODO \ + $PKG/usr/doc/$PRGNAM-$VERSION/bindings) +(cd $PKG/$DESTDIR/gems/$SRCNAM-$VERSION/xapian-core-* +cp -a ChangeLog COPYING HACKING INSTALL NEWS README \ + $PKG/usr/doc/$PRGNAM-$VERSION/core) +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 y $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/ruby/rubygem-xapian-full/rubygem-xapian-full.info b/ruby/rubygem-xapian-full/rubygem-xapian-full.info new file mode 100644 index 0000000000000..9cd93332e8416 --- /dev/null +++ b/ruby/rubygem-xapian-full/rubygem-xapian-full.info @@ -0,0 +1,10 @@ +PRGNAM="rubygem-xapian-full" +VERSION="1.2.3" +HOMEPAGE="http://rubygems.org/gems/xapian-full" +DOWNLOAD="http://rubygems.org/downloads/xapian-full-1.2.3.gem" +MD5SUM="772947e9b6a03f37a00c361ac7492ad6" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Benjamin Trigona-Harany" +EMAIL="bosth@alumni.sfu.ca" +APPROVED="dsomero" diff --git a/ruby/rubygem-xapian-full/slack-desc b/ruby/rubygem-xapian-full/slack-desc new file mode 100644 index 0000000000000..87b5fa1943041 --- /dev/null +++ b/ruby/rubygem-xapian-full/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 ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +rubygem-xapian-full: rubygem-xapian-full (Xapian bindings) +rubygem-xapian-full: +rubygem-xapian-full: Xapian bindings for Ruby without dependency on the xapian-core (or +rubygem-xapian-full: any other) SlackBuild. +rubygem-xapian-full: +rubygem-xapian-full: +rubygem-xapian-full: +rubygem-xapian-full: +rubygem-xapian-full: +rubygem-xapian-full: +rubygem-xapian-full: |