]> git.pld-linux.org Git - packages/vim.git/blame - vim-localedir.patch
- unconditional noarch subpackages
[packages/vim.git] / vim-localedir.patch
CommitLineData
296af0e0
AM
1--- vim72/src/locale.c~ 2009-04-15 01:00:47.000000000 +0300
2+++ vim72/src/locale.c 2009-04-15 01:11:33.555899981 +0300
367e4073
AM
3@@ -1741,17 +1741,6 @@ init_locale(void)
4 // Initialize the gettext library
4ca24e06 5 dyn_libintl_init();
90ac026d 6 # endif
367e4073
AM
7- // expand_env() doesn't work yet, because g_chartab[] is not
8- // initialized yet, call vim_getenv() directly
90ac026d
ER
9- p = vim_getenv((char_u *)"VIMRUNTIME", &mustfree);
10- if (p != NULL && *p != NUL)
11- {
12- vim_snprintf((char *)NameBuff, MAXPATHL, "%s/lang", p);
13- bindtextdomain(VIMPACKAGE, (char *)NameBuff);
14- }
15- if (mustfree)
16- vim_free(p);
4ca24e06 17- textdomain(VIMPACKAGE);
90ac026d
ER
18 }
19 # endif
4ca24e06 20 }
90ac026d
ER
21--- vim72/src/misc1.c~ 2009-04-15 01:00:48.000000000 +0300
22+++ vim72/src/misc1.c 2009-04-15 01:13:00.319209732 +0300
03d4279c
AM
23@@ -4215,22 +4215,6 @@
24 putenv((char *)envbuf);
25 }
26 #endif
90ac026d 27-#ifdef FEAT_GETTEXT
03d4279c
AM
28- /*
29- * When setting $VIMRUNTIME adjust the directory to find message
30- * translations to $VIMRUNTIME/lang.
31- */
32- if (*val != NUL && STRICMP(name, "VIMRUNTIME") == 0)
33- {
34- char_u *buf = concat_str(val, (char_u *)"/lang");
90ac026d 35-
03d4279c
AM
36- if (buf != NULL)
37- {
38- bindtextdomain(VIMPACKAGE, (char *)buf);
39- vim_free(buf);
40- }
41- }
90ac026d 42-#endif
03d4279c
AM
43 }
44
45 #if defined(FEAT_CMDL_COMPL) || defined(PROTO)
90ac026d
ER
46--- vim72/src/Makefile~ 2009-04-15 01:00:48.000000000 +0300
47+++ vim72/src/Makefile 2009-04-15 01:19:18.519171979 +0300
48@@ -957,6 +957,7 @@
49 PLUGSUBLOC = $(VIMRTLOC)$(PLUGSUBDIR)
50 FTPLUGSUBLOC = $(VIMRTLOC)$(FTPLUGSUBDIR)
51 LANGSUBLOC = $(VIMRTLOC)$(LANGSUBDIR)
52+LOCALESUBLOC = $(DATADIR)/locale
53 COMPSUBLOC = $(VIMRTLOC)$(COMPSUBDIR)
54 KMAPSUBLOC = $(VIMRTLOC)$(KMAPSUBDIR)
55 MACROSUBLOC = $(VIMRTLOC)$(MACROSUBDIR)
56@@ -1325,6 +1326,7 @@
57 DEST_PLUG = $(DESTDIR)$(PLUGSUBLOC)
58 DEST_FTP = $(DESTDIR)$(FTPLUGSUBLOC)
59 DEST_LANG = $(DESTDIR)$(LANGSUBLOC)
60+DEST_LOCALE = $(DESTDIR)$(LOCALESUBLOC)
61 DEST_COMP = $(DESTDIR)$(COMPSUBLOC)
62 DEST_KMAP = $(DESTDIR)$(KMAPSUBLOC)
63 DEST_MACRO = $(DESTDIR)$(MACROSUBLOC)
64@@ -1988,7 +1988,7 @@
65 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
66 $(DEST_MAN_RU_U) $(INSTALLMLARGS)
67 if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
68- cd $(PODIR); $(MAKE) prefix=$(DESTDIR)$(prefix) LOCALEDIR=$(DEST_LANG) \
69+ cd $(PODIR); $(MAKE) prefix=$(DESTDIR)$(prefix) LOCALEDIR=$(DEST_LOCALE) \
70 INSTALL_DATA=$(INSTALL_DATA) FILEMOD=$(FILEMOD) install; \
71 fi
72 if test -d $(LANGSOURCE); then \
cdd976c0
ER
73--- vim73/src/po/Makefile~ 2013-02-22 17:28:18.000000000 +0200
74+++ vim73/src/po/Makefile 2013-02-22 17:46:40.771918175 +0200
3ed3142a 75@@ -38,6 +38,7 @@ check: $(CHECKFILES)
c37eb575 76
cdd976c0 77 install: $(MOFILES) $(MOCONVERTED)
c37eb575
ER
78 @$(MAKE) prefixcheck
79+ install -d $(LOCALEDIR); \
3ed3142a 80 for lang in $(LANGUAGES); do \
c37eb575
ER
81 dir=$(LOCALEDIR)/$$lang/; \
82 if test ! -x "$$dir"; then \
3ed3142a 83
This page took 0.042808 seconds and 4 git commands to generate.