# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-misc/emelfm/emelfm-0.9.2.ebuild,v 1.20 2005/05/30 18:13:42 swegener Exp $ inherit toolchain-funcs eutils DESCRIPTION="A file manager that implements the popular two-pane design." HOMEPAGE="http://emelfm.sourceforge.net/" SRC_URI="http://emelfm.sourceforge.net/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 sparc ppc64 ppc" IUSE="nls" DEPEND="=x11-libs/gtk+-1.2*" src_unpack() { unpack ${A} epatch ${FILESDIR}/po-cs-po-gentoo.patch epatch ${FILESDIR}/makefile-nls-gentoo.patch } src_compile() { local myconf if use nls ; then make PREFIX=/usr \ CC="$(tc-getCC) ${CFLAGS}" \ NLS=-DENABLE_NLS || die else make PREFIX=/usr \ CC="$(tc-getCC) ${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/${PF}/*.txt }