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…
⎇ 0cd3e62822cc6e6748517894fd65a9a738d0fa35
recipes/incoming-kde/syntax-highlighting.toml
History
raw
licencias: 936 de 1141 (82%) — detección por evidencia, con sus dos imprecisiones declaradas
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"
17license = "LGPL-2.1-or-later OR LGPL-3.0-or-later"
18
19[source]
20tarball = "https://download.kde.org/stable/frameworks/6.27/syntax-highlighting-6.27.0.tar.xz"
21sha256 = "cbff001b9f00d032feb254313ecfee9a6e0a0b3c5a8c82a7e0806c5f1915a545"
22
23[build]
24compiler = "zig-cc"
25target = "x86_64-linux-musl"
26link = "dynamic"
27flags = []
28
29[build.phases]
30configure = '''
31rm -rf po poqm
32ZW="$PWD/.zwrap"; mkdir -p "$ZW"
33cat > "$ZW/cc" <<'W'
34#!/bin/sh
35a=""; for x in "$@"; do [ "$x" = "-Wl,--fatal-warnings" ] && continue; a="$a $x"; done
36exec /opt/zig/zig cc -mcpu=baseline $a
37W
38cat > "$ZW/cxx" <<'W'
39#!/bin/sh
40a=""; for x in "$@"; do [ "$x" = "-Wl,--fatal-warnings" ] && continue; a="$a $x"; done
41exec /opt/zig/zig c++ -mcpu=baseline $a
42W
43chmod +x "$ZW/cc" "$ZW/cxx"
44cmake -B build -G Ninja -Wno-dev \
45 -DCMAKE_C_COMPILER="$ZW/cc" -DCMAKE_CXX_COMPILER="$ZW/cxx" -DCMAKE_ASM_COMPILER="$ZW/cc" \
46 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_PREFIX_PATH=/usr \
47 -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF \
48 -DBUILD_TESTING=OFF -DBUILD_PYTHON_BINDINGS=OFF
49'''
50compile = "cmake --build build"
51install = "DESTDIR=/out cmake --install build"
52
53[deps]
54build = ["cmake", "samurai", "python3", "pkgconf", "perl", "qtbase", "qtdeclarative", "dbus", "extra-cmake-modules", "qttools", "mesa", "libdrm", "libxkbcommon", "wayland", "gettext-tiny"]