1 |
commit: 78fe7c0b7e25f4c76c55f95ba0be8bd9682d0cb9 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 2 18:00:15 2018 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 2 19:27:51 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78fe7c0b |
7 |
|
8 |
games-strategy/lgeneral: Drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.31, Repoman-2.3.9 |
11 |
|
12 |
games-strategy/lgeneral/lgeneral-1.3.1-r1.ebuild | 98 ------------------------ |
13 |
1 file changed, 98 deletions(-) |
14 |
|
15 |
diff --git a/games-strategy/lgeneral/lgeneral-1.3.1-r1.ebuild b/games-strategy/lgeneral/lgeneral-1.3.1-r1.ebuild |
16 |
deleted file mode 100644 |
17 |
index 2cbe4796f69..00000000000 |
18 |
--- a/games-strategy/lgeneral/lgeneral-1.3.1-r1.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,98 +0,0 @@ |
21 |
-# Copyright 1999-2017 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=5 |
25 |
-inherit eutils autotools gnome2-utils games |
26 |
- |
27 |
-MY_P="${P/_/}" |
28 |
-MY_P="${MY_P/beta/beta-}" |
29 |
-DESCRIPTION="A Panzer General clone written in SDL" |
30 |
-HOMEPAGE="http://lgames.sourceforge.net/LGeneral/" |
31 |
-SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz |
32 |
- mirror://sourceforge/${PN}/pg-data.tar.gz" |
33 |
- |
34 |
-LICENSE="GPL-2+" |
35 |
-SLOT="0" |
36 |
-KEYWORDS="~amd64 ~x86" |
37 |
-IUSE="nls" |
38 |
- |
39 |
-RDEPEND="media-libs/libsdl[sound,video] |
40 |
- media-libs/sdl-mixer |
41 |
- nls? ( virtual/libintl )" |
42 |
-DEPEND="${RDEPEND} |
43 |
- sys-devel/gettext" |
44 |
- |
45 |
-S=${WORKDIR}/${MY_P} |
46 |
- |
47 |
-src_prepare() { |
48 |
- sed -i \ |
49 |
- -e '/desktop_DATA/d' \ |
50 |
- -e '/icon_DATA/d' \ |
51 |
- Makefile.am || die |
52 |
- |
53 |
- cp /usr/share/gettext/config.rpath . |
54 |
- rm -f missing |
55 |
- mv configure.in configure.ac |
56 |
- eautoreconf |
57 |
- |
58 |
- # Build a temporary lgc-pg that knows about ${WORKDIR}: |
59 |
- cp -pPR "${S}" "${WORKDIR}"/tmp-build || die |
60 |
- sed -i \ |
61 |
- -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}:" \ |
62 |
- -e "s:@D@::" \ |
63 |
- {lgc-pg,src}/misc.c || die |
64 |
- |
65 |
- cd "${WORKDIR}"/tmp-build || die |
66 |
- sed -i \ |
67 |
- -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}:" \ |
68 |
- -e "s:@D@:${D}:" \ |
69 |
- {lgc-pg,src}/misc.c || die |
70 |
-} |
71 |
- |
72 |
-src_configure() { |
73 |
- egamesconf \ |
74 |
- $(use_enable nls) |
75 |
- |
76 |
- # Build the temporary lgc-pg: |
77 |
- cd "${WORKDIR}"/tmp-build || die |
78 |
- egamesconf \ |
79 |
- --disable-nls \ |
80 |
- --datadir="${D}/${GAMES_DATADIR}" |
81 |
-} |
82 |
- |
83 |
-src_compile() { |
84 |
- emake |
85 |
- |
86 |
- # Build the temporary lgc-pg: |
87 |
- cd "${WORKDIR}"/tmp-build || die |
88 |
- emake |
89 |
-} |
90 |
- |
91 |
-src_install() { |
92 |
- default |
93 |
- keepdir "${GAMES_DATADIR}"/${PN}/{ai_modules,music,terrain} |
94 |
- |
95 |
- # Generate scenario data: |
96 |
- dodir "${GAMES_DATADIR}"/${PN}/gfx/{flags,units,terrain} #413901 |
97 |
- SDL_VIDEODRIVER=dummy "${WORKDIR}"/tmp-build/lgc-pg/lgc-pg --separate-bridges \ |
98 |
- -s "${WORKDIR}"/pg-data \ |
99 |
- -d "${D}/${GAMES_DATADIR}"/${PN} || die |
100 |
- |
101 |
- doicon -s 48 lgeneral.png |
102 |
- make_desktop_entry ${PN} LGeneral |
103 |
- prepgamesdirs |
104 |
-} |
105 |
- |
106 |
-pkg_preinst() { |
107 |
- games_pkg_preinst |
108 |
- gnome2_icon_savelist |
109 |
-} |
110 |
- |
111 |
-pkg_postinst() { |
112 |
- games_pkg_postinst |
113 |
- gnome2_icon_cache_update |
114 |
-} |
115 |
- |
116 |
-pkg_postrm() { |
117 |
- gnome2_icon_cache_update |
118 |
-} |