source: trunk/dports/textproc/chasen-base/Portfile

Last change on this file was 137621, checked in by mf2k@…, 2 years ago

a2ps-j canna chasen chasen-base chasen-ipadic chasen-ipadic-sjis chasen-ipadic-utf8 chasen-naist-jdic chasen-naist-jdic-sjis chasen-naist-jdic-utf8 cocot darts dejavu-fonts disvf FDclone ghostscript ghostscript-fonts-hiragino gnushogi jnethack kakasi kinput2 lv makejvf nkf p5-nkf p5-text-chasen p5-text-kakasi pTeX smartmontools urw-fonts: Ports abandoned by takanori. (#47537)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 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 137621 2015-06-15 14:56:57Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                chasen-base
7version             2.3.3
8epoch               1
9categories          textproc japanese
10platforms           darwin
11maintainers         hum openmaintainer
12license             BSD
13
14homepage            http://chasen-legacy.sourceforge.jp/
15description         Japanese morphological analysis system
16long_description    The base analyzer of ChaSen, ${description}.
17
18dist_subdir         chasen
19distname            chasen-${version}
20
21master_sites        sourceforge_jp:chasen-legacy/24339
22checksums           rmd160  2f2416f82fb0341023314a4672e442fed86207a9 \
23                    sha256  a91b422398f30c9c6c2d27fdbcc1aeb8e026ded44d6e729fc060d5d18bfaefdb
24
25# chasen-2.3.3-2003082[12].patch are official patches taken from http://chasen.aist-nara.ac.jp/stable/chasen/
26# see http://chasen.naist.jp/hiki/ChaSen/?%A5%D0%A5%B0%BE%F0%CA%F3
27patchfiles          chasen-2.3.3.20030821.patch \
28                    chasen-2.3.3.20030822.patch \
29                    patch-configure.diff \
30                    patch-lib.diff \
31                    patch-mkchadic.diff
32
33depends_build       port:darts
34depends_lib         port:libiconv
35
36variant dartsclone description {Use darts-clone instead of darts} {
37    depends_build-replace    s|port:darts|port:darts-clone|
38}
39
40post-extract {
41    foreach f {tests/test-chasen.sh tests/test-dic.sh} {
42        file attributes ${worksrcpath}/${f} -permissions 0755
43    }
44}
45
46configure.args      --libexecdir=${prefix}/lib \
47                    --sysconfdir=${prefix}/etc/chasen \
48                    --with-darts=${prefix}/include \
49                    --with-libiconv=${prefix}
50
51test.run            yes
52test.target         check
53
54post-destroot {
55    set docdir ${destroot}${prefix}/share/doc/chasen
56    file mkdir ${docdir}
57    xinstall -m 644 -W ${worksrcpath} \
58        AUTHORS COPYING ChangeLog NEWS README doc/manual-j.pdf \
59        ${docdir}
60
61    if {[variant_isset dartsclone]} {
62        set dartslib "dartsclone"
63    } else {
64        set dartslib "darts"
65    }
66    # this file indicates which version of chasen is installed
67    set fh [open [file join ${docdir} chasen_${dartslib}] w 0644]
68    puts ${fh} "This version of ChaSen depends on the ${dartslib} library."
69    close ${fh}
70}
71
72# deactivate any old chasen port.
73pre-activate {
74    if {[file exists ${prefix}/bin/chasen]
75        && ![catch {set vers [lindex [registry_active chasen] 0]}]
76        && ([vercmp [lindex $vers 1] 2.4.4] < 0 ||
77            [vercmp [lindex $vers 1] 2.4.4] == 0
78            && [vercmp [lindex $vers 2] 1] < 1)} {
79        registry_deactivate_composite chasen "" [list ports_nodepcheck 1]
80    }
81}
82
83livecheck.type      regex
84livecheck.url       ${homepage}
85livecheck.regex     >chasen-(\[0-9.a-z\-\]+)<
Note: See TracBrowser for help on using the repository browser.