Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-action/xpilot/
Date: Tue, 31 Jan 2017 00:59:42
Message-Id: 1485824362.65c125f28ba986e4e866a37bfff9a709f98de267.wizardedit@gentoo
1 commit: 65c125f28ba986e4e866a37bfff9a709f98de267
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 31 00:59:07 2017 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 31 00:59:22 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65c125f2
7
8 games-action/xpilot: remove deprecated games eclass
9
10 Also update to EAPI 6
11
12 Gentoo-Bug: https://bugs.gentoo.org/574082
13
14 Package-Manager: Portage-2.3.2, Repoman-2.3.1
15
16 games-action/xpilot/xpilot-4.5.5-r1.ebuild | 56 ++++++++++++++++++++++++++++++
17 1 file changed, 56 insertions(+)
18
19 diff --git a/games-action/xpilot/xpilot-4.5.5-r1.ebuild b/games-action/xpilot/xpilot-4.5.5-r1.ebuild
20 new file mode 100644
21 index 00000000..6541d99
22 --- /dev/null
23 +++ b/games-action/xpilot/xpilot-4.5.5-r1.ebuild
24 @@ -0,0 +1,56 @@
25 +# Copyright 1999-2017 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +# $Id$
28 +
29 +EAPI=6
30 +inherit eutils toolchain-funcs
31 +
32 +DESCRIPTION="A multi-player 2D client/server space game"
33 +HOMEPAGE="http://www.xpilot.org/"
34 +SRC_URI="mirror://sourceforge/xpilotgame/${P}.tar.bz2"
35 +
36 +LICENSE="GPL-2"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~ppc ~x86"
39 +IUSE=""
40 +
41 +RDEPEND="x11-libs/libX11
42 + x11-libs/libXext"
43 +DEPEND="${RDEPEND}
44 + app-text/rman
45 + x11-misc/gccmakedep
46 + x11-misc/imake
47 + x11-proto/xextproto
48 + x11-proto/xproto"
49 +
50 +src_prepare() {
51 + #default
52 + eapply_user
53 +
54 + sed -i \
55 + -e '/^INSTMAN/s:=.*:=/usr/share/man/man6:' \
56 + -e "/^INSTLIB/s:=.*:=/usr/share/${PN}:" \
57 + -e "/^INSTBIN/s:=.*:=/usr/bin:" \
58 + Local.config || die
59 +
60 + # work with glibc-2.20
61 + sed -i \
62 + -e 's/getline/lgetline/' \
63 + src/client/textinterface.c || die
64 +}
65 +
66 +src_compile() {
67 + xmkmf || die
68 + emake Makefiles
69 + emake includes
70 + emake depend
71 + emake CC="$(tc-getCC)" CDEBUGFLAGS="${CFLAGS} ${LDFLAGS}"
72 +}
73 +
74 +src_install() {
75 + emake DESTDIR="${D}" install
76 + emake DESTDIR="${D}" install.man
77 + newicon lib/textures/logo.ppm ${PN}.ppm
78 + make_desktop_entry ${PN} XPilot /usr/share/pixmaps/${PN}.ppm
79 + dodoc README.txt doc/{ChangeLog,CREDITS,FAQ,README*,TODO}
80 +}