source: trunk/dports/java/mecab-java/Portfile

Last change on this file was 103265, checked in by hum@…, 4 years ago

mecab,mecab-{base,sjis,utf8,java},{p5,py,rb,rb19}-mecab: update to 0.996.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 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 103265 2013-02-19 15:25:57Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                mecab-java
7version             0.996
8epoch               1
9categories          java textproc japanese
10maintainers         hum openmaintainer
11
12description         a Java module for MeCab
13long_description    ${name} is ${description}.
14
15master_sites        googlecode:mecab
16checksums           rmd160  8f07939ab2114aa11549a432aa85e8a2c8c27099 \
17                    sha256  9b8afa4176bc1d8b18392779a5cb1ee8ae338a8a9c70bbe389d0511bae8eb208
18
19homepage            http://mecab.sourceforge.net/
20platforms           darwin
21license             {GPL LGPL BSD}
22
23dist_subdir         mecab
24
25depends_lib         port:mecab-utf8
26
27patchfiles          patch-Makefile.diff \
28                    patch-test.java.diff
29
30set mecab_java_home ${prefix}/share/doc/${name}
31set jar_home        ${prefix}/share/java
32set mecab_jar       ${jar_home}/mecab.jar
33
34post-patch {
35    reinplace "s|@java_library_path@|${prefix}/lib|g" ${worksrcpath}/test.java
36}
37
38use_configure       no
39
40variant universal   {}
41
42build.args          CXX="${configure.cxx}" \
43                    CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]"
44
45test.run            yes
46
47destroot    {
48    xinstall -m 755 -d \
49        ${destroot}${jar_home} \
50        ${destroot}${mecab_java_home}
51    xinstall -m 644 -W ${worksrcpath} \
52        AUTHORS BSD COPYING GPL LGPL bindings.html test.java test.class \
53        ${destroot}${mecab_java_home}
54    xinstall -m 755 ${filespath}/test.sh \
55        ${destroot}${mecab_java_home}
56    reinplace "s|@java_library_path@|${prefix}/lib|g"    ${destroot}${mecab_java_home}/test.sh
57    reinplace "s|@cp@|${mecab_java_home}:${mecab_jar}|g" ${destroot}${mecab_java_home}/test.sh
58    xinstall -m 644 ${worksrcpath}/MeCab.jar \
59        ${destroot}${mecab_jar}
60    xinstall -m 644 ${worksrcpath}/lib${name}.dylib \
61        ${destroot}${prefix}/lib
62}
63
64livecheck.type      regex
65livecheck.url       http://code.google.com/p/mecab/downloads/list
66livecheck.regex     {mecab-java-([\d\.]+)\.tar}
Note: See TracBrowser for help on using the repository browser.