summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2018-05-01 12:40:37 +0200
committerPacho Ramos <pacho@gentoo.org>2018-05-01 21:32:01 +0200
commitbc6864a89eb3d30f8beb844de1e84f598e51ec12 (patch)
tree767e2cd33c45ee66913279e2d13ddcfab945d26f /games-puzzle/color-lines
parentgames-puzzle/angrydd: Drop old (diff)
downloadgentoo-bc6864a89eb3d30f8beb844de1e84f598e51ec12.tar.gz
gentoo-bc6864a89eb3d30f8beb844de1e84f598e51ec12.tar.bz2
gentoo-bc6864a89eb3d30f8beb844de1e84f598e51ec12.zip
games-puzzle/color-lines: Stop using games.eclass
Package-Manager: Portage-2.3.31, Repoman-2.3.9
Diffstat (limited to 'games-puzzle/color-lines')
-rw-r--r--games-puzzle/color-lines/color-lines-0.6-r1.ebuild47
-rw-r--r--games-puzzle/color-lines/files/color-lines-0.6-Makefile.patch4
2 files changed, 49 insertions, 2 deletions
diff --git a/games-puzzle/color-lines/color-lines-0.6-r1.ebuild b/games-puzzle/color-lines/color-lines-0.6-r1.ebuild
new file mode 100644
index 000000000000..e239fd1588a2
--- /dev/null
+++ b/games-puzzle/color-lines/color-lines-0.6-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit desktop
+
+DESCRIPTION="Color lines game written with SDL with bonus features"
+HOMEPAGE="https://github.com/OpenA/color-lines-sdl"
+SRC_URI="https://color-lines.googlecode.com/files/lines_${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+
+RDEPEND="
+ media-libs/libsdl[X,sound,video]
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer[wav,mod]
+"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/lines-${PV}"
+
+src_prepare() {
+ default
+ eapply "${FILESDIR}/${P}-Makefile.patch"
+
+ sed -i \
+ -e '/^Encoding/d' \
+ -e '/^Version/d' \
+ -e '/^Icon/s/.png//' \
+ color-lines.desktop.in || die 'sed on color-lines.desktop.in failed'
+}
+
+src_compile() {
+ emake BINDIR="${EPREFIX}/usr/bin/" GAMEDATADIR="${EPREFIX}/usr/share/${PN}/"
+}
+
+src_install() {
+ insinto "/usr/share/${PN}"
+ doins -r gfx sounds
+
+ domenu ${PN}.desktop
+ doicon icon/${PN}.png
+ einstalldocs
+ dobin ${PN}
+}
diff --git a/games-puzzle/color-lines/files/color-lines-0.6-Makefile.patch b/games-puzzle/color-lines/files/color-lines-0.6-Makefile.patch
index 9f552d712713..bf1339b94a01 100644
--- a/games-puzzle/color-lines/files/color-lines-0.6-Makefile.patch
+++ b/games-puzzle/color-lines/files/color-lines-0.6-Makefile.patch
@@ -1,5 +1,5 @@
---- Makefile.unix.orig 2013-04-12 13:56:42.131113000 +0400
-+++ Makefile.unix 2013-04-12 13:57:26.595946027 +0400
+--- a/Makefile.unix.orig 2013-04-12 13:56:42.131113000 +0400
++++ b/Makefile.unix 2013-04-12 13:57:26.595946027 +0400
@@ -2,18 +2,18 @@
VERTITLE := lines-$(VERSION)
ARCHIVE := lines_$(VERSION).tar.gz