slitaz-forge view scn/receipts/rack/receipt @ rev 662
tank: include sup-demo package on up-scn
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Feb 24 08:53:29 2017 +0100 (2017-02-24) |
parents | |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="rack"
4 VERSION="1.0.1"
5 CATEGORY="networking"
6 SHORT_DESC="Webserver Interface for Ruby"
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="ruby activerecord"
9 BUILD_DEPENDS="rubygems"
10 TARBALL="$PACKAGE-$VERSION.gem"
11 WEB_SITE="http://rack.rubyforge.org/"
12 WGET_URL="http://rubyforge.org/frs/download.php/65735/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 [ -d $PACKAGE-$VERSION ] || mkdir $PACKAGE-$VERSION
18 cd $src
20 RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')"
21 gem install --no-rdoc --no-ri --ignore-dependencies \
22 --install-dir $PWD/_pkg/usr/lib/ruby/gems/${RUBY_VERSION%.*} $SOURCES_REPOSITORY/$TARBALL
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')"
29 mkdir -p $fs/usr
31 cp -a $_pkg/usr/lib $fs/usr
32 }