wok-current view ruby/receipt @ rev 25659

Update expat CVE-2023-52425,CVE-2023-52426, patch libxml2 CVE-2024-25062
author Stanislas Leduc <shann@slitaz.org>
date Sun Feb 18 10:03:28 2024 +0000 (10 months ago)
parents ee7ea90df426
children 04e93fb7932a
line source
1 # SliTaz package receipt.
3 PACKAGE="ruby"
4 VERSION="2.7.8"
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="gdbm libdb libruby ncurses openssl readline zlib"
16 BUILD_DEPENDS="db-dev 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 ./configure \
48 --prefix=/usr \
49 --enable-shared \
50 $CONFIGURE_ARGS \
51 ${ARCH_ARGS} &&
52 make $MAKEFLAGS &&
53 make DESTDIR=$DESTDIR install
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 mkdir -p $fs/usr
60 cp -a $install/usr/bin $fs/usr
61 }