diff --git a/x11/lightdm-gtk-greeter/Makefile b/x11/lightdm-gtk-greeter/Makefile index 20fa0b9db4ec..2592488dc67a 100644 --- a/x11/lightdm-gtk-greeter/Makefile +++ b/x11/lightdm-gtk-greeter/Makefile @@ -3,6 +3,7 @@ PORTNAME= lightdm-gtk-greeter PORTVERSION= 2.0.2 +PORTREVISION= 1 CATEGORIES= x11 MASTER_SITES= https://launchpad.net/${PORTNAME}/${PORTVERSION:R}/${PORTVERSION}/+download/ @@ -20,4 +21,8 @@ USE_GNOME= cairo gdkpixbuf2 gtk30 intltool USE_XFCE= libexo USE_XORG= x11 +post-install: + (cd ${STAGEDIR}${PREFIX}/etc/lightdm && ${MV} lightdm-gtk-greeter.conf \ + lightdm-gtk-greeter.conf.sample) + .include diff --git a/x11/lightdm-gtk-greeter/files/patch-src_lightdm-gtk-greeter.c b/x11/lightdm-gtk-greeter/files/patch-src_lightdm-gtk-greeter.c new file mode 100644 index 000000000000..8f41d73b3cd7 --- /dev/null +++ b/x11/lightdm-gtk-greeter/files/patch-src_lightdm-gtk-greeter.c @@ -0,0 +1,15 @@ +--- src/lightdm-gtk-greeter.c.orig 2017-06-08 17:51:50 UTC ++++ src/lightdm-gtk-greeter.c +@@ -2930,11 +2930,7 @@ main (int argc, char **argv) + gchar *label; + GtkWidget *radiomenuitem; + +- country = lightdm_language_get_territory (language); +- if (country) +- label = g_strdup_printf ("%s - %s", lightdm_language_get_name (language), country); +- else +- label = g_strdup (lightdm_language_get_name (language)); ++ label = g_strdup (lightdm_language_get_code (language)); + + code = lightdm_language_get_code (language); + gchar *modifier = strchr (code, '@'); diff --git a/x11/lightdm-gtk-greeter/pkg-plist b/x11/lightdm-gtk-greeter/pkg-plist index a56ba79b03c8..08e288a0e14a 100644 --- a/x11/lightdm-gtk-greeter/pkg-plist +++ b/x11/lightdm-gtk-greeter/pkg-plist @@ -1,4 +1,4 @@ -etc/lightdm/lightdm-gtk-greeter.conf +@sample etc/lightdm/lightdm-gtk-greeter.conf.sample sbin/lightdm-gtk-greeter %%PORTDOCS%%%%DOCSDIR%%/sample-lightdm-gtk-greeter.css share/icons/hicolor/scalable/places/budgie-desktop_badge-symbolic.svg diff --git a/x11/lightdm/Makefile b/x11/lightdm/Makefile index 1095b20c6da1..7afa4bf9a1f3 100644 --- a/x11/lightdm/Makefile +++ b/x11/lightdm/Makefile @@ -3,7 +3,7 @@ PORTNAME= lightdm PORTVERSION= 1.20.0 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= x11 MASTER_SITES= https://launchpad.net/${PORTNAME}/${PORTVERSION:R}/${PORTVERSION}/+download/ diff --git a/x11/lightdm/files/patch-liblightdm-gobject_language.c b/x11/lightdm/files/patch-liblightdm-gobject_language.c index b64d8642594d..5b0bf032c4c6 100644 --- a/x11/lightdm/files/patch-liblightdm-gobject_language.c +++ b/x11/lightdm/files/patch-liblightdm-gobject_language.c @@ -1,8 +1,52 @@ https://bugs.launchpad.net/lightdm/+bug/790186 ---- liblightdm-gobject/language.c.orig 2016-12-09 01:04:48 UTC +--- liblightdm-gobject/language.c.orig 2016-09-30 03:23:52 UTC +++ liblightdm-gobject/language.c -@@ -248,10 +248,16 @@ lightdm_language_get_name (LightDMLangua +@@ -36,6 +36,12 @@ G_DEFINE_TYPE (LightDMLanguage, lightdm_language, G_TY + static gboolean have_languages = FALSE; + static GList *languages = NULL; + ++static gboolean ++is_utf8 (const gchar *code) ++{ ++ return g_strrstr (code, ".utf8") || g_strrstr (code, ".UTF-8"); ++} ++ + static void + update_languages (void) + { +@@ -72,7 +78,7 @@ update_languages (void) + continue; + + /* Ignore the non-interesting languages */ +- if (strcmp (command, "locale -a") == 0 && !g_strrstr (code, ".utf8")) ++ if (strcmp (command, "locale -a") == 0 && !is_utf8 (code)) + continue; + + language = g_object_new (LIGHTDM_TYPE_LANGUAGE, "code", code, NULL); +@@ -88,12 +94,6 @@ update_languages (void) + have_languages = TRUE; + } + +-static gboolean +-is_utf8 (const gchar *code) +-{ +- return g_strrstr (code, ".utf8") || g_strrstr (code, ".UTF-8"); +-} +- + /* Get a valid locale name that can be passed to setlocale(), so we always can use nl_langinfo() to get language and country names. */ + static gchar * + get_locale_name (const gchar *code) +@@ -133,7 +133,7 @@ get_locale_name (const gchar *code) + for (i = 0; avail_locales[i]; i++) + { + gchar *loc = avail_locales[i]; +- if (!g_strrstr (loc, ".utf8")) ++ if (!is_utf8 (loc)) + continue; + if (g_str_has_prefix (loc, language)) + { +@@ -227,10 +227,16 @@ lightdm_language_get_name (LightDMLanguage *language) if (locale) { gchar *current = setlocale (LC_ALL, NULL); @@ -19,7 +63,7 @@ https://bugs.launchpad.net/lightdm/+bug/790186 if (language_en && strlen (language_en) > 0) priv->name = g_strdup (dgettext ("iso_639_3", language_en)); -@@ -291,10 +297,16 @@ lightdm_language_get_territory (LightDML +@@ -270,10 +276,16 @@ lightdm_language_get_territory (LightDMLanguage *langu if (locale) { gchar *current = setlocale (LC_ALL, NULL);