# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# This ebuild come from http://www.markus-jonsson.com/projects/genu/ - The site http://gentoo.zugaina.org/ only host a copy.
# Small modifications by Ycarus

inherit mono

DESCRIPTION="Portage front-end implemented in mono with gnome-sharp"
DESCRIPTION_FR="Une interface graphique pour portage en mono avec gnome-sharp"
HOMEPAGE="http://www.markus-jonsson.com/projects/genu/"
SRC_URI="http://www.markus-jonsson.com/downloads/genu/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"

IUSE=""
DEPEND=">=dev-dotnet/gnome-sharp-1.0.4
   x11-libs/gksu"

S=${WORKDIR}/${PN}/src

src_unpack() {
   unpack ${A} || die "Failed to unpack ${A}"
   cd ${S} || die "Failed to cd ${S}"
   sed -i -e 's:cp -rv ..$(PREFIX) /:cp -rv ..$(PREFIX) ${D}/:' Makefile
}

src_sompile() {
   make
}

src_install() {
   einstall
} 
