1 |
commit: 2f0afaa0a69744ab30d51315e50ae0c4a3a4c4e1 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 25 12:38:19 2016 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 25 12:53:52 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f0afaa0 |
7 |
|
8 |
x11-plugins/gkrellmoon: Respect LDFLAGS (#338792 by Michael Mair-Keimberger (iamnr3)) |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
.../gkrellmoon/files/gkrellmoon-0.6-makefile.patch | 34 ++++++++++++++++++++++ |
13 |
x11-plugins/gkrellmoon/gkrellmoon-0.6-r1.ebuild | 18 ++++++++---- |
14 |
2 files changed, 47 insertions(+), 5 deletions(-) |
15 |
|
16 |
diff --git a/x11-plugins/gkrellmoon/files/gkrellmoon-0.6-makefile.patch b/x11-plugins/gkrellmoon/files/gkrellmoon-0.6-makefile.patch |
17 |
new file mode 100644 |
18 |
index 00000000..4f4bd0e |
19 |
--- /dev/null |
20 |
+++ b/x11-plugins/gkrellmoon/files/gkrellmoon-0.6-makefile.patch |
21 |
@@ -0,0 +1,34 @@ |
22 |
+--- a/Makefile 2002-12-11 04:36:06.000000000 +0100 |
23 |
++++ b/Makefile_new 2013-03-16 13:04:00.963512605 +0100 |
24 |
+@@ -4,23 +4,26 @@ |
25 |
+ INSTALLDIR = ${DESTDIR}/usr/lib/gkrellm2/plugins |
26 |
+ |
27 |
+ |
28 |
+-FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) |
29 |
++FLAGS = -fPIC $(GTK_INCLUDE) |
30 |
+ LIBS = $(GTK_LIB) |
31 |
+ LFLAGS = -shared |
32 |
+ |
33 |
+-CC = gcc $(CFLAGS) $(FLAGS) |
34 |
++CC = $(CC) |
35 |
+ |
36 |
+ OBJS = gkrellmoon.o MoonRise.o CalcEphem.o Moon.o |
37 |
+ |
38 |
++all: gkrellmoon.so |
39 |
++ |
40 |
++%.o: %.c |
41 |
++ $(CC) $(CFLAGS) $(LDFLAGS) $(FLAGS) -c -o $@ $< |
42 |
++ |
43 |
+ gkrellmoon.so: $(OBJS) |
44 |
+- $(CC) $(OBJS) -o gkrellmoon.so $(LFLAGS) $(LIBS) |
45 |
++ $(CC) $(CFLAGS) $(FLAGS) $(LDFLAGS) $(OBJS) -o gkrellmoon.so $(LFLAGS) $(LIBS) |
46 |
+ |
47 |
+ clean: |
48 |
+ rm -f *.o core *.so* *.bak *~ |
49 |
+ |
50 |
+ gkrellmoon.o: gkrellmoon.c moon_60.xpm |
51 |
+ |
52 |
+-# %.o: %.c |
53 |
+- |
54 |
+ install: gkrellmoon.so |
55 |
+ install -c -s -m 644 gkrellmoon.so $(INSTALLDIR) |
56 |
|
57 |
diff --git a/x11-plugins/gkrellmoon/gkrellmoon-0.6-r1.ebuild b/x11-plugins/gkrellmoon/gkrellmoon-0.6-r1.ebuild |
58 |
index 19646d5..8333fd6 100644 |
59 |
--- a/x11-plugins/gkrellmoon/gkrellmoon-0.6-r1.ebuild |
60 |
+++ b/x11-plugins/gkrellmoon/gkrellmoon-0.6-r1.ebuild |
61 |
@@ -1,8 +1,9 @@ |
62 |
-# Copyright 1999-2009 Gentoo Foundation |
63 |
+# Copyright 1999-2016 Gentoo Foundation |
64 |
# Distributed under the terms of the GNU General Public License v2 |
65 |
# $Id$ |
66 |
|
67 |
-inherit gkrellm-plugin |
68 |
+EAPI=6 |
69 |
+inherit gkrellm-plugin toolchain-funcs |
70 |
|
71 |
IUSE="" |
72 |
DESCRIPTION="A GKrellM2 plugin of the famous wmMoonClock dockapp" |
73 |
@@ -10,13 +11,20 @@ SRC_URI="mirror://sourceforge/gkrellmoon/${P}.tar.gz" |
74 |
HOMEPAGE="http://gkrellmoon.sourceforge.net/" |
75 |
|
76 |
DEPEND="media-libs/imlib2" |
77 |
+RDEPEND="${DEPEND}" |
78 |
|
79 |
SLOT="2" |
80 |
LICENSE="GPL-2" |
81 |
+ |
82 |
KEYWORDS="alpha amd64 ppc sparc x86" |
83 |
|
84 |
-src_unpack() { |
85 |
- unpack ${A} |
86 |
- cd "${S}" |
87 |
+PATCHES=( "${FILESDIR}"/${P}-makefile.patch ) |
88 |
+ |
89 |
+src_prepare() { |
90 |
+ default |
91 |
sed -i -e '/^#include <stdio.h>/a#include <string.h>' CalcEphem.h |
92 |
} |
93 |
+ |
94 |
+src_compile() { |
95 |
+ emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" |
96 |
+} |