1 |
commit: b4f8b8fae3ad4f7337ca9b8cb1a7a19a559049b2 |
2 |
Author: Harri Nieminen <moikkis <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Mar 2 09:10:01 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 4 15:18:41 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4f8b8fa |
7 |
|
8 |
x11-misc/xmountains: EAPI bump 4 -> 6 |
9 |
|
10 |
Package-Manager: Portage-2.3.4, Repoman-2.3.2 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/4098 |
12 |
|
13 |
x11-misc/xmountains/xmountains-2.9-r1.ebuild | 48 ++++++++++++++++++++++++++++ |
14 |
1 file changed, 48 insertions(+) |
15 |
|
16 |
diff --git a/x11-misc/xmountains/xmountains-2.9-r1.ebuild b/x11-misc/xmountains/xmountains-2.9-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..7bf5d4f892c |
19 |
--- /dev/null |
20 |
+++ b/x11-misc/xmountains/xmountains-2.9-r1.ebuild |
21 |
@@ -0,0 +1,48 @@ |
22 |
+# Copyright 1999-2017 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=6 |
26 |
+ |
27 |
+inherit toolchain-funcs |
28 |
+ |
29 |
+MY_P=${P/-/_} |
30 |
+ |
31 |
+DESCRIPTION="Fractal terrains of snow-capped mountains near water" |
32 |
+HOMEPAGE="https://spbooth.github.io/xmountains/" |
33 |
+SRC_URI="http://www.epcc.ed.ac.uk/~spb/${PN}/${MY_P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="HPND" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" |
38 |
+IUSE="" |
39 |
+ |
40 |
+RDEPEND=" |
41 |
+ x11-libs/libX11 |
42 |
+ x11-misc/xbitmaps" |
43 |
+DEPEND="${RDEPEND} |
44 |
+ x11-proto/xproto" |
45 |
+ |
46 |
+S=${WORKDIR} |
47 |
+ |
48 |
+src_prepare() { |
49 |
+ default |
50 |
+ # add missing include for strcmp |
51 |
+ sed -i xmountains.c -e '1a#include <string.h> /* strcmp() */' || die |
52 |
+ # remove obsolete references to global.* |
53 |
+ sed -i Makefile.alt README -e 's|global\..||g' || die |
54 |
+} |
55 |
+ |
56 |
+src_compile() { |
57 |
+ emake \ |
58 |
+ -f Makefile.alt \ |
59 |
+ CC="$(tc-getCC)" \ |
60 |
+ CFLAGS="${CFLAGS}" \ |
61 |
+ LDFLAGS="${LDFLAGS}" \ |
62 |
+ ${PN} |
63 |
+} |
64 |
+ |
65 |
+src_install() { |
66 |
+ dobin ${PN} |
67 |
+ newman ${PN}.man ${PN}.1 |
68 |
+ einstalldocs |
69 |
+} |