blob: 0aef49852e958e2578aa3acc6b6ffc11e79df7f2 (
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
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/nano/nano-1.0.9.ebuild,v 1.5 2002/10/20 18:37:25 vapier Exp $
IUSE="nls build slang"
S=${WORKDIR}/${P}
DESCRIPTION="clone of Pico with more functions in a smaller size"
SRC_URI="http://www.nano-editor.org/dist/v1.0/${P}.tar.gz"
HOMEPAGE="http://www.nano-editor.org/"
DEPEND="virtual/glibc
>=sys-libs/ncurses-5.2
slang? ( >=sys-libs/slang-1.4.4-r1 )
nls? ( sys-devel/gettext )"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ppc sparc sparc64 alpha"
src_compile() {
local myconf
use slang && myconf="${myconf} --with-slang"
use nls || myconf="${myconf} --disable-nls"
if use bootcd || use build ; then
myconf="${myconf} --disable-wrapping-as-root"
fi
./configure \
--build=${CHOST} \
--prefix=/usr \
--enable-extra \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
${myconf} || die "./configure failed"
emake || die
}
src_install () {
make \
DESTDIR=${D} \
install || die
if use bootcd || use build; then
rm -rf ${D}/usr/share
else
dodoc COPYING ChangeLog README
fi
}
|