# $Id: Portfile 54805 2009-08-02 09:48:58Z kimuraw@macports.org $

PortSystem		1.0
PortGroup		ruby 1.0

ruby.setup		rabbit 0.6.1 setup.rb {README.en 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://www.cozmixng.org/~rwiki/\?cmd=view\;name=Rabbit

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

post-build {
	reinplace "s|^#!.*ruby|#!${ruby.bin}|" \
		${worksrcpath}/bin/rabbit \
		${worksrcpath}/bin/rabbit-theme-manager \
		${worksrcpath}/bin/rabrick \
		${worksrcpath}/bin/rabbirc
}
post-destroot {
	delete "${destroot}${prefix}/bin/rabbit.bat"
}

master_sites    http://www.cozmixng.org/~kou/download/
checksums		md5 ebbfb0946964d313f9a88b460d243c1b \
				rmd160 76f7c4b7eb8004c29ecada080e2d43b5a618854d \
				sha1 3a6744f868b6be10ae2a9914a5cebcc1379c7132

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

