summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2013-09-27 19:27:48 +0000
committerTim Harder <radhermit@gentoo.org>2013-09-27 19:27:48 +0000
commit81ed0c88088ad47c54194a3a6ef24552e1a7aad7 (patch)
tree0a375c83ab9fec3fde406ed25786eef57686881c /app-editors/vim
parentUse pydistutils.cfg to set build-dirs instead of passing commands explicitly.... (diff)
downloadhistorical-81ed0c88088ad47c54194a3a6ef24552e1a7aad7.tar.gz
historical-81ed0c88088ad47c54194a3a6ef24552e1a7aad7.tar.bz2
historical-81ed0c88088ad47c54194a3a6ef24552e1a7aad7.zip
Version bump.
Package-Manager: portage-2.2.7/cvs/Linux x86_64 Manifest-Sign-Key: 0x4AB3E85B4F064CA3
Diffstat (limited to 'app-editors/vim')
-rw-r--r--app-editors/vim/ChangeLog7
-rw-r--r--app-editors/vim/Manifest18
-rw-r--r--app-editors/vim/vim-7.4.41.ebuild368
3 files changed, 384 insertions, 9 deletions
diff --git a/app-editors/vim/ChangeLog b/app-editors/vim/ChangeLog
index 9d5e31cea443..16f5e3e546c7 100644
--- a/app-editors/vim/ChangeLog
+++ b/app-editors/vim/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-editors/vim
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-editors/vim/ChangeLog,v 1.444 2013/09/06 07:34:51 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/vim/ChangeLog,v 1.445 2013/09/27 19:26:25 radhermit Exp $
+
+*vim-7.4.41 (27 Sep 2013)
+
+ 27 Sep 2013; Tim Harder <radhermit@gentoo.org> +vim-7.4.41.ebuild:
+ Version bump.
06 Sep 2013; Tim Harder <radhermit@gentoo.org> -vim-7.4.ebuild,
-vim-7.4.5.ebuild:
diff --git a/app-editors/vim/Manifest b/app-editors/vim/Manifest
index 82d6b06f166a..42c153f97e35 100644
--- a/app-editors/vim/Manifest
+++ b/app-editors/vim/Manifest
@@ -11,20 +11,22 @@ DIST vim-7.4.tar.bz2 9843297 SHA256 d0f5a6d2c439f02d97fa21bd9121f4c5abb1f6cd8b5a
DIST vim-patches-7.3.1214.patch.bz2 1678514 SHA256 ad8e7742b14337f77bc8d35a77b18455bc601d895dfa18faa8c62ef5ffcaf10b SHA512 1b336d6d55b1c123503590b8ccc8c6cfa516e29fdb9e273dcb79700ef0a4a0c1bf2c7a386d38de7ece1a69634016cd1e6f78f8cc5cb96a30f4c59483f5214c69 WHIRLPOOL 85f07bfc1a4fa28312185bb8a54225e0d69c09cdfc4d0aa492abc74639b77e2d908f08b561d1446292fbbe09ef0a8aeca67fb0a2720a70f93e9e05605c6d4b2a
DIST vim-patches-7.3.762.patch.bz2 1102824 SHA256 91dd83f66b1f362be987cff40c00c05b8dc699000b8b4932437829ed34936dab SHA512 b7288438f98b56e082a957c5178818f549dd8e2aca31301f432d3c6d94c0702e482e4c14b17c122f6a83a11bb21dcc165725b3996a503f6cb45400492ae783bd WHIRLPOOL cc1140556487fde2c2ee9a9351f4a062a080d270cfa8e728295beb233288efc7acdb750181dc25a2a1b74d4b547e1219e3f043c89b6a27348f7aa916d64f9fd3
DIST vim-patches-7.4.22.patch.bz2 11308 SHA256 573b9a1c039cff7522920ea5a0c8821033d92b20a6ff68b182480351a20e2d88 SHA512 533e4c4fb0b5e7f5d2b9585b08004748be617b73d8782f4442094342fabae1ac60ae55a4612724f4778057e0f4e10732276018e72c1c11cc91f241700bdf1bb7 WHIRLPOOL 288947dcaf303ea286fdf1f5c40996d611ea03a38dfd606892bd7b733f144971d27db02ffe5d2a5ed4d0809c2c33915498c29e5390e21dc55a6a9f47e3049ead
+DIST vim-patches-7.4.41.patch.bz2 72664 SHA256 00eeef3f3f7ce8f2c8ffa163a85fecced465e0a66de3c3cc8963322c8b894b72 SHA512 79ca4b7662c01120471c86d6649904e3d9c68c28958ca96a0548fd3411cb8c678b977acdd4d42977ba6c823efd3e16e765a31a8575c081a32b651b63dfedd710 WHIRLPOOL 5ea5c8a7e08f57603f1c0df43e4e187f60b0a17c5c549999e8d79d8de15365168fd38c5f28fac32af5d57f5869cf132a49171f4af6d4cc769f878207c8fcfa94
EBUILD vim-7.3.1214.ebuild 1118 SHA256 5f2562a86a39ba99c79baf0b44173aba00e20013e249af74777ea9ba4bfaf751 SHA512 514233dab534cc49a4f318681e568ed059128352e94d748e1b38632340ed4576f6b0218367bc28024ec689e613c9fe180872054cde6e83a164227eace5568dba WHIRLPOOL 421d998ef49148b7efc77830126c8c2aa2eb7c2b0674752a24e60de289c2588f5b426847f8bed35951410c906d21c6b0d5fc9f814d81b5b8c1ce12277f3444b5
EBUILD vim-7.3.762.ebuild 1001 SHA256 17cb878cf1c5922ac95d2d6c04215ae1bd695bff7a4ac742f92fbd0a8d688829 SHA512 2c7dbc515e74af5614e9a3290f61adb270c6f4dd0be4795f55a35d9d723c2bc7f3af4b890b571c21962be6585551b685dde68d6c1838368af7a1721ec87c1219 WHIRLPOOL 2a17ab2e9a9e903f1d2792d29d39086a8d3eb42c55683a409c6a6025ab2a5bbe1ca3750b5ac815164b293a6ecd59d187c37558e084baf66b4b6818d290800325
EBUILD vim-7.4.22.ebuild 11673 SHA256 8ba58f6883183e018035c28b626935ffb3da62ab8cb58eafc5e726d59dc52e8c SHA512 8ddbe36358260e17b217c3700ca51e6a224032c1ac60c79bd5f863a3c2b46c889468d2acf219504ac2540d5896579a92bb668e1d667c4c7f04d93849639faad1 WHIRLPOOL 994b86ddfd54dc2f0c870499c6eb5ad45e669c755ff391137d2b3ed233c8ce255dea4e66e79af8f0dfe1c75dbf7bedafc4fb032fed083e6d1d97b2bede2ed33f
+EBUILD vim-7.4.41.ebuild 11673 SHA256 ec4afe455265e9c2f5fc257b4b4c2fbde8aec94243bb25f0d1ba4ad95c5f7188 SHA512 5b85b38392fdbe0c997b52e46f2a3ce77eaeba89e255e739456484acee40973c89ebf4974bc8ccbe7fd9818f845ad761ad62413c9618cfec9fcf94a0c33238b7 WHIRLPOOL f6b3171fec5485ad351a84247ba9dacefa7bdbdb300479eb19bb4345542e1772bf0ae20f5305655af8a698f9401c1629224289686a9a2cd05a0e987c77273808
EBUILD vim-9999.ebuild 11671 SHA256 03915add15a878f9c2854c5376f8c75fb996cbdf80b76461037e23706c8424c4 SHA512 b083b0d15502c3131c44eff57bedc4d1adde26ea5d26c02794f33ebf3c583f8fcda0910e68b4d75a2888e6075e751c27f4a5ce03cd4a946e9547894efc7dcc29 WHIRLPOOL b19b9a8ad39839948a4de330823580153b887f56b005ab82451149552fa82726559deb00f350a4cdf84f84c3329732acb13504d51b24b86bc671dad105d16bb9
-MISC ChangeLog 59765 SHA256 13a01b413df90934989ba1a22d4dbda2a14f558f595471ba8e4301868b9ad0e8 SHA512 1265bf6af16be66f5b99f4d2d96247ba49779ade137b8b6c71733fc1a83533766a9033002147b4fab0b253a23a527b729da52cb6077fc4dec7211f6559599293 WHIRLPOOL b12360f2ae9f92d12891f3d7c11e28f0e85719ed3bea2457046a12225be90c43fd6f59f25a3098203a2de86f43180cfa800515e1786a7d161558854291b719c3
+MISC ChangeLog 59878 SHA256 8815888ac760aeadc262d37a0a306845875d55f810ec4ebf02dd77f32f4afb41 SHA512 e22fb206420f87221625aa76b355cbef1616daf161a6bf72db8d5188fd91b9ced335560beef84d55e8d5008a23453f54621f5129b5a8875a4e32f6a1e6ac3c65 WHIRLPOOL 1815eb067c29e8692dc1cf0d2d46129607333b3baa099f5f3108dd2322a099e0f7ae1d42ccbd6c8ab3c436cab2661d113f282cb1e09b199cb46b6284bf9f772b
MISC metadata.xml 523 SHA256 b75a53f2927616d5ceb6fdef13bc77f5852e80d4dd0305c52c80c3b6999ba83b SHA512 a649323d51eac150924004665e99a2c99b2900524773a3a6a15e3fef7b856f6c6c2d0efd8e2213e202eb66a28432a171dd62346be045faa884e72a1a78ce8338 WHIRLPOOL b99bc6b2bd37665a8629f647b528473734bddd7f639e66e8213da75452822e3177273b23ef5be2b76a28e46216ce42b398d3d4529dc724e95049477f920dcd70
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.21 (GNU/Linux)
-iQEcBAEBCAAGBQJSKYWcAAoJEEqz6FtPBkyjD6YIALpKCfujwe0qG7lvOL6FfKk3
-AHV9UA8fxMW7ouBcUj4TuxfiM2YcoE2IGPTdluwxONQ+lwSH/p2kSwWMepvOHzQa
-kmoV+1WvlQoL/Gzsya/g7gziPmdLNJiqmP60Bk1lwrdLcvJ6dOdPcCNj4oQs47E8
-pdI9wiUTs8SFYEzLb3TMeXacQZeKR9kallmzaC0RtrSg7QsElL6qpp4SOPzHibVQ
-cpiUSfRbgjns76/1DnIgkhFFvJ8HI0yfrCtHZQLJADSDVf73lC3y6tbJTKN3bamD
-FkE55IS40eCsh7Ad0YKLWuU6+ZGvtuP+3hx6yU/icImz4iDqP8uCflNzwm/URMs=
-=Ci7C
+iQEcBAEBCAAGBQJSRdviAAoJEEqz6FtPBkyjB0wIAIR2Lib66irxEubwGOMQub+c
+tTKLyrBOuvUQMiJBVySUKFCyhFzFmNtFknZAnxB7E3Dm8oi3uCokaFhOV7paxwj9
+3wJNf6Z6WRdWdU/nkWYur6H9g5/bQ/nAERi9kOLk45n33PwLbNvLgVHllansrUiE
+8YzfsDQsx8NU8W/EIkPSwsJTax1txNyXLSbm40brxFzmxBmdDwlQ/BBtWgtbl3/i
+z9nO6QNwcr8jbIIGegmY09ibgl34+/3Ur4NCirV/cRLJphKteUTSKg9UQaAQhk9b
+9QKsOi6qJi85cvniSjI3NZqBShrIDZXfKu9gmVb8oajlqYku44SeRguaD1ZtBiI=
+=urPi
-----END PGP SIGNATURE-----
diff --git a/app-editors/vim/vim-7.4.41.ebuild b/app-editors/vim/vim-7.4.41.ebuild
new file mode 100644
index 000000000000..030e8fa06524
--- /dev/null
+++ b/app-editors/vim/vim-7.4.41.ebuild
@@ -0,0 +1,368 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-editors/vim/vim-7.4.41.ebuild,v 1.1 2013/09/27 19:26:25 radhermit Exp $
+
+EAPI=5
+VIM_VERSION="7.4"
+PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
+PYTHON_REQ_USE=threads
+inherit eutils vim-doc flag-o-matic fdo-mime versionator bash-completion-r1 python-single-r1
+
+if [[ ${PV} == 9999* ]] ; then
+ inherit mercurial
+ EHG_REPO_URI="https://vim.googlecode.com/hg/"
+ EHG_PROJECT="vim"
+else
+ VIM_ORG_PATCHES="vim-patches-${PV}.patch.bz2"
+
+ SRC_URI="ftp://ftp.vim.org/pub/vim/unix/vim-${VIM_VERSION}.tar.bz2
+ http://dev.gentoo.org/~radhermit/vim/${VIM_ORG_PATCHES}"
+ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+fi
+
+DESCRIPTION="vim and gvim shared files"
+HOMEPAGE="http://www.vim.org/"
+
+SLOT="0"
+LICENSE="vim"
+IUSE="X acl cscope debug gpm lua luajit minimal nls perl python ruby vim-pager"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND=">=app-admin/eselect-vi-1.1
+ >=sys-libs/ncurses-5.2-r2
+ nls? ( virtual/libintl )
+ acl? ( kernel_linux? ( sys-apps/acl ) )
+ cscope? ( dev-util/cscope )
+ gpm? ( >=sys-libs/gpm-1.19.3 )
+ lua? (
+ luajit? ( dev-lang/luajit )
+ !luajit? ( dev-lang/lua )
+ )
+ !minimal? (
+ ~app-editors/vim-core-${PV}
+ dev-util/ctags
+ )
+ perl? ( dev-lang/perl )
+ python? ( ${PYTHON_DEPS} )
+ ruby? ( || ( dev-lang/ruby:2.0 dev-lang/ruby:1.9 dev-lang/ruby:1.8 ) )
+ X? ( x11-libs/libXt )"
+DEPEND="${RDEPEND}
+ >=app-admin/eselect-vi-1.1
+ sys-devel/autoconf
+ >=sys-libs/ncurses-5.2-r2
+ nls? ( sys-devel/gettext )"
+
+S=${WORKDIR}/vim${VIM_VERSION/.}
+
+pkg_setup() {
+ # people with broken alphabets run into trouble. bug 82186.
+ unset LANG LC_ALL
+ export LC_COLLATE="C"
+
+ # Gnome sandbox silliness. bug #114475.
+ mkdir -p "${T}"/home
+ export HOME="${T}"/home
+
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ if [[ ${PV} != 9999* ]] ; then
+ if [[ -f "${WORKDIR}"/${VIM_ORG_PATCHES%.bz2} ]] ; then
+ # Apply any patches available from vim.org for this version
+ epatch "${WORKDIR}"/${VIM_ORG_PATCHES%.bz2}
+ fi
+ fi
+
+ # Fixup a script to use awk instead of nawk
+ sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \
+ || die "mve.awk sed failed"
+
+ # Patch to build with ruby-1.8.0_pre5 and following
+ sed -i 's/defout/stdout/g' "${S}"/src/if_ruby.c
+
+ # Read vimrc and gvimrc from /etc/vim
+ echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h
+ echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h
+
+ # Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
+ # Hopefully this pattern won't break for a while at least.
+ # This fixes bug 29398 (27 Sep 2003 agriffis)
+ sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
+ "${S}"/runtime/doc/syntax.txt \
+ "${S}"/runtime/doc/tagsrch.txt \
+ "${S}"/runtime/doc/usr_29.txt \
+ "${S}"/runtime/menu.vim \
+ "${S}"/src/configure.in || die 'sed failed'
+
+ # Don't be fooled by /usr/include/libc.h. When found, vim thinks
+ # this is NeXT, but it's actually just a file in dev-libs/9libs
+ # This fixes bug 43885 (20 Mar 2004 agriffis)
+ sed -i 's/ libc\.h / /' "${S}"/src/configure.in || die 'sed failed'
+
+ # gcc on sparc32 has this, uhm, interesting problem with detecting EOF
+ # correctly. To avoid some really entertaining error messages about stuff
+ # which isn't even in the source file being invalid, we'll do some trickery
+ # to make the error never occur. bug 66162 (02 October 2004 ciaranm)
+ find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done
+
+ # conditionally make the manpager.sh script
+ if use vim-pager ; then
+ cat <<-END > "${S}"/runtime/macros/manpager.sh
+ #!/bin/sh
+ sed -e 's/\x1B\[[[:digit:]]\+m//g' | col -b | \\
+ vim \\
+ -c 'let no_plugin_maps = 1' \\
+ -c 'set nolist nomod ft=man' \\
+ -c 'let g:showmarks_enable=0' \\
+ -c 'runtime! macros/less.vim' -
+ END
+ fi
+
+ # Try to avoid sandbox problems. Bug #114475.
+ if [[ -d "${S}"/src/po ]] ; then
+ sed -i -e \
+ '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
+ "${S}"/src/po/Makefile
+ fi
+
+ if version_is_at_least 7.3.122 ; then
+ cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk
+ fi
+
+ # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0
+ if version_is_at_least 7.3 ; then
+ sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
+ "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
+ fi
+}
+
+src_configure() {
+ local myconf
+
+ # Fix bug 37354: Disallow -funroll-all-loops on amd64
+ # Bug 57859 suggests that we want to do this for all archs
+ filter-flags -funroll-all-loops
+
+ # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
+ # everyone since previous flag filtering bugs have turned out to affect
+ # multiple archs...
+ replace-flags -O3 -O2
+
+ # Fix bug 18245: Prevent "make" from the following chain:
+ # (1) Notice configure.in is newer than auto/configure
+ # (2) Rebuild auto/configure
+ # (3) Notice auto/configure is newer than auto/config.mk
+ # (4) Run ./configure (with wrong args) to remake auto/config.mk
+ sed -i 's/ auto.config.mk:/:/' src/Makefile || die "Makefile sed failed"
+ rm -f src/auto/configure
+ emake -j1 -C src autoconf
+
+ # This should fix a sandbox violation (see bug 24447). The hvc
+ # things are for ppc64, see bug 86433.
+ for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do
+ [[ -e ${file} ]] && addwrite $file
+ done
+
+ if use minimal ; then
+ myconf="--with-features=tiny \
+ --disable-nls \
+ --disable-multibyte \
+ --disable-acl \
+ --enable-gui=no \
+ --without-x \
+ --disable-darwin \
+ --disable-luainterp \
+ --disable-perlinterp \
+ --disable-pythoninterp \
+ --disable-rubyinterp \
+ --disable-gpm"
+ else
+ use debug && append-flags "-DDEBUG"
+
+ myconf="--with-features=huge --enable-multibyte"
+ myconf+=" $(use_enable acl)"
+ myconf+=" $(use_enable cscope)"
+ myconf+=" $(use_enable gpm)"
+ myconf+=" $(use_enable nls)"
+ myconf+=" $(use_enable perl perlinterp)"
+
+ if use python ; then
+ if [[ ${EPYTHON} == python3* ]] ; then
+ myconf+=" --enable-python3interp"
+ export vi_cv_path_python3="${PYTHON}"
+ else
+ myconf+=" --enable-pythoninterp"
+ export vi_cv_path_python="${PYTHON}"
+ fi
+ else
+ myconf+=" --disable-pythoninterp --disable-python3interp"
+ fi
+
+ myconf+=" $(use_enable lua luainterp)"
+ myconf+=" $(use_with luajit)"
+ myconf+=" $(use_enable ruby rubyinterp)"
+
+ # tclinterp is broken; when you --enable-tclinterp flag, then
+ # the following command never returns:
+ # VIMINIT='let OS=system("uname -s")' vim
+ # mzscheme support is currently broken. bug #91970
+ #myconf+=" $(use_enable mzscheme mzschemeinterp)"
+
+ # --with-features=huge forces on cscope even if we --disable it. We need
+ # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
+ if ! use cscope ; then
+ sed -i -e '/# define FEAT_CSCOPE/d' src/feature.h || \
+ die "couldn't disable cscope"
+ fi
+
+ # don't test USE=X here ... see bug #19115
+ # but need to provide a way to link against X ... see bug #20093
+ myconf+=" --enable-gui=no --disable-darwin $(use_with X x)"
+ fi
+
+ # Let Portage do the stripping. Some people like that.
+ export ac_cv_prog_STRIP="$(type -P true ) faking strip"
+
+ # Keep Gentoo Prefix env contained within the EPREFIX
+ use prefix && myconf+=" --without-local-dir"
+
+ econf \
+ --with-modified-by=Gentoo-${PVR} \
+ --disable-selinux \
+ ${myconf}
+}
+
+src_compile() {
+ # The following allows emake to be used
+ emake -j1 -C src auto/osdef.h objects
+
+ emake
+}
+
+src_test() {
+ echo
+ einfo "Starting vim tests. Several error messages will be shown"
+ einfo "while the tests run. This is normal behaviour and does not"
+ einfo "indicate a fault."
+ echo
+ ewarn "If the tests fail, your terminal may be left in a strange"
+ ewarn "state. Usually, running 'reset' will fix this."
+ echo
+
+ # Don't let vim talk to X
+ unset DISPLAY
+
+ # We've got to call make test from within testdir, since the Makefiles
+ # don't pass through our VIMPROG argument
+ cd "${S}"/src/testdir
+
+ # Test 49 won't work inside a portage environment
+ einfo "Test 49 isn't sandbox-friendly, so it will be skipped."
+ sed -i -e 's~test49.out~~g' Makefile
+
+ # We don't want to rebuild vim before running the tests
+ sed -i -e 's,: \$(VIMPROG),: ,' Makefile
+
+ # Don't try to do the additional GUI test
+ emake -j1 VIMPROG=../vim nongui \
+ || die "At least one test failed"
+}
+
+# Make convenience symlinks, hopefully without stepping on toes. Some
+# of these links are "owned" by the vim ebuild when it is installed,
+# but they might be good for gvim as well (see bug 45828)
+update_vim_symlinks() {
+ has "${EAPI:-0}" 0 1 2 && use !prefix && EROOT="${ROOT}"
+ local f syms
+ syms="vimdiff rvim rview"
+ einfo "Calling eselect vi update..."
+ # Call this with --if-unset to respect user's choice (bug 187449)
+ eselect vi update --if-unset
+
+ # Make or remove convenience symlink, vim -> gvim
+ if [[ -f "${EROOT}"/usr/bin/gvim ]]; then
+ ln -s gvim "${EROOT}"/usr/bin/vim 2>/dev/null
+ elif [[ -L "${EROOT}"/usr/bin/vim && ! -f "${EROOT}"/usr/bin/vim ]]; then
+ rm "${EROOT}"/usr/bin/vim
+ fi
+
+ # Make or remove convenience symlinks to vim
+ if [[ -f "${EROOT}"/usr/bin/vim ]]; then
+ for f in ${syms}; do
+ ln -s vim "${EROOT}"/usr/bin/${f} 2>/dev/null
+ done
+ else
+ for f in ${syms}; do
+ if [[ -L "${EROOT}"/usr/bin/${f} && ! -f "${EROOT}"/usr/bin/${f} ]]; then
+ rm -f "${EROOT}"/usr/bin/${f}
+ fi
+ done
+ fi
+
+ # This will still break if you merge then remove the vi package,
+ # but there's only so much you can do, eh? Unfortunately we don't
+ # have triggers like are done in rpm-land.
+}
+
+src_install() {
+ local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
+
+ # Note: Do not install symlinks for 'vi', 'ex', or 'view', as these are
+ # managed by eselect-vi
+ dobin src/vim
+ dosym vim /usr/bin/vimdiff
+ dosym vim /usr/bin/rvim
+ dosym vim /usr/bin/rview
+ if use vim-pager ; then
+ dosym ${vimfiles}/macros/less.sh /usr/bin/vimpager
+ dosym ${vimfiles}/macros/manpager.sh /usr/bin/vimmanpager
+ insinto ${vimfiles}/macros
+ doins runtime/macros/manpager.sh
+ fperms a+x ${vimfiles}/macros/manpager.sh
+ fi
+
+ newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
+
+ # We shouldn't be installing the ex or view man page symlinks, as they
+ # are managed by eselect-vi
+ rm -f "${ED}"/usr/share/man/man1/{ex,view}.1
+}
+
+pkg_postinst() {
+ # Update documentation tags (from vim-doc.eclass)
+ update_vim_helptags
+
+ if use X ; then
+ echo
+ elog "The 'X' USE flag enables vim <-> X communication, like"
+ elog "updating the xterm titlebar. It does not install a GUI."
+ fi
+ echo
+ elog "To install a GUI version of vim, use the app-editors/gvim"
+ elog "package."
+ echo
+ elog "Vim 7 includes an integrated spell checker. You need to install"
+ elog "word list files before you can use it. There are ebuilds for"
+ elog "some of these named app-vim/vim-spell-*. If your language of"
+ elog "choice is not included, please consult vim-spell.eclass for"
+ elog "instructions on how to make a package."
+ echo
+ ewarn "Note that the English word lists are no longer installed by"
+ ewarn "default."
+ echo
+
+ echo
+ elog "To see what's new in this release, use :help version${VIM_VERSION/.*/}.txt"
+
+ # Make convenience symlinks
+ update_vim_symlinks
+}
+
+pkg_postrm() {
+ # Update documentation tags (from vim-doc.eclass)
+ update_vim_helptags
+
+ # Make convenience symlinks
+ update_vim_symlinks
+}