# $Id: Portfile 52840 2009-06-24 06:20:26Z blb@macports.org $

PortSystem		1.0
PortGroup		ruby 1.0

name			rb-rubygems
categories		ruby devel
version			1.3.4
#revision		0

homepage		http://www.rubygems.org
master_sites		http://rubyforge.org/frs/download.php/57643/


distname                rubygems-${version}
dist_subdir             ruby

maintainers		mr_bond openmaintainer
description		a package management framework for Ruby
long_description	RubyGems is the Ruby standard for publishing and \
					managing third party libraries.

checksums		md5     b17b398503253bf36a101c58f02a226f \
			sha1    b973b4748c0bc08f9a62b3312bde935dda2eac6f \
			rmd160  451797299921cac9997fc93a85601d6f28f17cf5


patchfiles		patch-lib_rubygems_commands_setup_command.rb.diff


extract.suffix		.tgz
platforms		darwin

use_configure		no
build { }

destroot.cmd	${ruby.bin} setup.rb
destroot.args	--prefix=${prefix} --destdir=${destroot} --vendor
destroot.env

set gems_libdir ${destroot}${prefix}/lib/ruby/gems/${ruby.version}
destroot.keepdirs \
        ${gems_libdir}/doc \
        ${gems_libdir}/gems \
        ${gems_libdir}/specifications


depends_lib     port:ruby
