PortSystem		1.0
PortGroup		ruby 1.0

ruby.setup		rttool 1.0.3 setup.rb {rttool.en.html rttool.ja.html ChangeLog examples}
maintainers		{kimuraw @kimuraw}
description		Simple table generator
long_description \
		RT is a simple and human-readable table format. \
		RTtool is a converter from RT into various formats. \
		RT can be incorporated into RD.
categories-append	textproc
license			Ruby
supported_archs	noarch
checksums		md5 e2eecf5ea3ff0c51b74c22327733765d \
				rmd160 a2c3023519e712883a1b1f59db11103a632b87cf \
				sha1 9ecc98f156a42fe84696ce17fc5735c4dd3ee5d0

platforms		any
homepage        http://www.rubyist.net/~rubikitch/computer/rttool/
master_sites    http://www.rubyist.net/~rubikitch/archive/

configure.args-append --site-ruby="${ruby.lib}"
post-build {
	reinplace "s|^#!.*ruby|#!${ruby.bin}|" ${worksrcpath}/bin/rt/rt2
	reinplace "s|^#!.*ruby|#!${ruby.bin}|" ${worksrcpath}/bin/rt/rdrt2
}
