2008-10-23 Marcus Brinkmann <marcus@ulysses.g10code.com>
authorMarcus Brinkmann <mb@g10code.com>
Thu, 23 Oct 2008 10:46:39 +0000 (10:46 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Thu, 23 Oct 2008 10:46:39 +0000 (10:46 +0000)
* src/Makefile.am (gpg4win_pkg_libgpg_error_post_install): New
macro to convert PO files.

ChangeLog
src/Makefile.am

index e4dbca6..e0b6184 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-23  Marcus Brinkmann  <marcus@ulysses.g10code.com>
+
+       * src/Makefile.am (gpg4win_pkg_libgpg_error_post_install): New
+       macro to convert PO files.
+
 2008-10-23  Marcus Brinkmann  <marcus@g10code.de>
 
        * patches/claws-mail-3.1.0cvs70/01-w32-logo.patch,
index f5f2e6a..76ebef7 100644 (file)
@@ -115,7 +115,6 @@ define gpg4win_pkg_gnupg2_post_install
 endef
 
 
-
 # Build the reference manual.
 define gpg4win_pkg_gpgol_post_install
 ( cd $$$${pkgndir}/doc; make pdf )
@@ -129,6 +128,16 @@ endef
 gpg4win_pkg_libgpg_error_configure = --silent \
   CPPFLAGS=-I$(idir)/include LDFLAGS=-L$(idir)/lib
 
+# We convert the PO files to UTF-8.  FIXME: This should be done in
+# libgpg-error proper.
+define gpg4win_pkg_libgpg_error_post_install
+(for i in `$(tsdir)/src/potomo --get-linguas $$$${pkgsdir}/po` ; do \
+     rm $$$${pkgidir}/share/locale/$$$${i}/LC_MESSAGES/libgpg-error.mo; \
+     $(tsdir)/src/potomo $$$${pkgsdir}/po/$$$${i}.po \
+                      $$$${pkgidir}/share/locale/$$$${i}/LC_MESSAGES/libgpg-error.mo; \
+ done)
+endef
+
 gpg4win_pkg_libassuan_configure =  --silent \
   --disable-shared \
   --with-pth-prefix=$(idir)