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

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

added a new port for mecab-java version 0.98pre3; Ticket #29647

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 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 81539 2011-08-01 12:46:32Z hum@macports.org $
3
4PortSystem          1.0
5
6name                mecab-java
7version             0.98pre3
8categories          java textproc japanese
9platforms           darwin
10maintainers         nomaintainer
11license             GPL-2 LGPL-2.1 BSD
12
13description         a Java module for MeCab
14long_description    ${name} is ${description}.
15
16homepage            http://mecab.sourceforge.net/
17master_sites        sourceforge:mecab/${name}/${version}
18
19checksums           sha1    dcd5c636f76cf7040f7c3ec0380d45b6851dce03 \
20                    rmd160  9214b1e3b2f24334709bdd3adc69da076c892c67
21
22depends_lib         port:mecab
23
24patchfiles          patch-Makefile.diff \
25                    patch-test.java.diff
26
27post-patch {
28    reinplace "s|@java_library_path@|${prefix}/lib|g" ${worksrcpath}/test.java
29}
30
31use_configure       no
32
33variant universal {}
34if {[variant_isset universal]} {
35    set archflags ${configure.universal_cxxflags}
36} else {
37    set archflags ${configure.cxx_archflags}
38}
39
40build.args          CXX="${configure.cxx}" \
41                    CXXFLAGS="${configure.cxxflags} ${archflags}"
42
43test.run            yes
44
45destroot    {
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.
65livecheck.type      none
66#livecheck.type      regex
67#livecheck.url       http://sourceforge.net/projects/mecab/files/mecab-java
68#livecheck.regex     /${name}\/(\[0-9.\]+)/
Note: See TracBrowser for help on using the repository browser.