Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-plugins/gkrellm-trayicons/, x11-plugins/gkrellm-trayicons/files/
Date: Thu, 25 Aug 2016 12:54:10
Message-Id: 1472129629.81b74aa034caf8df7c29bd03cbee1fb07b87b10f.pacho@gentoo
1 commit: 81b74aa034caf8df7c29bd03cbee1fb07b87b10f
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 25 12:33:41 2016 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 25 12:53:49 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81b74aa0
7
8 x11-plugins/gkrellm-trayicons: Respect LDFLAGS (#338784 by Michael Mair-Keimberger (iamnr3))
9
10 Package-Manager: portage-2.3.0
11
12 .../files/gkrellm-trayicons-1.03-ldflags.patch | 25 ++++++++++++++++++++++
13 .../gkrellm-trayicons-1.03.ebuild | 15 +++++++++----
14 2 files changed, 36 insertions(+), 4 deletions(-)
15
16 diff --git a/x11-plugins/gkrellm-trayicons/files/gkrellm-trayicons-1.03-ldflags.patch b/x11-plugins/gkrellm-trayicons/files/gkrellm-trayicons-1.03-ldflags.patch
17 new file mode 100644
18 index 00000000..92764a9
19 --- /dev/null
20 +++ b/x11-plugins/gkrellm-trayicons/files/gkrellm-trayicons-1.03-ldflags.patch
21 @@ -0,0 +1,25 @@
22 +--- a/Makefile 2003-11-26 00:27:29.000000000 +0100
23 ++++ b/Makefile_new 2013-03-15 21:36:05.331857288 +0100
24 +@@ -6,19 +6,18 @@
25 + GKRELLM_INCLUDE = -I$(PREFIX)/include
26 + GTK_CFLAGS = `$(GTK_CONFIG) --cflags`
27 + GTK_LIB = `$(GTK_CONFIG) --libs`
28 +-FLAGS = -Wall -fPIC $(GTK_CFLAGS) $(GKRELLM_INCLUDE)
29 +-CFLAGS ?= -O -g
30 ++FLAGS = -fPIC $(GTK_CFLAGS) $(GKRELLM_INCLUDE)
31 + CFLAGS += $(FLAGS)
32 + CFLAGS += -DVERSION=\"$(VERSION)\"
33 + LIBS = $(GTK_LIB)
34 + LFLAGS = -shared
35 +-CC ?= gcc
36 ++CC = $(CC)
37 + INSTALL = install -c
38 + INSTALL_PROGRAM = $(INSTALL) -s
39 + OBJS = trayicons.o
40 +
41 + trayicons.so: $(OBJS)
42 +- $(CC) $(FLAGS) $(OBJS) -o trayicons.so $(LIBS) $(LFLAGS)
43 ++ $(CC) $(FLAGS) $(LDFLAGS) $(OBJS) -o trayicons.so $(LIBS) $(LFLAGS)
44 +
45 + clean:
46 + rm -f *.o core *.so* *.bak *~
47
48 diff --git a/x11-plugins/gkrellm-trayicons/gkrellm-trayicons-1.03.ebuild b/x11-plugins/gkrellm-trayicons/gkrellm-trayicons-1.03.ebuild
49 index 16dd066..2d1437b 100644
50 --- a/x11-plugins/gkrellm-trayicons/gkrellm-trayicons-1.03.ebuild
51 +++ b/x11-plugins/gkrellm-trayicons/gkrellm-trayicons-1.03.ebuild
52 @@ -1,16 +1,23 @@
53 -# Copyright 1999-2010 Gentoo Foundation
54 +# Copyright 1999-2016 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Id$
57
58 -inherit gkrellm-plugin
59 +EAPI=6
60 +inherit gkrellm-plugin toolchain-funcs
61
62 DESCRIPTION="Configurable Tray Icons for GKrellM"
63 -HOMEPAGE="http://tripie.sweb.cz/gkrellm/trayicons/"
64 -SRC_URI="http://tripie.sweb.cz/gkrellm/trayicons/dist/${P}.tar.gz"
65 +HOMEPAGE="http://gkrellm.srcbox.net/Plugins.html"
66 +SRC_URI="mirror://gentoo/${P}.tar.gz"
67
68 LICENSE="GPL-2"
69 SLOT="0"
70 KEYWORDS="amd64 ppc sparc x86"
71 IUSE=""
72
73 +PATCHES=( "${FILESDIR}"/${P}-ldflags.patch )
74 +
75 PLUGIN_SO=trayicons.so
76 +
77 +src_compile() {
78 + emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}"
79 +}