# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/app-misc/emelfm2/emelfm2.0.0.6.ebuild,v 1.9 2003/09/05 12:10:36 msterret Exp $ S=${WORKDIR}/${P} DESCRIPTION="A file manager that implements the popular two-pane design based gtk+-2." SRC_URI="http://freshmeat.net/redir/emelfm2/43642/url_tgz/${P}.tar.gz" HOMEPAGE="http://emelfm.sourceforge.net/" IUSE="nls" SLOT="0" LICENSE="GPL-2" KEYWORDS="x86" DEPEND=">=x11-libs/gtk+-2.2*" src_unpack() { unpack ${A} } src_compile() { local myconf if use nls ; then make PREFIX=/usr \ CC="gcc ${CFLAGS}" \ NLS=-DENABLE_NLS || die else make PREFIX=/usr \ CC="gcc ${CFLAGS}" \ NLS= || die fi } src_install() { dodir /usr/bin if use nls ; then make PREFIX=${D}/usr \ NLS=-DENABLE_NLS \ DOC_DIR=${D}/usr/share/doc/${P} \ install || die else make PREFIX=${D}/usr NLS= \ DOC_DIR=${D}/usr/share/doc/${P} \ install || die fi gzip ${D}/usr/share/doc/${P}/*.txt }