slitaz-forge rev 27
add: customised ruby
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Wed Mar 02 01:22:28 2011 +0100 (2011-03-02) |
parents | eb6a4b78d46f |
children | 4266214749b3 b5d8732fc632 |
files | ruby/receipt ruby/stuff/ruby.desktop ruby/stuff/ruby.png rubygems/receipt spruz/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/ruby/receipt Wed Mar 02 01:22:28 2011 +0100 1.3 @@ -0,0 +1,37 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="ruby" 1.7 +VERSION="1.8.7-p72" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="Dynamic programming language focused on simplicity and productivity." 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.12 +WEB_SITE="http://www.ruby-lang.org/" 1.13 +WGET_URL="ftp://ftp.ruby-lang.org/pub/ruby/1.8/$TARBALL" 1.14 +DEPENDS="libdb ncurses libssl readline zlib gdbm" 1.15 +SUGGESTED="tk xorg-libXss" 1.16 +TAGS="ruby language programming" 1.17 + 1.18 +# Rules to configure and make the package. 1.19 +compile_rules() 1.20 +{ 1.21 + cd $src 1.22 + ./configure \ 1.23 + --prefix=/usr \ 1.24 + --infodir=/usr/share/info \ 1.25 + --mandir=/usr/share/man \ 1.26 + $CONFIGURE_ARGS && 1.27 + make && 1.28 + make DESTDIR=$PWD/_pkg install 1.29 +} 1.30 + 1.31 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.32 +genpkg_rules() 1.33 +{ 1.34 + mkdir -p $fs/usr/lib 1.35 + cp -a $_pkg/usr/lib/ruby $fs/usr/lib 1.36 + cp -a $_pkg/usr/bin $fs/usr 1.37 + 1.38 + # Remove devel files --> ruby-dev 1.39 + rm $fs/usr/lib/ruby/1.8/i486-linux/*.h 1.40 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/ruby/stuff/ruby.desktop Wed Mar 02 01:22:28 2011 +0100 2.3 @@ -0,0 +1,8 @@ 2.4 +[Desktop Entry] 2.5 +Encoding=UTF-8 2.6 +Name=Ruby interpreter 2.7 +Terminal=false 2.8 +Exec=xterm -e irb 2.9 +Icon=ruby.png 2.10 +Type=Application 2.11 +Categories=Development;
3.1 Binary file ruby/stuff/ruby.png has changed
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/rubygems/receipt Wed Mar 02 01:22:28 2011 +0100 4.3 @@ -0,0 +1,33 @@ 4.4 +# SliTaz package receipt. 4.5 + 4.6 +PACKAGE="rubygems" 4.7 +VERSION="1.5.2" 4.8 +CATEGORY="development" 4.9 +SHORT_DESC="Rubx packages Manager." 4.10 +MAINTAINER="pankso@slitaz.org" 4.11 +TARBALL="$PACKAGE-$VERSION.tgz" 4.12 +DEPENDS="ruby" 4.13 +BUILD_DEPENDS="ruby" 4.14 +WEB_SITE="http://www.rubygems.org/" 4.15 +WGET_URL="http://production.cf.rubygems.org/rubygems/$TARBALL" 4.16 +TAGS="ruby" 4.17 + 4.18 +# Rules to configure and make the package. 4.19 +compile_rules() 4.20 +{ 4.21 + cd $src 4.22 + ruby setup.rb --prefix=/usr --destdir=$PWD/_pkg 4.23 +} 4.24 + 4.25 +# Rules to gen a SliTaz package suitable for Tazpkg. 4.26 +genpkg_rules() 4.27 +{ 4.28 + RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')" 4.29 + 4.30 + mkdir -p $fs/usr/lib/ruby/site_ruby/${RUBY_VERSION%.*} \ 4.31 + $fs/usr/lib/ruby/gems/${RUBY_VERSION%.*}/cache \ 4.32 + $fs/usr/lib/ruby/gems/${RUBY_VERSION%.*}/gems \ 4.33 + $fs/usr/lib/ruby/gems/${RUBY_VERSION%.*}/specifications 4.34 + cp -a $_pkg/usr/lib/* $fs/usr/lib/ruby/site_ruby/${RUBY_VERSION%.*} 4.35 + cp -a $_pkg/usr/bin $fs/usr 4.36 +}
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/spruz/receipt Wed Mar 02 01:22:28 2011 +0100 5.3 @@ -0,0 +1,34 @@ 5.4 +# SliTaz package receipt. 5.5 + 5.6 +PACKAGE="spruz" 5.7 +VERSION="0.2.5" 5.8 +CATEGORY="development" 5.9 +SHORT_DESC="All the stuff that isn't good/big enough for a real library." 5.10 +MAINTAINER="erjo@slitaz.org" 5.11 +DEPENDS="ruby" 5.12 +BUILD_DEPENDS="rubygems" 5.13 +TARBALL="$PACKAGE-$VERSION.gem" 5.14 +WEB_SITE="http://rubygems.org/gems/fastthread" 5.15 +WGET_URL="http://rubygems.org/downloads/$TARBALL" 5.16 + 5.17 +# Rules to configure and make the package. 5.18 +compile_rules() 5.19 +{ 5.20 + [ -d $PACKAGE-$VERSION ] || mkdir $PACKAGE-$VERSION 5.21 + cd $src 5.22 + 5.23 + RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')" 5.24 + 5.25 + gem install --no-rdoc --no-ri --ignore-dependencies \ 5.26 + --install-dir $PWD/_pkg/usr/lib/ruby/gems/${RUBY_VERSION%.*} $SOURCES_REPOSITORY/$TARBALL 5.27 +} 5.28 + 5.29 +# Rules to gen a SliTaz package suitable for Tazpkg. 5.30 +genpkg_rules() 5.31 +{ 5.32 + RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')" 5.33 + mkdir -p $fs/usr 5.34 + 5.35 + cp -a $_pkg/usr/lib $fs/usr 5.36 +} 5.37 +