# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# Nonofficial ebuild by Ycarus. For new version look here : http://gentoo.zugaina.org/

inherit eutils

IUSE=""

MY_P="irate-src-Feb02"
DESCRIPTION="iRATE radio is a collaborative filtering system for music. You rate the tracks it downloads and the server uses your ratings and other people's to guess what you'll like. The tracks are downloaded from websites which allow free and legal downloads of their music."
DESCRIPTION_FR="Téléchargement de musique gratuite suivant vos gouts "
HOMEPAGE="http://irate.sf.net"
SRC_URI="http://irate.sourceforge.net/snapshots/${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86 ~amd64"

DEPEND="sys-devel/gcc"

pkg_setup () {
    if [ ! -f ${ROOT}/usr/bin/gcj ]
    then
	eerror "you need gcc compiled against gcj"
	eerror "export USE=\"gcj\" ;emerge gcc -p "
	die "Need gcj !"
    fi
}

src_unpack() {
	unpack ${A}

}

src_compile() {
	emake || die
}

src_install () {
	dodoc ABOUT-NLS COPYING README AUTHORS BUGS INSTALL NEWS ChangeLog TODO
	make install DESTDIR=${D}
}
