Skip to content

Commit c41e23a

Browse files
committed
Add cargo-c: MSRV 1.87.0
1 parent acea830 commit c41e23a

File tree

11 files changed

+1807
-0
lines changed

11 files changed

+1807
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,7 @@ SUBDIR+= canu
427427
SUBDIR+= capicxx-core-runtime
428428
SUBDIR+= carburetta
429429
SUBDIR+= cardpeek
430+
SUBDIR+= cargo-c
430431
SUBDIR+= cargo-deb
431432
SUBDIR+= carla
432433
SUBDIR+= cartago

cargo-c/COMMIT_MSG

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
devel/cargo-c: update to 0.10.15
2+
3+
NOTE: Whenever we can import this or, a newer version, the patches in
4+
devel/cargo-c should be applied again. These are not needed on amd64
5+
so, for now I'm not going to bother as these may change before the import.
6+
7+
v0.10.5
8+
Fixes
9+
10+
- Fix non-POSIX paths in Libdir under Windows by @amyspark
11+
- Fix static_libraries swallowing sequence of -framework flags by @amyspark
12+
- Rust integration tests now can link and run fine by @lu-zero
13+
14+
New features
15+
16+
- Allow disabling emission of library version constants in header files by @sd-collins
17+
18+
Version Bumps
19+
20+
- implib 0.4.0
21+
- cargo 0.90

cargo-c/DESCR

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
cargo applet to build and install C-ABI compatible dynamic and
2+
static libraries.
3+
4+
It produces and installs a correct pkg-config file, a static library
5+
and a dynamic library, and a C header to be used by any C (and
6+
C-compatible) software.

cargo-c/Makefile

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# $NetBSD: Makefile,v 1.24 2025/07/01 21:18:51 wiz Exp $
2+
3+
DISTNAME= cargo-c-0.10.15
4+
CATEGORIES= devel
5+
MASTER_SITES= ${MASTER_SITE_GITHUB:=lu-zero/}
6+
GITHUB_TAG= v${PKGVERSION_NOREV}
7+
8+
MAINTAINER= [email protected]
9+
HOMEPAGE= https://github.com/lu-zero/cargo-c
10+
COMMENT= Build and install C-compatible libraries from Rust lang
11+
LICENSE= 2-clause-bsd
12+
13+
USE_TOOLS+= pkg-config
14+
15+
RUST_REQ= 1.87.0
16+
MAKE_ENV+= OPENSSL_DIR=${BUILDLINK_PREFIX.openssl:Q}
17+
RUSTFLAGS+= -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.openssl}/lib
18+
19+
.include "cargo-depends.mk"
20+
21+
INSTALLATION_DIRS= bin
22+
23+
CARGOC_PROGRAMS+= cargo-capi
24+
CARGOC_PROGRAMS+= cargo-cbuild
25+
CARGOC_PROGRAMS+= cargo-cinstall
26+
CARGOC_PROGRAMS+= cargo-ctest
27+
28+
do-install:
29+
.for f in ${CARGOC_PROGRAMS}
30+
${INSTALL_PROGRAM} ${WRKSRC}/target/release/${f} ${DESTDIR}${PREFIX}/bin
31+
.endfor
32+
33+
.include "../../security/openssl/buildlink3.mk"
34+
.include "../../lang/rust/cargo.mk"
35+
.include "../../devel/zlib/buildlink3.mk"
36+
.include "../../mk/bsd.pkg.mk"

cargo-c/PLIST

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@comment $NetBSD: PLIST,v 1.1 2023/03/10 21:27:09 ryoon Exp $
2+
bin/cargo-capi
3+
bin/cargo-cbuild
4+
bin/cargo-cinstall
5+
bin/cargo-ctest

0 commit comments

Comments
 (0)