wok annotate ruby/receipt @ rev 24955

updated nano and nano-doc (4.8 -> 6.2)
author Hans-G?nter Theisgen
date Sat Apr 23 16:34:46 2022 +0100 (2022-04-23)
parents 1029b9269d40
children b81ceff0b056
rev   line source
pankso@27 1 # SliTaz package receipt.
pankso@27 2
pankso@27 3 PACKAGE="ruby"
Hans-G?nter@23621 4 VERSION="2.7.1"
pankso@200 5 CATEGORY="development"
Hans-G?nter@21853 6 TAGS="ruby language programming"
pankso@27 7 SHORT_DESC="Dynamic programming language focused on simplicity and productivity."
pankso@27 8 MAINTAINER="pankso@slitaz.org"
pascal@15023 9 LICENSE="GPL2"
Hans-G?nter@21853 10 WEB_SITE="https://www.ruby-lang.org/"
Hans-G?nter@21853 11
Hans-G?nter@21853 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21853 13 WGET_URL="https://cache.ruby-lang.org/pub/$PACKAGE/${VERSION%.*}/$TARBALL"
Hans-G?nter@21853 14
Hans-G?nter@21853 15 DEPENDS="gcc83-lib-base gdbm libdb libruby ncurses openssl readline zlib"
Hans-G?nter@21853 16 BUILD_DEPENDS="db-dev gcc83 openssl-dev readline-dev tcl-dev zlib-dev"
pankso@16189 17
pankso@9818 18 SUGGESTED="tk"
pankso@16221 19 RELATED="libruby libruby-extras ruby-dev"
Hans-G?nter@21853 20
Hans-G?nter@21853 21 HOST_ARCH="i486 arm"
pankso@9818 22
pascal@24459 23 # What is the latest version available today?
pascal@24459 24 current_version()
pascal@24459 25 {
pascal@24459 26 wget -O - $WEB_SITE/en/ 2>/dev/null | \
pascal@24459 27 sed '/eleased/!d;s|.*Ruby ||;s| .*||;q'
pascal@24459 28 }
pascal@24459 29
pankso@16189 30 # Handle cross compilation.
pankso@16189 31 case "$ARCH" in
pankso@16189 32 i?86)
pankso@16189 33 BUILD_DEPENDS="$BUILD_DEPENDS coreutils-file-output-full tk-dev " ;;
pankso@16189 34 arm*)
pankso@16189 35 # executable host ruby is required. use --with-baseruby option.
pankso@16189 36 # --with-arch=arm
pankso@16189 37 export ac_cv_func_getpgrp_void=yes
pankso@16189 38 export ac_cv_func_setpgrp_void=yes
pankso@16189 39 ARCH_ARGS="--with-baseruby=/usr/bin/ruby" ;;
pankso@16189 40 esac
pankso@27 41
pankso@27 42 # Rules to configure and make the package.
pankso@27 43 compile_rules()
pankso@27 44 {
pankso@16189 45 #patch -Np1 < $stuff/openssl-1.0.patch
Hans-G?nter@21853 46
Hans-G?nter@21853 47 export CC=gcc-83
Hans-G?nter@21853 48 export CXX=g++-83
Hans-G?nter@21853 49
Hans-G?nter@21853 50 ./configure \
Hans-G?nter@21853 51 --prefix=/usr \
Hans-G?nter@21853 52 --enable-shared \
Hans-G?nter@23621 53 $CONFIGURE_ARGS \
Hans-G?nter@23621 54 ${ARCH_ARGS} &&
gokhlayeh@11573 55 make $MAKEFLAGS &&
pankso@9818 56 make DESTDIR=$DESTDIR install
pankso@27 57 }
pankso@27 58
pankso@27 59 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@27 60 genpkg_rules()
pankso@27 61 {
Hans-G?nter@21853 62 mkdir -p $fs/usr
Hans-G?nter@23621 63 cp -a $install/usr/bin $fs/usr
pankso@27 64 }