# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id: Portfile 98744 2012-10-14 12:52:29Z hum@macports.org $ PortSystem 1.0 name lucene-gosen2 version 2.0.2 categories java textproc japanese platforms darwin maintainers hum openmaintainer license LGPL-2.1 homepage http://code.google.com/p/lucene-gosen/ description a Japanese morphological analyzer for Apache Lucene/Solr 3.x long_description ${name} is ${description}. dist_subdir lucene-gosen distname lucene-gosen-${version} master_sites googlecode:lucene-gosen distfiles ${distname}-ipadic.jar checksums rmd160 20b1f8e0d7dd821ed6eb152d8959cb3967924492 \ sha256 c5a0d7c20a8b5b5aa09fd1d47404975b6fc00c1b9de42687f6c16ca71519ea31 variant naist description {Use naist chasen dictionary instead of ipadic} { distfiles ${distname}-naist-chasen.jar checksums rmd160 eafc4599755680a5f235a46bedbe55b65affdf56 \ sha256 4a235bde351a6eb7148f26e5f0c8df5dee94b649383c7246f4b47376a1bf0431 } extract {} use_configure no supported_archs noarch build {} destroot { set gosendir ${destroot}${prefix}/share/java/${name} # install the jar file. xinstall -d ${gosendir}/lib copy ${distpath}/${distfiles} ${gosendir}/lib # install the config files. xinstall -d ${gosendir}/conf xinstall -m 644 -W ${filespath} \ mapping-japanese.txt \ stoptags_ja.txt \ stopwords_ja.txt \ ${gosendir}/conf } livecheck.type none