blob: 58ee2f5d9cc51f783bf5b48d8c1cca8d0e8aab65 (
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
|
# Copyright 1999-2002 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.ebuild,v 1.7 2002/10/04 04:04:58 vapier Exp $
S=${WORKDIR}/elvis-2.1_4
DESCRIPTION="A vi/ex clone"
SRC_URI="ftp://ftp.cs.pdx.edu/pub/${PN}/${PN}-2.1_4.tar.gz"
HOMEPAGE="ftp://ftp.cs.pdx.edu/pub/elvis/"
DEPEND="virtual/glibc
>=sys-libs/ncurses-5.2
X? ( virtual/x11 )"
RDEPEND=""
SLOT="0"
LICENSE="Artistic"
KEYWORDS="x86 ppc sparc sparc64"
src_compile() {
local myconf
if [ "`use X`" ]; then
mconf="--with-x"
else
mconf="--without-x"
fi
./configure --bindir=${D}/usr/bin --datadir=${D}/usr/share/elvis ${myconf} || die
cp Makefile Makefile.orig
cat Makefile.orig | sed -e "s:gcc -O2:gcc ${CFLAGS}:" > Makefile
make || die
}
src_install () {
cp instman.sh instman.sh.orig
cat instman.sh.orig | sed -e "s:/usr/man:${D}/usr/share/man:g" > instman.sh
cp insticon.sh insticon.sh.orig
cat insticon.sh.orig | sed -e "s:^xinc=.*$:xinc=${D}/usr/include:" \
| sed -e "s:^xlib=.*$:xlib=${D}/usr/lib:" > insticon.sh
dodir /usr/bin
dodir /usr/share/man/man1
make install || die
}
|