slitaz-forge diff scn/receipts/rack/receipt @ rev 172
Reme old labs files
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Mar 20 19:29:18 2012 +0100 (2012-03-20) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/scn/receipts/rack/receipt Tue Mar 20 19:29:18 2012 +0100 1.3 @@ -0,0 +1,32 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="rack" 1.7 +VERSION="1.0.1" 1.8 +CATEGORY="networking" 1.9 +SHORT_DESC="Webserver Interface for Ruby" 1.10 +MAINTAINER="erjo@slitaz.org" 1.11 +DEPENDS="ruby activerecord" 1.12 +BUILD_DEPENDS="rubygems" 1.13 +TARBALL="$PACKAGE-$VERSION.gem" 1.14 +WEB_SITE="http://rack.rubyforge.org/" 1.15 +WGET_URL="http://rubyforge.org/frs/download.php/65735/$TARBALL" 1.16 + 1.17 +# Rules to configure and make the package. 1.18 +compile_rules() 1.19 +{ 1.20 + [ -d $PACKAGE-$VERSION ] || mkdir $PACKAGE-$VERSION 1.21 + cd $src 1.22 + 1.23 + RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')" 1.24 + gem install --no-rdoc --no-ri --ignore-dependencies \ 1.25 + --install-dir $PWD/_pkg/usr/lib/ruby/gems/${RUBY_VERSION%.*} $SOURCES_REPOSITORY/$TARBALL 1.26 +} 1.27 + 1.28 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.29 +genpkg_rules() 1.30 +{ 1.31 + RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')" 1.32 + mkdir -p $fs/usr 1.33 + 1.34 + cp -a $_pkg/usr/lib $fs/usr 1.35 +}