slitaz-forge diff scn/receipts/rubygems/receipt @ rev 28
Moved all receipts for scn/receipts folder. This is to keep thing neat in this repo.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Mar 02 13:26:27 2011 +0000 (2011-03-02) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/scn/receipts/rubygems/receipt Wed Mar 02 13:26:27 2011 +0000 1.3 @@ -0,0 +1,33 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="rubygems" 1.7 +VERSION="1.5.2" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="Rubx packages Manager." 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +TARBALL="$PACKAGE-$VERSION.tgz" 1.12 +DEPENDS="ruby" 1.13 +BUILD_DEPENDS="ruby" 1.14 +WEB_SITE="http://www.rubygems.org/" 1.15 +WGET_URL="http://production.cf.rubygems.org/rubygems/$TARBALL" 1.16 +TAGS="ruby" 1.17 + 1.18 +# Rules to configure and make the package. 1.19 +compile_rules() 1.20 +{ 1.21 + cd $src 1.22 + ruby setup.rb --prefix=/usr --destdir=$PWD/_pkg 1.23 +} 1.24 + 1.25 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.26 +genpkg_rules() 1.27 +{ 1.28 + RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')" 1.29 + 1.30 + mkdir -p $fs/usr/lib/ruby/site_ruby/${RUBY_VERSION%.*} \ 1.31 + $fs/usr/lib/ruby/gems/${RUBY_VERSION%.*}/cache \ 1.32 + $fs/usr/lib/ruby/gems/${RUBY_VERSION%.*}/gems \ 1.33 + $fs/usr/lib/ruby/gems/${RUBY_VERSION%.*}/specifications 1.34 + cp -a $_pkg/usr/lib/* $fs/usr/lib/ruby/site_ruby/${RUBY_VERSION%.*} 1.35 + cp -a $_pkg/usr/bin $fs/usr 1.36 +}