wok-next view ruby/receipt @ rev 20963
Add hackdorte-artwork and remove appropriate old packages with dead homepages
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Sep 08 15:02:14 2018 +0300 (2018-09-08) |
parents | 1ff723a6455b |
children | d5aab818505e |
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="pankso@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_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="ruby libruby ruby-stdlib 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 # --disable-rubygems
31 ./configure \
32 --enable-shared \
33 --disable-install-doc \
34 $ARCH_ARGS \
35 $CONFIGURE_ARGS &&
36 make $MAKEFLAGS &&
37 make install &&
38 rm $install/usr/lib/ruby/gems/*/cache/*.gem
39 }
41 genpkg_rules() {
42 case $PACKAGE in
43 ruby)
44 copy /usr/bin/
45 DEPENDS="libruby"
46 SUGGESTED="tk"
47 TAGS="ruby language programming"
48 ;;
49 libruby)
50 copy libruby.so*
51 CAT="libdevel|shared libraries"
52 DEPENDS="gmp"
53 ;;
54 ruby-stdlib)
55 copy /usr/lib/ruby/
56 CAT="libdevel|native libraries"
57 DEPENDS="gdbm libdb libffi libruby openssl readline zlib"
58 ;;
59 ruby-dev)
60 copy @dev
61 ;;
62 esac
63 }