# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-misc/mc/mc-4.5.55-r7.ebuild,v 1.10 2004/06/28 03:59:06 vapier Exp $ inherit flag-o-matic DESCRIPTION="GNU Midnight Commander" HOMEPAGE="http://www.ibiblio.org/mc/" SRC_URI="http://www.ibiblio.org/pub/Linux/utils/file/managers/mc/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 ppc sparc ~alpha ~mips ~hppa" IUSE="gpm nls samba ncurses X pam slang" DEPEND=">=sys-fs/e2fsprogs-1.19 =dev-libs/glib-1.2* >=sys-devel/automake-1.5d-r1 gpm? ( >=sys-libs/gpm-1.19.3 ) pam? ( >=sys-libs/pam-0.72 ) ncurses? ( >=sys-libs/ncurses-5.2 ) slang? ( >=sys-libs/slang-1.4.2 ) nls? ( sys-devel/gettext ) samba? ( >=net-fs/samba-2.2.3a-r1 ) X? ( virtual/x11 )" src_compile() { filter-flags -malign-double local myconf="" myconf="${myconf} `use_with pam`" use ncurses \ && myconf="${myconf} --with-ncurses" \ || ( use slang && myconf="${myconf} --with-slang" \ || myconf="${myconf} --with-included-slang" ) use gpm \ && myconf="${myconf} --with-gpm-mouse=/usr" \ || myconf="${myconf} --without-gpm-mouse" myconf="${myconf} `use_with X tm-x-support`" use samba \ && myconf="${myconf} --with-samba" \ && ( \ cd ${S}/vfs cp smbfs.c smbfs.c.orig sed -e "s:/etc/smb\.conf:/etc/samba/smb\.conf:" smbfs.c.orig > smbfs.c cd samba cp Makefile.in Makefile.in.orig sed -e 's:$(LIBDIR)\(/codepages\):/var/lib/samba\1:' \ Makefile.in.orig > Makefile.in ) use nls || myconf="${myconf} --disable-nls" cd ${S} libtoolize --force --copy aclocal -I ${S}/macros automake --add-missing econf \ --with-vfs \ --with-netrc \ --with-ext2undel \ --without-gnome \ ${myconf} || die make || die } src_install() { einstall || die dodoc FAQ INSTALL* NEWS README* }