# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils qt3 DESCRIPTION="Album for digital photos" HOMEPAGE="http://albumshaper.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="doc" DEPEND="$(qt_min_version 3.3.4) >=dev-libs/libxslt-1.1.14 >=dev-libs/libxml2-2.6.20-r2 >=media-libs/jpeg-6b-r3 doc? ( >=doxygen-1.3.8 )" S=${WORKDIR}/${PN}_${PV}_src src_compile() { "${QTDIR}"/bin/qmake || die "qmake failed" emake || die "emake failed" if use doc ; then doxygen AlbumShaper.doc fi } src_install() { sed -i -e 's| /usr/bin/AlbumShaper| $(INSTALL_ROOT)/usr/bin/AlbumShaper|' \ Makefile make INSTALL_ROOT=${D} install || die dodoc readme.txt bugs.txt if use doc ; then dohtml -r docs/html/* fi }