wok view ruby/receipt @ rev 25192
updated python-formencode (1.2.2 -> 2.0.1)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 13 10:37:28 2022 +0100 (2022-07-13) |
parents | 1029b9269d40 |
children | b81ceff0b056 |
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 # What is the latest version available today?
24 current_version()
25 {
26 wget -O - $WEB_SITE/en/ 2>/dev/null | \
27 sed '/eleased/!d;s|.*Ruby ||;s| .*||;q'
28 }
30 # Handle cross compilation.
31 case "$ARCH" in
32 i?86)
33 BUILD_DEPENDS="$BUILD_DEPENDS coreutils-file-output-full tk-dev " ;;
34 arm*)
35 # executable host ruby is required. use --with-baseruby option.
36 # --with-arch=arm
37 export ac_cv_func_getpgrp_void=yes
38 export ac_cv_func_setpgrp_void=yes
39 ARCH_ARGS="--with-baseruby=/usr/bin/ruby" ;;
40 esac
42 # Rules to configure and make the package.
43 compile_rules()
44 {
45 #patch -Np1 < $stuff/openssl-1.0.patch
47 export CC=gcc-83
48 export CXX=g++-83
50 ./configure \
51 --prefix=/usr \
52 --enable-shared \
53 $CONFIGURE_ARGS \
54 ${ARCH_ARGS} &&
55 make $MAKEFLAGS &&
56 make DESTDIR=$DESTDIR install
57 }
59 # Rules to gen a SliTaz package suitable for Tazpkg.
60 genpkg_rules()
61 {
62 mkdir -p $fs/usr
63 cp -a $install/usr/bin $fs/usr
64 }