blob: 2d11780fd433543fa0e9be6d0f90b33e86da0679 (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/elvis/elvis-2.1.4-r1.ebuild,v 1.17 2003/10/01 11:39:33 aliz Exp $
inherit eutils
MY_P="${PN}-2.1_4"
S=${WORKDIR}/${MY_P}
DESCRIPTION="A vi/ex clone"
HOMEPAGE="ftp://ftp.cs.pdx.edu/pub/elvis/"
SRC_URI="ftp://ftp.cs.pdx.edu/pub/elvis/${MY_P}.tar.gz"
LICENSE="Artistic"
SLOT="0"
KEYWORDS="x86 ppc sparc alpha amd64"
IUSE="X"
DEPEND=">=sys-libs/ncurses-5.2
X? ( virtual/x11 )"
PROVIDE="virtual/editor"
src_unpack() {
unpack ${A}
cd ${S}
# Fix bug 20864 using patch from FreeBSD port.
# http://www.freshports.org/editors/elvis/
epatch ${FILESDIR}/elvis-2.1.4-keysym.patch || die "epatch failed"
}
src_compile() {
local myconf
use X \
&& myconf="--with-x" \
|| myconf="--without-x"
./configure \
--bindir=${D}/usr/bin \
--datadir=${D}/usr/share/elvis \
${myconf} || die
cp Makefile Makefile.orig
sed -e "s:gcc -O2:gcc ${CFLAGS}:" Makefile.orig > Makefile
cp config.h config.h.orig
sed -e "s:${D}/usr/share/elvis:/usr/share/elvis:" config.h.orig > config.h
make || die
}
src_install() {
sed -i -e "s:/usr/man:${D}/usr/share/man:g" instman.sh
sed -i -e "s:^xinc=.*$:xinc=${D}/usr/include:" \
-e "s:^xlib=.*$:xlib=${D}/usr/lib:" \
insticon.sh
dodir /usr/bin
dodir /usr/share/man/man1
make install || die
}
|