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$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name mecab-java |
---|
7 | version 0.98pre3 |
---|
8 | categories java textproc japanese |
---|
9 | platforms darwin |
---|
10 | maintainers nomaintainer |
---|
11 | license GPL-2 LGPL-2.1 BSD |
---|
12 | |
---|
13 | description a Java module for MeCab |
---|
14 | long_description ${name} is ${description}. |
---|
15 | |
---|
16 | homepage http://mecab.sourceforge.net/ |
---|
17 | master_sites sourceforge:mecab/${name}/${version} |
---|
18 | |
---|
19 | checksums sha1 dcd5c636f76cf7040f7c3ec0380d45b6851dce03 \ |
---|
20 | rmd160 9214b1e3b2f24334709bdd3adc69da076c892c67 |
---|
21 | |
---|
22 | depends_lib port:mecab |
---|
23 | |
---|
24 | patchfiles patch-Makefile.diff \ |
---|
25 | patch-test.java.diff |
---|
26 | |
---|
27 | post-patch { |
---|
28 | reinplace "s|@java_library_path@|${prefix}/lib|g" ${worksrcpath}/test.java |
---|
29 | } |
---|
30 | |
---|
31 | use_configure no |
---|
32 | |
---|
33 | variant universal {} |
---|
34 | if {[variant_isset universal]} { |
---|
35 | set archflags ${configure.universal_cxxflags} |
---|
36 | } else { |
---|
37 | set archflags ${configure.cxx_archflags} |
---|
38 | } |
---|
39 | |
---|
40 | build.args CXX="${configure.cxx}" \ |
---|
41 | CXXFLAGS="${configure.cxxflags} ${archflags}" |
---|
42 | |
---|
43 | test.run yes |
---|
44 | |
---|
45 | destroot { |
---|
46 | xinstall -m 755 -d \ |
---|
47 | ${destroot}${prefix}/share/java \ |
---|
48 | ${destroot}${prefix}/share/doc/${name} |
---|
49 | xinstall -m 644 -W ${worksrcpath} \ |
---|
50 | AUTHORS BSD COPYING GPL LGPL bindings.html test.java \ |
---|
51 | ${destroot}${prefix}/share/doc/${name} |
---|
52 | xinstall -m 644 ${worksrcpath}/mecab.jar \ |
---|
53 | ${destroot}${prefix}/share/java |
---|
54 | xinstall -m 644 ${worksrcpath}/lib${name}.dylib \ |
---|
55 | ${destroot}${prefix}/lib |
---|
56 | |
---|
57 | ui_msg "*****************************************************" |
---|
58 | ui_msg "* This port requires MeCab for UTF-8." |
---|
59 | ui_msg "* If another encoding version of MeCab is installed, " |
---|
60 | ui_msg "* you should re-install mecab +utf8 and this port." |
---|
61 | ui_msg "*****************************************************" |
---|
62 | } |
---|
63 | |
---|
64 | # a distfile folder for a newer version 0.98 exists, but is empty. |
---|
65 | livecheck.type none |
---|
66 | #livecheck.type regex |
---|
67 | #livecheck.url http://sourceforge.net/projects/mecab/files/mecab-java |
---|
68 | #livecheck.regex /${name}\/(\[0-9.\]+)/ |
---|