wok-next view ruby/receipt @ rev 21031

Random updates
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Nov 03 15:42:26 2018 +0200 (2018-11-03)
parents efc1e4b02968
children e19ff076dc63
line source
1 # SliTaz package receipt v2.
3 PACKAGE="ruby"
4 VERSION="2.5.1"
5 CATEGORY="development"
6 SHORT_DESC="Dynamic programming language focused on simplicity and productivity"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.ruby-lang.org/en/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/ruby.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="http://cache.ruby-lang.org/pub/ruby/${VERSION%.*}/$TARBALL"
15 BUILD_DEPENDS="gmp-dev db-dev libffi-dev openssl-dev tcl-dev tk-dev zlib-dev \
16 gdbm-dev readline-dev"
17 SPLIT="libruby $PACKAGE-stdlib $PACKAGE-dev"
19 compile_rules() {
20 # --disable-rubygems
21 ./configure \
22 --enable-shared \
23 --disable-install-doc \
24 $CONFIGURE_ARGS &&
25 make $MAKEFLAGS &&
26 make install || return 1
28 rm $install/usr/lib/ruby/gems/*/cache/*.gem
29 }
31 genpkg_rules() {
32 case $PACKAGE in
33 ruby)
34 copy /usr/bin/
35 DEPENDS="libruby"
36 SUGGESTED="tk"
37 TAGS="ruby language programming"
38 ;;
39 libruby)
40 copy libruby.so*
41 CAT="libdevel|shared libraries"
42 DEPENDS="gmp"
43 ;;
44 *-stdlib)
45 copy /usr/lib/ruby/
46 CAT="libdevel|native libraries"
47 DEPENDS="gdbm libdb libffi libruby openssl readline zlib"
48 ;;
49 *-dev)
50 copy @dev
51 ;;
52 esac
53 }