wok-6.x annotate 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
rev   line source
pankso@27 1 # SliTaz package receipt.
pankso@27 2
pankso@27 3 PACKAGE="ruby"
Hans-G?nter@21853 4 VERSION="2.6.4"
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
pankso@16189 23 # Handle cross compilation.
pankso@16189 24 case "$ARCH" in
pankso@16189 25 i?86)
pankso@16189 26 BUILD_DEPENDS="$BUILD_DEPENDS coreutils-file-output-full tk-dev " ;;
pankso@16189 27 arm*)
pankso@16189 28 # executable host ruby is required. use --with-baseruby option.
pankso@16189 29 # --with-arch=arm
pankso@16189 30 export ac_cv_func_getpgrp_void=yes
pankso@16189 31 export ac_cv_func_setpgrp_void=yes
pankso@16189 32 ARCH_ARGS="--with-baseruby=/usr/bin/ruby" ;;
pankso@16189 33 esac
pankso@27 34
pankso@27 35 # Rules to configure and make the package.
pankso@27 36 compile_rules()
pankso@27 37 {
pankso@16189 38 #patch -Np1 < $stuff/openssl-1.0.patch
Hans-G?nter@21853 39
Hans-G?nter@21853 40 export CC=gcc-83
Hans-G?nter@21853 41 export CXX=g++-83
Hans-G?nter@21853 42
Hans-G?nter@21853 43 ./configure \
Hans-G?nter@21853 44 --prefix=/usr \
Hans-G?nter@21853 45 --enable-shared \
pankso@16189 46 $CONFIGURE_ARGS ${ARCH_ARGS} &&
gokhlayeh@11573 47 make $MAKEFLAGS &&
pankso@9818 48 make DESTDIR=$DESTDIR install
pankso@27 49 }
pankso@27 50
pankso@27 51 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@27 52 genpkg_rules()
pankso@27 53 {
Hans-G?nter@21853 54 mkdir -p $fs/usr
pankso@16221 55 cp -a $install/usr/bin $fs/usr
pankso@27 56 }