# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Console application for reading data from Digital Multi-Meters" HOMEPAGE="http://www.mtoussaint.de/qtdmm2.html" SRC_URI="http://www.mtoussaint.de/qtdmm2-${PV}.tgz" # I need to use the QT eclasses later on, so has to be this EAPI="2" # make elcass available inherit qt4-r2 LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 amd64" IUSE="" # actually all I need it qmake in order to generate the Makefiles ... DEPEND="x11-libs/qt-core:4" S="QtDMM2-${PV}" # there are some patches which need to be applied PATCHES=( "${FILESDIR}/${P}-includes.patch" ) src_configure() { # the .pro file for qmake is in an silly place because we are only building # part of the source tarball cd ${S}/cdmm eqmake4 cdmm.pro } src_compile() { cd ${S}/cdmm emake || die "emake failed" } # not much of an install as upstream has none at all src_install() { # do install from top level of source tree cd ${S} # install the program itself dobin bin/cdmm # install the man page doman cdmm.1 }