Added vim ebuilds that support the vim eclass
authorRyan Phillips <rphillips@gentoo.org>
Sun, 27 Oct 2002 22:52:30 +0000 (22:52 +0000)
committerRyan Phillips <rphillips@gentoo.org>
Sun, 27 Oct 2002 22:52:30 +0000 (22:52 +0000)
app-editors/gvim/ChangeLog
app-editors/gvim/files/digest-gvim-6.1-r3 [new file with mode: 0644]
app-editors/gvim/gvim-6.1-r3.ebuild [new file with mode: 0644]
app-editors/vim-core/ChangeLog
app-editors/vim-core/files/digest-vim-core-6.1-r3 [new file with mode: 0644]
app-editors/vim-core/vim-core-6.1-r3.ebuild [new file with mode: 0644]
app-editors/vim/ChangeLog
app-editors/vim/files/digest-vim-6.1-r16 [new file with mode: 0644]
app-editors/vim/vim-6.1-r16.ebuild [new file with mode: 0644]

index 33ed86cedba9c7ed615a52fad950488d46a90fbb..2fbe8c58926ca8842dd35bb5be3d3d0771b47caf 100644 (file)
@@ -1,6 +1,6 @@
 # ChangeLog for app-editors/gvim
 # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-editors/gvim/ChangeLog,v 1.4 2002/10/09 05:19:11 rphillips Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/gvim/ChangeLog,v 1.5 2002/10/27 22:52:29 rphillips Exp $
 
   16 Sep 2002; Hannes Mehnert <hannes@gentoo.org> gvim-6.1.ebuild:
   added dependency app-editors/vim-core
@@ -8,9 +8,15 @@
   14 Sep 2002; Hannes Mehnert <hannes@gentoo.org> gvim-6.1.ebuild:
   commited wrong ebuild (wrong dependencies), corrected now)
 
-*gvim-6.1-r15.ebuild (8 Oct 2002)
+*gvim-6.1-r3.ebuild (27 Oct 2002)
 
-  8 Oct 2002; Ryan Phillips <rphillips@gentoo.org> gvim-6.1-r15.ebuild :
+  27 Oct 2002; Ryan Phillips <rphillips@gentoo.org> gvim-6.1-r3.ebuild :
+
+  Added vim eclass support
+
+*gvim-6.1-r2.ebuild (8 Oct 2002)
+
+  8 Oct 2002; Ryan Phillips <rphillips@gentoo.org> gvim-6.1-r2.ebuild :
 
   Added patches 201-215.  Appears my crashing bug that appeared on my
   computer has been fixed.
