# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Utility for uploading photos to a Zoto account." HOMEPAGE="http://www.zoto.com/" SRC_URI="http://www.zoto.com/downloads/linux/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="doc" DEPEND="net-misc/curl >=media-libs/libexif-0.6.12 >=dev-libs/xmlrpc-c-1.2 >=x11-libs/qt-3.3 doc? ( app-doc/doxygen )" src_unpack() { unpack ${A} cd ${S} echo "LIBS += -lcurl" >> common/global_qmake_config } src_compile() { qmake zulu.pro emake || die "emake failed" if use doc ; then cd zulu-lib doxygen .doxy-conf fi } src_install() { dobin zulu-gui/zulu zulu-cli/zulu-cli make_desktop_entry zulu "Zoto Uploader" use doc && dohtml -r zulu-lib/docs/html/ }