source: trunk/dports/devel/jubatus_core/Portfile

Last change on this file was 138175, checked in by hum@…, 2 years ago

jubatus_core: update to 0.2.0

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 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 138175 2015-07-01 11:54:54Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6PortGroup           waf 1.0 
7
8github.setup        jubatus jubatus_core 0.2.0
9
10categories          devel math textproc
11maintainers         hum openmaintainer
12
13description         Jubatus algorithm component
14
15long_description    ${description}
16
17homepage            http://jubat.us/
18platforms           darwin
19license             {LGPL-2.1 MPL-2}
20
21checksums           rmd160  ddf7cf90f51661085558168fdeb8b9bcdc4b3285 \
22                    sha256  a760bae6f854ab1eb65343edb4b652120a8999a78bfc7fbc029f148b55e1c2ba
23
24depends_build-append port:pkgconfig
25
26depends_lib         port:msgpack \
27                    port:oniguruma5
28
29platform darwin {
30    if {${os.major} <= 10} {
31        pre-fetch {
32            ui_error "$name does not build on Snow Leopard or earlier."
33            error "unsupported platform"
34        }
35    }
36}
37
38post-destroot {
39    # fix to install_name for installed libraries.
40    set libdir      ${destroot}${prefix}/lib
41    foreach libname [glob -tails -directory ${libdir} *.dylib] {
42        system "install_name_tool -id ${prefix}/lib/${libname} ${libdir}/${libname}"
43    }
44    foreach path [glob ${libdir}/*.dylib] {
45        set libpathes [regexp -all -inline {\S+\/libjuba\S+dylib \(} [exec otool -L ${path}]]
46        foreach libpath ${libpathes} {
47            regexp {\S+\/(lib[^\/]+dylib)} ${libpath} srcpath libname
48            system "install_name_tool -change ${srcpath} ${prefix}/lib/${libname} ${path}"
49        }
50    }
51    # install an additional document.
52    set doc_dir ${destroot}${prefix}/share/doc/${name}
53    xinstall -d ${doc_dir}
54    xinstall -m 644 -W ${worksrcpath} \
55        CONTRIBUTING.md \
56        ChangeLog.rst \
57        LICENSE \
58        LICENSE.MPL2 \
59        README.rst \
60        ${doc_dir}
61}
Note: See TracBrowser for help on using the repository browser.