# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-sound/gmorgan/gmorgan-0.25.ebuild,v 1.2 2007/07/06 17:45:05 flameeyes Exp $ inherit eutils IUSE="nls" DESCRIPTION="gmorgan is an opensource software rhythm station." HOMEPAGE="http://gmorgan.sourceforge.net/" SRC_URI="mirror://sourceforge/gmorgan/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~sparc ~x86" RDEPEND=">=x11-libs/fltk-1.1.2 >=media-libs/alsa-lib-0.9.0" DEPEND="${RDEPEND} nls? ( >=sys-devel/gettext-0.11.5-r1 )" pkg_setup() { if ! built_with_use --missing true media-libs/alsa-lib midi; then eerror "" eerror "To be able to build ${CATEGORY}/${PN} with ALSA support you" eerror "need to have built media-libs/alsa-lib with midi USE flag." die "Missing midi USE flag on media-libs/alsa-lib" fi } src_unpack() { unpack ${A} cd "${S}/po" sed -i "/mkinstalldirs =/s%.*%mkinstalldirs = ../mkinstalldirs%" Makefile.in.in cd "${S}" epatch "${FILESDIR}/${PN}-amd64.patch" } src_install() { make prefix=${D}/usr localedir=${D}/usr/share/locale install || die dodoc AUTHORS NEWS README }