[122985] trunk/dports/devel
hum at macports.org
hum at macports.org
Sat Aug 2 19:01:48 PDT 2014
Revision: 122985
https://trac.macports.org/changeset/122985
Author: hum at macports.org
Date: 2014-08-02 19:01:48 -0700 (Sat, 02 Aug 2014)
Log Message:
-----------
New port: jubatus_core - # fix to install_name for installed binaries.
Added Paths:
-----------
trunk/dports/devel/jubatus_core/
trunk/dports/devel/jubatus_core/Portfile
Added: trunk/dports/devel/jubatus_core/Portfile
===================================================================
--- trunk/dports/devel/jubatus_core/Portfile (rev 0)
+++ trunk/dports/devel/jubatus_core/Portfile 2014-08-03 02:01:48 UTC (rev 122985)
@@ -0,0 +1,61 @@
+# -*- 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
+# $Id$
+
+PortSystem 1.0
+PortGroup github 1.0
+PortGroup waf 1.0
+
+github.setup jubatus jubatus_core 0.0.2
+
+categories devel math textproc
+maintainers hum openmaintainer
+
+description Jubatus algorithm component
+
+long_description ${description}
+
+homepage http://jubat.us/
+platforms darwin
+license {LGPL-2.1 MPL-2}
+
+checksums rmd160 85f95816c3868c173b97c7f8c881be570d925978 \
+ sha256 a4e7df09d0e8317f57f16c798e296f7aa90538eb289b75b2ea40d8c5940da686
+
+depends_build-append port:pkgconfig
+
+depends_lib port:msgpack \
+ port:oniguruma5
+
+platform darwin {
+ if {${os.major} <= 10} {
+ pre-fetch {
+ ui_error "$name does not build on Snow Leopard or earlier."
+ error "unsupported platform"
+ }
+ }
+}
+
+post-destroot {
+ # fix to install_name for installed libraries.
+ set libdir ${destroot}${prefix}/lib
+ foreach libname [glob -tails -directory ${libdir} *.dylib] {
+ system "install_name_tool -id ${prefix}/lib/${libname} ${libdir}/${libname}"
+ }
+ foreach path [glob ${libdir}/*.dylib] {
+ set libpathes [regexp -all -inline {\S+\/libjuba\S+dylib \(} [exec otool -L ${path}]]
+ foreach libpath ${libpathes} {
+ regexp {\S+\/(lib[^\/]+dylib)} ${libpath} srcpath libname
+ system "install_name_tool -change ${srcpath} ${prefix}/lib/${libname} ${path}"
+ }
+ }
+ # install an additional document.
+ set doc_dir ${destroot}${prefix}/share/doc/${name}
+ xinstall -d ${doc_dir}
+ xinstall -m 644 -W ${worksrcpath} \
+ CONTRIBUTING.md \
+ ChangeLog.rst \
+ LICENSE \
+ LICENSE.MPL2 \
+ README.rst \
+ ${doc_dir}
+}
Property changes on: trunk/dports/devel/jubatus_core/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140802/e668cb96/attachment.html>
More information about the macports-changes
mailing list