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 80207 2011-07-07 01:11:55Z ryandesign@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name lucene-gosen |
---|
7 | version 1.1.1 |
---|
8 | categories java textproc japanese |
---|
9 | platforms darwin |
---|
10 | maintainers hum openmaintainer |
---|
11 | license LGPL-2.1 |
---|
12 | |
---|
13 | homepage http://code.google.com/p/${name}/ |
---|
14 | description a Japanese morphological analyzer for Apache Lucene/Solr |
---|
15 | long_description ${name} is ${description}. |
---|
16 | |
---|
17 | master_sites http://${name}.googlecode.com/files/ |
---|
18 | distfiles ${distname}-ipadic.jar |
---|
19 | checksums sha1 2637bf3c4bdb4cb0efd095f4d423e5efb37e4543 \ |
---|
20 | rmd160 3feacc9c2ac81e2c15f3b8d6a377a85dd6fb6d01 |
---|
21 | |
---|
22 | variant naist description {Use naist chasen dictionary instead of ipadic} { |
---|
23 | distfiles ${distname}-naist-chasen.jar |
---|
24 | checksums sha1 bf5cde340da36e0a1fc506c60358eca7c23347fa \ |
---|
25 | rmd160 b76436ceb14bd92cc0ad449734ba8633bb15c02c |
---|
26 | } |
---|
27 | |
---|
28 | extract {} |
---|
29 | |
---|
30 | use_configure no |
---|
31 | supported_archs noarch |
---|
32 | |
---|
33 | build {} |
---|
34 | |
---|
35 | destroot { |
---|
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 | |
---|
49 | livecheck.type regex |
---|
50 | livecheck.url http://code.google.com/p/${name}/downloads/list |
---|
51 | livecheck.regex ${name}\-(\[0-9.\]+) |
---|