source: trunk/dports/java/lucene-gosen/Portfile @ 83879

Last change on this file since 83879 was 83879, checked in by hum@…, 9 years ago

New port: lucene-gosen 1.1.1 - a Japanese morphological analyzer for Apache Lucene/Solr

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 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 83879 2011-09-12 14:46:02Z hum@macports.org $
3
4PortSystem          1.0
5
6name                lucene-gosen
7version             1.1.1
8categories          java textproc japanese
9platforms           darwin
10maintainers         hum openmaintainer
11license             LGPL-2.1
12
13homepage            http://code.google.com/p/${name}/
14description         a Japanese morphological analyzer for Apache Lucene/Solr
15long_description    ${name} is ${description}.
16
17master_sites        http://${name}.googlecode.com/files/
18distfiles           ${distname}-ipadic.jar
19checksums           sha1    2637bf3c4bdb4cb0efd095f4d423e5efb37e4543 \
20                    rmd160  3feacc9c2ac81e2c15f3b8d6a377a85dd6fb6d01
21
22variant naist description {Use naist chasen dictionary instead of ipadic} {
23    distfiles       ${distname}-naist-chasen.jar
24    checksums       sha1    bf5cde340da36e0a1fc506c60358eca7c23347fa \
25                    rmd160  b76436ceb14bd92cc0ad449734ba8633bb15c02c
26}
27
28extract {}
29
30use_configure       no
31supported_archs     noarch
32
33build {}
34
35destroot {
36    # install the jar file.
37    xinstall -d ${destroot}${prefix}/share/java/${name}/lib
38    copy ${distpath}/${distfiles} \
39                ${destroot}${prefix}/share/java/${name}/lib
40    # install the config files.
41    xinstall -d ${destroot}${prefix}/share/java/${name}/conf
42    xinstall -m 644 -W ${filespath} \
43        mapping-japanese.txt \
44        stoptags_ja.txt \
45        stopwords_ja.txt \
46        ${destroot}${prefix}/share/java/${name}/conf
47}
48
49livecheck.type      regex
50livecheck.url       http://code.google.com/p/${name}/downloads/list
51livecheck.regex     ${name}\-(\[0-9.\]+)
Note: See TracBrowser for help on using the repository browser.