kde/Plasma: receta perl 5.40.2 (build-tool: syntax-highlighting + intltool→libqalculate)
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user