Skip to content

Commit

Permalink
games-action/orbital-eunuchs-sniper: remove deprecated games eclass
Browse files Browse the repository at this point in the history
Also update to EAPI 6

Gentoo-Bug: https://bugs.gentoo.org/574082

Package-Manager: Portage-2.3.2, Repoman-2.3.1
  • Loading branch information
austin987 committed Jan 25, 2017
1 parent cc2ba81 commit e529486
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- configure.ac
+++ configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -64,14 +64,12 @@
,dnl default action of assigning shell value
with_games_dir="${runtime_datadir}/games"
Expand All @@ -15,8 +15,8 @@


echo $ac_n "ordering crap from http://www.amazon.com/gp/registry/296ST2NHEBO0Z" 1>&6
--- src/Makefile.am
+++ src/Makefile.am
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,6 +1,4 @@
-pkgdata_PROGRAMS = snipe2d.@[email protected] snipe2d.@[email protected]
-BUILT_SOURCES = snipe2d
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- src/snipe2d.h
+++ src/snipe2d.h
--- a/src/snipe2d.h
+++ b/src/snipe2d.h
@@ -39,6 +39,7 @@
#include <stdlib.h>
#include <math.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=6
inherit autotools eutils

MY_P=${PN//-/_}-${PV}
DESCRIPTION="Snipe terrorists from your orbital base"
HOMEPAGE="http://icculus.org/oes/"
SRC_URI="http://filesingularity.timedoctor.org/${MY_P}.tar.gz"

LICENSE="ZLIB"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""

DEPEND="media-libs/libsdl[joystick,video]
media-libs/sdl-image[png]
media-libs/sdl-mixer[vorbis]"
RDEPEND=${DEPEND}

S=${WORKDIR}/${MY_P}

PATCHES=(
"${FILESDIR}"/${P}-datadir.patch
"${FILESDIR}"/${P}-gcc43.patch
)
src_prepare() {
default

sed -i \
-e '/^sleep /d' \
configure.ac || die
eautoreconf
}

src_install() {
DOCS="AUTHORS ChangeLog readme.txt README TODO" \
default
make_desktop_entry snipe2d "Orbital Eunuchs Sniper"
}

0 comments on commit e529486

Please sign in to comment.