# -*- 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 108880 2013-08-04 07:37:53Z hum@macports.org $ PortSystem 1.0 name lucene-gosen4 version 4.4.0 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 4.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 9204f14a0745dc32424e3a9a835f8f7f8d44f45d \ sha256 8b455e5a2548c5b223368ca48bb04dbfa2b3077ea570c7335098f7524c47caee variant naist description {Use naist chasen dictionary instead of ipadic} { distfiles ${distname}-naist-chasen.jar checksums rmd160 f68e7ba1624f4ce938d857e7fde29f82872346d5 \ sha256 8bc31951eb9ecfd41024fb95fc4e8a37618f5cc288d78512d4c65f135813b709 } 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.name lucene-gosen