Gentoo Archives: gentoo-commits

From: Michael Sterrett <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-misc/c++robots/, games-misc/c++robots/files/
Date: Fri, 18 Dec 2015 08:18:07
Message-Id: 1450426646.37b7c85dd4bc77738680bfc762b6ced94db3f546.mr_bones_@gentoo
1 commit: 37b7c85dd4bc77738680bfc762b6ced94db3f546
2 Author: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 18 01:40:28 2015 +0000
4 Commit: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 18 08:17:26 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37b7c85d
7
8 EAPI=5; respect CXX
9
10 Package-Manager: portage-2.2.24
11
12 games-misc/c++robots/c++robots-0.ebuild | 2 +-
13 games-misc/c++robots/files/proper-coding.patch | 30 +++++++++++++-------------
14 2 files changed, 16 insertions(+), 16 deletions(-)
15
16 diff --git a/games-misc/c++robots/c++robots-0.ebuild b/games-misc/c++robots/c++robots-0.ebuild
17 index a243b72..3fc460a 100644
18 --- a/games-misc/c++robots/c++robots-0.ebuild
19 +++ b/games-misc/c++robots/c++robots-0.ebuild
20 @@ -2,7 +2,7 @@
21 # Distributed under the terms of the GNU General Public License v2
22 # $Id$
23
24 -EAPI=4
25 +EAPI=5
26 inherit eutils games
27
28 DESCRIPTION="ongoing 'King of the Hill' (KotH) tournament"
29
30 diff --git a/games-misc/c++robots/files/proper-coding.patch b/games-misc/c++robots/files/proper-coding.patch
31 index f54af03..93b87c1 100644
32 --- a/games-misc/c++robots/files/proper-coding.patch
33 +++ b/games-misc/c++robots/files/proper-coding.patch
34 @@ -1,51 +1,51 @@
35 ---- Makefile.orig 2003-01-01 23:36:19.000000000 -0500
36 -+++ Makefile 2003-01-01 23:39:32.000000000 -0500
37 -@@ -1,8 +1,9 @@
38 +--- c++robots.orig/Makefile
39 ++++ c++robots/Makefile
40 +@@ -1,38 +1,37 @@
41 CFLAGS=-g
42 +LDFLAGS=
43 PROGRAMS=combat
44 ROBOTS=cylon tracker target
45
46 -CC=g++ -g
47 -+CC=g++
48 -
49 +-
50 all: $(PROGRAMS) $(ROBOTS)
51
52 -@@ -10,29 +11,29 @@
53 + clean:
54 rm -f $(PROGRAMS) $(ROBOTS) *.o core
55
56 combat: combat.o
57 - $(CC) $(CFLAGS) -o $@ combat.o -lm
58 -+ $(CC) -o $@ $(LDFLAGS) combat.o -lm
59 ++ $(CXX) -o $@ $(LDFLAGS) combat.o -lm
60
61 combat.o: combat.c
62 - $(CC) $(CFLAGS) -c combat.c
63 +- $(CC) $(CFLAGS) -c combat.c
64 ++ $(CXX) $(CXXFLAGS) -c combat.c
65
66 robots.o: robots.C robots.h
67 - g++ -c robots.C
68 -+ $(CC) $(CFLAGS) -c robots.C
69 ++ $(CXX) $(CXXFLAGS) -c robots.C
70
71 cylon: cylon.o robots.o
72 - g++ -static -o $@ cylon.o robots.o
73 -+ $(CC) -o $@ $(LDFLAGS) cylon.o robots.o
74 ++ $(CXX) -o $@ $(LDFLAGS) cylon.o robots.o
75
76 cylon.o: cylon.c robots.h
77 - g++ -c cylon.c
78 -+ $(CC) $(CFLAGS) -c cylon.c
79 ++ $(CXX) $(CXXFLAGS) -c cylon.c
80
81 tracker: tracker.o robots.o
82 - g++ -static -o $@ tracker.o robots.o
83 -+ $(CC) -o $@ $(LDFLAGS) tracker.o robots.o
84 ++ $(CXX) -o $@ $(LDFLAGS) tracker.o robots.o
85
86 tracker.o: tracker.c robots.h
87 - g++ -c tracker.c
88 -+ $(CC) $(CFLAGS) -c tracker.c
89 ++ $(CXX) $(CXXFLAGS) -c tracker.c
90
91 target: target.o robots.o
92 - g++ -static -o $@ target.o robots.o
93 -+ $(CC) -o $@ $(LDFLAGS) target.o robots.o
94 ++ $(CXX) -o $@ $(LDFLAGS) target.o robots.o
95
96 target.o: target.c robots.h
97 - g++ -c target.c
98 -+ $(CC) $(CFLAGS) -c target.c
99 ++ $(CXX) $(CXXFLAGS) -c target.c