wok-next view ruby-enterprise/receipt @ rev 20734
nut: update (b)deps
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 29 18:57:36 2018 +0300 (2018-05-29) |
parents | e6615350078d |
children | efc1e4b02968 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="ruby-enterprise"
4 VERSION="1.8.7-2012.02"
5 CATEGORY="development"
6 SHORT_DESC="Ruby Enterprise Edition"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.rubyenterpriseedition.com/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://rubyenterpriseedition.googlecode.com/files/$TARBALL"
14 BUILD_DEPENDS="zlib-dev"
15 SPLIT="ruby-enterprise-doc"
17 compile_rules() {
18 cd $src/source
19 for i in ext/dl/mk*rb ; do
20 grep -q STDOUT.flush $i || echo "STDOUT.flush" >> $i
21 done
22 ./configure $CONFIGURE_ARGS && make && make install
23 }
25 genpkg_rules() {
26 case $PACKAGE in
27 ruby-enterprise)
28 mkdir -p $fs/usr/lib
29 cp -a $install/usr/lib/ruby $fs/usr/lib
30 cp -a $install/usr/bin $fs/usr
32 # Remove devel files --> ruby-enterprise-dev
33 rm $fs/usr/lib/ruby/1.8/i?86-linux/*.h
35 # Remove doc --> ruby-enterprise-doc
36 rm -rf $fs/usr/lib/ruby/1.8/rdoc
37 DEPENDS="libdb ncurses openssl readline zlib"
38 PROVIDE="ruby"
39 SUGGESTED="tk xorg-libXScrnSaver gdbm"
40 TAGS="ruby language programming"
41 ;;
42 ruby-enterprise-doc)
43 mkdir -p $fs/usr/lib/ruby/1.8
44 cp -a $install/usr/lib/ruby/1.8/rdoc $fs/usr/lib/ruby/1.8/rdoc
45 CAT="development|documentation"
46 DEPENDS="ruby-enterprise"
47 ;;
48 esac
49 }