1SUMMARY="Tool for integrating Rust into an existing CMake project" 2DESCRIPTION="Corrosion, formerly known as cmake-cargo, is a tool for integrating Rust into an \ 3existing CMake project. Corrosion can automatically import executables, static libraries, and \ 4dynamic libraries from a workspace or package manifest Cargo.toml file." 5HOMEPAGE="https://github.com/corrosion-rs" 6COPYRIGHT="2018 Andrew Gaspar" 7LICENSE="MIT" 8REVISION="1" 9SOURCE_URI="$HOMEPAGE/corrosion/archive/refs/tags/v$portVersion.tar.gz" 10CHECKSUM_SHA256="bf3981d0e066f2c877949ec59d9ed6cb193ae4ff615b73f20c64a5de68fc06ab" 11 12ARCHITECTURES="all !x86_gcc2" 13SECONDARY_ARCHITECTURES="x86" 14 15PROVIDES=" 16 corrosion$secondaryArchSuffix = $portVersion 17 " 18REQUIRES=" 19 haiku$secondaryArchSuffix 20 cmd:rustc 21 cmd:cmake 22 " 23 24BUILD_REQUIRES=" 25 haiku${secondaryArchSuffix}_devel 26 " 27BUILD_PREREQUIRES=" 28 cmd:cmake 29 cmd:gcc$secondaryArchSuffix 30 cmd:make 31 cmd:rustc 32 " 33 34BUILD() 35{ 36 cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \ 37 $cmakeDirArgs 38 make -C build 39} 40 41INSTALL() 42{ 43 make -C build install 44} 45