wok-6.x view ruby/receipt @ rev 16189

ARM: add ruby!!!
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 30 19:39:55 2014 +0200 (2014-03-30)
parents 1040bd60b471
children e2dc7c2d000d
line source
1 # SliTaz package receipt.
3 PACKAGE="ruby"
4 VERSION="1.9.2-p180"
5 CATEGORY="development"
6 SHORT_DESC="Dynamic programming language focused on simplicity and productivity."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.ruby-lang.org/"
11 WGET_URL="ftp://ftp.ruby-lang.org/pub/ruby/${VERSION%.*}/$TARBALL"
12 TAGS="ruby language programming"
13 HOST_ARCH="i486 arm"
15 SUGGESTED="tk"
16 RELATED="libruby libruby-dev libruby-extras ruby-dev"
17 DEPENDS="libdb ncurses openssl readline zlib gdbm"
18 BUILD_DEPENDS="zlib-dev tcl-dev openssl-dev db-dev readline-dev"
20 # Handle cross compilation.
21 case "$ARCH" in
22 i?86)
23 BUILD_DEPENDS="$BUILD_DEPENDS coreutils-file-output-full tk-dev " ;;
24 arm*)
25 # executable host ruby is required. use --with-baseruby option.
26 # --with-arch=arm
27 export ac_cv_func_getpgrp_void=yes
28 export ac_cv_func_setpgrp_void=yes
29 ARCH_ARGS="--with-baseruby=/usr/bin/ruby" ;;
30 esac
32 # Rules to configure and make the package.
33 compile_rules()
34 {
35 #patch -Np1 < $stuff/openssl-1.0.patch
36 ./configure \
37 --prefix=/usr \
38 --enable-shared \
39 $CONFIGURE_ARGS ${ARCH_ARGS} &&
40 make $MAKEFLAGS &&
41 make DESTDIR=$DESTDIR install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/lib
48 cp -a $install/usr/lib/ruby $fs/usr/lib
49 cp -a $install/usr/bin $fs/usr
50 cp -a $install/usr/lib/libruby.so* $fs/usr/lib
51 }