media-sound/mmix: block against dev-lang/mmix, bug #426874
authorSergei Trofimovich <slyfox@gentoo.org>
Sat, 22 Jun 2019 14:39:16 +0000 (15:39 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 22 Jun 2019 14:39:32 +0000 (15:39 +0100)
Reported-by: Diego Elio Pettenò
Closes: https://bugs.gentoo.org/426874
Package-Manager: Portage-2.3.67, Repoman-2.3.15
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
media-sound/mmix/mmix-0.3-r1.ebuild [new file with mode: 0644]

diff --git a/media-sound/mmix/mmix-0.3-r1.ebuild b/media-sound/mmix/mmix-0.3-r1.ebuild
new file mode 100644 (file)
index 0000000..f00dba6
--- /dev/null
@@ -0,0 +1,33 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit toolchain-funcs
+
+DESCRIPTION="A soundcard mixer for the OSS driver"
+HOMEPAGE="http://www.mcmilk.de/projects/mmix/"
+SRC_URI="http://www.mcmilk.de/projects/${PN}/dl/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+# media-sound/mmix and dev-lang/mmix both install 'mmix' binary, bug #426874
+RDEPEND=""
+DEPEND="virtual/os-headers"
+
+src_prepare() {
+       default
+       sed -i -e '/strip/d' Makefile || die
+}
+
+src_compile() {
+       emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} -Wall" LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+       dobin ${PN}
+       doman doc/${PN}.1
+       dodoc doc/{AUTHORS,CHANGES,FAQ,README}
+}