# $Id: Portfile 53522 2009-07-07 15:06:10Z kimuraw@macports.org $

PortSystem		1.0
PortGroup		ruby 1.0

ruby.setup		gettext 2.0.4 gem {} rubyforge_gem
maintainers		kimuraw
description		a Localization library and tools which modeled GNU gettext.
long_description	This library provides to translate original messages to \
					localized messages properly using client-side locale \
					information(environment variable or CGI variable).\
					And the tools for developers support to create, use, and \
					modify localized message files(message catalogs) easily.

categories-append	devel
homepage		http://gettext.rubyforge.org/
checksums		md5     7e4dd44845609437af97090375952e0b \
				sha1    542b01ce10a07247137f4f809ee2046cec12078e \
				rmd160  08c4b26d17d6afa5460b295c905f1960645ca973
platforms		darwin

post-destroot {
	reinplace "s|^#!.*ruby|#!${ruby.bin}|" ${destroot}${prefix}/bin/rgettext
	reinplace "s|^#!.*ruby|#!${ruby.bin}|" ${destroot}${prefix}/bin/rmsgfmt
	reinplace "s|^#!.*ruby|#!${ruby.bin}|" ${destroot}${prefix}/bin/rmsgmerge
}

