mirror of
https://github.com/vim/vim.git
synced 2025-10-09 06:14:17 -04:00
patch 8.1.1149: building desktop files fails with older msgfmt
Problem: Building desktop files fails with older msgfmt. Solution: Add autoconf check. Avoid always building the desktop files.
This commit is contained in:
13
src/auto/configure
vendored
13
src/auto/configure
vendored
@@ -623,6 +623,7 @@ ac_subst_vars='LTLIBOBJS
|
|||||||
LIBOBJS
|
LIBOBJS
|
||||||
LINK_AS_NEEDED
|
LINK_AS_NEEDED
|
||||||
DEPEND_CFLAGS_FILTER
|
DEPEND_CFLAGS_FILTER
|
||||||
|
MSGFMT_DESKTOP
|
||||||
MAKEMO
|
MAKEMO
|
||||||
MSGFMT
|
MSGFMT
|
||||||
INSTALL_TOOL_LANGS
|
INSTALL_TOOL_LANGS
|
||||||
@@ -14533,6 +14534,18 @@ $as_echo "no" >&6; }
|
|||||||
fi
|
fi
|
||||||
rm -f core conftest.err conftest.$ac_objext \
|
rm -f core conftest.err conftest.$ac_objext \
|
||||||
conftest$ac_exeext conftest.$ac_ext
|
conftest$ac_exeext conftest.$ac_ext
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt supports --desktop" >&5
|
||||||
|
$as_echo_n "checking if msgfmt supports --desktop... " >&6; }
|
||||||
|
MSGFMT_DESKTOP=
|
||||||
|
if "$MSGFMT" --help | grep -e '--desktop' >/dev/null; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
|
$as_echo "yes" >&6; }
|
||||||
|
MSGFMT_DESKTOP="gvim.desktop vim.desktop"
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5
|
||||||
|
@@ -169,6 +169,7 @@ OS_EXTRA_OBJ = @OS_EXTRA_OBJ@
|
|||||||
MAKEMO = @MAKEMO@
|
MAKEMO = @MAKEMO@
|
||||||
|
|
||||||
MSGFMT = @MSGFMT@
|
MSGFMT = @MSGFMT@
|
||||||
|
MSGFMT_DESKTOP = @MSGFMT_DESKTOP@
|
||||||
|
|
||||||
# Make sure that "make first" will run "make all" once configure has done its
|
# Make sure that "make first" will run "make all" once configure has done its
|
||||||
# work. This is needed when using the Makefile in the top directory.
|
# work. This is needed when using the Makefile in the top directory.
|
||||||
|
@@ -4298,6 +4298,15 @@ if test "$enable_nls" = "yes"; then
|
|||||||
[++_nl_msg_cat_cntr;],
|
[++_nl_msg_cat_cntr;],
|
||||||
AC_MSG_RESULT([yes]); AC_DEFINE(HAVE_NL_MSG_CAT_CNTR),
|
AC_MSG_RESULT([yes]); AC_DEFINE(HAVE_NL_MSG_CAT_CNTR),
|
||||||
AC_MSG_RESULT([no]))
|
AC_MSG_RESULT([no]))
|
||||||
|
AC_MSG_CHECKING([if msgfmt supports --desktop])
|
||||||
|
MSGFMT_DESKTOP=
|
||||||
|
if "$MSGFMT" --help | grep -e '--desktop' >/dev/null; then
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
MSGFMT_DESKTOP="gvim.desktop vim.desktop"
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT([no])
|
||||||
|
fi
|
||||||
|
AC_SUBST(MSGFMT_DESKTOP)
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT([no "po/Makefile" - disabled]);
|
AC_MSG_RESULT([no "po/Makefile" - disabled]);
|
||||||
|
@@ -45,6 +45,49 @@ LANGUAGES = \
|
|||||||
zh_TW.UTF-8 \
|
zh_TW.UTF-8 \
|
||||||
|
|
||||||
|
|
||||||
|
POFILES = \
|
||||||
|
af.po \
|
||||||
|
ca.po \
|
||||||
|
cs.po \
|
||||||
|
cs.cp1250.po \
|
||||||
|
da.po \
|
||||||
|
de.po \
|
||||||
|
en_GB.po \
|
||||||
|
eo.po \
|
||||||
|
es.po \
|
||||||
|
fi.po \
|
||||||
|
fr.po \
|
||||||
|
ga.po \
|
||||||
|
it.po \
|
||||||
|
ja.po \
|
||||||
|
ja.euc-jp.po \
|
||||||
|
ja.sjis.po \
|
||||||
|
ko.po \
|
||||||
|
ko.UTF-8.po \
|
||||||
|
lv.po \
|
||||||
|
nb.po \
|
||||||
|
nl.po \
|
||||||
|
no.po \
|
||||||
|
pl.po \
|
||||||
|
pl.UTF-8.po \
|
||||||
|
pl.cp1250.po \
|
||||||
|
pt_BR.po \
|
||||||
|
ru.po \
|
||||||
|
ru.cp1251.po \
|
||||||
|
sk.po \
|
||||||
|
sk.cp1250.po \
|
||||||
|
sr.po \
|
||||||
|
sv.po \
|
||||||
|
uk.po \
|
||||||
|
uk.cp1251.po \
|
||||||
|
vi.po \
|
||||||
|
zh_CN.po \
|
||||||
|
zh_CN.UTF-8.po \
|
||||||
|
zh_CN.cp936.po \
|
||||||
|
zh_TW.po \
|
||||||
|
zh_TW.UTF-8.po \
|
||||||
|
|
||||||
|
|
||||||
MOFILES = \
|
MOFILES = \
|
||||||
af.mo \
|
af.mo \
|
||||||
ca.mo \
|
ca.mo \
|
||||||
|
@@ -25,9 +25,6 @@ MSGMERGE = OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes msgmerge
|
|||||||
.SUFFIXES: .po .mo .pot .ck
|
.SUFFIXES: .po .mo .pot .ck
|
||||||
.PHONY: all install uninstall prefixcheck converted check clean checkclean distclean update-po $(LANGUAGES)
|
.PHONY: all install uninstall prefixcheck converted check clean checkclean distclean update-po $(LANGUAGES)
|
||||||
|
|
||||||
LINGUAS:
|
|
||||||
@echo $(LANGUAGES) | tr " " "\n" |sed -e '/\./d' | sort > LINGUAS
|
|
||||||
|
|
||||||
.po.mo:
|
.po.mo:
|
||||||
$(MSGFMTCMD) -o $@ $<
|
$(MSGFMTCMD) -o $@ $<
|
||||||
|
|
||||||
@@ -35,7 +32,7 @@ LINGUAS:
|
|||||||
$(VIM) -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq $<
|
$(VIM) -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq $<
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
all: $(MOFILES) $(MOCONVERTED) gvim.desktop vim.desktop
|
all: $(MOFILES) $(MOCONVERTED) $(MSGFMT_DESKTOP)
|
||||||
|
|
||||||
check: $(CHECKFILES)
|
check: $(CHECKFILES)
|
||||||
|
|
||||||
@@ -167,7 +164,7 @@ $(PACKAGE).pot: ../*.c ../if_perl.xs ../GvimExt/gvimext.cpp ../globals.h ../if_p
|
|||||||
po/gvim.desktop.in po/vim.desktop.in
|
po/gvim.desktop.in po/vim.desktop.in
|
||||||
mv -f ../$(PACKAGE).po $(PACKAGE).pot
|
mv -f ../$(PACKAGE).po $(PACKAGE).pot
|
||||||
|
|
||||||
%.desktop: %.desktop.in $(PACKAGE).pot LINGUAS
|
%.desktop: %.desktop.in $(POFILES)
|
||||||
$(MSGFMT) --desktop -d . --template $< -o $@
|
$(MSGFMT) --desktop -d . --template $< -o $@
|
||||||
cp -f $@ ../../runtime/$@
|
cp -f $@ ../../runtime/$@
|
||||||
|
|
||||||
|
@@ -771,6 +771,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1149,
|
||||||
/**/
|
/**/
|
||||||
1148,
|
1148,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user