Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 189435 - app-editors/vim-core should not install localized files unconditionally
Summary: app-editors/vim-core should not install localized files unconditionally
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Low normal (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-19 08:34 UTC by Elias Pipping (RETIRED)
Modified: 2017-12-20 16:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elias Pipping (RETIRED) gentoo-dev 2007-08-19 08:34:22 UTC
== quote from vim.eclass ==

vim_src_install() {
    if [[ "${MY_PN}" == "vim-core" ]] ; then
[ snip ]
        if [[ $(get_major_version ) -ge 7 ]] ; then
            make \
[ snip ]
                install-languages \
[ snip ]

== end of quote ==

this is what that target does:

== output ==

% make -n install-languages
if test -n "" -a -f po/Makefile; then cd po; make prefix=/usr; fi
if test -n "" -a -f po/Makefile; then cd po; make prefix=/usr converted; fi
/bin/sh ./installman.sh install /usr/share/man/fr/man1 "-fr" /usr/share/vim /usr/share/vim/vim71 /usr/share/vim ../runtime/doc 644 vim vimdiff evim
/bin/sh ./installman.sh install /usr/share/man/fr.ISO8859-1/man1 "-fr" /usr/share/vim /usr/share/vim/vim71 /usr/share/vim ../runtime/doc 644 vim vimdiff evim
/bin/sh ./installman.sh install /usr/share/man/fr.UTF-8/man1 "-fr.UTF-8" /usr/share/vim /usr/share/vim/vim71 /usr/share/vim ../runtime/doc 644 vim vimdiff evim
/bin/sh ./installman.sh install /usr/share/man/it/man1 "-it" /usr/share/vim /usr/share/vim/vim71 /usr/share/vim ../runtime/doc 644 vim vimdiff evim
/bin/sh ./installman.sh install /usr/share/man/it.ISO8859-1/man1 "-it" /usr/share/vim /usr/share/vim/vim71 /usr/share/vim ../runtime/doc 644 vim vimdiff evim
/bin/sh ./installman.sh install /usr/share/man/it.UTF-8/man1 "-it.UTF-8" /usr/share/vim /usr/share/vim/vim71 /usr/share/vim ../runtime/doc 644 vim vimdiff evim
/bin/sh ./installman.sh install /usr/share/man/pl/man1 "-pl" /usr/share/vim /usr/share/vim/vim71 /usr/share/vim ../runtime/doc 644 vim vimdiff evim
/bin/sh ./installman.sh install /usr/share/man/pl.ISO8859-2/man1 "-pl" /usr/share/vim /usr/share/vim/vim71 /usr/share/vim ../runtime/doc 644 vim vimdiff evim
/bin/sh ./installman.sh install /usr/share/man/pl.UTF-8/man1 "-pl.UTF-8" /usr/share/vim /usr/share/vim/vim71 /usr/share/vim ../runtime/doc 644 vim vimdiff evim
/bin/sh ./installman.sh install /usr/share/man/ru.KOI8-R/man1 "-ru" /usr/share/vim /usr/share/vim/vim71 /usr/share/vim ../runtime/doc 644 vim vimdiff evim
/bin/sh ./installman.sh install /usr/share/man/ru.UTF-8/man1 "-ru.UTF-8" /usr/share/vim /usr/share/vim/vim71 /usr/share/vim ../runtime/doc 644 vim vimdiff evim
/bin/sh ./installml.sh install "" /usr/share/man/fr/man1 vim vimdiff evim ex view rvim rview gvim gview rgvim rgview gvimdiff eview
/bin/sh ./installml.sh install "" /usr/share/man/fr.ISO8859-1/man1 vim vimdiff evim ex view rvim rview gvim gview rgvim rgview gvimdiff eview
/bin/sh ./installml.sh install "" /usr/share/man/fr.UTF-8/man1 vim vimdiff evim ex view rvim rview gvim gview rgvim rgview gvimdiff eview
/bin/sh ./installml.sh install "" /usr/share/man/it/man1 vim vimdiff evim ex view rvim rview gvim gview rgvim rgview gvimdiff eview
/bin/sh ./installml.sh install "" /usr/share/man/it.ISO8859-1/man1 vim vimdiff evim ex view rvim rview gvim gview rgvim rgview gvimdiff eview
/bin/sh ./installml.sh install "" /usr/share/man/it.UTF-8/man1 vim vimdiff evim ex view rvim rview gvim gview rgvim rgview gvimdiff eview
/bin/sh ./installml.sh install "" /usr/share/man/pl/man1 vim vimdiff evim ex view rvim rview gvim gview rgvim rgview gvimdiff eview
/bin/sh ./installml.sh install "" /usr/share/man/pl.ISO8859-2/man1 vim vimdiff evim ex view rvim rview gvim gview rgvim rgview gvimdiff eview
/bin/sh ./installml.sh install "" /usr/share/man/pl.UTF-8/man1 vim vimdiff evim ex view rvim rview gvim gview rgvim rgview gvimdiff eview
/bin/sh ./installml.sh install "" /usr/share/man/ru.KOI8-R/man1 vim vimdiff evim ex view rvim rview gvim gview rgvim rgview gvimdiff eview
/bin/sh ./installml.sh install "" /usr/share/man/ru.UTF-8/man1 vim vimdiff evim ex view rvim rview gvim gview rgvim rgview gvimdiff eview
if test -n "" -a -f po/Makefile; then \
           cd po; make prefix=/usr LOCALEDIR=/usr/share/vim/vim71/lang \
           INSTALL_DATA=cp FILEMOD=644 install; \
        fi  
if test -d ../runtime/lang; then \
           cp ../runtime/lang/README.txt ../runtime/lang/*.vim /usr/share/vim/vim71/lang; \
           chmod 644 /usr/share/vim/vim71/lang/README.txt /usr/share/vim/vim71/lang/*.vim; \
        fi  
if test -d ../runtime/keymap; then \
           cp ../runtime/keymap/README.txt ../runtime/keymap/*.vim /usr/share/vim/vim71/keymap; \
           chmod 644 /usr/share/vim/vim71/keymap/README.txt /usr/share/vim/vim71/keymap/*.vim; \
        fi

== end of output ==

So one ends up with a lot of localized files, that the majority is most likely not interested in, and there's no easy way to get rid them (INSTALL_MASK is useless in this case unfortunately), so that target should be conditional, depending on e.g. USE=nls.
Comment 1 Elias Pipping (RETIRED) gentoo-dev 2007-08-19 08:36:38 UTC
here's the output of `make -n install-languages` again, a little easier on the eyes (at least on big screens): http://paste.lisp.org/display/46371