wok-next view ruby/receipt @ rev 20712

libtorrent: fix rtorrent building for non-64bit archs
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun May 27 12:13:53 2018 +0300 (2018-05-27)
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 }