# $Id: Portfile,v 1.4 2006/07/19 09:01:42 takanori Exp $

PortSystem      1.0
PortGroup       perl5 1.0
perl5.setup     MeCab 0.92

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

homepage        http://mecab.sourceforge.jp/
set sfj         20919
master_sites    http://osdn.dl.sourceforge.jp/mecab/${sfj}/ \
                http://keihanna.dl.sourceforge.jp/mecab/${sfj}/ \
                http://qgpop.dl.sourceforge.jp/mecab/${sfj}/
distname        mecab-perl-${version}
checksums       md5    6a066597bb3edbcd8a34931fa00f52bd \
                sha1   51cad405b9cebba30e0c6d0084126886c5986eaf \
                rmd160 2e8381c4cea23e9d3332dacb4cf6e6673941e508

categories-append   textproc japanese
depends_lib-append  port:mecab

platform darwin 7 {
    build.env       MACOSX_DEPLOYMENT_TARGET=10.3
}

platform darwin 8 {
    build.env       MACOSX_DEPLOYMENT_TARGET=10.4
}

post-extract {
    reinplace s|\#!/usr/bin/perl|\#!${perl5.bin}|g \
        ${worksrcpath}/test.pl
}

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