wok-next view ruby/receipt @ rev 21722

efivar: typo in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 10:31:46 2020 +0000 (2020-09-01)
parents e19ff076dc63
children
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="devel@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 COOKOPTS="force-arch" # different .h, .pc
17 BUILD_DEPENDS="gmp-dev db-dev libffi-dev openssl-dev tcl-dev tk-dev zlib-dev \
18 gdbm-dev readline-dev"
19 SPLIT="libruby $PACKAGE-stdlib $PACKAGE-dev"
21 compile_rules() {
22 # --disable-rubygems
23 ./configure \
24 --enable-shared \
25 --disable-install-doc \
26 $CONFIGURE_ARGS &&
27 make $MAKEFLAGS &&
28 make install || return 1
30 rm $install/usr/lib/ruby/gems/*/cache/*.gem
31 }
33 genpkg_rules() {
34 case $PACKAGE in
35 ruby)
36 copy /usr/bin/
37 DEPENDS="libruby"
38 SUGGESTED="tk"
39 TAGS="ruby language programming"
40 ;;
41 libruby)
42 copy libruby.so*
43 CAT="libdevel|shared libraries"
44 DEPENDS="gmp"
45 ;;
46 *-stdlib)
47 copy /usr/lib/ruby/
48 CAT="libdevel|native libraries"
49 DEPENDS="libgdbm libdb libffi libruby openssl readline zlib"
50 ;;
51 *-dev)
52 copy @dev
53 ;;
54 esac
55 }