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

inherit eutils

IUSE=""
MY_P="${PN}-${PV}src"
DESCRIPTION=" It allows you to free your iTunes Music Store (protected AAC / m4p) purchases from their DRM restrictions with no sound quality loss."
DESCRIPTION_FR="Supprime le DRM des fichiers achetés sur iTunes"
HOMEPAGE="http://hymn-project.org/"
SRC_URI="http://hymn-project.org/download/${MY_P}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86 ~amd64"
RESTRICT="nomirror"

src_compile() {
    cd work/${MY_P}
    automake || die "automake failed"
    autoconf || die "autoconf failed"
    econf || die
    emake || die
}

src_install() {
    cd ${S}src
    make DESTDIR=${D} install || die "make install failed"
}
