games-puzzle/torrent: Stop using games.eclass
authorPacho Ramos <pacho@gentoo.org>
Tue, 1 May 2018 14:43:52 +0000 (16:43 +0200)
committerPacho Ramos <pacho@gentoo.org>
Tue, 1 May 2018 19:34:40 +0000 (21:34 +0200)
Package-Manager: Portage-2.3.31, Repoman-2.3.9

games-puzzle/torrent/torrent-0.8.2-r1.ebuild [new file with mode: 0644]

diff --git a/games-puzzle/torrent/torrent-0.8.2-r1.ebuild b/games-puzzle/torrent/torrent-0.8.2-r1.ebuild
new file mode 100644 (file)
index 0000000..76d28a5
--- /dev/null
@@ -0,0 +1,36 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit desktop
+
+DESCRIPTION="Match rising tiles before reaching the top to score as many points as possible"
+HOMEPAGE="http://www.shiftygames.com/torrent/torrent.html"
+SRC_URI="http://www.shiftygames.com/torrent/${P}.tar.gz"
+
+KEYWORDS="~amd64 ~x86"
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+       >=media-libs/libsdl-1.2.4
+       >=media-libs/sdl-mixer-1.2
+       >=media-libs/sdl-image-1.2
+       media-libs/sdl-ttf
+"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+       default
+       sed -i \
+               -e 's/inline void SE_CheckEvents/void SE_CheckEvents/' \
+               src/torrent.c \
+               || die "sed failed"
+}
+
+src_install() {
+       default
+       newicon pics/sg_icon.png ${PN}.png
+       make_desktop_entry ${PN} Torrent ${PN}
+}