Portfile

# $Id: Portfile 23085 2007-03-24 19:30:53Z takanori@macports.org $

PortSystem 1.0
PortGroup ruby 1.0

ruby.setup MeCab 0.95 extconf.rb {}

platforms darwin
maintainers rsky0711@gmail.com
description a Ruby module for MeCab
long_description ${description}

homepage http://mecab.sourceforge.net/
master_sites sourceforge:mecab
distname mecab-ruby-${version}
checksums md5 33c5ea430d0a21868b170b2d09991d14 \
sha1 bf6f25bc8e2b614b219ff913cd18f9bb1f70e05b \
rmd160 32437307471e3ee3583dc253691f83ba24ef8957

categories-append textproc japanese
depends_lib-append port:mecab

post-extract {
reinplace s|\#!/usr/bin/ruby|\#!${ruby.bin}|g \
${worksrcpath}/test.rb
}

post-destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples
xinstall -m 644 ${worksrcpath}/test.rb \
${destroot}${prefix}/share/doc/${name}/examples
}