# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit cmake-utils # A well-used example of an eclass function that needs eutils is epatch. If # your source needs patches applied, it's suggested to put your patch in the # 'files' directory and use: # # epatch ${FILESDIR}/patch-name-here # DESCRIPTION="QtEmu is a graphical user interface for QEMU written in Qt4." HOMEPAGE="http://qtemu.org/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" LICENSE="GPL-2 LGPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" # use any USE flags, set to "". IUSE="" RESTRICT="nomirrors" # Build-time dependencies, such as # ssl? ( >=dev-libs/openssl-0.9.6b ) # >=dev-lang/perl-5.6.1-r1 # It is advisable to use the >= syntax show above, to reflect what you # had installed on your system when you tested the package. Then # other users hopefully won't be caught without the right version of # a dependency. DEPEND=">=dev-util/cmake-2.4.3 >=x11-libs/qt-4.2.2" RDEPEND="${DEPEND}" # Source directory; the dir where the sources can be found (automatically # unpacked) inside ${WORKDIR}. The default value for S is ${WORKDIR}/${P} # If you don't need to change it, leave the S= line out of the ebuild # to keep it tidy. S="${WORKDIR}/${PN}" src_compile() { mycmakeargs="-DCMAKE_INSTALL_PREFIX=/opt/qtemu" cmake_utils_src_configureout cmake_utils_src_make } src_install() { cmake-utils_src_install dosym /opt/qtemu/bin/qtemu /usr/bin/qtemu }