# $Id: Portfile 163 2009-07-08 13:07:18Z kimuraw $
PortSystem		1.0
PortGroup		ruby 1.0
name			rb-rsdl
version			1.0
categories		ruby
description		the command `rsdl' enables ruby-sdl bindings on MacOS X CUI
long_description	${description}
maintainers		kimuraw@i.nifty.jp

platforms		darwin
distname		rsdl-${version}
worksrcdir		rsdl

homepage        http://www.kumaryu.net/?(Ruby)+Ruby%2FSDL%CD%D1ruby
master_sites    ${homepage}
depends_lib		port:ruby port:libsdl
configure.cmd	${ruby.bin}
configure.args	configure.rb --prefix=${prefix}
configure.pre_args
destroot		{
	xinstall -c ${worksrcpath}/rsdl ${destroot}${prefix}/bin
}

dist_subdir		ruby
checksums		md5 b28ddb2c7059260a7416b1b4d6f70164 \
				rmd160 92950a9dbb92c2de5d619b7717c55344734c1807 \
				sha1 ee655ab35a0a02da9209661cff2e75f0cbb16042
fetch			{
	if {[file isfile ${distpath}/${distname}${extract.suffix}]} {return 0}
	curl fetch \
		"http://www.kumaryu.net/?c=plugin;plugin=attach_download;p=%28Ruby%29+Ruby%2FSDL%CD%D1ruby;file_name=rsdl${extract.suffix}" \
		${distpath}/${distname}${extract.suffix}
}

