mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
corrosion, new recipe (#9753)
This commit is contained in:
44
dev-rust/corrosion/corrosion-0.4.4.recipe
Normal file
44
dev-rust/corrosion/corrosion-0.4.4.recipe
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user