source: trunk/dports/java/lucene-gosen2/Portfile

Last change on this file was 98744, checked in by hum@…, 5 years ago

lucene-gosen, lucene-gosen2: lucene-gosen is replaced by lucene-gosen2.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# -*- 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
2# $Id: Portfile 98744 2012-10-14 12:52:29Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                lucene-gosen2
7version             2.0.2
8categories          java textproc japanese
9platforms           darwin
10maintainers         hum openmaintainer
11license             LGPL-2.1
12
13homepage            http://code.google.com/p/lucene-gosen/
14description         a Japanese morphological analyzer for Apache Lucene/Solr 3.x
15long_description    ${name} is ${description}.
16
17dist_subdir         lucene-gosen
18distname            lucene-gosen-${version}
19
20master_sites        googlecode:lucene-gosen
21distfiles           ${distname}-ipadic.jar
22checksums           rmd160  20b1f8e0d7dd821ed6eb152d8959cb3967924492 \
23                    sha256  c5a0d7c20a8b5b5aa09fd1d47404975b6fc00c1b9de42687f6c16ca71519ea31
24
25variant naist description {Use naist chasen dictionary instead of ipadic} {
26    distfiles       ${distname}-naist-chasen.jar
27    checksums       rmd160  eafc4599755680a5f235a46bedbe55b65affdf56 \
28                    sha256  4a235bde351a6eb7148f26e5f0c8df5dee94b649383c7246f4b47376a1bf0431
29}
30
31extract {}
32
33use_configure       no
34supported_archs     noarch
35
36build {}
37
38destroot {
39    set gosendir ${destroot}${prefix}/share/java/${name}
40    # install the jar file.
41    xinstall -d ${gosendir}/lib
42    copy ${distpath}/${distfiles} ${gosendir}/lib
43    # install the config files.
44    xinstall -d ${gosendir}/conf
45    xinstall -m 644 -W ${filespath} \
46        mapping-japanese.txt \
47        stoptags_ja.txt \
48        stopwords_ja.txt \
49        ${gosendir}/conf
50}
51
52livecheck.type      none
Note: See TracBrowser for help on using the repository browser.