Revision: 140144 https://trac.macports.org/changeset/140144 Author: sean@macports.org Date: 2015-09-09 14:28:18 -0700 (Wed, 09 Sep 2015) Log Message: ----------- racer: add port for rust autocompletion Added Paths: ----------- trunk/dports/devel/racer/ trunk/dports/devel/racer/Portfile Added: trunk/dports/devel/racer/Portfile =================================================================== --- trunk/dports/devel/racer/Portfile (rev 0) +++ trunk/dports/devel/racer/Portfile 2015-09-09 21:28:18 UTC (rev 140144) @@ -0,0 +1,39 @@ +# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=portfile:et:sw=4:ts=4:sts=4 +# $Id$ + +PortSystem 1.0 +PortGroup github 1.0 + +github.setup phildawes racer 1.0.0 v +categories devel +platforms darwin + +universal_variant no +license MIT +maintainers sean openmaintainer + +description Code completion for Rust +long_description RACER = Rust Auto-Complete-er. A utility intended to \ + provide rust code completion for editors and IDEs. + +depends_lib port:rust +depends_build port:cargo + +checksums rmd160 b44c5cb6cfdd3df2bd0fb1ebe6f2e6fd3867b65e \ + sha256 eae55d6efc446eb4bb8c37688345d664db9581e4a1e6c561c03700b34e18c1f5 + +# the DYLD_FALLBACK_LIBRARY_PATH is ugly but currently the only way to have +# rust find the libraries installed via rpath; using install_name_tool wouldn't +# help in this situation because rust and cargo both download binaries to +# bootstrap themselves. Since this is just a build argument, I think it's fine +# for now. +use_configure no + +build.cmd cargo +build.target build +build.env DYLD_FALLBACK_LIBRARY_PATH="${prefix}/lib" +build.args --release + +destroot { + copy ${worksrcpath}/target/release/racer ${destroot}${prefix}/bin/ +}
participants (1)
-
sean@macports.org