git: 5d0dccb35b45 - main - devel/glib20: integrate the meson option for NLS
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 02 Dec 2025 20:14:38 UTC
The branch main has been updated by vishwin:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5d0dccb35b45764e3383df37d53bc5c677016d41
commit 5d0dccb35b45764e3383df37d53bc5c677016d41
Author: Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2025-12-02 20:05:49 +0000
Commit: Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2025-12-02 20:14:01 +0000
devel/glib20: integrate the meson option for NLS
---
devel/glib20/Makefile | 9 ++++++---
devel/glib20/pkg-plist | 2 +-
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/devel/glib20/Makefile b/devel/glib20/Makefile
index 3971aa1251c8..27df4348667e 100644
--- a/devel/glib20/Makefile
+++ b/devel/glib20/Makefile
@@ -1,6 +1,6 @@
PORTNAME= glib
DISTVERSION= 2.84.1
-PORTREVISION= 4
+PORTREVISION= 5
PORTEPOCH= 2
CATEGORIES= devel
MASTER_SITES= GNOME
@@ -32,7 +32,7 @@ bootstrap_PKGNAMESUFFIX= -bootstrap
# iconv:wchar_t - our iconv in base doesn't support utf-8 -> wchar_t (boooo)
# (wchar_t is used by glibmm, rawtherapee triggered this)
-USES= compiler:c11 cpe gettext gnome iconv:wchar_t localbase:ldflags \
+USES= compiler:c11 cpe gettext-runtime gnome iconv:wchar_t localbase:ldflags \
meson perl5 pkgconfig python tar:xz ${${FLAVOR}_USES}
USE_LDCONFIG= yes
USE_PERL5= build
@@ -69,13 +69,16 @@ FAM_ALTBACKEND_DESC= Alternate file monitor backend
MANPAGES_BUILD_DEPENDS= rst2man:textproc/py-docutils
MANPAGES_MESON_ENABLED= man-pages
+NLS_USES= gettext-tools
+NLS_MESON_ENABLED= nls
+
TEST_MESON_TRUE= tests
# doesn't build yet
MESON_ARGS+= -Ddtrace=disabled
.if ${FLAVOR:U} == bootstrap
-MESON_ARGS+= -Dintrospection=disabled -Ddocumentation=false -Dman-pages=disabled
+MESON_ARGS+= -Dintrospection=disabled -Ddocumentation=false -Dman-pages=disabled -Dnls=disabled
OPTIONS_DEFINE=
PREFIX= ${LOCALBASE}/glib-bootstrap
PLIST_SUB+= DOCS='@comment ' NLS='@comment ' MANPAGES='@comment '
diff --git a/devel/glib20/pkg-plist b/devel/glib20/pkg-plist
index daedea01b309..80613e13a2e4 100644
--- a/devel/glib20/pkg-plist
+++ b/devel/glib20/pkg-plist
@@ -7931,7 +7931,7 @@ share/gettext/its/gschema.loc
%%DATADIR%%-2.0/dtds/gresource.dtd
%%DATADIR%%-2.0/gdb/glib_gdb.py
%%DATADIR%%-2.0/gdb/gobject_gdb.py
-%%DATADIR%%-2.0/gettext/po/Makefile.in.in
+%%NLS%%%%DATADIR%%-2.0/gettext/po/Makefile.in.in
%%DATADIR%%-2.0/schemas/gschema.dtd
%%DATADIR%%-2.0/valgrind/glib.supp
%%NLS%%share/locale/ab/LC_MESSAGES/glib20.mo