source: trunk/dports/textproc/normalizeNumexp/Portfile

Last change on this file was 117065, checked in by hum@…, 3 years ago

normalizeNumexp: use waf port group (#42303); fix expressions.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 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 117065 2014-02-14 15:50:11Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6PortGroup           waf 1.0 
7
8github.setup        nullnull normalizeNumexp f3202c292cf05d6084c7aaa131bc150516a5e7fa
9version             3.0.20121221
10
11categories          textproc japanese
12maintainers         hum openmaintainer
13
14description         Numerical/Temporal expression normalizer
15long_description    ${name} is a tool for normalizing numerical/temporal expression.
16
17homepage            http://www.cl.ecei.tohoku.ac.jp/~katsuma/software/normalizeNumexp/
18platforms           darwin
19license             BSD
20
21checksums           rmd160  663b1c582b27f345f80a42ea21aa9fa7d9d8b4ab \
22                    sha256  7ee8270bcd0802b4de0c459332e50e95351a016da308268506934b89aed2f723
23
24depends_build-append  port:pkgconfig
25
26depends_lib         port:ux-trie port:pficommon
27
28post-destroot {
29    # install additional documents.
30    set docdir   ${prefix}/share/doc/${name}
31    xinstall -d ${destroot}${docdir}
32    xinstall -m 644 -W ${worksrcpath} \
33        LICENSE README.rst history.txt \
34        ${destroot}${docdir}
35    # fix install_name.
36    set libpath  ${prefix}/lib/libnormalize_numexp.dylib
37    set builddir ${worksrcpath}/build/src
38    set exepath  ${prefix}/bin/normalizeNumexp
39    regexp {(\S+\/libnormalize_numexp\S+dylib)} [exec otool -L ${destroot}${exepath}] path
40    system "install_name_tool -id     ${libpath} ${destroot}${libpath}"
41    system "install_name_tool -change ${path}    ${libpath} ${destroot}${exepath}"
42}
43
44livecheck.type      regex
45livecheck.url       ${homepage}
46livecheck.version   [join [lrange [split ${version} .] 0 1] .]
47livecheck.regex     "${name} (\[0-9.\]+)"
Note: See TracBrowser for help on using the repository browser.