blob: 855820dd1bc38357b9410b89e8d0104c9b17c0fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
# 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-r4.ebuild,v 1.6 2002/12/15 12:35:24 bjb Exp $
VIMPATCH="vimpatch-1-263.tar.bz2"
inherit vim
DESCRIPTION="graphical vim"
KEYWORDS="~x86 ~alpha"
DEPEND="dev-util/cscope
>=sys-libs/ncurses-5.2-r2
sys-libs/libtermcap-compat
app-editors/vim-core
x11-base/xfree
gpm? ( >=sys-libs/gpm-1.19.3 )
gnome? ( gnome-base/gnome-libs )
gtk? ( =x11-libs/gtk+-1.2* )
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_compile() {
#default myconf options added by ZhEN on 11/20/02 for unicode support
local myconf="--with-features=big --enable-multibyte"
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"
# move config files to /etc/vim/
echo "#define SYS_VIMRC_FILE \"/etc/vim/vimrc\"" \
>>${WORKDIR}/vim61/src/feature.h
echo "#define SYS_GVIMRC_FILE \"/etc/vim/gvimrc\"" \
>>${WORKDIR}/vim61/src/feature.h
# 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 /etc/vim/
doins ${FILESDIR}/gvimrc
}
#added by ZhEN 11/20/02 for unicode
pkg_postinst() {
einfo
einfo "To enable UTF-8 viewing, set guifont and guifontwide: "
einfo ":set guifont=-misc-fixed-medium-r-normal-*-18-120-100-100-c-90-iso10646-1"
einfo ":set guifontwide=-misc-fixed-medium-r-normal-*-18-120-100-100-c-180-iso10646-1"
einfo
einfo "note: to find out which fonts you can use, please read the UTF-8 help:"
einfo ":h utf-8"
einfo
einfo "Then, set read encoding to UTF-8:"
einfo ":set encoding=utf-8"
einfo
}
|