games-arcade/lbreakout: Stop using games.eclass
authorPacho Ramos <pacho@gentoo.org>
Sun, 22 Apr 2018 09:19:39 +0000 (11:19 +0200)
committerPacho Ramos <pacho@gentoo.org>
Sun, 22 Apr 2018 09:19:39 +0000 (11:19 +0200)
Package-Manager: Portage-2.3.31, Repoman-2.3.9

games-arcade/lbreakout/lbreakout-010315-r1.ebuild [new file with mode: 0644]

diff --git a/games-arcade/lbreakout/lbreakout-010315-r1.ebuild b/games-arcade/lbreakout/lbreakout-010315-r1.ebuild
new file mode 100644 (file)
index 0000000..4a465d9
--- /dev/null
@@ -0,0 +1,30 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Breakout clone written with the SDL library"
+HOMEPAGE="http://lgames.sourceforge.net/LBreakout/"
+SRC_URI="mirror://sourceforge/lgames/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=media-libs/libsdl-1.1.5"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+       default
+       sed -i \
+               -e '/^sdir=/s:$datadir/games:$datadir:' \
+               -e '/^hdir=/s:/var/lib/games:$localstatedir:' \
+               configure \
+               || die "sed failed"
+}
+
+src_install() {
+       HTML_DOCS="lbreakout/manual/*"
+       default
+}