wok-next view ruby/receipt @ rev 20582
Up libjson-c (0.13.1-20180305)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Apr 14 10:00:23 2018 +0300 (2018-04-14) |
parents | e6615350078d |
children | 1ff723a6455b |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="ruby"
4 VERSION="2.4.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/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="http://cache.ruby-lang.org/pub/ruby/${VERSION%.*}/$TARBALL"
14 BUILD_DEPENDS="gmp-dev db-dev libffi-dev openssl-dev tcl-dev tk-dev zlib-dev \
15 gdbm-dev readline-dev"
16 BUILD_DEPENDS_arm="zlib-dev tcl-dev openssl-dev db-dev readline-dev"
17 SPLIT="libruby libruby-extras ruby-doc ruby-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 # Handle cross compilation.
23 case "$ARCH" in
24 arm*)
25 # executable host ruby is required. use --with-baseruby option.
26 # --with-arch=arm
27 export ac_cv_func_getpgrp_void=yes
28 export ac_cv_func_setpgrp_void=yes
29 ARCH_ARGS="--with-baseruby=/usr/bin/ruby" ;;
30 esac
32 #patch -Np1 < $stuff/openssl-1.0.patch
33 ./configure \
34 --enable-shared \
35 --docdir=/usr/share/doc/ruby-$VERSION \
36 $CONFIGURE_ARGS $ARCH_ARGS &&
37 make $MAKEFLAGS &&
38 make install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 case $PACKAGE in
45 ruby)
46 copy /usr/bin/
47 TAGS="ruby language programming"
48 SUGGESTED="tk"
49 DEPENDS="gmp libruby"
50 ;;
51 libruby)
52 copy libruby.so*
53 CAT="libdevel|shared libraries"
54 DEPENDS="gmp"
55 ;;
56 libruby-extras)
57 copy /usr/lib/ruby/
58 CAT="libdevel|native libraries"
59 DEPENDS="ruby gdbm gmp openssl libdb libffi ncurses \
60 readline zlib"
61 ;;
62 ruby-doc)
63 CAT="development|ri documentation"
64 copy /usr/share/ri/
65 ;;
66 ruby-dev)
67 copy @dev
68 DEPENDS="ruby libruby libruby-extras"
69 ;;
70 esac
71 }