# HG changeset patch # User Christopher Rogers # Date 1289265825 0 # Node ID a64a66d2bb0b9963c643dc15e3b100f645f98a85 # Parent d404c39b4ac1ca5b7a8d4a573f7d3208bbd60bcf Added ruby-pkgconfig. A pkg-config implementation in Ruby. diff -r d404c39b4ac1 -r a64a66d2bb0b ruby-pkgconfig/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ruby-pkgconfig/receipt Tue Nov 09 01:23:45 2010 +0000 @@ -0,0 +1,36 @@ +# SliTaz package receipt. + +PACKAGE="ruby-pkgconfig" +VERSION="1.0.7" +CATEGORY="development" +SHORT_DESC="A pkg-config implementation in Ruby." +MAINTAINER="slaxemulator@gmail.com" +DEPENDS="ruby" +BUILD_DEPENDS="ruby" +SOURCE="pkg-config" +TARBALL="$SOURCE-$VERSION.gem" +WEB_SITE="http://github.com/rcairo/pkg-config" +WGET="http://gems.rubyforge.org/gems/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then + tar xjf $SOURCES_REPOSITORY/$TARBALL + else + [ -L /usr/bin/wget ] && tazpkg get-install wget --forced + wget -O $SOURCES_REPOSITORY/$TARBALL "$WGET" + tar xjf $SOURCES_REPOSITORY/$TARBALL + fi + mkdir -p $src + cd $src + local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" + gem install --ignore-dependencies -i "$PWD/_pkg/$_gemdir" $SOURCES_REPOSITORY/$TARBALL +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cp -a $_pkg/usr $fs +} +