wok view ruby-enterprise/receipt @ rev 24869

Up zlib (1.2.12) CVE-2018-25032
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 30 20:15:06 2022 +0000 (2022-03-30)
parents e788ef3b4d65
children 0f92b8cc8086
line source
1 # SliTaz package receipt.
3 PACKAGE="ruby-enterprise"
4 VERSION="1.8.7-2012.02"
5 CATEGORY="development"
6 SHORT_DESC="Ruby Enterprise Edition"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.rubyenterpriseedition.com/"
11 WGET_URL="http://rubyenterpriseedition.googlecode.com/files/$TARBALL"
12 SUGGESTED="tk xorg-libXss gdbm"
13 PROVIDE="ruby"
14 TAGS="ruby language programming"
16 DEPENDS="libdb ncurses libssl readline zlib"
17 BUILD_DEPENDS="zlib-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - http://www.rubyenterpriseedition.com/download.html 2>/dev/null | \
23 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 cd $src/source
30 for i in ext/dl/mk*rb ; do
31 grep -q STDOUT.flush $i || echo "STDOUT.flush" >> $i
32 done
33 ./configure $CONFIGURE_ARGS && make && make install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib
40 cp -a $install/usr/lib/ruby $fs/usr/lib
41 cp -a $install/usr/bin $fs/usr
43 # Remove devel files --> ruby-enterprise-dev
44 rm $fs/usr/lib/ruby/1.8/i?86-linux/*.h
46 # Remove doc --> ruby-enterprise-doc
47 rm -rf $fs/usr/lib/ruby/1.8/rdoc
48 }