wok view ruby/receipt @ rev 23906
Add fstransform
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 03 14:59:04 2020 +0000 (2020-08-03) |
parents | 2e5dbc4cc282 |
children | 2f230197370e |
line source
1 # SliTaz package receipt.
3 PACKAGE="ruby"
4 VERSION="2.7.1"
5 CATEGORY="development"
6 TAGS="ruby language programming"
7 SHORT_DESC="Dynamic programming language focused on simplicity and productivity."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://www.ruby-lang.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://cache.ruby-lang.org/pub/$PACKAGE/${VERSION%.*}/$TARBALL"
15 DEPENDS="gcc83-lib-base gdbm libdb libruby ncurses openssl readline zlib"
16 BUILD_DEPENDS="db-dev gcc83 openssl-dev readline-dev tcl-dev zlib-dev"
18 SUGGESTED="tk"
19 RELATED="libruby libruby-extras ruby-dev"
21 HOST_ARCH="i486 arm"
23 # Handle cross compilation.
24 case "$ARCH" in
25 i?86)
26 BUILD_DEPENDS="$BUILD_DEPENDS coreutils-file-output-full tk-dev " ;;
27 arm*)
28 # executable host ruby is required. use --with-baseruby option.
29 # --with-arch=arm
30 export ac_cv_func_getpgrp_void=yes
31 export ac_cv_func_setpgrp_void=yes
32 ARCH_ARGS="--with-baseruby=/usr/bin/ruby" ;;
33 esac
35 # Rules to configure and make the package.
36 compile_rules()
37 {
38 #patch -Np1 < $stuff/openssl-1.0.patch
40 export CC=gcc-83
41 export CXX=g++-83
43 ./configure \
44 --prefix=/usr \
45 --enable-shared \
46 $CONFIGURE_ARGS \
47 ${ARCH_ARGS} &&
48 make $MAKEFLAGS &&
49 make DESTDIR=$DESTDIR install
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 mkdir -p $fs/usr
56 cp -a $install/usr/bin $fs/usr
57 }