1 |
commit: 93581e09c196fd78eaeb9b01e0d45c2c00ff60bf |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 29 23:55:10 2016 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 30 00:08:46 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93581e09 |
7 |
|
8 |
x11-plugins/astime: new EAPI=6 revision that respects LDFLAGS. |
9 |
|
10 |
This new revision is based on the ebuild submitted by Michael |
11 |
Mair-Keimberger, with additional updates for EAPI=6. I have also |
12 |
simplified the patch that we apply; now it contains only the addition |
13 |
of LDFLAGS to the linker command. By side-stepping upstream's "make |
14 |
install" target, we avoid having to patch in DESTDIR and all of that. |
15 |
Doing so actually simplifies src_install() a bit, as it can be reduced |
16 |
to a dobin, newman, and dodoc. |
17 |
|
18 |
Gentoo-Bug: 337428 |
19 |
|
20 |
Package-Manager: portage-2.2.28 |
21 |
|
22 |
x11-plugins/astime/astime-2.8-r2.ebuild | 39 ++++++++++++++++++++++++++ |
23 |
x11-plugins/astime/files/respect-ldflags.patch | 11 ++++++++ |
24 |
2 files changed, 50 insertions(+) |
25 |
|
26 |
diff --git a/x11-plugins/astime/astime-2.8-r2.ebuild b/x11-plugins/astime/astime-2.8-r2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000..fc3803a |
29 |
--- /dev/null |
30 |
+++ b/x11-plugins/astime/astime-2.8-r2.ebuild |
31 |
@@ -0,0 +1,39 @@ |
32 |
+# Copyright 1999-2016 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+inherit toolchain-funcs |
39 |
+ |
40 |
+DESCRIPTION="Analogue clock utility for X Windows" |
41 |
+HOMEPAGE="http://www.tigr.net/" |
42 |
+SRC_URI="${HOMEPAGE}afterstep/download/${PN}/${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="GPL-2" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
47 |
+IUSE="jpeg" |
48 |
+ |
49 |
+RDEPEND="x11-libs/libXpm |
50 |
+ x11-libs/libSM |
51 |
+ jpeg? ( virtual/jpeg:0 )" |
52 |
+ |
53 |
+DEPEND="${RDEPEND} |
54 |
+ x11-proto/xproto" |
55 |
+ |
56 |
+PATCHES=( "${FILESDIR}/respect-ldflags.patch" ) |
57 |
+ |
58 |
+src_configure() { |
59 |
+ econf $(use_enable jpeg) |
60 |
+} |
61 |
+ |
62 |
+src_compile() { |
63 |
+ emake CC="$(tc-getCC)" |
64 |
+} |
65 |
+ |
66 |
+src_install () { |
67 |
+ dobin "${PN}" |
68 |
+ newman "${PN}.man" "${PN}.1" |
69 |
+ einstalldocs |
70 |
+} |
71 |
|
72 |
diff --git a/x11-plugins/astime/files/respect-ldflags.patch b/x11-plugins/astime/files/respect-ldflags.patch |
73 |
new file mode 100644 |
74 |
index 00000000..0932559 |
75 |
--- /dev/null |
76 |
+++ b/x11-plugins/astime/files/respect-ldflags.patch |
77 |
@@ -0,0 +1,11 @@ |
78 |
+--- a/autoconf/Makefile.common.in 1999-05-02 17:12:39.000000000 +0200 |
79 |
++++ b/autoconf/Makefile.common.in 2013-03-24 16:16:27.494987496 +0100 |
80 |
+@@ -34,7 +33,7 @@ |
81 |
+ done |
82 |
+ |
83 |
+ $(PROG): $(OBJS) |
84 |
+- $(CC) $(OBJS) $(LIBRARIES) $(EXTRA_LIBRARIES) -o $(@) |
85 |
++ $(CC) $(OBJS) $(LIBRARIES) $(EXTRA_LIBRARIES) -o $(@) $(LDFLAGS) |
86 |
+ |
87 |
+ .c.o: |
88 |
+ $(CC) $(CCFLAGS) $(EXTRA_DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) -c $*.c |