# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=2 inherit eutils qt4 DESCRIPTION="Linux frontend for DOSBox" HOMEPAGE="http://chmaster.freeforge.net/dboxfe-project.htm" SRC_URI="http://download.berlios.de/dboxfe/${P}.tar.bz2 http://download2.berlios.de/dboxfe/${P}.tar.bz2" SLOT="0" LICENSE="GPL-2" RESTRICT="mirror" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="games-emulation/dosbox >=x11-libs/qt-4.3" RDEPEND="${DEPEND}" #Languages supported by current version of dboxfe LANGS="en de" for X in ${LANGS}; do IUSE="${IUSE} linguas_${X}" done S=${WORKDIR} dir=/usr/bin Ddir=${D}/${dir} src_configure() { einfo "Creating make file" cd ${P} && cd dboxfetray && eqmake4 dboxfetray.pro -o Makefile && cd .. && eqmake4 ${PN}.pro -o Makefile || die "Failed to create make file" } src_compile() { #Generate translations I= cd ${P} for I in ${LANGS}; do einfo "Generating ${I} translation ..." lrelease lng/${PN}_${I}.ts || die "Failed to generate ${I} translation!" done emake || die "emake failed" cd dboxfetray emake || die "emake failed" } src_install() { # emake DESTDIR="${D}" install || die "emake install failed" dodir ${dir} exeinto ${dir} doexe ${P}/bin/dboxfe doexe ${P}/bin/dboxfetray # Creating program icon newicon ${S}/${P}/res/default.png ${PN}.png # Making desktop entry make_desktop_entry "dboxfe" "DBoxFE frontend to DOSBox" "dboxfe" "System;" make_desktop_entry "dboxfetray" "DBoxFE frontend to DOSBox tray icon luncher" "dboxfe" "System;" }