1 |
commit: 9b6d1597fdb53feea15ad8de5c4e24d14ed3972e |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 1 18:36:17 2018 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 1 19:35:48 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b6d1597 |
7 |
|
8 |
games-simulation/pmars-sdl: Drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.31, Repoman-2.3.9 |
11 |
|
12 |
games-simulation/pmars-sdl/pmars-sdl-0.9.2e.ebuild | 91 ---------------------- |
13 |
1 file changed, 91 deletions(-) |
14 |
|
15 |
diff --git a/games-simulation/pmars-sdl/pmars-sdl-0.9.2e.ebuild b/games-simulation/pmars-sdl/pmars-sdl-0.9.2e.ebuild |
16 |
deleted file mode 100644 |
17 |
index 2df3782e391..00000000000 |
18 |
--- a/games-simulation/pmars-sdl/pmars-sdl-0.9.2e.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,91 +0,0 @@ |
21 |
-# Copyright 1999-2016 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=5 |
25 |
-inherit toolchain-funcs eutils games |
26 |
- |
27 |
-MY_PN="${PN/-sdl/}" |
28 |
-MY_PV="${PV/e/-5}" |
29 |
-MY_P="${MY_PN}-${MY_PV}" |
30 |
- |
31 |
-DESCRIPTION="Portable redcode simulator's sdl port for core war" |
32 |
-HOMEPAGE="http://corewar.co.uk/pihlaja/pmars-sdl/" |
33 |
-SRC_URI="http://corewar.co.uk/pihlaja/pmars-sdl/${MY_P}.tar.gz" |
34 |
- |
35 |
-LICENSE="BSD GPL-2" |
36 |
-SLOT="0" |
37 |
-KEYWORDS="~amd64 ~x86" |
38 |
-IUSE="sdl X" |
39 |
- |
40 |
-DEPEND="sdl? ( x11-libs/libX11 media-libs/libsdl[video] ) |
41 |
- X? ( x11-libs/libX11 ) |
42 |
- !sdl? ( !X? ( sys-libs/ncurses:0 ) )" |
43 |
-RDEPEND=${DEPEND} |
44 |
- |
45 |
-S=${WORKDIR}/${MY_P} |
46 |
- |
47 |
-src_prepare() { |
48 |
- epatch "${FILESDIR}"/${P}-format.patch |
49 |
-} |
50 |
- |
51 |
-src_compile() { |
52 |
- CFLAGS="${CFLAGS} -DEXT94 -DPERMUTATE" |
53 |
- LFLAGS="-x" |
54 |
- |
55 |
- if use sdl ; then |
56 |
- CFLAGS="${CFLAGS} -DSDLGRAPHX `sdl-config --cflags`" |
57 |
- LIB=`sdl-config --libs` |
58 |
- elif use X ; then |
59 |
- CFLAGS="${CFLAGS} -DXWINGRAPHX" |
60 |
- LIB="-L/usr/X11R6/lib -lX11" |
61 |
- else |
62 |
- CFLAGS="${CFLAGS} -DCURSESGRAPHX" |
63 |
- LIB="-lcurses" |
64 |
- fi |
65 |
- |
66 |
- cd src |
67 |
- |
68 |
- SRC="asm.c |
69 |
- cdb.c |
70 |
- clparse.c |
71 |
- disasm.c |
72 |
- eval.c |
73 |
- global.c |
74 |
- pmars.c |
75 |
- sim.c |
76 |
- pos.c |
77 |
- str_eng.c |
78 |
- token.c" |
79 |
- |
80 |
- for x in ${SRC}; do |
81 |
- einfo "compiling ${x}" |
82 |
- $(tc-getCC) ${CFLAGS} ${x} -c || die |
83 |
- done |
84 |
- |
85 |
- echo |
86 |
- einfo "linking with LIB: ${LIB}" |
87 |
- $(tc-getCC) ${LDFLAGS} *.o ${LIB} -o ${MY_PN} || die |
88 |
-} |
89 |
- |
90 |
-src_install() { |
91 |
- dogamesbin src/${MY_PN} |
92 |
- doman doc/${MY_PN}.6 |
93 |
- |
94 |
- dodoc AUTHORS CONTRIB ChangeLog README doc/redcode.ref |
95 |
- |
96 |
- insinto "${GAMES_DATADIR}/${MY_PN}/warriors" |
97 |
- doins warriors/* |
98 |
- |
99 |
- insinto "${GAMES_DATADIR}/${MY_PN}/macros" |
100 |
- doins config/*.mac |
101 |
- |
102 |
- prepgamesdirs |
103 |
-} |
104 |
- |
105 |
-pkg_postinst() { |
106 |
- games_pkg_postinst |
107 |
- echo |
108 |
- ewarn "There are some macros in ${GAMES_DATADIR}/${MY_PN}/macros" |
109 |
- ewarn "which you should make accessible to pmars by typing" |
110 |
- ewarn "export PMARSHOME=${GAMES_DATADIR}/${MY_PN}/macros\n" |
111 |
-} |