wok-current annotate ruby-pkgconfig/receipt @ rev 8308

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