wok-next view ruby/receipt @ rev 20647

Up raptor (2.0.15), ruby (2.5.0), scons(3.0.0), screen (4.6.2), sharutils (4.15.2), slang (2.3.1), swig (3.0.12), sysstat (11.6.2), talloc (2.1.11), tcl (8.6.8), tidy-html5 (5.4.0), tk (8.6.8), udisks (1.0.5), unixODBC (2.3.5), unrar (5.5.8), upower (0.99.7), usbids (20180414), usbutils (009), vala (0.38.8), valgrind (3.13.0), wayland-protocols (1.13), yajl (2.1.0); add librep, rasqal, redland, rep-gtk.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu May 03 16:25:23 2018 +0300 (2018-05-03)
parents c4e53a39395a
children efc1e4b02968
line source
1 # SliTaz package receipt v2.
3 PACKAGE="ruby"
4 VERSION="2.5.0"
5 CATEGORY="development"
6 SHORT_DESC="Dynamic programming language focused on simplicity and productivity"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.ruby-lang.org/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/ruby.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="http://cache.ruby-lang.org/pub/ruby/${VERSION%.*}/$TARBALL"
15 BUILD_DEPENDS_arm="zlib-dev tcl-dev openssl-dev db-dev readline-dev"
16 BUILD_DEPENDS="gmp-dev db-dev libffi-dev openssl-dev tcl-dev tk-dev zlib-dev \
17 gdbm-dev readline-dev"
18 SPLIT="libruby libruby-extras ruby-doc ruby-dev"
20 compile_rules() {
21 case "$ARCH" in
22 arm*)
23 # executable host ruby is required. use --with-baseruby option.
24 # --with-arch=arm
25 export ac_cv_func_getpgrp_void=yes
26 export ac_cv_func_setpgrp_void=yes
27 ARCH_ARGS="--with-baseruby=/usr/bin/ruby" ;;
28 esac
30 ./configure \
31 --enable-shared \
32 $ARCH_ARGS \
33 $CONFIGURE_ARGS &&
34 make $MAKEFLAGS &&
35 make install
36 }
38 genpkg_rules() {
39 case $PACKAGE in
40 ruby)
41 copy /usr/bin/
42 TAGS="ruby language programming"
43 SUGGESTED="tk"
44 DEPENDS="libruby"
45 ;;
46 libruby)
47 copy libruby.so*
48 CAT="libdevel|shared libraries"
49 DEPENDS="gmp"
50 ;;
51 libruby-extras)
52 copy /usr/lib/ruby/
53 CAT="libdevel|native libraries"
54 DEPENDS="gdbm libdb libffi libruby openssl readline zlib"
55 ;;
56 ruby-doc)
57 copy /usr/share/ri/
58 CAT="development|ri documentation"
59 ;;
60 ruby-dev)
61 copy @dev
62 DEPENDS="ruby libruby libruby-extras" # all but doc
63 ;;
64 esac
65 }