source: trunk/dports/math/crfpp-devel/Portfile

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

crfpp-devel: rename crfpp@0.55 to crfpp-devel, which breaks cabocha port; skip livecheck.

  • 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 90466 2012-03-06 15:02:56Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                crfpp-devel
7version             0.55
8categories          math textproc
9maintainers         hum openmaintainer
10
11description         Yet Another CRF toolkit
12long_description    CRF++ is a simple, customizable, and open source implementation \
13                    of Conditional Random Fields (CRFs) for segmenting/labeling \
14                    sequential data. \
15                    CRF++ is designed for generic purpose and will be applied to \
16                    a variety of NLP tasks, such as Named Entity Recognition, \
17                    Information Extraction and Text Chunking.
18
19homepage            http://code.google.com/p/crfpp/
20platforms           darwin
21license             LGPL-3+ BSD
22
23master_sites        googlecode:crfpp
24dist_subdir         crfpp
25distname            CRF++-${version}
26checksums           rmd160  238859d6f474582781c06ae2e4a1a1638dd56b60 \
27                    sha256  93282ce93d7541eb073d2f7fd18f75e9e2dcb212357467037890545daa5216a9
28
29conflicts           crfpp
30
31patchfiles          patch-configure.diff
32
33depends_build       port:nkf
34
35post-destroot {
36    set sharedir ${prefix}/share/${name}
37    xinstall -d ${destroot}${sharedir}
38    xinstall -m 644 -W ${worksrcpath} \
39        AUTHORS COPYING ChangeLog NEWS README ${destroot}${sharedir}
40    foreach dir {doc example sdk} {
41        copy $dir ${destroot}${sharedir}
42    }
43    # fix file pathes in exec.sh
44    set modeldir /tmp
45    foreach ex {JapaneseNE basenp chunking seg} {
46        set dir ${sharedir}/example/${ex}
47        reinplace "s|\\.\\./\\.\\./|${prefix}/bin/|g"     ${destroot}${dir}/exec.sh
48        foreach file {template train.data test.data} {
49            reinplace "s| ${file}| ${dir}/${file}|g"      ${destroot}${dir}/exec.sh
50        }
51        reinplace "s| model| ${modeldir}/${name}.model|g" ${destroot}${dir}/exec.sh
52    }
53    # convert to UTF-8
54    foreach file {train.data test.data} {
55        set subdir example/JapaneseNE/${file}
56        system "nkf -w ${worksrcpath}/${subdir} > ${destroot}${sharedir}/${subdir}"
57    }
58}
59
60livecheck.type      none
Note: See TracBrowser for help on using the repository browser.