Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/phat/, media-libs/phat/files/
Date: Thu, 13 Jan 2022 06:03:00
Message-Id: 1642053748.832c88a650fc794fd5105723656f8dee55488cf8.sam@gentoo
1 commit: 832c88a650fc794fd5105723656f8dee55488cf8
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 13 06:02:22 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 13 06:02:28 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=832c88a6
7
8 media-libs/phat: update EAPI 6 -> 8, build with lld
9
10 Was underlinking libm for e.g. exp().
11
12 Closes: https://bugs.gentoo.org/740162
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 .../phat/files/phat-0.4.1-libm-underlinking.patch | 16 ++++++++
16 media-libs/phat/phat-0.4.1-r2.ebuild | 43 ++++++++++++++++++++++
17 2 files changed, 59 insertions(+)
18
19 diff --git a/media-libs/phat/files/phat-0.4.1-libm-underlinking.patch b/media-libs/phat/files/phat-0.4.1-libm-underlinking.patch
20 new file mode 100644
21 index 000000000000..f6e55b9fa18b
22 --- /dev/null
23 +++ b/media-libs/phat/files/phat-0.4.1-libm-underlinking.patch
24 @@ -0,0 +1,16 @@
25 +From: Sam James <sam@g.o>
26 +Date: Thu, 13 Jan 2022 06:00:11 +0000
27 +Subject: [PATCH] Fix underlinking against libm
28 +
29 +Bug: https://bugs.gentoo.org/740162
30 +--- a/configure.ac
31 ++++ b/configure.ac
32 +@@ -47,6 +47,8 @@ GTK_DOC_CHECK(1.0)
33 + # misc checks
34 + PKG_CHECK_MODULES(MISC, libgnomecanvas-2.0 x11)
35 +
36 ++AC_SEARCH_LIBS(exp, m)
37 ++
38 + # set compilation flags
39 + CFLAGS="$CFLAGS $GTK_CFLAGS $MISC_CFLAGS -Wall"
40 + LIBS="$LIBS $GTK_LIBS $MISC_LIBS"
41
42 diff --git a/media-libs/phat/phat-0.4.1-r2.ebuild b/media-libs/phat/phat-0.4.1-r2.ebuild
43 new file mode 100644
44 index 000000000000..206b47e5d396
45 --- /dev/null
46 +++ b/media-libs/phat/phat-0.4.1-r2.ebuild
47 @@ -0,0 +1,43 @@
48 +# Copyright 1999-2022 Gentoo Authors
49 +# Distributed under the terms of the GNU General Public License v2
50 +
51 +EAPI=8
52 +
53 +inherit autotools
54 +
55 +DESCRIPTION="PHAT is a collection of GTK+ widgets geared toward pro-audio apps"
56 +HOMEPAGE="https://sourceforge.net/projects/phat.berlios/"
57 +SRC_URI="mirror://sourceforge/phat.berlios/${P}.tar.gz"
58 +
59 +LICENSE="GPL-2"
60 +SLOT="0"
61 +KEYWORDS="~amd64 ~ppc ~sparc ~x86"
62 +IUSE="debug"
63 +
64 +RDEPEND="gnome-base/libgnomecanvas
65 + x11-libs/gtk+:2
66 + x11-libs/libX11"
67 +DEPEND="${RDEPEND}"
68 +BDEPEND="dev-util/gtk-doc
69 + virtual/pkgconfig"
70 +
71 +PATCHES=(
72 + "${FILESDIR}/${P}-underlinking.patch"
73 + "${FILESDIR}/${P}-libm-underlinking.patch"
74 +)
75 +
76 +src_prepare() {
77 + default
78 +
79 + eautoreconf
80 +}
81 +
82 +src_configure() {
83 + econf $(use_enable debug)
84 +}
85 +
86 +src_install() {
87 + default
88 +
89 + find "${ED}" -name '*.la' -delete || die
90 +}