Gentoo Archives: gentoo-commits

From: "Azamat H. Hackimov" <winterheart@××××××.ru>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gamerlay:master commit in: games-arcade/openggs/
Date: Sat, 29 Feb 2020 01:15:39
Message-Id: 1582922915.f5b7e189537209571e00daaba3ad1341818a83d7.winterheart@gentoo
1 commit: f5b7e189537209571e00daaba3ad1341818a83d7
2 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
3 AuthorDate: Fri Feb 28 20:48:35 2020 +0000
4 Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
5 CommitDate: Fri Feb 28 20:48:35 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=f5b7e189
7
8 games-arcade/openggs: remove ebuild
9
10 Source unavaible, deprecated eclass
11 Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
12
13 games-arcade/openggs/metadata.xml | 11 -----
14 games-arcade/openggs/openggs-0.111.ebuild | 71 -------------------------------
15 2 files changed, 82 deletions(-)
16
17 diff --git a/games-arcade/openggs/metadata.xml b/games-arcade/openggs/metadata.xml
18 deleted file mode 100644
19 index cdcf202..0000000
20 --- a/games-arcade/openggs/metadata.xml
21 +++ /dev/null
22 @@ -1,11 +0,0 @@
23 -<?xml version="1.0" encoding="UTF-8"?>
24 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
25 -<pkgmetadata>
26 -<maintainer type="person">
27 - <email>frostworks@×××.de</email>
28 - <name>Marcel Unbehaun</name>
29 -</maintainer>
30 -<use>
31 - <flag name="editor">useflag for the optional leveleditor</flag>
32 -</use>
33 -</pkgmetadata>
34
35 diff --git a/games-arcade/openggs/openggs-0.111.ebuild b/games-arcade/openggs/openggs-0.111.ebuild
36 deleted file mode 100644
37 index eceaa21..0000000
38 --- a/games-arcade/openggs/openggs-0.111.ebuild
39 +++ /dev/null
40 @@ -1,71 +0,0 @@
41 -# Copyright 1999-2009 Gentoo Foundation
42 -# Distributed under the terms of the GNU General Public License v2
43 -# $Header: $
44 -
45 -EAPI="2"
46 -
47 -inherit games
48 -
49 -MY_PN=OpenGGS
50 -
51 -DESCRIPTION="reimplementation of The Great Giana Sisters as an easily portable Free Software/Open Source project."
52 -HOMEPAGE="http://openggs.romanhoegg.ch/"
53 -SRC_URI="mirror://sourceforge/${PN}/${MY_PN}_${PV}_incl_Sources.zip"
54 -
55 -LICENSE="GPL-2"
56 -SLOT="0"
57 -KEYWORDS="~x86"
58 -IUSE="editor"
59 -
60 -RDEPEND="media-libs/libsdl
61 - media-libs/sdl-image
62 - media-libs/sdl-mixer"
63 -DEPEND="${RDEPEND}
64 - app-arch/unzip"
65 -
66 -S="${WORKDIR}/${MY_PN}_${PV}"
67 -
68 -src_prepare(){
69 - sed -i -e "s:classic.lvl:"${GAMES_DATADIR}"/"${PN}"/classic.lvl:g" -i sources/load_stage.cpp
70 - for i in `find sources -name *.cpp`; do sed -i "$i" -e "s:base:"${GAMES_DATADIR}"/"${PN}/base":g"; done
71 - if use editor; then
72 - sed -i -e "s:classic.lvl:"${GAMES_DATADIR}"/"${PN}"/classic.lvl:g" -i sources_editor/saveStageBinary.cpp
73 - sed -i -e "s:classic.lvl:"${GAMES_DATADIR}"/"${PN}"/classic.lvl:g" -i sources_editor/loadStageBinary.cpp
74 - sed -i -e "s:base/:"${GAMES_DATADIR}"/"${PN}/base/":g" -i sources_editor/SDL_surfaces.cpp
75 - sed -i -e "s:materials/:"${GAMES_DATADIR}"/"${PN}/materials/":g" -i sources_editor/SDL_surfaces.cpp
76 - sed -i -e "s:materials/:"${GAMES_DATADIR}"/"${PN}/materials/":g" -i sources_editor/maps.cpp
77 - fi
78 -}
79 -
80 -src_compile() {
81 - cd "${S}"/sources
82 - emake || die
83 - if use editor; then
84 - cd "${S}"/sources_editor
85 - emake || die
86 - fi
87 -}
88 -src_install() {
89 - dogamesbin ${PN}
90 - if use editor; then
91 - dogamesbin ${PN}-editor
92 - fi
93 - local datadir="${GAMES_DATADIR}"/"${PN}"
94 - dodir ${datadir}
95 - insinto "${GAMES_DATADIR}"/"${PN}"
96 - doins -r base *.lvl || die
97 - if use editor; then
98 - doins -r materials || die
99 - fi
100 - make_desktop_entry "${PN}" "${PN}"
101 - dodoc README.html
102 - prepgamesdirs
103 -}
104 -
105 -pkg_postinst() {
106 - if use editor; then
107 - elog "the path to the leveldatafile is currently hardcoded to ${GAMES_DATADIR}/${PN}/classic.lvl"
108 - elog "- means only editable with enough write priviledges. make sure to backup the datafile before!"
109 - fi
110 - games_pkg_postinst
111 -}