slitaz-forge annotate rb-mysql/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@26 1 # SliTaz package receipt.
erjo@26 2
erjo@26 3 PACKED_SIZE="4.0k"
erjo@26 4 UNPACKED_SIZE="4.0k"
erjo@26 5 PACKAGE="rb-mysql"
erjo@26 6 VERSION="2.8.1"
erjo@26 7 CATEGORY="development"
erjo@26 8 SHORT_DESC="MySQL API module for Ruby"
erjo@26 9 MAINTAINER="erjo@slitaz.org"
erjo@26 10 DEPENDS="ruby libmysqlclient"
erjo@26 11 SOURCE="mysql"
erjo@26 12 BUILD_DEPENDS="mysql-dev rubygems"
erjo@26 13 TARBALL="$SOURCE-$VERSION.gem"
erjo@26 14 WEB_SITE="http://rubygems.org/gems/mysql"
erjo@26 15 WGET_URL="http://rubygems.org/downloads/$TARBALL"
erjo@26 16
erjo@26 17 # Rules to configure and make the package.
erjo@26 18 compile_rules()
erjo@26 19 {
erjo@26 20 [ -d $SOURCE-$VERSION ] || mkdir $SOURCE-$VERSION
erjo@26 21 cd $src
erjo@26 22
erjo@26 23 RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')"
erjo@26 24 gem install --no-rdoc --no-ri --ignore-dependencies \
erjo@26 25 --install-dir $PWD/_pkg/usr/lib/ruby/gems/${RUBY_VERSION%.*} $SOURCES_REPOSITORY/$TARBALL
erjo@26 26 }
erjo@26 27
erjo@26 28 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@26 29 genpkg_rules()
erjo@26 30 {
erjo@26 31 RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')"
erjo@26 32 mkdir -p $fs/usr
erjo@26 33
erjo@26 34 cp -a $_pkg/usr/lib $fs/usr
erjo@26 35 }