# $Id: Portfile 111457 2013-09-23 08:24:27Z kimuraw@macports.org $

PortSystem		1.0
PortGroup		ruby 1.0

ruby.setup		RedCloth 3.0.4 setup.rb {doc} rubyforge:6064
revision		1
maintainers		nomaintainer
description		Textile for Ruby
long_description	RedCloth is a module for using Textile in Ruby. \
					Textile is a text format. A very simple text format. \
					Another stab at making readable text that can be \
					converted to HTML.
categories-append	textproc
license			BSD
checksums		md5 6f076b94e783149adf96102c574a233c
platforms		darwin
supported_archs	noarch

post-patch {
    reinplace "s|/usr/bin/ruby18|${prefix}/bin/ruby|" ${worksrcpath}/bin/redcloth
    reinplace "s|/usr/bin/env ruby|${prefix}/bin/ruby|" ${worksrcpath}/run-tests.rb
}

test.run		yes
test.cmd		${ruby.bin} -I./lib
test.target		run-tests.rb
