source: trunk/dports/textproc/brown-cluster/Portfile

Last change on this file was 117497, checked in by hum@…, 4 years ago

brown-cluster: update to 1.3-20140227; install cluster-viewer.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 117497 2014-03-01 09:59:52Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        percyliang brown-cluster a4d98664eea191a83ea8681452bd2bd8996e88a5
8
9version             1.3-20140227
10categories          textproc
11maintainers         hum openmaintainer
12
13description         C++ implementation of the Brown word clustering algorithm
14long_description    ${description}.
15
16platforms           darwin
17license             Permissive
18
19checksums           rmd160  e049019e83848b89d126f73a34d1fd81ccecd8c5 \
20                    sha256  0c6cb2ad871273bbf9fce27c95b9b5d5f996de5e5b164ab61c8d5402e19c158d
21
22patchfiles          patch-Makefile.diff
23
24if {${os.platform} == "darwin" && ${os.major} < 13} {
25    github.setup        percyliang brown-cluster add013e2d42e69b3dda505b2d54fe3f52650a4df
26    version             1.3-20130905
27    revision            1
28    checksums           rmd160  daaf19aac15030689c771c09bdc0b1a9c2db452b \
29                        sha256  249bcc66277f1d72c81ece3bf0d28af66ec3cfbae8e6fb16bf3d7caff82a2401
30}
31   
32use_configure       no
33
34variant universal   {}
35
36configure.optflags  -O3
37
38build.target        wcluster
39build.args          CXX="${configure.cxx}" \
40                    CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]"
41
42destroot {
43    # install binary.
44    xinstall -m 755 ${worksrcpath}/wcluster ${destroot}${prefix}/bin
45    # install additional documents and examples.
46    set docdir ${prefix}/share/doc/${name}
47    set exdir ${prefix}/share/examples/${name}
48    xinstall -d ${destroot}${docdir}
49    xinstall -d ${destroot}${exdir}
50    xinstall -m 644 -W ${worksrcpath} README               ${destroot}${docdir}
51    xinstall -m 644 -W ${worksrcpath} input.txt output.txt ${destroot}${exdir}
52    # install cluster-viewer.
53    set libexecdir ${prefix}/libexec/${name}
54    xinstall -d ${destroot}${libexecdir}
55    copy ${worksrcpath}/cluster-viewer ${destroot}${libexecdir}
56}
Note: See TracBrowser for help on using the repository browser.