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