Gentoo Archives: gentoo-commits

From: Bernard Cafarelli <voyageur@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmdots/
Date: Thu, 26 Jul 2018 20:30:33
Message-Id: 1532636918.4efbf3ca123ed0eaf7a7441da3abbbe486268f46.voyageur@gentoo
1 commit: 4efbf3ca123ed0eaf7a7441da3abbbe486268f46
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Sun Jul 22 11:00:27 2018 +0000
4 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 26 20:28:38 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4efbf3ca
7
8 x11-plugins/wmdots: EAPI7, improve ebuild
9
10 x11-plugins/wmdots/wmdots-0.2_beta-r1.ebuild | 43 ++++++++++++++++++++++++++++
11 1 file changed, 43 insertions(+)
12
13 diff --git a/x11-plugins/wmdots/wmdots-0.2_beta-r1.ebuild b/x11-plugins/wmdots/wmdots-0.2_beta-r1.ebuild
14 new file mode 100644
15 index 00000000000..4f65793c900
16 --- /dev/null
17 +++ b/x11-plugins/wmdots/wmdots-0.2_beta-r1.ebuild
18 @@ -0,0 +1,43 @@
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="multishape 3d rotating dots"
27 +HOMEPAGE="https://www.dockapps.net/wmdots"
28 +SRC_URI="https://www.dockapps.net/download/${P/_}.tar.gz"
29 +
30 +LICENSE="GPL-2"
31 +SLOT="0"
32 +KEYWORDS="~amd64 ~ppc ~x86"
33 +
34 +RDEPEND="x11-libs/libX11
35 + x11-libs/libXext
36 + x11-libs/libXpm"
37 +DEPEND="${RDEPEND}"
38 +
39 +S="${WORKDIR}/${PN}"
40 +
41 +src_prepare() {
42 + default
43 + eapply "${FILESDIR}"/${P}-stringh.patch
44 + sed -e "s:cc:$(tc-getCC):g" \
45 + -e "s:-g -O2:${CFLAGS}:g" -i Makefile || die
46 +
47 + #Fix compilation target
48 + sed -e "s:wmifs:wmdots:" -i Makefile || die
49 +
50 + #Honour Gentoo LDFLAGS, see bug #336982
51 + sed -e "s:-o wmdots:\$(LDFLAGS) -o wmdots:" -i Makefile || die
52 +}
53 +
54 +src_compile() {
55 + emake clean
56 + emake LIBDIR="-L/usr/$(get_libdir)"
57 +}
58 +
59 +src_install() {
60 + dobin wmdots
61 +}