slitaz-forge annotate rack/receipt @ rev 26

add rb-mysql, rb-i18n
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Wed Mar 02 01:22:09 2011 +0100 (2011-03-02)
parents
children
rev   line source
erjo@24 1 # SliTaz package receipt.
erjo@24 2
erjo@24 3 PACKAGE="rack"
erjo@24 4 VERSION="1.0.1"
erjo@24 5 CATEGORY="networking"
erjo@24 6 SHORT_DESC="Webserver Interface for Ruby"
erjo@24 7 MAINTAINER="erjo@slitaz.org"
erjo@24 8 DEPENDS="ruby activerecord"
erjo@24 9 BUILD_DEPENDS="rubygems"
erjo@24 10 TARBALL="$PACKAGE-$VERSION.gem"
erjo@24 11 WEB_SITE="http://rack.rubyforge.org/"
erjo@24 12 WGET_URL="http://rubyforge.org/frs/download.php/65735/$TARBALL"
erjo@24 13
erjo@24 14 # Rules to configure and make the package.
erjo@24 15 compile_rules()
erjo@24 16 {
erjo@24 17 [ -d $PACKAGE-$VERSION ] || mkdir $PACKAGE-$VERSION
erjo@24 18 cd $src
erjo@24 19
erjo@24 20 RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')"
erjo@24 21 gem install --no-rdoc --no-ri --ignore-dependencies \
erjo@24 22 --install-dir $PWD/_pkg/usr/lib/ruby/gems/${RUBY_VERSION%.*} $SOURCES_REPOSITORY/$TARBALL
erjo@24 23 }
erjo@24 24
erjo@24 25 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@24 26 genpkg_rules()
erjo@24 27 {
erjo@24 28 RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')"
erjo@24 29 mkdir -p $fs/usr
erjo@24 30
erjo@24 31 cp -a $_pkg/usr/lib $fs/usr
erjo@24 32 }