wok annotate ruby/receipt @ rev 24292
updated st (0.8.2 -> 0.8.5)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jan 14 14:48:27 2022 +0100 (2022-01-14) |
parents | 2e5dbc4cc282 |
children | 2f230197370e |
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 |
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 \ |
Hans-G?nter@23621 | 46 $CONFIGURE_ARGS \ |
Hans-G?nter@23621 | 47 ${ARCH_ARGS} && |
gokhlayeh@11573 | 48 make $MAKEFLAGS && |
pankso@9818 | 49 make DESTDIR=$DESTDIR install |
pankso@27 | 50 } |
pankso@27 | 51 |
pankso@27 | 52 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@27 | 53 genpkg_rules() |
pankso@27 | 54 { |
Hans-G?nter@21853 | 55 mkdir -p $fs/usr |
Hans-G?nter@23621 | 56 cp -a $install/usr/bin $fs/usr |
pankso@27 | 57 } |