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

updated yelp-tools and yelp-xsl
author Hans-G?nter Theisgen
date Thu Nov 14 17:10:01 2019 +0100 (2019-11-14)
parents e2dc7c2d000d
children 1029b9269d40
line source
1 # SliTaz package receipt.
3 PACKAGE="ruby"
4 VERSION="2.6.4"
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 ${ARCH_ARGS} &&
47 make $MAKEFLAGS &&
48 make DESTDIR=$DESTDIR install
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 mkdir -p $fs/usr
55 cp -a $install/usr/bin $fs/usr
56 }