Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/umix/, media-sound/umix/files/
Date: Fri, 02 Mar 2018 08:51:59
Message-Id: 1519980710.492fa59cd6298e4d80717571bdbaaf01a9540c0e.jer@gentoo
1 commit: 492fa59cd6298e4d80717571bdbaaf01a9540c0e
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 2 08:49:10 2018 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 2 08:51:50 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=492fa59c
7
8 media-sound/umix: Fix building against sys-libs/ncurses[tinfo] (bug #647164).
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 media-sound/umix/files/umix-1.0.2-tinfo.patch | 18 +++++++++++++
13 media-sound/umix/umix-1.0.2-r1.ebuild | 37 +++++++++++++++++++++++++++
14 2 files changed, 55 insertions(+)
15
16 diff --git a/media-sound/umix/files/umix-1.0.2-tinfo.patch b/media-sound/umix/files/umix-1.0.2-tinfo.patch
17 new file mode 100644
18 index 00000000000..65c0d715837
19 --- /dev/null
20 +++ b/media-sound/umix/files/umix-1.0.2-tinfo.patch
21 @@ -0,0 +1,18 @@
22 +--- a/configure.in
23 ++++ b/configure.in
24 +@@ -89,6 +89,7 @@
25 + then
26 + AC_CHECK_LIB(curses, initscr, NCURSLIB="curses", NCURSLIB="")
27 + fi
28 ++ AC_SEARCH_LIBS(stdscr,tinfo)
29 + fi
30 + if test "x$NCURSLIB" != "x"
31 + then
32 +@@ -97,6 +98,7 @@
33 + AC_DEFINE(HAVE_NCURSES)
34 + LIBS="$LIBS -l$NCURSLIB"
35 + umix_CONDOBJS="$umix_CONDOBJS ui_ncurses.o"
36 ++ AC_SEARCH_LIBS(stdscr,tinfo)
37 + else
38 + have_ncurses="no"
39 + fi
40
41 diff --git a/media-sound/umix/umix-1.0.2-r1.ebuild b/media-sound/umix/umix-1.0.2-r1.ebuild
42 new file mode 100644
43 index 00000000000..15fe8ccf878
44 --- /dev/null
45 +++ b/media-sound/umix/umix-1.0.2-r1.ebuild
46 @@ -0,0 +1,37 @@
47 +# Copyright 1999-2018 Gentoo Foundation
48 +# Distributed under the terms of the GNU General Public License v2
49 +
50 +EAPI=6
51 +inherit autotools
52 +
53 +DESCRIPTION="Program for adjusting soundcard volumes"
54 +HOMEPAGE="http://umix.sf.net"
55 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
56 +
57 +SLOT="0"
58 +LICENSE="GPL-2"
59 +KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
60 +IUSE="ncurses oss"
61 +
62 +DEPEND="ncurses? ( >=sys-libs/ncurses-5.2 )"
63 +RDEPEND="
64 + ${DEPEND}
65 +"
66 +PATCHES=(
67 + "${FILESDIR}"/${P}-tinfo.patch
68 +)
69 +DOCS=(
70 + AUTHORS ChangeLog NEWS README TODO
71 +)
72 +
73 +src_prepare() {
74 + default
75 + eautoreconf
76 +}
77 +
78 +src_configure() {
79 + local myconf
80 + use ncurses || myconf="--disable-ncurses"
81 + use oss || myconf="${myconf} --disable-oss"
82 + econf ${myconf}
83 +}