# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /usr/local/portage/app-crypt/hymn/hymn-0.8.0.ebuild,v 1.0 2006/03/15 16:58:00 Metalshark Exp $ inherit eutils DESCRIPTION="Frees your iTunes Music Store purchases from their DRM restrictions with no sound quality loss" HOMEPAGE="http://hymn-project.org/" RESTRICT="primaryuri" SRC_URI="http://hymn-project.org/download/${P}src.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="doc html pdf" S="${WORKDIR}/${P}src" RDEPEND="sys-fs/sysfsutils doc? ( sys-apps/coreutils www-client/links html? ( dev-libs/libxslt ) pdf? ( dev-java/fop dev-java/sun-jimi ) )" DEPEND="${RDEPEND}" src_unpack() { unpack ${A} cd ${S} epatch "${FILESDIR}/${P}-metalshark.patch" } src_compile() { econf emake || die "make failed" } src_install() { einstall # documentation if use doc ; then dodoc doc/hymn-manual.txt if use html ; then dodoc doc/hymn-manual.html fi if use pdf ; then dodoc doc/hymn-manual.pdf fi fi }