Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-themes/gtk-engines-aurora/files/, x11-themes/gtk-engines-aurora/
Date: Tue, 30 Mar 2021 21:08:59
Message-Id: 1617138522.6f82aa02a5e0afdb2fdf7f65e2a72c55a17c5913.sam@gentoo
1 commit: 6f82aa02a5e0afdb2fdf7f65e2a72c55a17c5913
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 30 20:49:51 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 30 21:08:42 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f82aa02
7
8 x11-themes/gtk-engines-aurora: fix build with slibtool
9
10 Thanks-to: orbea <orbea <AT> riseup.net>
11 Closes: https://bugs.gentoo.org/779406
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 ...urora-1.5.1-slibtool-undefined-references.patch | 32 ++++++++++++++++++++++
15 .../gtk-engines-aurora-1.5.1.ebuild | 11 ++++----
16 2 files changed, 38 insertions(+), 5 deletions(-)
17
18 diff --git a/x11-themes/gtk-engines-aurora/files/gtk-engines-aurora-1.5.1-slibtool-undefined-references.patch b/x11-themes/gtk-engines-aurora/files/gtk-engines-aurora-1.5.1-slibtool-undefined-references.patch
19 new file mode 100644
20 index 00000000000..b88f21cac82
21 --- /dev/null
22 +++ b/x11-themes/gtk-engines-aurora/files/gtk-engines-aurora-1.5.1-slibtool-undefined-references.patch
23 @@ -0,0 +1,32 @@
24 +https://bugs.gentoo.org/779406
25 +
26 +commit e55f6880d6bb649b2f1bd55c31bd4ba6265ccae0
27 +Author: orbea <orbea@××××××.net>
28 +Date: Tue Mar 30 11:54:33 2021 -0700
29 +
30 + build: Fix undefined references for libm.
31 +
32 +diff --git a/Makefile.am b/Makefile.am
33 +index 16d29ea..09a51bb 100644
34 +--- a/Makefile.am
35 ++++ b/Makefile.am
36 +@@ -22,4 +22,4 @@ libaurora_la_SOURCES = \
37 + ./src/config.h
38 +
39 + libaurora_la_LDFLAGS = -module -avoid-version -no-undefined
40 +-libaurora_la_LIBADD = $(GTK_LIBS)
41 ++libaurora_la_LIBADD = $(GTK_LIBS) $(LIBM)
42 +diff --git a/configure.ac b/configure.ac
43 +index b1c35e9..9b446c3 100644
44 +--- a/configure.ac
45 ++++ b/configure.ac
46 +@@ -20,6 +20,9 @@ AC_ARG_ENABLE(animation, [ --enable-animation compile aurora with animati
47 +
48 + PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.10.0,,AC_MSG_ERROR([GTK+-2.10 is required to compile aurora]))
49 +
50 ++AC_CHECK_LIBM
51 ++AC_SUBST([LIBM])
52 ++
53 + AC_SUBST(GTK_CFLAGS)
54 + AC_SUBST(GTK_LIBS)
55 +
56
57 diff --git a/x11-themes/gtk-engines-aurora/gtk-engines-aurora-1.5.1.ebuild b/x11-themes/gtk-engines-aurora/gtk-engines-aurora-1.5.1.ebuild
58 index 2a8bfa1c6b8..68deb890414 100644
59 --- a/x11-themes/gtk-engines-aurora/gtk-engines-aurora-1.5.1.ebuild
60 +++ b/x11-themes/gtk-engines-aurora/gtk-engines-aurora-1.5.1.ebuild
61 @@ -4,10 +4,10 @@
62 EAPI=7
63
64 MY_MAJ=$(ver_cut 1-2)
65 -
66 DESCRIPTION="Aurora GTK+ 2.x Theme Engine"
67 HOMEPAGE="https://www.gnome-look.org/content/show.php?content=56438"
68 SRC_URI="https://gnome-look.org/CONTENT/content-files/56438-aurora-${PV}.tar.bz2"
69 +S="${WORKDIR}/aurora-${MY_MAJ}"
70
71 LICENSE="GPL-2"
72 SLOT="0"
73 @@ -19,9 +19,10 @@ RDEPEND="
74 DEPEND="${RDEPEND}"
75 BDEPEND="virtual/pkgconfig"
76
77 -S="${WORKDIR}/aurora-${MY_MAJ}"
78 -
79 -PATCHES=( "${FILESDIR}"/${P}-glib-2.31.patch )
80 +PATCHES=(
81 + "${FILESDIR}"/${P}-glib-2.31.patch
82 + "${FILESDIR}"/${P}-slibtool-undefined-references.patch
83 +)
84
85 src_unpack() {
86 unpack ${A}
87 @@ -40,5 +41,5 @@ src_install() {
88 doins -r ../Aurora/.
89
90 # no static archives
91 - find "${D}" -name '*.la' -delete || die
92 + find "${ED}" -name '*.la' -delete || die
93 }