summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Nazaroff <naz@gentoo.org>2002-07-06 18:28:04 +0000
committerMichael Nazaroff <naz@gentoo.org>2002-07-06 18:28:04 +0000
commit4c8dde08cc986a2c1d3adfaa4a00cc6e4c497fd7 (patch)
tree9f836568ae9bc9010c7ec7222d670247f593dba5 /app-editors/vim
parentadded vim license (diff)
downloadgentoo-2-4c8dde08cc986a2c1d3adfaa4a00cc6e4c497fd7.tar.gz
gentoo-2-4c8dde08cc986a2c1d3adfaa4a00cc6e4c497fd7.tar.bz2
gentoo-2-4c8dde08cc986a2c1d3adfaa4a00cc6e4c497fd7.zip
Fixed bug 3038 and added back gpm support for vim.
Diffstat (limited to 'app-editors/vim')
-rw-r--r--app-editors/vim/ChangeLog11
-rw-r--r--app-editors/vim/files/digest-vim-6.1-r81
-rw-r--r--app-editors/vim/files/vimpatch.tar.bz2bin0 -> 3116 bytes
-rw-r--r--app-editors/vim/vim-6.1-r1.ebuild3
-rw-r--r--app-editors/vim/vim-6.1-r2.ebuild3
-rw-r--r--app-editors/vim/vim-6.1-r3.ebuild3
-rw-r--r--app-editors/vim/vim-6.1-r4.ebuild3
-rw-r--r--app-editors/vim/vim-6.1-r5.ebuild3
-rw-r--r--app-editors/vim/vim-6.1-r6.ebuild3
-rw-r--r--app-editors/vim/vim-6.1-r7.ebuild3
-rw-r--r--app-editors/vim/vim-6.1-r8.ebuild192
11 files changed, 217 insertions, 8 deletions
diff --git a/app-editors/vim/ChangeLog b/app-editors/vim/ChangeLog
index 010b687884a8..5657c27ac905 100644
--- a/app-editors/vim/ChangeLog
+++ b/app-editors/vim/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for app-editors/vim
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/app-editors/vim/ChangeLog,v 1.12 2002/05/28 00:28:22 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/vim/ChangeLog,v 1.13 2002/07/06 18:28:03 naz Exp $
+
+vim-6.1-r8.ebuild (06 Jul 2002)
+
+ 06 Jul 2002; Michael Nazaroff <naz@gentoo.org> vim-6.1-r8.ebuild :
+
+ Added back gpm support, since gpm should now be fixed. I also added a
+ addpredict line to hopefully remove those sandbox violations we where
+ occasionally getting. Also added a few more misc patch's. I also added
+ LICENSE lines to all of the ebuilds.
*vim-6.1-r7 (27 May 2002)
diff --git a/app-editors/vim/files/digest-vim-6.1-r8 b/app-editors/vim/files/digest-vim-6.1-r8
new file mode 100644
index 000000000000..db4a28a83cb1
--- /dev/null
+++ b/app-editors/vim/files/digest-vim-6.1-r8
@@ -0,0 +1 @@
+MD5 7fd0f915adc7c0dab89772884268b030 vim-6.1.tar.bz2 2890049
diff --git a/app-editors/vim/files/vimpatch.tar.bz2 b/app-editors/vim/files/vimpatch.tar.bz2
new file mode 100644
index 000000000000..f150f41bbfeb
--- /dev/null
+++ b/app-editors/vim/files/vimpatch.tar.bz2
Binary files differ
diff --git a/app-editors/vim/vim-6.1-r1.ebuild b/app-editors/vim/vim-6.1-r1.ebuild
index 847a4e3f9013..c903b2ff6d2b 100644
--- a/app-editors/vim/vim-6.1-r1.ebuild
+++ b/app-editors/vim/vim-6.1-r1.ebuild
@@ -1,7 +1,7 @@
# Copyright 2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: Aron Griffis <agriffis@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/app-editors/vim/vim-6.1-r1.ebuild,v 1.2 2002/05/23 06:50:09 seemant Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/vim/vim-6.1-r1.ebuild,v 1.3 2002/07/06 18:28:03 naz Exp $
# Please name the ebuild as follows. If this is followed, there
# should be no need to modify this ebuild when the Vim version is
@@ -55,6 +55,7 @@ fi
DESCRIPTION="Vi IMproved!"
HOMEPAGE="http://www.vim.org/"
+LICENSE="vim"
DEPEND="virtual/glibc
>=sys-libs/ncurses-5.2-r2
diff --git a/app-editors/vim/vim-6.1-r2.ebuild b/app-editors/vim/vim-6.1-r2.ebuild
index eae4837fb720..7bd9025982ca 100644
--- a/app-editors/vim/vim-6.1-r2.ebuild
+++ b/app-editors/vim/vim-6.1-r2.ebuild
@@ -1,7 +1,7 @@
# Copyright 2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: Aron Griffis <agriffis@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/app-editors/vim/vim-6.1-r2.ebuild,v 1.2 2002/05/23 06:50:09 seemant Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/vim/vim-6.1-r2.ebuild,v 1.3 2002/07/06 18:28:03 naz Exp $
# Please name the ebuild as follows. If this is followed, there
# should be no need to modify this ebuild when the Vim version is
@@ -55,6 +55,7 @@ fi
DESCRIPTION="Vi IMproved!"
HOMEPAGE="http://www.vim.org/"
+LICENSE="vim"
DEPEND="virtual/glibc
>=sys-libs/ncurses-5.2-r2
diff --git a/app-editors/vim/vim-6.1-r3.ebuild b/app-editors/vim/vim-6.1-r3.ebuild
index 0b8da5ca0671..a6717d0a3e0e 100644
--- a/app-editors/vim/vim-6.1-r3.ebuild
+++ b/app-editors/vim/vim-6.1-r3.ebuild
@@ -1,7 +1,7 @@
# Copyright 2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: Aron Griffis <agriffis@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/app-editors/vim/vim-6.1-r3.ebuild,v 1.2 2002/05/23 06:50:09 seemant Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/vim/vim-6.1-r3.ebuild,v 1.3 2002/07/06 18:28:03 naz Exp $
# Please name the ebuild as follows. If this is followed, there
# should be no need to modify this ebuild when the Vim version is
@@ -55,6 +55,7 @@ fi
DESCRIPTION="Vi IMproved!"
HOMEPAGE="http://www.vim.org/"
+LICENSE="vim"
DEPEND="virtual/glibc
>=sys-libs/ncurses-5.2-r2
diff --git a/app-editors/vim/vim-6.1-r4.ebuild b/app-editors/vim/vim-6.1-r4.ebuild
index 84c0150d1d7f..aceddd7cf774 100644
--- a/app-editors/vim/vim-6.1-r4.ebuild
+++ b/app-editors/vim/vim-6.1-r4.ebuild
@@ -1,7 +1,7 @@
# Copyright 2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: Aron Griffis <agriffis@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/app-editors/vim/vim-6.1-r4.ebuild,v 1.2 2002/05/23 06:50:09 seemant Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/vim/vim-6.1-r4.ebuild,v 1.3 2002/07/06 18:28:03 naz Exp $
# Please name the ebuild as follows. If this is followed, there
# should be no need to modify this ebuild when the Vim version is
@@ -55,6 +55,7 @@ fi
DESCRIPTION="Vi IMproved!"
HOMEPAGE="http://www.vim.org/"
+LICENSE="vim"
DEPEND="virtual/glibc
>=sys-libs/ncurses-5.2-r2
diff --git a/app-editors/vim/vim-6.1-r5.ebuild b/app-editors/vim/vim-6.1-r5.ebuild
index 6161ac7f56eb..c6b649a48e24 100644
--- a/app-editors/vim/vim-6.1-r5.ebuild
+++ b/app-editors/vim/vim-6.1-r5.ebuild
@@ -1,7 +1,7 @@
# Copyright 2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: Aron Griffis <agriffis@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/app-editors/vim/vim-6.1-r5.ebuild,v 1.5 2002/05/23 06:50:09 seemant Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/vim/vim-6.1-r5.ebuild,v 1.6 2002/07/06 18:28:04 naz Exp $
# Please name the ebuild as follows. If this is followed, there
# should be no need to modify this ebuild when the Vim version is
@@ -55,6 +55,7 @@ fi
DESCRIPTION="Vi IMproved!"
HOMEPAGE="http://www.vim.org/"
+LICENSE="vim"
DEPEND="virtual/glibc
>=sys-libs/ncurses-5.2-r2
diff --git a/app-editors/vim/vim-6.1-r6.ebuild b/app-editors/vim/vim-6.1-r6.ebuild
index 2705400698fa..e864879233e6 100644
--- a/app-editors/vim/vim-6.1-r6.ebuild
+++ b/app-editors/vim/vim-6.1-r6.ebuild
@@ -1,7 +1,7 @@
# Copyright 2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: Aron Griffis <agriffis@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/app-editors/vim/vim-6.1-r6.ebuild,v 1.2 2002/05/23 06:50:09 seemant Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/vim/vim-6.1-r6.ebuild,v 1.3 2002/07/06 18:28:04 naz Exp $
# Please name the ebuild as follows. If this is followed, there
# should be no need to modify this ebuild when the Vim version is
@@ -55,6 +55,7 @@ fi
DESCRIPTION="Vi IMproved!"
HOMEPAGE="http://www.vim.org/"
+LICENSE="vim"
DEPEND="virtual/glibc
>=sys-libs/ncurses-5.2-r2
diff --git a/app-editors/vim/vim-6.1-r7.ebuild b/app-editors/vim/vim-6.1-r7.ebuild
index 6a7a4026cd4c..6d1515d1644b 100644
--- a/app-editors/vim/vim-6.1-r7.ebuild
+++ b/app-editors/vim/vim-6.1-r7.ebuild
@@ -1,7 +1,7 @@
# Copyright 2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: Aron Griffis <agriffis@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/app-editors/vim/vim-6.1-r7.ebuild,v 1.1 2002/05/28 00:28:22 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/vim/vim-6.1-r7.ebuild,v 1.2 2002/07/06 18:28:04 naz Exp $
# Please name the ebuild as follows. If this is followed, there
# should be no need to modify this ebuild when the Vim version is
@@ -55,6 +55,7 @@ fi
DESCRIPTION="Vi IMproved!"
HOMEPAGE="http://www.vim.org/"
+LICENSE="vim"
DEPEND="virtual/glibc
>=sys-libs/ncurses-5.2-r2
diff --git a/app-editors/vim/vim-6.1-r8.ebuild b/app-editors/vim/vim-6.1-r8.ebuild
new file mode 100644
index 000000000000..52abe6133697
--- /dev/null
+++ b/app-editors/vim/vim-6.1-r8.ebuild
@@ -0,0 +1,192 @@
+# Copyright 2001 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Maintainer: Aron Griffis <agriffis@gentoo.org>
+# $Header: /var/cvsroot/gentoo-x86/app-editors/vim/vim-6.1-r8.ebuild,v 1.1 2002/07/06 18:28:04 naz Exp $
+
+# Please name the ebuild as follows. If this is followed, there
+# should be no need to modify this ebuild when the Vim version is
+# updated. (Yes it's overkill, but it was fun!)
+#
+# vim-6.0, when 6.0 is finally released
+# vim-6.0_pre9, where 9 = (i), for vim-6.0i
+# vim-6.0_pre47, where 47 = 26(a) + 21(u), for vim-6.0au
+# vim-6.0_pre72, where 72 = 52(b) + 20(t), for vim-6.0bt
+#
+# Quick reference:
+# a=1 e=5 i=9 m=13 q=17 u=21 y=25
+# b=2 f=6 j=10 n=14 r=18 v=22 z=26
+# c=3 g=7 k=11 o=15 s=19 w=23 aa=27
+# d=4 h=8 l=12 p=16 t=20 x=24 ab=28 (etc.)
+#
+# (08 Sep 2001 agriffis)
+
+# Calculate the version based on the name of the ebuild
+vim_version="${PV%_pre*}"
+vim_pre="${PV##*_pre}"
+if [ "$vim_version" = "$vim_pre" ]; then
+ # Final releases prior to 6.0 include a dash and decimal point in
+ # the directory name
+ if [ "${vim_version%%.*}" -lt 6 ]; then
+ S="$WORKDIR/vim-$vim_version"
+ else
+ S="$WORKDIR/vim${vim_version//.}"
+ fi
+ vim_letters=
+ A="vim-$vim_version.tar.bz2"
+ SRC_URI="ftp://ftp.vim.org/pub/vim/unix/$A
+ ftp://ftp.us.vim.org/pub/vim/unix/$A"
+elif [ "$vim_pre" -lt 27 ]; then
+ # Handle (prerelease) versions with one trailing letter
+ vim_letters=`echo $vim_pre | awk '{printf "%c", $0+96}'`
+ S="$WORKDIR/vim${vim_version//.}$vim_letters"
+ A="vim-$vim_version$vim_letters.tar.bz2"
+ SRC_URI="ftp://ftp.vim.org/pub/vim/unreleased/unix/$A
+ ftp://ftp.us.vim.org/pub/vim/unreleased/unix/$A"
+elif [ "$vim_pre" -lt 703 ]; then
+ # Handle (prerelease) versions with two trailing letters
+ vim_letters=`echo $vim_pre | awk '{printf "%c%c", $0/26+96, $0%26+96}'`
+ S="$WORKDIR/vim${vim_version//.}$vim_letters"
+ A="vim-$vim_version$vim_letters.tar.bz2"
+ SRC_URI="ftp://ftp.vim.org/pub/vim/unreleased/unix/$A
+ ftp://ftp.us.vim.org/pub/vim/unreleased/unix/$A"
+else
+ die "Eek! I don't know how to interpret the version!"
+fi
+
+DESCRIPTION="Vi IMproved!"
+HOMEPAGE="http://www.vim.org/"
+LICENSE="vim"
+
+DEPEND="virtual/glibc
+ >=sys-libs/ncurses-5.2-r2
+ dev-util/cscope
+ >=sys-apps/portage-1.8.18
+ gpm? ( >=sys-libs/gpm-1.19.3 )
+ gnome? ( >=gnome-base/gnome-libs-1.4.1.2-r1 )
+ gtk? ( =x11-libs/gtk+-1.2* )
+ X? ( x11-base/xfree )
+ perl? ( sys-devel/perl )
+ python? ( dev-lang/python )
+ ruby? ( >=dev-lang/ruby-1.6.4 )"
+# tcltk? ( dev-lang/tcl )"
+# It appears that the tclinterp stuff in Vim is broken right now (at
+# least on Linux... it works on BSD). When you --enable-tclinterp
+# flag, then the following command never returns:
+#
+# VIMINIT='let OS = system("uname -s")' vim
+#
+# Please don't re-enable the tclinterp flag without verifying first
+# that the above works. Thanks. (08 Sep 2001 agriffis)
+
+src_unpack() {
+ unpack $A
+ # Fixup a script to use awk instead of nawk
+ cd $S/runtime/tools
+ mv mve.awk mve.awk.old
+ ( read l; echo "#!/usr/bin/awk -f"; cat ) <mve.awk.old >mve.awk
+ # Another set of patch's borrowed from src rpm to fix syntax error's etc.
+ cd ${WORKDIR}
+ tar xvjf ${FILESDIR}/vimpatch.tar.bz2
+ cd $S
+ patch -p1 < ${WORKDIR}/vim-4.2-speed_t.patch || die
+ patch -p1 < ${WORKDIR}/vim-5.1-vimnotvi.patch || die
+ patch -p1 < ${WORKDIR}/vim-5.6a-paths.patch || die
+ patch -p1 < ${WORKDIR}/vim-6.0-fixkeys.patch || die
+ patch -p1 < ${WORKDIR}/vim-6.0-gcc31.patch || die
+ patch -p1 < ${WORKDIR}/vim-6.0-specsyntax.patch || die
+ patch -p1 < ${WORKDIR}/vim-6.0r-crv.patch || die
+
+ # Apply any patches available for this version
+ local patches=`echo $FILESDIR/$PV.[0-9][0-9][0-9]`
+ case "$patches" in
+ *\])
+ ;; # globbing didn't work; no patches available
+ *)
+ cd $S
+ for a in $patches; do
+ patch -p0 < $a
+ done
+ ;;
+ esac
+ # Also apply the ebuild syntax patch, until this is in Vim proper
+ cd $S/runtime
+ patch -f -p0 < ${FILESDIR}/ebuild.patch
+}
+
+src_compile() {
+
+ local myconf
+ use nls && myconf="--enable-multibyte" || myconf="--disable-nls"
+ use perl && myconf="$myconf --enable-perlinterp"
+ use python && myconf="$myconf --enable-pythoninterp"
+ use ruby && myconf="$myconf --enable-rubyinterp"
+
+# tclinterp is BROKEN. See note above DEPEND=
+# use tcltk && myconf="$myconf --enable-tclinterp"
+
+# Added back gpm for temporary will remove if necessary, I think that I have
+# fixed most of gpm so it should be fine.
+ use gpm || myconf="$myconf --disable-gpm"
+
+ #
+ # First, build a gui version, this will install as /usr/bin/gvim
+ #
+ if use gnome; then
+ guiconf="--enable-gui=gnome --with-x"
+ elif use gtk; then
+ guiconf="--enable-gui=gtk --with-x"
+ elif use X; then
+ guiconf="--enable-gui=athena --with-x"
+ else
+ # No gui version will be built
+ guiconf=""
+ fi
+
+ # This should fix a sandbox violation.
+ addpredict /dev/ptys/*
+
+ if [ -n "$guiconf" ]; then
+ ./configure \
+ --prefix=/usr --mandir=/usr/share/man --host=$CHOST \
+ --with-features=huge --enable-cscope $myconf $guiconf \
+ || die "gvim configure failed"
+ # Parallel make does not work
+ make || die "gvim make failed"
+ mv src/vim src/gvim
+ fi
+
+ #
+ # Second, build a nogui version, this will install as /usr/bin/vim
+ #
+ ./configure \
+ --prefix=/usr --mandir=/usr/share/man --host=$CHOST \
+ --with-features=huge --with-cscope $myconf \
+ --enable-gui=no --without-x \
+ || die "vim configure failed"
+ # Parallel make does not work
+ make || die "vim make failed"
+}
+
+src_install() {
+ # Install the nogui version
+ mkdir -p $D/usr/{bin,share/man/man1,share/vim}
+ make install STRIP=true DESTDIR=$D \
+ BINDIR=/usr/bin MANDIR=/usr/share/man DATADIR=/usr/share
+ # Install the gui version, if it was built
+ if [ -f src/gvim ]; then
+ install -m755 src/gvim $D/usr/bin/gvim
+ ln -s gvim $D/usr/bin/gvimdiff
+ fi
+ # Docs
+ dodoc README*
+ cd $D/usr/share/doc/$PF
+ ln -s ../../vim/*/doc $P
+ # Default vimrc and gvimrc (who cares if gvim wasn't built)
+ insinto /usr/share/vim
+ doins ${FILESDIR}/vimrc ${FILESDIR}/gvimrc
+
+ #fix problems with vim not finding its data files.
+ dodir /etc/env.d
+ echo "VIMRUNTIME=/usr/share/vim/vim${vim_version/.}" \
+ >${D}/etc/env.d/40vim
+}