# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-misc/emelfm2/emelfm2-0.6.2.ebuild,v 1.2 2009/08/04 08:00:17 ssuominen Exp $ EAPI=2 inherit eutils multilib toolchain-funcs DESCRIPTION="A file manager that implements the popular two-pane design" HOMEPAGE="http://emelfm2.net" SRC_URI="http://${PN}.net/rel/${P}.tar.bz2" LICENSE="GPL-3 LGPL-3" SLOT="0" KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" IUSE="acl fam gimp hal kernel_linux nls spell" RDEPEND=">=x11-libs/gtk+-2.12:2 acl? ( sys-apps/acl ) !kernel_linux? ( fam? ( virtual/fam ) ) gimp? ( media-gfx/gimp ) hal? ( sys-apps/hal dev-libs/dbus-glib ) spell? ( app-text/gtkspell )" DEPEND="${RDEPEND} dev-util/pkgconfig nls? ( sys-devel/gettext )" RESTRICT="test" pkg_setup() { myconf="DOCS_VERSION=1 WITH_TRANSPARENCY=1 USE_LATEST=1 STRIP=0" use hal && myconf="${myconf} WITH_HAL=1" use gimp && myconf="${myconf} WITH_THUMBS=1" use acl && myconf="${myconf} WITH_ACL=1" use kernel_linux && myconf="${myconf} WITH_KERNELFAM=1 USE_INOTIFY=1" use spell && myconf="${myconf} EDITOR_SPELLCHECK=1" use nls || myconf="${myconf} I18N=0" if ! use kernel_linux && use fam; then if has_version "app-admin/gamin"; then myconf="${myconf} USE_GAMIN=1" else myconf="${myconf} USE_FAM=1" fi fi } src_compile() { tc-export CC emake LIB_DIR="/usr/$(get_libdir)" PREFIX="/usr" \ ${myconf} || die "emake failed" } src_install() { emake LIB_DIR="${D}/usr/$(get_libdir)" PREFIX="${D}/usr" \ ${myconf} install || die "emake install failed" newicon icons/${PN}_48.png ${PN}.png prepalldocs }