# Copyright 2009 :)y # Distributed under the terms of the GNU General Public License v3 inherit eutils MY_PV="${PV//./-}" MY_P="abcMIDI-${MY_PV}" S="${WORKDIR}/abcmidi" DESCRIPTION="Command-line utilities to convert ABC music to MIDI, PS, and more" HOMEPAGE="http://ifdo.pugmarks.com/~seymour/runabc/top.html" SRC_URI="http://ifdo.pugmarks.com/~seymour/runabc/${MY_P}.zip" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" RDEPEND="" DEPEND="app-arch/unzip" src_unpack() { unpack "${A}" cd "${S}" # makefile confuses "PREFIX" for "prefix" epatch "${FILESDIR}/${P}-makefile.patch" } src_compile() { emake || die "emake failed" } src_install() { # makefile uses dual "DESTDIR" and "prefix" install destination make prefix=/usr DESTDIR="${D}" install || die "install failed" # rename the doc dir to gentoo convention mv "${D}/usr/share/doc/abcmidi" "${D}/usr/share/doc/${PF}" # also install the sample ABC files docinto "examples" dodoc *.abc }