1 # $Id: Pkgfile 75 2005-12-28 16:36:47Z tilman $
2 # Packager: Johannes Winkelmann, jw at tks6 dot net
3 # Maintainer: Tilman Sauerbeck, tilman at code-monkey dot de
4 # Description: Ruby package management
5 # URL: http://docs.rubygems.org
6 # Depends on: ruby,openssl
11 source=(http://rubyforge.org/frs/download.php/5207/${name}-${version}.tgz \
17 # adapted from the gentoo ebuild
18 ruby_version=$(ruby -r rbconfig -e \
19 'print Config::CONFIG["MAJOR"] + "." + Config::CONFIG["MINOR"]')
20 export GEM_HOME=$PKG/usr/lib/ruby/gems/$ruby_version
22 ruby setup.rb config --prefix=$PKG/usr
25 install -m 644 -D $SRC/Pkgfile.template $PKG/usr/share/$name/Pkgfile.template