diff --git a/dev-rust/corrosion/corrosion-0.4.4.recipe b/dev-rust/corrosion/corrosion-0.4.4.recipe new file mode 100644 index 000000000..2ca9ff94e --- /dev/null +++ b/dev-rust/corrosion/corrosion-0.4.4.recipe @@ -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 +}