diff --git a/app-text/typst/patches/typst-0.13.1.patchset b/app-text/typst/patches/typst-0.13.1.patchset new file mode 100644 index 000000000..0678879f6 --- /dev/null +++ b/app-text/typst/patches/typst-0.13.1.patchset @@ -0,0 +1,22 @@ +From 40de2a01aa02a2655ed3ba372c7cfc8efd1b4a63 Mon Sep 17 00:00:00 2001 +From: Philippe Houdoin +Date: Thu, 10 Apr 2025 20:46:43 +0200 +Subject: Disable LTO + + +diff --git a/Cargo.toml b/Cargo.toml +index 296164d..9abdc57 100644 +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -147,7 +147,7 @@ zip = { version = "2", default-features = false, features = ["deflate"] } + opt-level = 2 + + [profile.release] +-lto = "thin" ++lto = "off" + codegen-units = 1 + + [profile.release.package."typst-cli"] +-- +2.48.1 + diff --git a/app-text/typst/typst-0.13.1.recipe b/app-text/typst/typst-0.13.1.recipe new file mode 100644 index 000000000..0bb9d1268 --- /dev/null +++ b/app-text/typst/typst-0.13.1.recipe @@ -0,0 +1,55 @@ +SUMMARY="A typesetting system markup language" +DESCRIPTION="Typst is a new markup-based typesetting system that is designed to be as powerful \ +as LaTeX while being much easier to learn and use. +Typst has: +- Built-in markup for the most common formatting task +- Flexible functions for everything else +- A tightly integrated scripting system +- Math typesetting, bibliography management, and more +- Fast compile times thanks to incremental compilation +- Friendly error messages in case something goes wrong" +HOMEPAGE="https://github.com/typst/typst" +COPYRIGHT="2022 Laurenz Mädje and Martin Haug." +LICENSE="Apache v2" +REVISION="1" +SOURCE_URI="$HOMEPAGE/archive/v$portVersion.tar.gz" +CHECKSUM_SHA256="2ffd8443668bc0adb59e9893f7904fd9f64dce8799a1930569f56a91305e8b71" +PATCHES="typst-$portVersion.patchset" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + typst$secondaryArchSuffix = $portVersion + cmd:typst = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libssl$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libssl$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cargo + cmd:gcc$secondaryArchSuffix + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + cargo build --release $jobArgs +} + +INSTALL() +{ + install -d $prefix/bin + install -t $prefix/bin target/release/typst +} + +TEST() +{ + cargo test --release $jobArgs +}