corrosion, new recipe (#9753)

This commit is contained in:
Schrijvers Luc
2023-11-13 11:46:24 +01:00
committed by GitHub
parent d716950315
commit 1590e5333d

View File

@@ -0,0 +1,44 @@
SUMMARY="Tool for integrating Rust into an existing CMake project"
DESCRIPTION="Corrosion, formerly known as cmake-cargo, is a tool for integrating Rust into an \
existing CMake project. Corrosion can automatically import executables, static libraries, and \
dynamic libraries from a workspace or package manifest Cargo.toml file."
HOMEPAGE="https://github.com/corrosion-rs"
COPYRIGHT="2018 Andrew Gaspar"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="$HOMEPAGE/corrosion/archive/refs/tags/v$portVersion.tar.gz"
CHECKSUM_SHA256="bf3981d0e066f2c877949ec59d9ed6cb193ae4ff615b73f20c64a5de68fc06ab"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
corrosion$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
cmd:rustc
cmd:cmake
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:rustc
"
BUILD()
{
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
$cmakeDirArgs
make -C build
}
INSTALL()
{
make -C build install
}