Skip to content

Commit

Permalink
games-arcade/late: Stop using games.eclass
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.31, Repoman-2.3.9
  • Loading branch information
pacho2 committed Apr 22, 2018
1 parent b633db7 commit a698fd2
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
4 changes: 2 additions & 2 deletions games-arcade/late/files/late-0.1.0-gcc43.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- src/init.cpp
+++ src/init.cpp
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -26,6 +26,8 @@
#include "scorescreen.h"
#include <fstream>
Expand Down
35 changes: 35 additions & 0 deletions games-arcade/late/late-0.1.0-r1.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6
inherit desktop

DESCRIPTION="A game, similar to Barrack by Ambrosia Software"
HOMEPAGE="http://late.sourceforge.net/"
SRC_URI="mirror://sourceforge/late/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="media-libs/libsdl[video]
media-libs/sdl-image[jpeg]"
RDEPEND="${DEPEND}"

src_prepare() {
default
eapply \
"${FILESDIR}"/${P}-gcc43.patch \
"${FILESDIR}"/${P}-gcc46.patch
sed -i \
-e "/chown/d" \
Makefile.in \
|| die "sed failed"
}

src_install () {
default
newicon graphics/latebg2.jpg ${PN}.jpg
make_desktop_entry late Late /usr/share/pixmaps/${PN}.jpg
}

0 comments on commit a698fd2

Please sign in to comment.