Honor WITHOUT_NLS.
This commit is contained in:
parent
08db3496bd
commit
0a6432e530
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=280535
3 changed files with 33 additions and 3 deletions
|
@ -22,11 +22,20 @@ PROJECTHOST= ibus
|
|||
|
||||
GNU_CONFIGURE= yes
|
||||
USE_AUTOTOOLS= libtool
|
||||
USE_GETTEXT= yes
|
||||
USE_GMAKE= yes
|
||||
USE_GNOME= gnomehack intltool pkgconfig
|
||||
USE_PYTHON= yes
|
||||
|
||||
.if !defined(WITHOUT_NLS)
|
||||
USE_GETTEXT= yes
|
||||
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib"
|
||||
PLIST_SUB+= NLS=""
|
||||
.else
|
||||
CONFIGURE_ARGS+=--disable-nls
|
||||
PLIST_SUB+= NLS="@comment "
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
@${ECHO} To display this message again, type ${PKG_INFO} -D ${PKGNAME}
|
||||
|
|
21
korean/ibus-hangul/files/patch-src-i18n.h
Normal file
21
korean/ibus-hangul/files/patch-src-i18n.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
--- src/i18n.h.orig 2009-10-31 02:59:39.000000000 -0400
|
||||
+++ src/i18n.h 2011-08-25 19:58:34.000000000 -0400
|
||||
@@ -3,9 +3,18 @@
|
||||
#ifndef ibus_hangul_i18n_h
|
||||
#define ibus_hangul_i18n_h
|
||||
|
||||
+#ifdef ENABLE_NLS
|
||||
+
|
||||
#include <libintl.h>
|
||||
|
||||
#define _(str) gettext(str)
|
||||
#define N_(str) (str)
|
||||
|
||||
+#else /* ENABLE_NLS */
|
||||
+
|
||||
+#define _(str) (str)
|
||||
+#define N_(str) str
|
||||
+
|
||||
+#endif /* ENABLE_NLS */
|
||||
+
|
||||
#endif /* ibus_hangul_i18n_h */
|
|
@ -15,8 +15,8 @@ share/ibus/component/hangul.xml
|
|||
%%DATADIR%%/setup/main.pyc
|
||||
%%DATADIR%%/setup/main.pyo
|
||||
%%DATADIR%%/setup/setup.ui
|
||||
share/locale/ko/LC_MESSAGES/ibus-hangul.mo
|
||||
share/locale/zh_CN/LC_MESSAGES/ibus-hangul.mo
|
||||
%%NLS%%share/locale/ko/LC_MESSAGES/ibus-hangul.mo
|
||||
%%NLS%%share/locale/zh_CN/LC_MESSAGES/ibus-hangul.mo
|
||||
@dirrm %%DATADIR%%/data
|
||||
@dirrm %%DATADIR%%/icons
|
||||
@dirrm %%DATADIR%%/setup
|
||||
|
|
Loading…
Reference in a new issue