# $Id: Portfile 80625 2011-07-16 00:53:26Z kimuraw@macports.org $

PortSystem		1.0
PortGroup		ruby 1.0

ruby.setup		rabbit 1.0.2 setup.rb {README sample misc}
revision		0
maintainers		kimuraw
description		An application to do presentation with RD document.
long_description	This is an application to do presentation with RD document.\
					There are some features which are different from other\
					presentation tools:\
					  * To define slide look, use Ruby.\
					  * There are many keyboard interfaces.\
					  * This supports mouse gesture.\
					  * and more...

categories-append	graphics
platforms		darwin
homepage        http://rabbit-shockers.org/index.html.en
license			Ruby
supported_archs	noarch

depends_lib-append	port:rb-gtk2 port:rb-rsvg port:rb-poppler \
					port:rb-nokogiri port:rb-coderay port:rb-div \
					port:rb-rdtool port:rb-rttool

post-build {
	reinplace "s|^#!.*ruby|#!${ruby.bin}|" \
		${worksrcpath}/bin/rabbit \
		${worksrcpath}/bin/rabbit-command \
		${worksrcpath}/bin/rabbit-theme-manager \
		${worksrcpath}/bin/rabrick \
		${worksrcpath}/bin/rabbirc \
		${worksrcpath}/bin/rabbiter \
		${worksrcpath}/bin/rabwii
}

master_sites    http://rabbit-shockers.org/download/
checksums		md5 11086ae4c4042bc8dd9a89b08dd7bceb \
				rmd160 89371fe80141c54a421969770ca7026255f1c250 \
				sha1 916a5951a12ec7f6f1da2cfc5054040359fa8f6b

livecheck.type	regex
livecheck.url	http://raa.ruby-lang.org/project/rabbit/
livecheck.regex	{download/rabbit-(.*)\.tar\.gz\">http://}

