From: Craig Small <csmall@dropbear.xyz>
Date: Mon, 8 Feb 2021 10:23:41 +0000 (+1100)
Subject: build-sys: Don't require po4a for installation
X-Git-Tag: v3.3.17~2
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f9dd869a3e3c0d4560e56c3f51fbadddbdc97491;p=procps-ng

build-sys: Don't require po4a for installation

The build system tested for the presence of po4a binary at the
install step. procps ships with translated man pages so doesn't
need po4a for install/uninstallation.

Works already in psmisc!

References:
 https://gitlab.com/psmisc/psmisc/-/commit/5fab6b7ab385080f1db725d6803136ec1841a15f

Signed-off-by: Craig Small <csmall@dropbear.xyz>
---

diff --git a/man-po/Makefile.am b/man-po/Makefile.am
index 97f111ab..74c10372 100644
--- a/man-po/Makefile.am
+++ b/man-po/Makefile.am
@@ -75,10 +75,7 @@ procps-man.pot:
 	po4a-gettextize -M utf8 --option groff_code=verbatim --option generated --option untranslated="a.RE,\|" --option unknown_macros=untranslated -f man $(patsubst %,-m%,$(subst :, ,$(dist_man_MANS))) -p $@
 
 
-install-data-local: install-data-local-@USE_PO4A@
-
-install-data-local-no:
-install-data-local-yes:
+install-data-local:
 	for lang in $(LINGUAS) ; do \
 	    files=""; \
 	    for trans in $(notdir $(dist_man_MANS)); do \
@@ -94,10 +91,7 @@ install-data-local-yes:
 		    dist_man_MANS="$$files"; \
 	done
 
-uninstall-local: uninstall-local-@USE_PO4A@
-
-uninstall-local-no:
-uninstall-local-yes:
+uninstall-local:
 	for lang in $(LINGUAS); do \
 		files=""; \
 		for trans in $(notdir $(dist_man_MANS)); do \