aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2022-11-22 11:56:03 +0000
committerJan Beich <jbeich@FreeBSD.org>2022-11-22 11:59:39 +0000
commitfb0f43d1762455608e0166315d362f482f390c94 (patch)
tree259b539d8cc61cd2089226aaa3e7afd9ae7ef29d
parent97c61edd72e16acc3d245318661c0a5391514b66 (diff)
downloadports-fb0f43d1762455608e0166315d362f482f390c94.tar.gz
ports-fb0f43d1762455608e0166315d362f482f390c94.zip
devel/cargo-c: back to system libgit2/libssh2 after e245ebd0591a
-rw-r--r--devel/cargo-c/Makefile11
1 files changed, 4 insertions, 7 deletions
diff --git a/devel/cargo-c/Makefile b/devel/cargo-c/Makefile
index bbc6a7da7d18..77c9eee06977 100644
--- a/devel/cargo-c/Makefile
+++ b/devel/cargo-c/Makefile
@@ -1,7 +1,7 @@
PORTNAME= cargo-c
DISTVERSION= 0.9.14
DISTVERSIONSUFFIX= +cargo-0.66
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= CRATESIO
# XXX Teach USES=cargo to have proper default
@@ -14,7 +14,9 @@ WWW= https://github.com/lu-zero/cargo-c
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-LIB_DEPENDS= libcurl.so:ftp/curl
+LIB_DEPENDS= libgit2.so:devel/libgit2 \
+ libcurl.so:ftp/curl \
+ libssh2.so:security/libssh2
USES= cargo ssl
PLIST_FILES= bin/cargo-capi \
@@ -26,10 +28,5 @@ PLIST_FILES= bin/cargo-capi \
post-patch:
@${REINPLACE_CMD} -e 's,libdir.join("pkgconfig,prefix.join("libdata/pkgconfig,' \
${WRKSRC}/src/install.rs
-# XXX Need devel/libgit2 >= 1.4.4; libgit2 depends on libssh2, so bundle both
- @${REINPLACE_CMD} 's/if try_to_use_system_libgit2/if false/' \
- ${WRKSRC}/cargo-crates/libgit2-sys-*/build.rs
- @${REINPLACE_CMD} '/env::var/s/LIBSSH2.*PKG/disabled_&/' \
- ${WRKSRC}/cargo-crates/libssh2-sys-*/build.rs
.include <bsd.port.mk>