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

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

mecab-java: update to 0.991; fix master_sites and livecheck; install test.sh and test.class.

  • 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 88884 2012-01-14 14:44:01Z hum@macports.org $
3
4PortSystem          1.0
5
6name                mecab-java
7version             0.991
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  c1f0a56eb8651a8231c69530c57b4d0fc440fd44 \
20                    sha256  e1cde8f7d2e4ad27563ed2dea78bc7d1a9f0d75855b360471e026b8e25b9675d
21dist_subdir         mecab
22
23depends_lib         port:mecab-utf8
24
25patchfiles          patch-Makefile.diff \
26                    patch-test.java.diff
27
28set mecab_java_home ${prefix}/share/doc/${name}
29set jar_home        ${prefix}/share/java
30set mecab_jar       ${jar_home}/mecab.jar
31
32post-patch {
33    reinplace "s|@java_library_path@|${prefix}/lib|g" ${worksrcpath}/test.java
34}
35
36use_configure       no
37
38variant universal   {}
39
40build.args          CXX="${configure.cxx}" \
41                    CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]"
42
43test.run            yes
44
45destroot    {
46    xinstall -m 755 -d \
47        ${destroot}${jar_home} \
48        ${destroot}${mecab_java_home}
49    xinstall -m 644 -W ${worksrcpath} \
50        AUTHORS BSD COPYING GPL LGPL bindings.html test.java test.class \
51        ${destroot}${mecab_java_home}
52    xinstall -m 755 ${filespath}/test.sh \
53        ${destroot}${mecab_java_home}
54    reinplace "s|@java_library_path@|${prefix}/lib|g"    ${destroot}${mecab_java_home}/test.sh
55    reinplace "s|@cp@|${mecab_java_home}:${mecab_jar}|g" ${destroot}${mecab_java_home}/test.sh
56    xinstall -m 644 ${worksrcpath}/MeCab.jar \
57        ${destroot}${mecab_jar}
58    xinstall -m 644 ${worksrcpath}/lib${name}.dylib \
59        ${destroot}${prefix}/lib
60}
61
62livecheck.type      regex
63livecheck.url       http://code.google.com/p/mecab/downloads/list
64livecheck.regex     {mecab-java-([\d\.]+)\.tar}
Note: See TracBrowser for help on using the repository browser.