wok-next view ruby/receipt @ rev 19940
udev: add -lrt in ldflags
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Oct 15 18:25:43 2017 +0200 (2017-10-15) |
parents | e2dc7c2d000d |
children | e6615350078d |
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/"
10 HOST_ARCH="i486 arm"
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 BUILD_DEPENDS_arm="zlib-dev tcl-dev openssl-dev db-dev readline-dev"
18 SPLIT="libruby libruby-extras ruby-doc ruby-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 # Handle cross compilation.
24 case "$ARCH" in
25 arm*)
26 # executable host ruby is required. use --with-baseruby option.
27 # --with-arch=arm
28 export ac_cv_func_getpgrp_void=yes
29 export ac_cv_func_setpgrp_void=yes
30 ARCH_ARGS="--with-baseruby=/usr/bin/ruby" ;;
31 esac
33 #patch -Np1 < $stuff/openssl-1.0.patch
34 ./configure \
35 --enable-shared \
36 --docdir=/usr/share/doc/ruby-$VERSION \
37 $CONFIGURE_ARGS $ARCH_ARGS &&
38 make $MAKEFLAGS &&
39 make install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 case $PACKAGE in
46 ruby)
47 copy /usr/bin/
48 TAGS="ruby language programming"
49 SUGGESTED="tk"
50 DEPENDS="gmp libruby"
51 ;;
52 libruby)
53 copy libruby.so*
54 CAT="libdevel|shared libraries"
55 DEPENDS="gmp"
56 ;;
57 libruby-extras)
58 copy /usr/lib/ruby/
59 CAT="libdevel|native libraries"
60 DEPENDS="ruby gdbm gmp libcrypto libdb libffi libssl ncurses \
61 readline zlib"
62 ;;
63 ruby-doc)
64 CAT="development|ri documentation"
65 copy /usr/share/ri/
66 ;;
67 ruby-dev)
68 copy @dev
69 DEPENDS="ruby libruby libruby-extras"
70 ;;
71 esac
72 }