media-sound/gmorgan: Fix finding chord table file bug #635682
authorManuel Rüger <mrueg@gentoo.org>
Mon, 30 Oct 2017 00:00:17 +0000 (01:00 +0100)
committerManuel Rüger <mrueg@gentoo.org>
Mon, 30 Oct 2017 00:00:17 +0000 (01:00 +0100)
Package-Manager: Portage-2.3.13, Repoman-2.3.3

media-sound/gmorgan/gmorgan-0.79-r1.ebuild [new file with mode: 0644]

diff --git a/media-sound/gmorgan/gmorgan-0.79-r1.ebuild b/media-sound/gmorgan/gmorgan-0.79-r1.ebuild
new file mode 100644 (file)
index 0000000..756785b
--- /dev/null
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="Opensource software rhythm station"
+HOMEPAGE="http://gmorgan.sourceforge.net/"
+SRC_URI="mirror://sourceforge/gmorgan/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+RDEPEND="media-libs/alsa-lib
+       x11-libs/fltk:1"
+DEPEND="${RDEPEND}
+       nls? ( sys-devel/gettext )"
+
+PATCHES=(
+       "${FILESDIR}"/${P}-remove-gettext-version-check.patch
+       "${FILESDIR}"/${P}-manpages.patch
+       "${FILESDIR}"/${P}-remove-dirs.patch
+       "${FILESDIR}"/${P}-remove-old-docs.patch
+       "${FILESDIR}"/${P}-gcc6.patch
+)
+
+src_prepare() {
+       default
+       sed -i -e "s#/usr/local/share/#/usr/share/#" src/gmorgan.chord.cpp || die
+       eautoreconf
+}
+
+src_configure() {
+       econf \
+               $(use_enable nls)
+}
+
+src_install() {
+       default
+       doman man/${PN}.1
+}