<pre style='margin:0'>
Marcus Calhoun-Lopez (MarcusCalhoun-Lopez) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/ecb4c4162ecd507cf6edcb85d39958912304a78c">https://github.com/macports/macports-ports/commit/ecb4c4162ecd507cf6edcb85d39958912304a78c</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit ecb4c4162ecd507cf6edcb85d39958912304a78c
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Fri Apr 27 15:00:18 2018 -0700
<span style='display:block; white-space:pre;color:#404040;'> cargo PG: add option if port provides crates
</span>---
_resources/port1.0/group/cargo-1.0.tcl | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/cargo-1.0.tcl b/_resources/port1.0/group/cargo-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index a0d3e79..d6d10dc 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/cargo-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/cargo-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -62,13 +62,14 @@
</span> # baz author/baz branch abcdef12345678...commit...abcdef12345678 fedcba654321...
#
<span style='display:block; white-space:pre;background:#ffe0e0;'>-options cargo.home cargo.crates cargo.crates_github cargo.direct_call
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+options cargo.home cargo.crates cargo.crates_github cargo.direct_call cargo.worksrcdir_crates
</span>
default cargo.home {${workpath}/.home/.cargo}
default cargo.crates {}
default cargo.crates_github {}
default universal_variant yes
default cargo.direct_call no
<span style='display:block; white-space:pre;background:#e0ffe0;'>+default cargo.worksrcdir_crates no
</span>
option_proc cargo.crates handle_cargo_crates
proc handle_cargo_crates {option action {value ""}} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -225,6 +226,7 @@ if {${subport} ne "cargo-bootstrap" && ${subport} ne "cargo-stage1" && ${subport
</span> }
post-extract {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {!${cargo.worksrcdir_crates}} {
</span> file mkdir "${cargo.home}/macports"
# avoid downloading files from online repository during build phase
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -266,6 +268,7 @@ post-extract {
</span> }
}
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
foreach stage {build destroot} {
</pre><pre style='margin:0'>
</pre>