1 |
commit: 57ffc757f77a5ceec0950a9f0af965cbf340cc66 |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Jul 22 10:53:48 2018 +0000 |
4 |
Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 26 20:28:37 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57ffc757 |
7 |
|
8 |
x11-plugins/wmcp: EAPI7, improve ebuild |
9 |
|
10 |
x11-plugins/wmcp/wmcp-1.2.8-r1.ebuild | 42 +++++++++++++++++++++++++++++++++++ |
11 |
1 file changed, 42 insertions(+) |
12 |
|
13 |
diff --git a/x11-plugins/wmcp/wmcp-1.2.8-r1.ebuild b/x11-plugins/wmcp/wmcp-1.2.8-r1.ebuild |
14 |
new file mode 100644 |
15 |
index 00000000000..14b781073ff |
16 |
--- /dev/null |
17 |
+++ b/x11-plugins/wmcp/wmcp-1.2.8-r1.ebuild |
18 |
@@ -0,0 +1,42 @@ |
19 |
+# Copyright 1999-2018 Gentoo Foundation |
20 |
+# Distributed under the terms of the GNU General Public License v2 |
21 |
+ |
22 |
+EAPI=7 |
23 |
+ |
24 |
+inherit toolchain-funcs |
25 |
+ |
26 |
+DESCRIPTION="A pager dockapp" |
27 |
+HOMEPAGE="https://www.dockapps.net/wmcp" |
28 |
+SRC_URI="https://www.dockapps.net/download/${P}.tar.gz" |
29 |
+ |
30 |
+LICENSE="GPL-2" |
31 |
+SLOT="0" |
32 |
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~sparc ~x86" |
33 |
+ |
34 |
+RDEPEND="x11-libs/libX11 |
35 |
+ x11-libs/libXext |
36 |
+ x11-libs/libXpm" |
37 |
+DEPEND="${RDEPEND} |
38 |
+ x11-base/xorg-proto" |
39 |
+ |
40 |
+src_prepare() { |
41 |
+ default |
42 |
+ eapply "${FILESDIR}"/${P}-gcc33.patch |
43 |
+ eapply "${FILESDIR}"/${P}-stdlibh.patch |
44 |
+ sed -i \ |
45 |
+ -e "s:gcc:$(tc-getCC):g" \ |
46 |
+ -e "s:i686-pc-linux-gnu-gcc -g:i686-pc-linux-gnu-gcc:g" \ |
47 |
+ -e "s:i686-pc-linux-gnu-gcc -o:i686-pc-linux-gnu-gcc ${LDFLAGS} -o:" \ |
48 |
+ Makefile || die |
49 |
+} |
50 |
+ |
51 |
+src_compile() { |
52 |
+ emake -j1 INCLUDES="-I/usr/include/X11" \ |
53 |
+ LIBINC="-L/usr/$(get_libdir)" \ |
54 |
+ FLAGS="${CFLAGS}" |
55 |
+} |
56 |
+ |
57 |
+src_install() { |
58 |
+ dobin wmcp |
59 |
+ dodoc README |
60 |
+} |