diff --git a/www-apps/zola/files/zola-0.22.1-always-build-manpages.patch b/www-apps/zola/files/zola-0.22.1-always-build-manpages.patch new file mode 100644 index 0000000000..0e73682e84 --- /dev/null +++ b/www-apps/zola/files/zola-0.22.1-always-build-manpages.patch @@ -0,0 +1,30 @@ +From 727763bb6a0cbac63d368c96d8c5d02fab8e12dd Mon Sep 17 00:00:00 2001 +From: Dustin Smith +Date: Fri, 31 Jul 2026 20:07:50 -0400 +Subject: [PATCH] Build manpages regardless of PROFILE (debug/release) + +Upstream, manpages are only built when using the release profile. This +patch removes that behavior, making manpages available even for +USE="debug" users. + +Closes: https://bugs.gentoo.org/979739 +Thanks-to: Eli Schwartz +--- + build.rs | 3 --- + 1 file changed, 3 deletions(-) + +--- a/build.rs ++++ b/build.rs +@@ -20,9 +20,6 @@ fn generate_man_pages() { + } + + fn main() { +- if std::env::var("PROFILE").unwrap() != "release" { +- return; +- } + if cfg!(windows) { + generate_pe_header(); + } +-- +2.54.0 + diff --git a/www-apps/zola/zola-0.22.1-r4.ebuild b/www-apps/zola/zola-0.22.1-r5.ebuild similarity index 99% rename from www-apps/zola/zola-0.22.1-r4.ebuild rename to www-apps/zola/zola-0.22.1-r5.ebuild index e0c811852c..27aeb8916a 100644 --- a/www-apps/zola/zola-0.22.1-r4.ebuild +++ b/www-apps/zola/zola-0.22.1-r5.ebuild @@ -639,6 +639,10 @@ DEPEND="${RDEPEND}" BDEPEND="virtual/pkgconfig" +PATCHES=( + "${FILESDIR}"/${P}-always-build-manpages.patch +) + src_prepare() { default # Upstream enables stripping on rel and disables debuginfo on dev