slitaz-forge diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/rb-mysql/receipt	Wed Mar 02 01:22:09 2011 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKED_SIZE="4.0k"
     1.7 +UNPACKED_SIZE="4.0k"
     1.8 +PACKAGE="rb-mysql"
     1.9 +VERSION="2.8.1"
    1.10 +CATEGORY="development"
    1.11 +SHORT_DESC="MySQL API module for Ruby"
    1.12 +MAINTAINER="erjo@slitaz.org"
    1.13 +DEPENDS="ruby  libmysqlclient"
    1.14 +SOURCE="mysql"
    1.15 +BUILD_DEPENDS="mysql-dev rubygems"
    1.16 +TARBALL="$SOURCE-$VERSION.gem"
    1.17 +WEB_SITE="http://rubygems.org/gems/mysql"
    1.18 +WGET_URL="http://rubygems.org/downloads/$TARBALL"
    1.19 +
    1.20 +# Rules to configure and make the package.
    1.21 +compile_rules()
    1.22 +{
    1.23 +	[ -d $SOURCE-$VERSION ] || mkdir $SOURCE-$VERSION
    1.24 +	cd $src
    1.25 +
    1.26 +	RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')"
    1.27 +	gem install --no-rdoc --no-ri --ignore-dependencies \
    1.28 +		--install-dir $PWD/_pkg/usr/lib/ruby/gems/${RUBY_VERSION%.*} $SOURCES_REPOSITORY/$TARBALL
    1.29 +}
    1.30 +
    1.31 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.32 +genpkg_rules()
    1.33 +{
    1.34 +	RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')"
    1.35 +	mkdir -p $fs/usr
    1.36 +	
    1.37 +	cp -a $_pkg/usr/lib $fs/usr
    1.38 +}