wok-current diff ruby-pkgconfig/receipt @ rev 8273

Fixed xorg-imake depends.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Jan 30 03:08:26 2011 +0000 (2011-01-30)
parents
children 03a5c535ba51
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ruby-pkgconfig/receipt	Sun Jan 30 03:08:26 2011 +0000
     1.3 @@ -0,0 +1,36 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="ruby-pkgconfig"
     1.7 +VERSION="1.0.7"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="A pkg-config implementation in Ruby."
    1.10 +MAINTAINER="slaxemulator@gmail.com"
    1.11 +DEPENDS="ruby"
    1.12 +BUILD_DEPENDS="ruby"
    1.13 +SOURCE="pkg-config"
    1.14 +TARBALL="$SOURCE-$VERSION.gem"
    1.15 +WEB_SITE="http://github.com/rcairo/pkg-config"
    1.16 +WGET="http://gems.rubyforge.org/gems/$TARBALL"
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +compile_rules()
    1.20 +{
    1.21 +	if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then
    1.22 +		tar xjf $SOURCES_REPOSITORY/$TARBALL
    1.23 +	else
    1.24 +		[ -L /usr/bin/wget ] && tazpkg get-install wget --forced
    1.25 +		wget -O $SOURCES_REPOSITORY/$TARBALL "$WGET"
    1.26 +		tar xjf $SOURCES_REPOSITORY/$TARBALL
    1.27 +	fi
    1.28 +	mkdir -p $src
    1.29 +	cd $src
    1.30 +	local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
    1.31 +	gem install --ignore-dependencies -i "$PWD/_pkg/$_gemdir" $SOURCES_REPOSITORY/$TARBALL
    1.32 +}
    1.33 +
    1.34 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.35 +genpkg_rules()
    1.36 +{
    1.37 +	cp -a $_pkg/usr $fs
    1.38 +}
    1.39 +