wok rev 8843

Fix ruby-pkgconfig compile_rules()
author Antoine Bodin <gokhlayeh@slitaz.org>
date Fri Feb 25 00:22:45 2011 +0100 (2011-02-25)
parents 06b84f477e02
children f7d3811b21ef
files ruby-pkgconfig/receipt
line diff
     1.1 --- a/ruby-pkgconfig/receipt	Fri Feb 25 00:21:51 2011 +0100
     1.2 +++ b/ruby-pkgconfig/receipt	Fri Feb 25 00:22:45 2011 +0100
     1.3 @@ -6,20 +6,17 @@
     1.4  SHORT_DESC="A pkg-config implementation in Ruby."
     1.5  MAINTAINER="slaxemulator@gmail.com"
     1.6  DEPENDS="ruby"
     1.7 -BUILD_DEPENDS="ruby"
     1.8  SOURCE="pkg-config"
     1.9  TARBALL="$SOURCE-$VERSION.gem"
    1.10  WEB_SITE="http://github.com/rcairo/pkg-config"
    1.11  WGET_URL="http://gems.rubyforge.org/gems/$TARBALL"
    1.12 -COOK_OPT="!repack_src"
    1.13 +COOK_OPT="!repack_src !unpack"
    1.14  
    1.15  # Rules to configure and make the package.
    1.16  compile_rules()
    1.17  {
    1.18 -	mkdir -p $src
    1.19 -	cd $src
    1.20  	local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
    1.21 -	gem install --ignore-dependencies -i "$PWD/_pkg/$_gemdir" $SOURCES_REPOSITORY/$TARBALL
    1.22 +	gem install --ignore-dependencies -i "$DESTDIR/$_gemdir" $SOURCES_REPOSITORY/$TARBALL
    1.23  }
    1.24  
    1.25  # Rules to gen a SliTaz package suitable for Tazpkg.