Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/tk707/, media-sound/tk707/files/
Date: Sun, 21 Oct 2018 15:17:48
Message-Id: 1540135047.0bda35b5eef6f82734f0bb7ba3adc020af248a90.pacho@gentoo
1 commit: 0bda35b5eef6f82734f0bb7ba3adc020af248a90
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 21 15:13:08 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 21 15:17:27 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0bda35b5
7
8 media-sound/tk707: Fix build with glibc-2.27
9
10 Thanks-to: Peter Levine
11 Thanks-to: Toralf Förster
12 Closes: https://bugs.gentoo.org/648308
13 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
14 Package-Manager: Portage-2.3.51, Repoman-2.3.11
15
16 media-sound/tk707/files/tk707-0.8-glibc-2.27.patch | 18 ++++++++++
17 media-sound/tk707/tk707-0.8-r2.ebuild | 42 ++++++++++++++++++++++
18 2 files changed, 60 insertions(+)
19
20 diff --git a/media-sound/tk707/files/tk707-0.8-glibc-2.27.patch b/media-sound/tk707/files/tk707-0.8-glibc-2.27.patch
21 new file mode 100644
22 index 00000000000..5a2c09bb704
23 --- /dev/null
24 +++ b/media-sound/tk707/files/tk707-0.8-glibc-2.27.patch
25 @@ -0,0 +1,18 @@
26 +Bug: https://bugs.gentoo.org/648308
27 +
28 +--- a/tk707AppInit.c
29 ++++ b/tk707AppInit.c
30 +@@ -31,13 +31,6 @@
31 + extern int Init_tk707(Tcl_Interp *interp);
32 + extern int Init_tk707_Scripts(Tcl_Interp *interp);
33 +
34 +-/*
35 +- * The following variable is a special hack that is needed in order for
36 +- * Sun shared libraries to be used for Tcl.
37 +- */
38 +-
39 +-int *tclDummyMathPtr = (int *) matherr;
40 +-
41 + #ifdef TK_TEST
42 + extern int Tktest_Init _ANSI_ARGS_((Tcl_Interp *interp));
43 + #endif /* TK_TEST */
44
45 diff --git a/media-sound/tk707/tk707-0.8-r2.ebuild b/media-sound/tk707/tk707-0.8-r2.ebuild
46 new file mode 100644
47 index 00000000000..03b31573728
48 --- /dev/null
49 +++ b/media-sound/tk707/tk707-0.8-r2.ebuild
50 @@ -0,0 +1,42 @@
51 +# Copyright 1999-2018 Gentoo Authors
52 +# Distributed under the terms of the GNU General Public License v2
53 +
54 +EAPI=7
55 +inherit autotools desktop
56 +
57 +DESCRIPTION=" An 7x7 type midi drum sequencer for Linux"
58 +HOMEPAGE="http://www-ljk.imag.fr/membres/Pierre.Saramito/tk707/"
59 +SRC_URI="mirror://gentoo/${P}.tar.gz
60 + mirror://gentoo/${P}-updated_tcl2c.patch.gz"
61 +LICENSE="GPL-2"
62 +SLOT="0"
63 +
64 +KEYWORDS="~amd64 ~ppc ~x86"
65 +
66 +IUSE=""
67 +
68 +RDEPEND="
69 + >=media-libs/alsa-lib-0.9.0
70 + >=dev-lang/tcl-8.4:0=
71 + >=dev-lang/tk-8.4:0=
72 +"
73 +DEPEND="${RDEPEND}"
74 +
75 +PATCHES=(
76 + "${WORKDIR}/${P}-updated_tcl2c.patch"
77 + "${FILESDIR}/${P}-asneeded.patch"
78 + "${FILESDIR}/${P}-nostrip.patch"
79 + "${FILESDIR}/${P}-glibc-2.27.patch"
80 +)
81 +
82 +src_prepare() {
83 + default
84 + mv configure.in configure.ac || die
85 + eautoreconf
86 +}
87 +
88 +src_install() {
89 + HTML_DOCS="tk707.html" default
90 + rm -rf "${ED}"/usr/share/html/
91 + make_desktop_entry "${PN}"
92 +}