summaryrefslogtreecommitdiff
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 22:12:27 +0200
commit0271793ec5f00b8a557bb8a0665a61a5a4336064 (patch)
treec65e1bf95546a3675eaf272910f52af13f8db4a6
parent57292abdbd2ab00befa2d1483c82d1074c5f8f13 (diff)
downloadkde-0271793ec5f00b8a557bb8a0665a61a5a4336064.tar.gz
kde-0271793ec5f00b8a557bb8a0665a61a5a4336064.tar.bz2
kde-0271793ec5f00b8a557bb8a0665a61a5a4336064.zip
ecm.eclass: Add ecm_punt_po_install()
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
-rw-r--r--eclass/ecm.eclass10
1 files changed, 10 insertions, 0 deletions
diff --git a/eclass/ecm.eclass b/eclass/ecm.eclass
index a8b40c2b6e4..f4e511f0a73 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.