# HG changeset patch # User Eric Joseph-Alexandre # Date 1299025329 -3600 # Node ID eb6a4b78d46fec970aa7baeb02871d9f9c313606 # Parent 10b68941712e20e7641f1b7cc0c33bac5c0e8988 add rb-mysql, rb-i18n diff -r 10b68941712e -r eb6a4b78d46f rb-i18n/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rb-i18n/receipt Wed Mar 02 01:22:09 2011 +0100 @@ -0,0 +1,34 @@ +# SliTaz package receipt. + +PACKAGE="rb-i18n" +VERSION="0.5.0" +CATEGORY="development" +SHORT_DESC="Internationalization support for Ruby." +MAINTAINER="erjo@slitaz.org" +DEPENDS="ruby activesupport" +BUID_DEPENDS="rubygems" +SOURCE="i18n" +TARBALL="$SOURCE-$VERSION.gem" +WEB_SITE="http://rubygems.org/gems/activeresource" +WGET_URL="http://rubygems.org/downloads/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + [ -d $SOURCE-$VERSION ] || mkdir $SOURCE-$VERSION + cd $src + + RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')" + gem install --no-rdoc --no-ri --ignore-dependencies \ + --install-dir $PWD/_pkg/usr/lib/ruby/gems/${RUBY_VERSION%.*} $SOURCES_REPOSITORY/$TARBALL +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')" + mkdir -p $fs/usr + + cp -a $_pkg/usr/lib $fs/usr +} + diff -r 10b68941712e -r eb6a4b78d46f rb-mysql/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rb-mysql/receipt Wed Mar 02 01:22:09 2011 +0100 @@ -0,0 +1,35 @@ +# SliTaz package receipt. + +PACKED_SIZE="4.0k" +UNPACKED_SIZE="4.0k" +PACKAGE="rb-mysql" +VERSION="2.8.1" +CATEGORY="development" +SHORT_DESC="MySQL API module for Ruby" +MAINTAINER="erjo@slitaz.org" +DEPENDS="ruby libmysqlclient" +SOURCE="mysql" +BUILD_DEPENDS="mysql-dev rubygems" +TARBALL="$SOURCE-$VERSION.gem" +WEB_SITE="http://rubygems.org/gems/mysql" +WGET_URL="http://rubygems.org/downloads/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + [ -d $SOURCE-$VERSION ] || mkdir $SOURCE-$VERSION + cd $src + + RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')" + gem install --no-rdoc --no-ri --ignore-dependencies \ + --install-dir $PWD/_pkg/usr/lib/ruby/gems/${RUBY_VERSION%.*} $SOURCES_REPOSITORY/$TARBALL +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')" + mkdir -p $fs/usr + + cp -a $_pkg/usr/lib $fs/usr +}