# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="GUI for internet translation services." HOMEPAGE="http://laas.altervista.org/youtranslate/ytindex.php" SRC_URI="http://laas.altervista.org/youtranslate/YouTranslate_${PVR}_src.tar.gz" LICENSE="GPL" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="" S=${WORKDIR}/ export MONO_SHARED_DIR=${S} src_unpack() { unpack ${A} || die "Unpacking the source failed" cd ${S} || die "Could not change directory." epatch ${FILESDIR}/youtranslate-1.0-patch } src_compile() { cd ${S} ln -s Makefile.solution.youtranslate Makefile emake || die "Make failed" } src_install() { mkdir -p ${D}/usr/libexec ${D}/usr/bin cp ${S}/youtranslate.exe ${D}/usr/libexec/youtranslate.exe cp ${FILESDIR}/youtranslate ${D}/usr/bin/youtranslate chmod 0755 ${D}/usr/bin/youtranslate mkdir -p ${D}/usr/share/applications cp ${FILESDIR}/YouTranslate.desktop ${D}/usr/share/applications/YouTranslate.desktop chmod 0644 ${D}/usr/share/applications/YouTranslate.desktop }