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

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

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

  • 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 102050 2013-01-26 12:43:24Z hum@macports.org $
3
4PortSystem          1.0
5
6name                mecab-java
7version             0.995
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  7dd09129e1864d2652f9e2744fd2420a08e9fb68 \
17                    sha256  e8d77991312df9d2ff45a9ff13b106b7a71145197c3f0cdca20d75e375f43204
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.