blob: 558d91509b9ce7861a6717c50d921be829e79a9e (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/mc/mc-4.6.0.ebuild,v 1.7 2003/06/17 20:59:39 gmsoft Exp $
IUSE="gpm nls samba ncurses X slang"
S=${WORKDIR}/${P}
DESCRIPTION="GNU Midnight Commander cli-based file manager"
HOMEPAGE="http://www.ibiblio.org/mc/"
SRC_URI="http://www.ibiblio.org/pub/Linux/utils/file/managers/${PN}/${P}.tar.gz"
DEPEND=">=sys-apps/e2fsprogs-1.19
ncurses? ( >=sys-libs/ncurses-5.2-r5 )
=dev-libs/glib-2*
>=sys-libs/pam-0.72
gpm? ( >=sys-libs/gpm-1.19.3 )
slang? ( >=sys-libs/slang-1.4.2 )
samba? ( >=net-fs/samba-2.2.3a-r1 )
X? ( virtual/x11 )"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ~ppc sparc ~alpha mips hppa ~arm"
src_compile() {
local myconf=""
if ! use slang && ! use ncurses
then
myconf="${myconf} --with-screen=mcslang"
elif
use ncurses && ! use slang
then
myconf="${myconf} --with-screen=ncurses"
else
use slang && myconf="${myconf} --with-screen=slang"
fi
use gpm \
&& myconf="${myconf} --with-gpm-mouse" \
|| myconf="${myconf} --without-gpm-mouse"
use nls \
&& myconf="${myconf} --with-included-gettext" \
|| myconf="${myconf} --disable-nls"
use X \
&& myconf="${myconf} --with-x" \
|| myconf="${myconf} --without-x"
use samba \
&& myconf="${myconf} --with-samba --with-configdir=/etc/samba
--with-codepagedir=/var/lib/samba/codepages" \
|| myconf="${myconf} --without-samba"
econf \
--with-vfs \
--with-gnu-ld \
--with-ext2undel \
--with-edit \
${myconf} || die
emake || die
}
src_install() {
einstall
dodoc ABOUT-NLS COPYING* ChangeLog AUTHORS MAINTAINERS FAQ INSTALL* NEWS README*
}
|