# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Nao is powerful, flexible, and utterly configurable file manager for UNIX systems, written using the FOX toolkit. Alternative to those created for KDE / Gnome only" 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" eerror "USE flag. nao requires fox be" eerror "built with this flag" die "fox missing png support" fi if ! built_with_use dev-libs/boost threads ; then eerror "boost was not merged with the threads" eerror "USE flag. nao requires boost be" eerror "built with this flag" die "boost missing threads support" fi if use python ; then if ! built_with_use dev-libs/boost pyste ; then eerror "boost was not merged with the pyste" eerror "USE flag. nao requires boost be" eerror "built with this flag" die "boost missing pyste support" fi fi } src_compile() { local myconf if use python ; then myconf="${myconf} --enable-python" fi if use ssh ; then myconf="${myconf} --enable-sshvfs" fi if use ssl ; then myconf="${myconf} --with-ssl" fi econf \ ${myconf} \ || die "configure failed" emake || die "make failed" } src_install() { make DESTDIR=${D} install || die }