Skip to content

Commit

Permalink
cargo PG: fix a crate problem once in the PG
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusCalhoun-Lopez committed Apr 27, 2018
1 parent 68a34f5 commit e3bd4e3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions _resources/port1.0/group/cargo-1.0.tcl
Expand Up @@ -236,6 +236,18 @@ post-extract {
set cratefile ${cname}-${crevision}.tar.gz
cargo._import_crate_github ${cname} ${cgithub} ${crevision} ${chksum} ${cratefile}
}

foreach {cname cversion chksum} ${cargo.crates} {
# the libssh2-sys crate requires the header files from
# a version of libssh2 that has not been released
# (e.g. channel.c uses the error code LIBSSH2_ERROR_CHANNEL_WINDOW_FULL)
# make sure these header files are found properly
if {${cname} eq "libssh2-sys"} {
foreach f [glob -tail -directory ${cargo.home}/macports/libssh2-sys-${cversion}/libssh2/include/ *.h] {
ln -s ../include/${f} ${cargo.home}/macports/libssh2-sys-${cversion}/libssh2/src/
}
}
}
}

foreach stage {build destroot} {
Expand Down

0 comments on commit e3bd4e3

Please sign in to comment.