SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "ruby-enterprise"

# SliTaz package receipt.

PACKAGE="ruby-enterprise"
VERSION="1.8.7-2012.02"
CATEGORY="development"
SHORT_DESC="Ruby Enterprise Edition"
MAINTAINER="erjo@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.rubyenterpriseedition.com/"
WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/rubyenterpriseedition/$TARBALL"
SUGGESTED="tk xorg-libXss gdbm"
PROVIDE="ruby"
TAGS="ruby language programming"

DEPENDS="libdb ncurses libssl readline zlib"
BUILD_DEPENDS="zlib-dev"

# What is the latest version available today?
current_version()
{
    wget -O - http://www.rubyenterpriseedition.com/download.html 2>/dev/null | \
    sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src/source
    for i in ext/dl/mk*rb ; do
        grep -q STDOUT.flush $i || echo "STDOUT.flush" >> $i
    done
    ./configure $CONFIGURE_ARGS && make && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib
    cp -a $install/usr/lib/ruby $fs/usr/lib
    cp -a $install/usr/bin $fs/usr
    
    # Remove devel files --> ruby-enterprise-dev
    rm $fs/usr/lib/ruby/1.8/i?86-linux/*.h
    
    # Remove doc --> ruby-enterprise-doc
    rm -rf $fs/usr/lib/ruby/1.8/rdoc
}

6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)