diff options
author | Azamat H. Hackimov <azamat.hackimov@gmail.com> | 2020-10-29 23:16:19 +0300 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2020-10-31 17:58:44 +0200 |
commit | 8bfe6eeb3e79cf2d8b72c39fe91d8e75f040740f (patch) | |
tree | 6dce548500b3e7b9618f3d516e01796e8c162402 /media-sound/wildmidi/wildmidi-0.4.3.ebuild | |
parent | sys-fs/compsize: drop old (diff) | |
download | gentoo-8bfe6eeb3e79cf2d8b72c39fe91d8e75f040740f.tar.gz gentoo-8bfe6eeb3e79cf2d8b72c39fe91d8e75f040740f.tar.bz2 gentoo-8bfe6eeb3e79cf2d8b72c39fe91d8e75f040740f.zip |
media-sound/wildmidi: update 0.4.3
Migrated to EAPI 7, fixed timidity-freepats location in config, removed
unused files.
Closes: https://bugs.gentoo.org/656814
Closes: https://bugs.gentoo.org/749759
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/18069
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-sound/wildmidi/wildmidi-0.4.3.ebuild')
-rw-r--r-- | media-sound/wildmidi/wildmidi-0.4.3.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/media-sound/wildmidi/wildmidi-0.4.3.ebuild b/media-sound/wildmidi/wildmidi-0.4.3.ebuild new file mode 100644 index 000000000000..feabe2bbee67 --- /dev/null +++ b/media-sound/wildmidi/wildmidi-0.4.3.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake readme.gentoo-r1 + +DESCRIPTION="MIDI processing library and player using the GUS patch set" +HOMEPAGE="http://www.mindwerks.net/projects/wildmidi/" +SRC_URI="https://github.com/Mindwerks/${PN}/archive/${P}.tar.gz" + +LICENSE="GPL-3+ LGPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86" +IUSE="+alsa openal oss +player" + +DEPEND=" + player? ( + alsa? ( media-libs/alsa-lib ) + openal? ( media-libs/openal ) + ) +" +RDEPEND="${DEPEND} + media-sound/timidity-freepats +" + +REQUIRED_USE="player? ( ^^ ( alsa oss openal ) )" + +DOC_CONTENTS="${PN} is using timidity-freepats for midi playback. + A default configuration file was placed on /etc/${PN}/${PN}.cfg. + For more information please read the ${PN}.cfg manpage." + +S="${WORKDIR}/${PN}-${P}" + +src_prepare() { + cmake_src_prepare + # Fix location of media-sound/timidity-freepats + # See #749759 + sed -i -e "s:midi/freepats:timidity/freepats:" cfg/wildmidi.cfg || die +} + +src_configure() { + local mycmakeargs=( + -DWANT_ALSA=$(usex alsa) + -DWANT_OPENAL=$(usex openal) + -DWANT_OSS=$(usex oss) + -DWANT_PLAYER=$(usex player) + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + + insinto /etc/${PN}/ + doins cfg/wildmidi.cfg + + readme.gentoo_create_doc +} |