$NetBSD: patch-po4a-updatepo,v 1.4 2024/01/29 16:08:20 adam Exp $

Invoke pkgsrc's gettext-tools.
Write to the full physical null device.

--- po4a-updatepo.orig	2024-01-28 23:39:44.000000000 +0000
+++ po4a-updatepo
@@ -316,13 +316,13 @@ while ( my $po_filename = shift @pofiles
     if ($usable_pofile) {
         print STDERR wrap_msg( gettext("Updating %s:"), $po_filename )
           if $verbose;
-        my @cmd = ( "msgmerge" . $Config{_exe} );
+        my @cmd = ( "@PREFIX@/bin/msgmerge" . $Config{_exe} );
         push( @cmd, split( /\s+/, $msgmerge_opt ) ) if length($msgmerge_opt);
         push @cmd, ( "-U", $po_filename, $pot_filename );
         print STDERR "Running " . join( ' ', @cmd ) . "\n" if $debug;
         system(@cmd) == 0
           or die wrap_msg( gettext("Could not run msgmerge: %s\nThe command was: %s"), $!, join( ' ', @cmd ) );
-        @cmd = ( "msgfmt" . $Config{_exe}, "--statistics", "-v", "-o", File::Spec->devnull(), $po_filename );
+        @cmd = ( "@PREFIX@/bin/msgfmt" . $Config{_exe}, "--statistics", "-v", "-o", File::Spec->devnull(), $po_filename );
         print STDERR "Running " . join( ' ', @cmd ) . "\n" if $debug;
         system(@cmd)
           if $verbose;
