From e134244abaa6667db57db45f5f407f1c3c862050 Mon Sep 17 00:00:00 2001 From: sergio Date: Mon, 13 Jul 2026 16:36:24 -0400 Subject: [PATCH] =?UTF-8?q?kde/Plasma:=20receta=20perl=205.40.2=20(build-t?= =?UTF-8?q?ool:=20syntax-highlighting=20+=20intltool=E2=86=92libqalculate)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- recipes/incoming-kde/perl.toml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 recipes/incoming-kde/perl.toml diff --git a/recipes/incoming-kde/perl.toml b/recipes/incoming-kde/perl.toml new file mode 100644 index 00000000..82545b22 --- /dev/null +++ b/recipes/incoming-kde/perl.toml @@ -0,0 +1,30 @@ +# Perl 5.40.2 — intérprete. Build-tool para la campaña KDE: lo exigen syntax-highlighting +# (find_package(Perl REQUIRED), regenera defs) e intltool (→libqalculate). No es input compilado del +# escritorio, es herramienta de build. Configure propio de perl (no autotools). zig cc vía wrapper. +name = "perl" +version = "5.40.2" + +[source] +tarball = "https://www.cpan.org/src/5.0/perl-5.40.2.tar.gz" +sha256 = "10d4647cfbb543a7f9ae3e5f6851ec49305232ea7621aed24c7cfbb0bef4b70d" + +[build] +compiler = "zig-cc" +target = "x86_64-linux-musl" +link = "dynamic" +zig_version = "0.13.0" +flags = [] + +[build.phases] +# Configure de perl: -des (defaults, sin preguntas). cc/ld como scripts wrapper (perl guarda el cc en +# Config y lo re-invoca; un script evita el split del espacio de "zig cc"). -Dusenm=false (no usa nm). +configure = ''' +ZW="$PWD/.zwrap"; mkdir -p "$ZW" +printf '#!/bin/sh\nexec /opt/zig/zig cc -mcpu=baseline "$@"\n' > "$ZW/cc"; chmod +x "$ZW/cc" +sh Configure -des -Dprefix=/usr -Dcc="$ZW/cc" -Dld="$ZW/cc" -Duseshrplib -Dusenm=false -Dnoextensions=ODBM_File +''' +compile = 'make -j"$(nproc)"' +install = 'make install DESTDIR=/out' + +[deps] +build = ["pkgconf"]