# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit qt4 multilib DESCRIPTION="Homebrewer's recipe calculator" HOMEPAGE="http://www.usermode.org/code.html" SRC_URI="http://www.usermode.org/code/${P}.tar.gz" LICENSE="as-is" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="$(qt4_min_version 4.3)" RDEPEND="${DEPEND}" src_compile() { export BINDIR="/usr/bin" DATADIR="/usr/share/${PN}" DOCDIR="/usr/share/doc/${P}" ./configure --qtdir="/usr/$(get_libdir)/qt4" || die "configure failed" echo "QT += xml" >> qbrew.pro eqmake4 || die "qmake failed" emake || die "emake failed" } src_install() { dobin qbrew || die "bin install failed" insinto /usr/share/${PN} || die "/usr/share file install failed" doins data/* pics/splash.png || die "install failed" dohtml -r docs/* || die "documentation install failed" dodoc AUTHORS ChangeLog README TODO || die "documentation install failed" }