blob: 1abe113b2a5ee05b2f5c36bc3fdb9e9a1247a0d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
PORTNAME= bindgen-cli
DISTVERSION= 0.63.0
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= CRATESIO
PKGNAMEPREFIX= rust-
# XXX Teach USES=cargo to have proper default
DISTFILES= ${CARGO_DIST_SUBDIR}/${DISTNAME}${CARGO_CRATE_EXT}
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Generate Rust bindings from C (and some C++) code
WWW= https://github.com/rust-lang/rust-bindgen
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cargo llvm:run
PLIST_FILES= bin/${PORTNAME:S/-cli//}
post-patch:
@${REINPLACE_CMD} -e 's,"llvm-config,"${LLVM_CONFIG},' \
${WRKSRC}/cargo-crates/clang-sys-*/build/common.rs \
${WRKSRC}/cargo-crates/clang-sys-*/src/support.rs
.include <bsd.port.mk>
|