summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2024-08-11 23:35:25 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2024-08-21 23:07:42 +0200
commitb541433c4accedc6b0b3f24471e4f9c65c879e0d (patch)
treefae967713173a263ea096831e6ec205c7078ffea /eclass
parentecm-common.eclass: New eclass for standalone ECM common files handling (diff)
downloadgentoo-b541433c4accedc6b0b3f24471e4f9c65c879e0d.tar.gz
gentoo-b541433c4accedc6b0b3f24471e4f9c65c879e0d.tar.bz2
gentoo-b541433c4accedc6b0b3f24471e4f9c65c879e0d.zip
ecm.eclass: Add ecm_punt_po_install()
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ecm.eclass10
1 files changed, 10 insertions, 0 deletions
diff --git a/eclass/ecm.eclass b/eclass/ecm.eclass
index c8731b8c0cff..5876e464c8d8 100644
--- a/eclass/ecm.eclass
+++ b/eclass/ecm.eclass
@@ -446,6 +446,16 @@ ecm_punt_bogus_dep() {
fi
}
+# @FUNCTION: ecm_punt_po_install
+# @DESCRIPTION:
+# Disables handling of a po subdirectory, typically when the package
+# is outsourcing common files to a ${PN}-common split package.
+ecm_punt_po_install() {
+ sed -e "s/^ki18n_install.*(po.*)/#& # disabled by ecm.eclass/" \
+ -e "s/^kdoctools_install.*(po.*)/#& # disabled by ecm.eclass/" \
+ -i CMakeLists.txt || die
+}
+
# @FUNCTION: ecm_pkg_pretend
# @DESCRIPTION:
# Checks if the active compiler meets the minimum version requirements.