Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-plugins/asmem/, x11-plugins/asmem/files/
Date: Sun, 28 Aug 2016 16:37:22
Message-Id: 1472402206.01fa5298a358a092d7f328b454af09dc6ed020c3.mjo@gentoo
1 commit: 01fa5298a358a092d7f328b454af09dc6ed020c3
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 28 16:32:07 2016 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 28 16:36:46 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01fa5298
7
8 x11-plugins/asmem: new EAPI=6 revision that respects LDFLAGS.
9
10 This new revision is based on the ebuild supplied by Michael
11 Mair-Keimberger in bug 334771. I turned his sed command into a patch,
12 and further updated the ebuild to EAPI=6.
13
14 Gentoo-Bug: 334771
15
16 Package-Manager: portage-2.2.28
17
18 x11-plugins/asmem/asmem-1.12-r1.ebuild | 41 +++++++++++++++++++++++++++
19 x11-plugins/asmem/files/respect-ldflags.patch | 27 ++++++++++++++++++
20 2 files changed, 68 insertions(+)
21
22 diff --git a/x11-plugins/asmem/asmem-1.12-r1.ebuild b/x11-plugins/asmem/asmem-1.12-r1.ebuild
23 new file mode 100644
24 index 00000000..dfe5d5c
25 --- /dev/null
26 +++ b/x11-plugins/asmem/asmem-1.12-r1.ebuild
27 @@ -0,0 +1,41 @@
28 +# Copyright 1999-2016 Gentoo Foundation
29 +# Distributed under the terms of the GNU General Public License v2
30 +# $Id$
31 +
32 +EAPI=6
33 +
34 +inherit toolchain-funcs
35 +
36 +DESCRIPTION="Monitor the utilization level of memory, cache and swap space"
37 +HOMEPAGE="http://www.tigr.net/"
38 +SRC_URI="${HOMEPAGE}afterstep/download/${PN}/${P}.tar.gz"
39 +
40 +LICENSE="GPL-2"
41 +SLOT="0"
42 +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
43 +IUSE="jpeg"
44 +
45 +RDEPEND="x11-libs/libX11
46 + x11-libs/libICE
47 + x11-libs/libSM
48 + x11-libs/libXpm
49 + x11-libs/libXext
50 + jpeg? ( virtual/jpeg:0 )"
51 +DEPEND="${RDEPEND}
52 + x11-proto/xproto"
53 +
54 +PATCHES=( "${FILESDIR}/respect-ldflags.patch" )
55 +
56 +src_configure() {
57 + econf $(use_enable jpeg)
58 +}
59 +
60 +src_compile() {
61 + emake CC=$(tc-getCC) LDFLAGS="${LDFLAGS}"
62 +}
63 +
64 +src_install() {
65 + dobin "${PN}"
66 + newman "${PN}.man" "${PN}.1"
67 + einstalldocs
68 +}
69
70 diff --git a/x11-plugins/asmem/files/respect-ldflags.patch b/x11-plugins/asmem/files/respect-ldflags.patch
71 new file mode 100644
72 index 00000000..75deb42
73 --- /dev/null
74 +++ b/x11-plugins/asmem/files/respect-ldflags.patch
75 @@ -0,0 +1,27 @@
76 +From 1f02c866884bd08dda27aada5ebaa92e560144d4 Mon Sep 17 00:00:00 2001
77 +From: Michael Orlitzky <michael@××××××××.com>
78 +Date: Sun, 28 Aug 2016 12:15:34 -0400
79 +Subject: [PATCH 1/1] autoconf/Makefile.common.in: add $LDFLAGS to the linker
80 + command.
81 +
82 +Gentoo-Bug: 334771
83 +---
84 + autoconf/Makefile.common.in | 2 +-
85 + 1 file changed, 1 insertion(+), 1 deletion(-)
86 +
87 +diff --git a/autoconf/Makefile.common.in b/autoconf/Makefile.common.in
88 +index 2409579..08e01a9 100644
89 +--- a/autoconf/Makefile.common.in
90 ++++ b/autoconf/Makefile.common.in
91 +@@ -34,7 +34,7 @@ indent:
92 + done
93 +
94 + $(PROG): $(OBJS)
95 +- $(CC) $(OBJS) $(LIBRARIES) $(EXTRA_LIBRARIES) -o $(@)
96 ++ $(CC) $(OBJS) $(LIBRARIES) $(EXTRA_LIBRARIES) -o $(@) $(LDFLAGS)
97 +
98 + .c.o:
99 + $(CC) $(CCFLAGS) $(EXTRA_DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) -c $*.c
100 +--
101 +2.7.3
102 +