mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
Typst new typesetting system port (#12133)
This commit is contained in:
22
app-text/typst/patches/typst-0.13.1.patchset
Normal file
22
app-text/typst/patches/typst-0.13.1.patchset
Normal file
@@ -0,0 +1,22 @@
|
||||
From 40de2a01aa02a2655ed3ba372c7cfc8efd1b4a63 Mon Sep 17 00:00:00 2001
|
||||
From: Philippe Houdoin <philippe.houdoin@gmail.com>
|
||||
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
|
||||
|
||||
55
app-text/typst/typst-0.13.1.recipe
Normal file
55
app-text/typst/typst-0.13.1.recipe
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user