mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
system/rubygems: Added to 12.1 repository
This commit is contained in:
parent
6ac5e6a0c0
commit
770406f4eb
6 changed files with 96 additions and 0 deletions
14
system/rubygems/README
Normal file
14
system/rubygems/README
Normal file
|
@ -0,0 +1,14 @@
|
|||
RubyGems is the Ruby standard for publishing and managing third party
|
||||
libraries.
|
||||
|
||||
NOTICE:
|
||||
while the rubygems installation will be managed with this SlackBuild,
|
||||
the gems that will get installed to --local 'system', will be existing
|
||||
in '/usr/lib/ruby/gems/1.8/gems/'
|
||||
You can 'uninstall' them with `gem`, but otherwise they will remain
|
||||
if the rubygems package is removed.
|
||||
|
||||
|
||||
DEPENDENCIES:
|
||||
|
||||
* ruby (its comes in a typical slackware installation)
|
3
system/rubygems/profile.d/gem.csh
Normal file
3
system/rubygems/profile.d/gem.csh
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/csh
|
||||
|
||||
setenv GEM_PATH /usr/lib/ruby/gems/1.8
|
3
system/rubygems/profile.d/gem.sh
Normal file
3
system/rubygems/profile.d/gem.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
export GEM_PATH=/usr/lib/ruby/gems/1.8
|
57
system/rubygems/rubygems.SlackBuild
Normal file
57
system/rubygems/rubygems.SlackBuild
Normal file
|
@ -0,0 +1,57 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Slackware build script for rubygems
|
||||
# Written by Vincent Batts, vbatts@batts.mine.nu
|
||||
|
||||
PRGNAM=rubygems
|
||||
VERSION=1.3.1
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tgz
|
||||
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 {} \;
|
||||
|
||||
GEM_HOME=$PKG/usr/lib/ruby/gems/1.8 \
|
||||
ruby setup.rb --destdir=$PKG/usr
|
||||
|
||||
# Setting global GEM_PATH to get rdoc correct for gems installed
|
||||
mkdir -p $PKG/etc/profile.d/
|
||||
cat $CWD/profile.d/gem.sh > $PKG/etc/profile.d/gem.sh
|
||||
cat $CWD/profile.d/gem.csh > $PKG/etc/profile.d/gem.csh
|
||||
chmod 755 $PKG/etc/profile.d/gem.sh $PKG/etc/profile.d/gem.csh
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a README ChangeLog LICENSE.txt TODO GPL.txt $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
|
8
system/rubygems/rubygems.info
Normal file
8
system/rubygems/rubygems.info
Normal file
|
@ -0,0 +1,8 @@
|
|||
PRGNAM="rubygems"
|
||||
VERSION="1.3.1"
|
||||
HOMEPAGE="http://rubyforge.org/projects/rubygems/"
|
||||
DOWNLOAD="http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz"
|
||||
MD5SUM="a04ee6f6897077c5b75f5fd1e134c5a9"
|
||||
MAINTAINER="Vincent Batts"
|
||||
EMAIL="vbatts@hashbangbash.com"
|
||||
APPROVED="dsomero"
|
11
system/rubygems/slack-desc
Normal file
11
system/rubygems/slack-desc
Normal file
|
@ -0,0 +1,11 @@
|
|||
rubygems: rubygems ( ruby library manager )
|
||||
rubygems:
|
||||
rubygems: the Ruby standard for publishing and managing third party libraries.
|
||||
rubygems:
|
||||
rubygems:
|
||||
rubygems: homepage http://rubyforge.org/projects/rubygems/
|
||||
rubygems:
|
||||
rubygems:
|
||||
rubygems:
|
||||
rubygems:
|
||||
rubygems:
|
Loading…
Reference in a new issue