# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="A powerful and flexible file manager, using the FOX toolkit" HOMEPAGE="http://nao.linux.pl/" SRC_URI="http://nao.linux.pl/data/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="python ssh ssl" DEPEND=">=x11-libs/fox-1.4 dev-libs/libxml2 dev-libs/boost ssh? ( =net-libs/libssh-0.2 ) ssl? ( dev-libs/openssl )" pkg_setup() { if ! built_with_use x11-libs/fox png ; then eerror "fox toolkit was not merged with the png USE flag" eerror "nao requires fox to be built with this flag" die "fox missing png support" fi if use python ; then if ! built_with_use dev-libs/boost pyste ; then eerror "boost was not merged with the pyste USE flag" eerror "nao requires boost to be built with this flag" die "boost missing pyste support" fi fi } src_compile() { local myconf myconf="${myconf} $(use_enable python)" myconf="${myconf} $(use_enable ssh sshvfs)" myconf="${myconf} $(use_with ssl)" econf ${myconf} || die "configure failed" emake || die "make failed" } src_install() { make DESTDIR=${D} install || die "install failed" }