diff --git a/app-editors/gvim/files/digest-gvim-6.1-r3 b/app-editors/gvim/files/digest-gvim-6.1-r3
new file mode 100644 (file)
index 0000000..bb72db2
--- /dev/null
@@ -0,0 +1,2 @@
+MD5 7fd0f915adc7c0dab89772884268b030 vim-6.1.tar.bz2 2890049
+MD5 3b5a00da4fec4f3e5cbd3fba9940d153 vimpatch-1-213.tar.bz2 158015
diff --git a/app-editors/gvim/gvim-6.1-r3.ebuild b/app-editors/gvim/gvim-6.1-r3.ebuild
new file mode 100644 (file)
index 0000000..7858a20
--- /dev/null
@@ -0,0 +1,49 @@
+# Copyright 2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/app-editors/gvim/gvim-6.1-r3.ebuild,v 1.1 2002/10/27 22:52:29 rphillips Exp $
+
+inherit vim
+DESCRIPTION="graphical vim"
+
+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"
+
+       if use gnome; then
+               guiconf="--enable-gui=gnome --with-x"
+       elif use gtk; then
+               guiconf="--enable-gui=gtk --with-x"
+       else
+               guiconf="--enable-gui=athena --with-x"
+       fi
+       
+       # This should fix a sandbox violation. 
+       addwrite /dev/pty/*
+       
+       if [ -n "$guiconf" ]; then
+               ./configure \
+                       --prefix=/usr --mandir=/usr/share/man --host=$CHOST \
+                       --with-features=huge --enable-cscope $myconf $guiconf \
+                       --with-vim-name=gvim || die "gvim configure failed"
+               # Parallel make does not work
+               make || die "gvim make failed"
+       fi
+}
+
+src_install() {
+       dobin src/gvim
+       ln -s gvim ${D}/usr/bin/gvimdiff
+       # Default gvimrc
+       insinto /usr/share/vim
+       doins ${FILESDIR}/gvimrc
+}
index 7c4518351620518bdf526560aaa7674835c1d904..870dae43c5c71b5b408d877916b52fa81dff741c 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for app-editors/vim-core
 # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-editors/vim-core/ChangeLog,v 1.3 2002/10/09 05:20:54 rphillips Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/vim-core/ChangeLog,v 1.4 2002/10/27 22:52:29 rphillips Exp $
+
+*vim-core-6.1-r3 (27 Oct 2002)
+
+  27 Oct 2002; Ryan Phillips <rphillips@gentoo.org> vim-core-6.1-r3.ebuild :
+
+  Added vim eclass support
 
 *vim-core-6.1-r2 (8 Oct 2002)
 
diff --git a/app-editors/vim-core/files/digest-vim-core-6.1-r3 b/app-editors/vim-core/files/digest-vim-core-6.1-r3
new file mode 100644 (file)
index 0000000..bb72db2
--- /dev/null
@@ -0,0 +1,2 @@
+MD5 7fd0f915adc7c0dab89772884268b030 vim-6.1.tar.bz2 2890049
+MD5 3b5a00da4fec4f3e5cbd3fba9940d153 vimpatch-1-213.tar.bz2 158015
diff --git a/app-editors/vim-core/vim-core-6.1-r3.ebuild b/app-editors/vim-core/vim-core-6.1-r3.ebuild
new file mode 100644 (file)
index 0000000..84cd053
--- /dev/null
@@ -0,0 +1,55 @@
+# Copyright 2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/app-editors/vim-core/vim-core-6.1-r3.ebuild,v 1.1 2002/10/27 22:52:29 rphillips Exp $
+
+inherit vim
+DESCRIPTION="vim, gvim and kvim shared files"
+
+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"
+
+       # This should fix a sandbox violation. 
+       addwrite /dev/pty/*
+       
+       #
+       # 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 \
+               || die "vim configure failed"
+       # Parallel make does not work
+       make || die "vim make failed"
+       cd ${S}
+       rm src/vim
+}
+
+src_install() {
+       mkdir -p $D/usr/{bin,share/man/man1,share/vim}
+       cd src
+       make installruntime installhelplinks installmacros installtutor installtools install-languages install-icons DESTDIR=$D \
+               BINDIR=/usr/bin MANDIR=/usr/share/man DATADIR=/usr/share
+       # Docs
+       dodoc README*
+       cd $D/usr/share/doc/$PF
+       ln -s ../../vim/*/doc $P
+
+       #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
+}
+
index d7296d5897041b4b79417e33788665f0cf03c083..63b8434b65d0b530aa1c2e3ba5f2adea9a6e32b5 100644 (file)
@@ -1,6 +1,12 @@
 # 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.23 2002/10/09 05:17:35 rphillips Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/vim/ChangeLog,v 1.24 2002/10/27 22:52:29 rphillips Exp $
+
+*vim-6.1-r16.ebuild (27 Oct 2002)
+
+  27 Oct 2002; Ryan Phillips <rphillips@gentoo.org> vim-6.1-r16.ebuild :
+
+  Added vim eclass support
 
 *vim-6.1-r15.ebuild (8 Oct 2002)
 
diff --git a/app-editors/vim/files/digest-vim-6.1-r16 b/app-editors/vim/files/digest-vim-6.1-r16
new file mode 100644 (file)
index 0000000..bb72db2
--- /dev/null
@@ -0,0 +1,2 @@
+MD5 7fd0f915adc7c0dab89772884268b030 vim-6.1.tar.bz2 2890049
+MD5 3b5a00da4fec4f3e5cbd3fba9940d153 vimpatch-1-213.tar.bz2 158015
diff --git a/app-editors/vim/vim-6.1-r16.ebuild b/app-editors/vim/vim-6.1-r16.ebuild
new file mode 100644 (file)
index 0000000..adf356f
--- /dev/null
@@ -0,0 +1,51 @@
+# Copyright 2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-editors/vim/vim-6.1-r16.ebuild,v 1.1 2002/10/27 22:52:29 rphillips Exp $
+
+inherit vim
+
+DESCRIPTION="Vi IMproved!"
+
+src_compile() {
+       local myconf
+       myconf="--without-x"
+       use nls    && myconf="$myconf --enable-multibyte"
+       use nls    || myconf="$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"
+
+       # This should fix a sandbox violation. 
+       addwrite "${SSH_TTY}"
+       
+       #
+       # 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 \
+               || die "vim configure failed"
+       # Parallel make does not work
+       make || die "vim make failed"
+}
+
+src_install() {
+       dobin src/vim
+       ln -s vim ${D}/usr/bin/vimdiff
+       # Default vimrc
+       insinto /usr/share/vim
+       doins ${FILESDIR}/vimrc
+}
+
+pkg_postinst() {
+       einfo ""
+       einfo "gvim has now a seperate ebuild, 'emerge gvim' will install gvim"
+}