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

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

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

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