lilypond: adjust doc packages

This commit is contained in:
Joachim Mairböck
2025-07-20 19:08:30 +02:00
parent ca9450df06
commit d3eb6fe753

View File

@@ -5,7 +5,7 @@ printouts. LilyPond is free software and part of the GNU Project."
HOMEPAGE="https://lilypond.org/"
COPYRIGHT="1993-2024 The LilyPond development team"
LICENSE="GNU GPL v3"
REVISION="1"
REVISION="2"
SOURCE_URI="https://lilypond.org/download/source/v${portVersion%.*}/lilypond-$portVersion.tar.gz"
CHECKSUM_SHA256="e96fa03571c79f20e1979653afabdbe4ee42765a3d9fd14953f0cd9eea51781c"
PATCHES="lilypond-$portVersion.patchset"
@@ -45,26 +45,33 @@ REQUIRES="
SUMMARY_doc="${SUMMARY} (English and generic documentation)"
ARCHITECTURES_doc="any"
PROVIDES_doc="
lilypond${secondaryArchSuffix}_doc = $portVersion
lilypond_doc = $portVersion
"
REQUIRES_doc="
lilypond$secondaryArchSuffix == $portVersion base
cmd:lilypond == $portVersion base
"
REPLACES_doc="
lilypond_x86_doc
"
ARCHITECTURES_doc="any"
languages=(ca cs de es fr hu it ja nl pt zh)
languageNames=(Catalan Czech German Spanish French Hungarian Italian Japanese Dutch Portuguese Chinese)
for i in "${!languages[@]}"; do
lang=${languages[i]}
eval "PROVIDES_doc_${lang}=\"\
lilypond${secondaryArchSuffix}_doc_${lang} = $portVersion\
eval "SUMMARY_doc_${lang}=\"${SUMMARY} (${languageNames[$i]} documentation)\"; \
ARCHITECTURES_doc_${lang}=\"any\"; \
PROVIDES_doc_${lang}=\"\
lilypond_doc_${lang} = $portVersion\
\"; \
REQUIRES_doc_${lang}=\"\
lilypond${secondaryArchSuffix}_doc == $portVersion base\
lilypond_doc == $portVersion base\
\"; \
SUMMARY_doc_${lang}=\"${SUMMARY} (${languageNames[$i]} documentation)\"\
ARCHITECTURES_doc_${lang}=\"any\""
REPLACES_doc_${lang}=\"\
lilypond_x86_doc_${lang}\
\""
done
BUILD_REQUIRES="