blob: 50344f3357fe5e02871dad59092b4a3d8544142a (
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
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/gnome-apps/mc/mc-4.5.54.ebuild,v 1.2 2001/06/07 21:10:33 achim Exp $
#P=
A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="GNOME Midnight Commander"
SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/${PN}/${A}"
HOMEPAGE="http://www.gnome.org/mc/"
DEPEND="virtual/glibc
>=sys-libs/gpm-1.19.3
pam? ( >=sys-libs/pam-0.72 )
slang? ( >=sys-libs/slang-1.4.2 )
>=sys-apps/e2fsprogs-1.19
gnome? ( >=gnome-base/gnome-libs-1.2.4 )"
src_unpack() {
unpack ${A}
cd ${S}/vfs
cp smbfs.c smbfs.c.orig
sed -e "s:/etc/smb\.conf:/etc/smb/smb\.conf:" smbfs.c.orig > smbfs.c
}
src_compile() {
local myconf
if [ "`use pam`" ] ; then
myconf="--with-pam"
else
myconf="--without-pam"
fi
if [ "`use slang`" ] ; then
myconf="$myconf --with-slang"
else
myconf="$myconf --with-included-slang"
fi
if [ "`use gnome`" ] ; then
myconf="$myconf --with-gnome --prefix=/opt/gnome"
else
myconf="$myconf --without-gnome --prefix=/usr"
fi
LDFLAGS="-lcrypt -lncurses" try ./configure --host=${CHOST} \
--with-samba --with-vfs --with-netrc $myconf
try make
}
src_install() {
if [ "`use gnome`" ] ; then
try make prefix=${D}/opt/gnome install
else
try make prefix=${D}/usr install
fi
dodoc ABOUT-NLS COPYING* FAQ INSTALL* NEWS
dodoc README*
}
|