65.4. corrosion-0.6.1
The CMake bridge that builds a cargo crate as a CMake target
0.6.1-1 · MIT · 0.1 SBU · 167.9 KiB, 6 files · 40_lang, 4 of 186 · ports/core/buildtools/corrosion
Homepage: https://github.com/corrosion-rs/corrosion
Why it is in KDOS. The comment above it in script/phases/40_lang/packages.d/buildtools.txt:
taskwarrior 3 builds its Rust core through corrosion and fetches it with a git clone unless SYSTEM_CORROSION finds one.
Required by (6): akonadi-search, angelfish, cxx-rust-cssparser, kdepim-addons, kdeplasma-addons, taskwarrior.
Sources: corrosion-0.6.1.tar.gz (100.9 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/40_lang/phase.env && kpkg install corrosion'
build.sh:
mkdir -p build && cd build
cmake .. -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib \
-DCORROSION_BUILD_TESTS=OFF
make
make DESTDIR=$PKG install
Directories: /usr/lib/cmake/Corrosion, /usr/share/licenses/corrosion.