wok view ruby-pkgconfig/receipt @ rev 8211

imported patch toolchain/readline.patch
author Antoine Bodin <gokhlayeh@slitaz.org>
date Thu Jan 27 00:20:50 2011 +0100 (2011-01-27)
parents
children 03a5c535ba51
line source
1 # SliTaz package receipt.
3 PACKAGE="ruby-pkgconfig"
4 VERSION="1.0.7"
5 CATEGORY="development"
6 SHORT_DESC="A pkg-config implementation in Ruby."
7 MAINTAINER="slaxemulator@gmail.com"
8 DEPENDS="ruby"
9 BUILD_DEPENDS="ruby"
10 SOURCE="pkg-config"
11 TARBALL="$SOURCE-$VERSION.gem"
12 WEB_SITE="http://github.com/rcairo/pkg-config"
13 WGET="http://gems.rubyforge.org/gems/$TARBALL"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then
19 tar xjf $SOURCES_REPOSITORY/$TARBALL
20 else
21 [ -L /usr/bin/wget ] && tazpkg get-install wget --forced
22 wget -O $SOURCES_REPOSITORY/$TARBALL "$WGET"
23 tar xjf $SOURCES_REPOSITORY/$TARBALL
24 fi
25 mkdir -p $src
26 cd $src
27 local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
28 gem install --ignore-dependencies -i "$PWD/_pkg/$_gemdir" $SOURCES_REPOSITORY/$TARBALL
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 cp -a $_pkg/usr $fs
35 }