1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

lang/rust: unbundle libgit2/libssh2

- libgit2 in ports is nowadays newer than bundled version
- libssh2 was already unbundled until 1.29.0 update
- Unbundle libssh2 for USES=cargo (unused atm)

PR:		231411
Approved by:	rust (dumbbell, tobik)
This commit is contained in:
Jan Beich 2018-09-21 11:16:08 +00:00
parent 46a8bf63b6
commit 49c8598e32
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=480253
2 changed files with 11 additions and 2 deletions

View File

@ -153,6 +153,12 @@ CARGO_ENV+= LIBGIT2_SYS_USE_PKG_CONFIG=1
LIB_DEPENDS+= libgit2.so:devel/libgit2
.endif
.if ${CARGO_CRATES:Mlibssh2-sys-[0-9]*}
# Use the system's libssh2 instead of building the bundled version
CARGO_ENV+= LIBSSH2_SYS_USE_PKG_CONFIG=1
LIB_DEPENDS+= libssh2.so:security/libssh2
.endif
.if ${CARGO_CRATES:Monig_sys-[0-9]*}
# onig_sys always prefers the system library but will try to link
# statically with it. Since devel/oniguruma doesn't provide a static

View File

@ -3,7 +3,7 @@
PORTNAME= rust
PORTVERSION?= 1.29.0
PORTREVISION?=
PORTREVISION?= 1
CATEGORIES= lang
MASTER_SITES= http://static.rust-lang.org/dist/:src \
LOCAL/dumbbell/rust:rust_bootstrap \
@ -30,7 +30,8 @@ LICENSE_COMB= dual
LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT
BUILD_DEPENDS= cmake:devel/cmake
LIB_DEPENDS= libcurl.so:ftp/curl \
LIB_DEPENDS= libgit2.so:devel/libgit2 \
libcurl.so:ftp/curl \
libssh2.so:security/libssh2
ONLY_FOR_ARCHS?= aarch64 amd64 i386
@ -97,6 +98,8 @@ PLIST_FILES= lib/rustlib/components \
.include <bsd.port.pre.mk>
X_PY_ENV= HOME="${WRKDIR}" \
LIBGIT2_SYS_USE_PKG_CONFIG=1 \
LIBSSH2_SYS_USE_PKG_CONFIG=1 \
OPENSSL_DIR="${OPENSSLBASE}"
X_PY_CMD= ${PYTHON_CMD} ${WRKSRC}/x.py