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

Last change on this file was 116867, checked in by hum@…, 3 years ago

lucene-gosen4: disable livecheck because the latest version is stored in Google Drive and could not be downloaded by MacPorts.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 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 116867 2014-02-09 05:44:28Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                lucene-gosen4
7version             4.6.0
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 4.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  5fde027bdba160bed251e85c7131a88efbbeab96 \
23                    sha256  0c5801ae7a47b1d50700ba4f7e1efb6b1afa3710c24149af94844e497bccb5cd
24
25variant naist description {Use naist chasen dictionary instead of ipadic} {
26    distfiles       ${distname}-naist-chasen.jar
27    checksums       rmd160  52f8a9a3edf6247e3b581f0b5d5ea1fe932775f7 \
28                    sha256  6478117cfdc1aecde6ea7683ee75191fb375b36db24f1811aed654ee8500ed25
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
52# The latest distribution (>= 4.6.1) is stored in Google Drive and could not be downloaded by MacPorts.
53livecheck.type      none
54livecheck.name      lucene-gosen
Note: See TracBrowser for help on using the repository browser.