wok-current rev 9425

add: ruby-enterprise*
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Wed Mar 30 23:45:07 2011 +0200 (2011-03-30)
parents fc791f57fde8
children c1fda2da8fb1
files ruby-enterprise-doc/receipt ruby-enterprise/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ruby-enterprise-doc/receipt	Wed Mar 30 23:45:07 2011 +0200
     1.3 @@ -0,0 +1,17 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="ruby-enterprise-doc"
     1.7 +VERSION="1.8.7-2011.03"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="Devel file for Ruby (to compile ruby-modules)."
    1.10 +MAINTAINER="erjo@slitaz.org"
    1.11 +WEB_SITE="http://www.rubyenterpriseedition.com/"
    1.12 +DEPENDS="ruby-enterprise"
    1.13 +WANTED="ruby-enterprise"
    1.14 +
    1.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.16 +genpkg_rules()
    1.17 +{
    1.18 +	mkdir -p $fs/usr/lib/ruby/1.8
    1.19 +	cp -a $src/source/_pkg/usr/lib/ruby/1.8/rdoc $fs/usr/lib/ruby/1.8/rdoc
    1.20 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/ruby-enterprise/receipt	Wed Mar 30 23:45:07 2011 +0200
     2.3 @@ -0,0 +1,43 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="ruby-enterprise"
     2.7 +VERSION="1.8.7-2011.03"
     2.8 +CATEGORY="development"
     2.9 +SHORT_DESC="Ruby Enterprise Edition"
    2.10 +MAINTAINER="erjo@slitaz.org"
    2.11 +DEPENDS="libdb ncurses libssl readline zlib"
    2.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.13 +WEB_SITE="http://www.rubyenterpriseedition.com/"
    2.14 +WGET_URL="http://rubyenterpriseedition.googlecode.com/files/$TARBALL"
    2.15 +BUILD_DEPENDS="zlib-dev"
    2.16 +SUGGESTED="tk xorg-libXss gdbm"
    2.17 +PROVIDES="ruby"
    2.18 +TAGS="ruby language programming"
    2.19 +
    2.20 +# Rules to configure and make the package.
    2.21 +compile_rules()
    2.22 +{
    2.23 +	cd $src/source
    2.24 +	./configure \
    2.25 +		--prefix=/usr \
    2.26 +		--infodir=/usr/share/info \
    2.27 +		--mandir=/usr/share/man \
    2.28 +		$CONFIGURE_ARGS &&
    2.29 +	make &&
    2.30 +	make DESTDIR=$PWD/_pkg install
    2.31 +}
    2.32 +
    2.33 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.34 +genpkg_rules()
    2.35 +{
    2.36 +	mkdir -p $fs/usr/lib
    2.37 +	cp -a $src/source/_pkg/usr/lib/ruby $fs/usr/lib
    2.38 +	cp -a $src/source/_pkg/usr/bin $fs/usr
    2.39 +	
    2.40 +	# Remove devel files --> ruby-enterprise-dev
    2.41 +	rm $fs/usr/lib/ruby/1.8/i486-linux/*.h
    2.42 +	
    2.43 +	# Remove doc --> ruby-enterprise-doc
    2.44 +	rm -rf $fs/usr/lib/ruby/1.8/rdoc
    2.45 +}
    2.46 +