# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="A file manager that implements the popular two-pane design based on gtk+-2" HOMEPAGE="http://emelfm2.org/" SRC_URI="http://emelfm2.org/rel/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~ppc ~amd64" IUSE="fam gamin unicode" DEPEND=">=x11-libs/gtk+-2.4 fam? ( app-admin/fam ) gamin? ( app-admin/gamin )" src_unpack() { unpack ${A} } src_compile() { local myconf="" use fam && myconf="${myconf} USE_FAM=1" use gamin && myconf="${myconf} USE_GAMIN=1" if use unicode; then myconf="${myconf} FILES_UTF8ONLY=1" else myconf="${myconf} FILES_UTF8ONLY=0" fi emake ${myconf} \ PREFIX=/usr \ CC="gcc ${CFLAGS}" || die "emake failed" } src_install() { dodir /usr/bin make \ PREFIX=${D}/usr \ DOC_DIR=${D}/usr/share/doc/${PF} \ install || die "make install failed" prepalldocs }