diff options
author | 2013-10-15 23:16:57 +0000 | |
---|---|---|
committer | 2013-10-15 23:16:57 +0000 | |
commit | 5ffc68eeceb1edd43c600d4149389f91c60711a2 (patch) | |
tree | 4f64cc0277cfecbb1e0442446a5870fe270c7010 /app-editors/gvim | |
parent | Version bump. (diff) | |
download | historical-5ffc68eeceb1edd43c600d4149389f91c60711a2.tar.gz historical-5ffc68eeceb1edd43c600d4149389f91c60711a2.tar.bz2 historical-5ffc68eeceb1edd43c600d4149389f91c60711a2.zip |
Version bump and add tcl use flag (bug #487038).
Package-Manager: portage-2.2.7/cvs/Linux x86_64
Manifest-Sign-Key: 0x4AB3E85B4F064CA3
Diffstat (limited to 'app-editors/gvim')
-rw-r--r-- | app-editors/gvim/ChangeLog | 8 | ||||
-rw-r--r-- | app-editors/gvim/Manifest | 22 | ||||
-rw-r--r-- | app-editors/gvim/gvim-7.4.52.ebuild | 407 | ||||
-rw-r--r-- | app-editors/gvim/gvim-9999.ebuild | 8 |
4 files changed, 431 insertions, 14 deletions
diff --git a/app-editors/gvim/ChangeLog b/app-editors/gvim/ChangeLog index 2c746f58d3f4..6937446c91b8 100644 --- a/app-editors/gvim/ChangeLog +++ b/app-editors/gvim/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-editors/gvim # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/gvim/ChangeLog,v 1.414 2013/10/07 05:38:10 radhermit Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-editors/gvim/ChangeLog,v 1.415 2013/10/15 23:16:55 radhermit Exp $ + +*gvim-7.4.52 (15 Oct 2013) + + 15 Oct 2013; Tim Harder <radhermit@gentoo.org> +gvim-7.4.52.ebuild, + gvim-9999.ebuild: + Version bump and add tcl use flag (bug #487038). 07 Oct 2013; Tim Harder <radhermit@gentoo.org> gvim-7.4.22.ebuild, gvim-7.4.41.ebuild, gvim-9999.ebuild: diff --git a/app-editors/gvim/Manifest b/app-editors/gvim/Manifest index e29379053ba7..6edb2fd1dfc2 100644 --- a/app-editors/gvim/Manifest +++ b/app-editors/gvim/Manifest @@ -15,21 +15,23 @@ DIST vim-patches-7.3.1214.patch.bz2 1678514 SHA256 ad8e7742b14337f77bc8d35a77b18 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 +DIST vim-patches-7.4.52.patch.bz2 14 SHA256 d3dda84eb03b9738d118eb2be78e246106900493c0ae07819ad60815134a8058 SHA512 6de201dfed1d45412509c65deb34690dc2d09c6aafccfe491fd2f440f92842b9c755b61dc7bcdd4cc0c9f18cf46c2b3a1241e99c4c2a33fff5555e7b2f0b6348 WHIRLPOOL 39fd27630df1bd07de69b6bae68be5028bbefbc8ffdac645d5e0527eb1ed9575d0aaf97b39d0d6c9b69401846fbf8aeb3383b14bafb4a7564a20e92182dbd4b0 EBUILD gvim-7.3.1214.ebuild 1067 SHA256 d005488811ca107f47fcc78d63d4bc7fcfd17232eaa8f43a553fbe4e14c81b5d SHA512 a0e321432369a986810cd7ac1201247e42c1693331de7e4de234f204b7b943ef8e9cc689bde0122082a984583ce9c36ec5ecf1136df3a8fb451493fde8cef484 WHIRLPOOL 2a3a10f491937a96980f6207c1309ab3df46336d589b812ab2e1748698f19194e7fe44eca07b21f0f88b0297e742372f7eba1337d40add870929b2ee860ab783 EBUILD gvim-7.3.762.ebuild 958 SHA256 19a7ce0d8ad24047c022c866046ec63aab92efa911e87dea3d83f7e4b33e7dd9 SHA512 3966bd3a5cb514f99cc3ee5718b09a3fcb8eaf2e71c118a255a3ffc496b64d116a5321719a3773d38743b9552408bc2655373753a9e1b8e5f571d848226253e3 WHIRLPOOL 8095463dd1ed4bbace9ef0fbb9a2ce74fc49f1c1f431fc9ce83e8eed4d23c97f1eb54e90575baaa77b928eacf659322076256e511b045896b94e1ec5479fe5ce EBUILD gvim-7.4.22.ebuild 12598 SHA256 04f24e7d19c1d8711f6726d7a74f42092de4fc21921bc551b6e8cb7aceff6a3f SHA512 010b40a6dad617f99473c8fb4d95f255b1fd686aee314d764398dcd91e643975438179221a21980664f8f5c3e5fdf86ac9739d90f0dc995f011c5b5ddaae8ae1 WHIRLPOOL aea1f019cb0361d0da575afb1e94b16837a2034dc3389abb52ba0aef2f6a26a2e8c8157f21e6a4500b3bd977d21adc03d80b95f51b35c43e88c008199f942236 EBUILD gvim-7.4.41.ebuild 12598 SHA256 dbeb49769bc5382ff5b8746dafd0be6526c675e2555d1e878ee121f67b5f5f59 SHA512 e233b0118b549e1e9a7fdc96af616d5a60f684a8126698e14a2d5762bedd264795f2ee48c2cc0763503bf493252c7a17f81842547b13a0dde82c2c2e2d134cd3 WHIRLPOOL e10e419ca131a00c3a7dd3cca665f1935719b23c094ffa56f6a92dc9d8ff2fd31ce08e714435e1c3017a0bb391df14925a18a247bcc0bacb19a94e5f697613d4 -EBUILD gvim-9999.ebuild 12596 SHA256 39edcd05ff887473e595012f95bf9bcd4221624cb6ce6550d1469a242af6b533 SHA512 5754b647046da2aa0420716a1d618247a2eb43933b0c7ea7860fc2eb7314de75d499aa385cc3425657697970fb38b946623778d004eac60d9fc161d1982d9e80 WHIRLPOOL c76a04930f89fe15f67d4ecc067fd1e6a15d3db316a61bb685b058991e51970a4ec475354b0a4c1e56feac5720d7f4b9b4ebfb5f79e7051745ff0aebadd1a335 -MISC ChangeLog 56459 SHA256 ac0942e1109bba25ca42e3be2a9b493f892bcd9fa5b90a84bdae193fde98c198 SHA512 721b72954c77545f934d129233a4d35857c8ae2fd30d9dab282c7cc56d8e96343feec509aa41bbcd03d29ff41758a88c843d239453f4b68c216626f312e5d71b WHIRLPOOL d7b31d104d0f64898b4daa41dea8f57e211322c42d64b7d4ed0a6420fe5a486d42554cb6b9ae42bdaf979f0a9cd0275fcc022688049f2b8b04fde434c078ad82 +EBUILD gvim-7.4.52.ebuild 12657 SHA256 d9cc1bbf5d1b8498b36a9463ca0425a1542bdc6556ae5b258fa17d50054ab3f0 SHA512 582066f1f66644503db422ab791b4c032cdd7a5f21afc63f5706eccadc367df9af237ecfef36f587b3c06fd9cf0a26e5062b2b22d210dc8376032c95bfb6e953 WHIRLPOOL 7353fe852fa227dadd406cb9bd6eed315065ff781cca11d68ce1157cd7fe1917ec524e82587fe5f6b71ba234c048856f0423591d05d6349f15f1f602132e854e +EBUILD gvim-9999.ebuild 12655 SHA256 121425680c6d61c5e5f04d320b6127125a90c575d87948301760bd6414424f7e SHA512 0c204f372fc6e54d3d882dd4a7bd2b47308a19fe6597ec9954c9236b56c00aa59a26ba8aeecbb86c30cbbf258583471e2f3465fb18a996a4efae4db5289731b5 WHIRLPOOL ff5a2e963a1f12be2b807053377ced6fc8adf8f87dd9ba47d57176b64c1c9a8fa10942456cb279ec66b8a8de387da4053f1dc725afeb322388defa33aa06f6e2 +MISC ChangeLog 56629 SHA256 298aeba06f3e8e86cae2b77ec89c4a634574173c6c3cad46a761bcd686bfc9db SHA512 b93ff51fce67f0c18a0c389abeacff548cf80ea03f0166cb57856ab2288229f6864df58a67a771558e42bfac18149cf907de640270ec6aa3c0fa9a78d010ba8c WHIRLPOOL b5f0a5830b11df66be6a415d9b47c95a72bceb4d719ec53d6d9ec0174d6a2d2f6cadd5ae6ae77105c26bbbe6abf9e54198721e11f08af023d6f24951d67b8e34 MISC metadata.xml 348 SHA256 e84bf1fdb970b616d6b2fb17caf3d3f75c276e52430c58e447f8a4dbbfd60777 SHA512 619abbfed97c2bf11f32ea519ba3f0a4a7c388723e6e60fc435fef7487fec143d4f9d492281fda9fd5b2f319afc3d89a7bc21aef962038296e0e13a23ce7229d WHIRLPOOL 0d72852f58d2a0682266ab99a5582112bd95588f781db5bec3d319d5cf1e9b54ff583a622047f5cf23f4165a83b591511cef01f510314710d798d8c688de1e98 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.21 (GNU/Linux) +Version: GnuPG v2.0.22 (GNU/Linux) -iQEcBAEBCAAGBQJSUkjEAAoJEEqz6FtPBkyjfdcH/R+UBhUqUaBv2L6odIJFj9Aa -mAOQWS37UbTEkz/aOz6xUe8A+IY8VKM3uIkWWEMl5zZGqnXw3JC2NW0SQJyxX6Nn -FYw5f2BIJ3uDlFtlvyrcZiPBnNeg9KKa9v6zclmsAxJ4rGCcDvjbvuFhL0suRkQm -aG9tTJEzcBl8jj/qpBW7oylJCRKLtWVc/rz89cnDimoXVueZ4+vNE9pf7Z4shv0g -NTHGF4VYNvWQeLwWCbDVyPSnTWULZOGjhzvvFaO8dJmEc9qqbvnXj0yV62x37H6D -Pz7ubY29vY01+C+Rh8crQpziX9/RMfO9W+KiT0eMUEhN+Hpi6LwOwyUt2qeDUNA= -=RmXU +iQEcBAEBCAAGBQJSXczoAAoJEEqz6FtPBkyjg1UH/A5WoTtdw+MYiXUok4S5Rguk +rxOQOIGXhtoQlww7s8gWg3fs+Zm5ZNb1JJupNgkKsd9R5NkSQGKTykqMwbYdLLq9 +WU2kq/FCdZeC6yoMoHMclZHxArvWQ8YPFqoPKqUdW/qud5VFRN36T0NPLHz1f3g8 +4FcgSgHPOU1LgYIHk4h0T5C3MBdlyNGVKcuCeufyP35afmz+xnY6OiAAmraOrlyj +7rMB6meslQ3pekzr4eEYA/3sW6Oh23o+aDaoGaOdU6ZeohoxiUkBcivxX/vbum0O +MJyu4QpBSJzZV//AmOb5d3rOesPe7dhZrt+Yf/dEu7u/9KtYh0kkBlIk9UenslU= +=1xLe -----END PGP SIGNATURE----- diff --git a/app-editors/gvim/gvim-7.4.52.ebuild b/app-editors/gvim/gvim-7.4.52.ebuild new file mode 100644 index 000000000000..1a1f66bd3657 --- /dev/null +++ b/app-editors/gvim/gvim-7.4.52.ebuild @@ -0,0 +1,407 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-editors/gvim/gvim-7.4.52.ebuild,v 1.1 2013/10/15 23:16:55 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 prefix 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 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" +fi + +DESCRIPTION="GUI version of the Vim text editor" +HOMEPAGE="http://www.vim.org/" + +SLOT="0" +LICENSE="vim" +IUSE="acl aqua cscope debug gnome gtk lua luajit motif neXt netbeans nls perl python ruby tcl" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND="~app-editors/vim-core-${PV} + >=app-admin/eselect-vi-1.1 + >=sys-libs/ncurses-5.2-r2 + x11-libs/libXext + acl? ( kernel_linux? ( sys-apps/acl ) ) + !aqua? ( + gtk? ( + >=x11-libs/gtk+-2.6:2 + x11-libs/libXft + gnome? ( >=gnome-base/libgnomeui-2.6 ) + ) + !gtk? ( + motif? ( >=x11-libs/motif-2.3:0 ) + !motif? ( + neXt? ( x11-libs/neXtaw ) + !neXt? ( x11-libs/libXaw ) + ) + ) + ) + cscope? ( dev-util/cscope ) + lua? ( + luajit? ( dev-lang/luajit ) + !luajit? ( dev-lang/lua ) + ) + nls? ( virtual/libintl ) + perl? ( dev-lang/perl ) + python? ( ${PYTHON_DEPS} ) + ruby? ( || ( dev-lang/ruby:2.0 dev-lang/ruby:1.9 dev-lang/ruby:1.8 ) ) + tcl? ( dev-lang/tcl )" +DEPEND="${RDEPEND} + >=app-admin/eselect-vi-1.1 + dev-util/ctags + sys-devel/autoconf + virtual/pkgconfig + 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 + + if [[ -d "${WORKDIR}"/gentoo/patches-core/ ]]; then + # Patches for vim-core only (runtime/*) + EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" \ + epatch "${WORKDIR}"/gentoo/patches-core/ + 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 + + # 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 + + use debug && append-flags "-DDEBUG" + + myconf="--with-features=huge --disable-gpm --enable-multibyte" + myconf+=" $(use_enable acl)" + myconf+=" $(use_enable cscope)" + 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 + + # 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 + + # gvim's GUI preference order is as follows: + # aqua CARBON (not tested) + # -aqua gtk gnome GNOME2 + # -aqua gtk -gnome GTK2 + # -aqua -gtk motif MOTIF + # -aqua -gtk -motif neXt NEXTAW + # -aqua -gtk -motif -neXt ATHENA + echo ; echo + if use aqua ; then + einfo "Building gvim with the Carbon GUI" + myconf+=" --enable-darwin --enable-gui=carbon" + elif use gtk ; then + myconf+=" --enable-gtk2-check" + if use gnome ; then + einfo "Building gvim with the Gnome 2 GUI" + myconf+=" --enable-gui=gnome2" + else + einfo "Building gvim with the gtk+-2 GUI" + myconf+=" --enable-gui=gtk2" + fi + elif use motif ; then + einfo "Building gvim with the MOTIF GUI" + myconf+=" --enable-gui=motif" + elif use neXt ; then + einfo "Building gvim with the neXtaw GUI" + myconf+=" --enable-gui=nextaw" + else + einfo "Building gvim with the Athena GUI" + myconf+=" --enable-gui=athena" + fi + echo ; echo + + # 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" + + if [[ ${CHOST} == *-interix* ]]; then + # avoid finding of this function, to avoid having to patch either + # configure or the source, which would be much more hackish. + # after all vim does it right, only interix is badly broken (again) + export ac_cv_func_sigaction=no + fi + + econf \ + --with-modified-by=Gentoo-${PVR} \ + --with-vim-name=gvim --with-x \ + --disable-selinux \ + $(use_enable lua luainterp) \ + $(use_with luajit) \ + $(use_enable netbeans) \ + $(use_enable ruby rubyinterp) \ + $(use_enable tcl tclinterp) \ + ${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 + + # Make gvim not try to connect to X. See :help gui-x11-start + # in vim for how this evil trickery works. + ln -s "${S}"/src/gvim "${S}"/src/testvim + + # Don't try to do the additional GUI test + emake -j1 VIMPROG=../testvim 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/.} + + dobin src/gvim + dosym gvim /usr/bin/gvimdiff + dosym gvim /usr/bin/evim + dosym gvim /usr/bin/eview + dosym gvim /usr/bin/gview + dosym gvim /usr/bin/rgvim + dosym gvim /usr/bin/rgview + + dodir /usr/share/man/man1 + echo ".so vim.1" > "${ED}"/usr/share/man/man1/gvim.1 + echo ".so vim.1" > "${ED}"/usr/share/man/man1/gview.1 + echo ".so vimdiff.1" > "${ED}"/usr/share/man/man1/gvimdiff.1 + + insinto /etc/vim + newins "${FILESDIR}"/gvimrc-r1 gvimrc + eprefixify "${ED}"/etc/vim/gvimrc + + insinto /usr/share/applications + newins "${FILESDIR}"/gvim.desktop-r2 gvim.desktop + insinto /usr/share/pixmaps + doins "${FILESDIR}"/gvim.xpm + + # bash completion script, bug #79018. + 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 + + # Update fdo mime stuff, bug #78394 + fdo-mime_mime_database_update + + if [[ -z ${REPLACING_VERSIONS} ]] ; then + 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 + fi + + echo + einfo "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 + + # Update fdo mime stuff, bug #78394 + fdo-mime_mime_database_update + + # Make convenience symlinks + update_vim_symlinks +} diff --git a/app-editors/gvim/gvim-9999.ebuild b/app-editors/gvim/gvim-9999.ebuild index a2ce41fee917..ad6779e4e657 100644 --- a/app-editors/gvim/gvim-9999.ebuild +++ b/app-editors/gvim/gvim-9999.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/gvim/gvim-9999.ebuild,v 1.8 2013/10/07 05:38:10 radhermit Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-editors/gvim/gvim-9999.ebuild,v 1.9 2013/10/15 23:16:55 radhermit Exp $ EAPI=5 VIM_VERSION="7.4" @@ -25,7 +25,7 @@ HOMEPAGE="http://www.vim.org/" SLOT="0" LICENSE="vim" -IUSE="acl aqua cscope debug gnome gtk lua luajit motif neXt netbeans nls perl python ruby" +IUSE="acl aqua cscope debug gnome gtk lua luajit motif neXt netbeans nls perl python ruby tcl" REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" RDEPEND="~app-editors/vim-core-${PV} @@ -55,7 +55,8 @@ RDEPEND="~app-editors/vim-core-${PV} nls? ( virtual/libintl ) perl? ( dev-lang/perl ) python? ( ${PYTHON_DEPS} ) - ruby? ( || ( dev-lang/ruby:2.0 dev-lang/ruby:1.9 dev-lang/ruby:1.8 ) )" + ruby? ( || ( dev-lang/ruby:2.0 dev-lang/ruby:1.9 dev-lang/ruby:1.8 ) ) + tcl? ( dev-lang/tcl )" DEPEND="${RDEPEND} >=app-admin/eselect-vi-1.1 dev-util/ctags @@ -254,6 +255,7 @@ src_configure() { $(use_with luajit) \ $(use_enable netbeans) \ $(use_enable ruby rubyinterp) \ + $(use_enable tcl tclinterp) \ ${myconf} } |