Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/gom/, media-sound/gom/files/
Date: Sat, 08 Aug 2020 16:55:53
Message-Id: 1596905652.4b8beef54932a5061260b82a78c2e6032e8192dc.soap@gentoo
1 commit: 4b8beef54932a5061260b82a78c2e6032e8192dc
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 8 16:54:12 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 8 16:54:12 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b8beef5
7
8 media-sound/gom: Fix building under -fno-common
9
10 Closes: https://bugs.gentoo.org/708028
11 Package-Manager: Portage-3.0.1, Repoman-2.3.23
12 Signed-off-by: David Seifert <soap <AT> gentoo.org>
13
14 .../gom/files/gom-0.29.103-fno-common.patch | 11 +++++++
15 media-sound/gom/gom-0.29.103-r1.ebuild | 34 +++++++++-------------
16 2 files changed, 24 insertions(+), 21 deletions(-)
17
18 diff --git a/media-sound/gom/files/gom-0.29.103-fno-common.patch b/media-sound/gom/files/gom-0.29.103-fno-common.patch
19 new file mode 100644
20 index 00000000000..b1ee6a1930b
21 --- /dev/null
22 +++ b/media-sound/gom/files/gom-0.29.103-fno-common.patch
23 @@ -0,0 +1,11 @@
24 +--- a/src/gom_info.h
25 ++++ b/src/gom_info.h
26 +@@ -52,7 +52,7 @@
27 + enum gom_info_types {GOM_INFO_ERROR=-1, GOM_INFO_QUIET, GOM_INFO_NORMAL, GOM_INFO_VERBOSE, GOM_INFO_DEBUG};
28 +
29 + /* shown errors count */
30 +-int gom_info_errors;
31 ++extern int gom_info_errors;
32 +
33 + /*
34 + * FUNCTION PROTOTYPES
35
36 diff --git a/media-sound/gom/gom-0.29.103-r1.ebuild b/media-sound/gom/gom-0.29.103-r1.ebuild
37 index b49d71e781e..241883a1f65 100644
38 --- a/media-sound/gom/gom-0.29.103-r1.ebuild
39 +++ b/media-sound/gom/gom-0.29.103-r1.ebuild
40 @@ -1,45 +1,37 @@
41 -# Copyright 1999-2019 Gentoo Authors
42 +# Copyright 1999-2020 Gentoo Authors
43 # Distributed under the terms of the GNU General Public License v2
44
45 EAPI=7
46
47 -inherit autotools toolchain-funcs
48 +inherit autotools
49
50 DESCRIPTION="Console Mixer Program for OSS"
51 HOMEPAGE="http://www.fh-worms.de/~inf222"
52 SRC_URI="http://www.Fh-Worms.DE./~inf222/code/c/gom/released/${P}.tar.gz"
53
54 -SLOT="0"
55 LICENSE="GPL-2"
56 +SLOT="0"
57 KEYWORDS="amd64 ~ppc sparc x86"
58 -IUSE="examples"
59
60 -DEPEND=">=sys-libs/ncurses-5.2:0="
61 +RDEPEND="sys-libs/ncurses:0="
62 +DEPEND="${RDEPEND}"
63 BDEPEND="virtual/pkgconfig"
64
65 PATCHES=(
66 - "${FILESDIR}/${P}-tinfo.patch"
67 + "${FILESDIR}"/${P}-tinfo.patch
68 + "${FILESDIR}"/${P}-fno-common.patch
69 )
70
71 src_prepare() {
72 default
73 + rmdir examples/standard || die
74 + mv configure.{in,ac} || die
75 eautoreconf
76 }
77
78 -src_compile() {
79 - emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
80 -}
81 -
82 src_install() {
83 - emake DESTDIR="${D}" install
84 - dodoc AUTHORS NEWS ChangeLog README
85 -
86 - if use examples; then
87 - docinto examples
88 - dodoc README
89 - docinto examples/default
90 - dodoc examples/default/*
91 - docinto examples/two-mixers
92 - dodoc examples/two-mixers/*
93 - fi
94 + default
95 +
96 + dodoc -r examples
97 + docompress -x /usr/share/doc/${PF}/examples
98 }