Our locale support is very poor, so compile with -DWITH_INCOMPLETE_LOCALES.

This at least allows to display a list of "supported" locales.
This commit is contained in:
ajacoutot 2013-04-19 17:01:50 +00:00
parent ee6be8e0bd
commit 5f5fc621af
3 changed files with 46 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.100 2013/04/16 13:17:01 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.101 2013/04/19 17:01:50 ajacoutot Exp $
SHARED_ONLY= Yes
@ -7,6 +7,7 @@ COMMENT= components for the GNOME desktop
GNOME_PROJECT= gnome-desktop
# sync with meta/gnome "V" variable
GNOME_VERSION= 3.8.1
REVISION= 0
SHARED_LIBS += gnome-desktop-3 2.0 # 4.0
@ -35,6 +36,12 @@ LIB_DEPENDS= x11/gtk+3
MODGNOME_TOOLS= gi yelp
AUTOCONF_VERSION= 2.69
CONFIGURE_STYLE= autoconf
CONFIGURE_ARGS= --with-gnome-distributor="OpenBSD Ports"
# we lack /usr/lib/locale/locale-archive
CONFIGURE_ARGS += --with-incomplete-locales
.include <bsd.port.mk>

View File

@ -0,0 +1,26 @@
$OpenBSD: patch-configure_ac,v 1.1 2013/04/19 17:01:50 ajacoutot Exp $
https://bugzilla.gnome.org/show_bug.cgi?id=698383
--- configure.ac.orig Fri Apr 19 17:19:41 2013
+++ configure.ac Fri Apr 19 17:20:02 2013
@@ -74,6 +74,19 @@ AC_SUBST(GNOME_DATE_COMMENT_END)
GNOME_COMPILE_WARNINGS([maximum])
GNOME_MAINTAINER_MODE_DEFINES
+dnl
+dnl Whether or not to show locales in the language list that
+dnl lack translations
+dnl
+AC_ARG_WITH(incomplete-locales,
+ AS_HELP_STRING([--with-incomplete-locales=yes|no],
+ [Show incomplete locales in lang list]),,
+ with_incomplete_locales=no)
+
+if test x$with_incomplete_locales != xno; then
+ AC_DEFINE(WITH_INCOMPLETE_LOCALES, 1, [Show incomplete locales in lang list])
+fi
+
AC_ARG_ENABLE(deprecation_flags,
[AC_HELP_STRING([--enable-deprecation-flags],
[use *_DISABLE_DEPRECATED flags @<:@default=no@:>@])],,

View File

@ -1,9 +1,18 @@
$OpenBSD: patch-libgnome-desktop_Makefile_in,v 1.5 2013/03/29 12:29:45 ajacoutot Exp $
$OpenBSD: patch-libgnome-desktop_Makefile_in,v 1.6 2013/04/19 17:01:50 ajacoutot Exp $
XXX fix+push upstream
--- libgnome-desktop/Makefile.in.orig Wed Mar 27 18:52:11 2013
+++ libgnome-desktop/Makefile.in Fri Mar 29 13:22:13 2013
--- libgnome-desktop/Makefile.in.orig Mon Apr 15 19:15:23 2013
+++ libgnome-desktop/Makefile.in Fri Apr 19 17:52:29 2013
@@ -457,7 +457,7 @@ AM_CPPFLAGS = \
-DG_LOG_DOMAIN=\"GnomeDesktop\" \
-DGNOMELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale\"" \
-DISO_CODES_PREFIX=\""$(ISO_CODES_PREFIX)"\" \
- -DLIBLOCALEDIR=\""$(prefix)/lib/locale"\" \
+ -DLIBLOCALEDIR=\""/usr/share/locale"\" \
-DPNP_IDS=\""$(PNP_IDS)"\" \
-DXKB_BASE=\""$(XKB_BASE)"\" \
$(DISABLE_DEPRECATED_CFLAGS)
@@ -506,8 +506,7 @@ libgnome_desktop_3_la_LIBADD = \
$(XLIB_LIBS) \
$(LIBM) \