tawasuyu

sergio/takana

> Una distribución Linux construida con un laboratorio funcional y hermético en el > sótano, y una terminal mutable, clásica y anárquica en el piso de arriba — diseñada > desde el suelo para que una IA programadora entienda, modifique y co…

TOML 1436Shell 145Markdown 88Rust 853000 Definiciones

⎇ 5e4dd7ab9d9fe9dbddb0e532e85260b81f12d1f0 recipes/incoming-kde/syntax-highlighting.toml TOML · 53 líneas · 2.4 KB Historia crudo

kde/Plasma: sub-deps gmp/mpfr/qrencode/syntax-highlighting/qtspeech (blockers de libqalculate/prison/ktexteditor) 8a903b9cf · sergio ·

1# syntax-highlighting 6.27.0 — KDE Frameworks 6 (KSyntaxHighlighting, KF6::SyntaxHighlighting).
2# Campaña KDE (ADR 0011): sustrato de ktexteditor (el motor de Kate/KWrite) y de KTextEditor-consumers.
3# Molde KF6 (kxmlgui): dynamic, wrapper zig que filtra -Wl,--fatal-warnings, CMAKE_PREFIX_PATH=/usr, ECM.
4#
5# find_package del CMakeLists: Qt6 Core+Network+Test REQUIRED, Qt6::Gui REQUIRED (KSYNTAXHIGHLIGHTING_USE_GUI
6# ON por defecto), Qt6::Quick OPCIONAL (→ qtdeclarative, para los bindings QML). PrintSupport/Widgets sólo
7# para el ejemplo (BUILD_TESTING=OFF los evita). XercesC/Python OPCIONALES (omitidos).
8#
9# ⚠️ find_package(Perl REQUIRED): perl regenera las definiciones de sintaxis (data/generators/*.pl,
10# PHP auto-gen). Es dep de build DURA. 'perl' NO está sellado todavía → esta receta NO construye hasta
11# tener recipes/…/perl. Es el único blocker nuevo de esta pieza.
12#
13# rm -rf po poqm: no hay carpeta po en 6.27.0, pero se limpia poqm defensivamente (gettext-tiny/msgfmt
14# crashea con catálogos grandes; ecm_install_po_files_as_qm(poqm) quedaría inerte).
15name    = "syntax-highlighting"
16version = "6.27.0"
17
18[source]
19tarball = "https://download.kde.org/stable/frameworks/6.27/syntax-highlighting-6.27.0.tar.xz"
20sha256  = "cbff001b9f00d032feb254313ecfee9a6e0a0b3c5a8c82a7e0806c5f1915a545"
21
22[build]
23compiler = "zig-cc"
24target   = "x86_64-linux-musl"
25link     = "dynamic"
26flags    = []
27
28[build.phases]
29configure = '''
30rm -rf po poqm
31ZW="$PWD/.zwrap"; mkdir -p "$ZW"
32cat > "$ZW/cc"  <<'W'
33#!/bin/sh
34a=""; for x in "$@"; do [ "$x" = "-Wl,--fatal-warnings" ] && continue; a="$a $x"; done
35exec /opt/zig/zig cc -mcpu=baseline $a
36W
37cat > "$ZW/cxx" <<'W'
38#!/bin/sh
39a=""; for x in "$@"; do [ "$x" = "-Wl,--fatal-warnings" ] && continue; a="$a $x"; done
40exec /opt/zig/zig c++ -mcpu=baseline $a
41W
42chmod +x "$ZW/cc" "$ZW/cxx"
43cmake -B build -G Ninja -Wno-dev \
44  -DCMAKE_C_COMPILER="$ZW/cc" -DCMAKE_CXX_COMPILER="$ZW/cxx" -DCMAKE_ASM_COMPILER="$ZW/cc" \
45  -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_PREFIX_PATH=/usr \
46  -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF \
47  -DBUILD_TESTING=OFF -DBUILD_PYTHON_BINDINGS=OFF
48'''
49compile = "cmake --build build"
50install = "DESTDIR=/out cmake --install build"
51
52[deps]
53build = ["cmake", "samurai", "python3", "pkgconf", "perl", "qtbase", "qtdeclarative", "dbus", "extra-cmake-modules", "qttools", "mesa", "libdrm", "libxkbcommon", "wayland", "gettext-tiny"]