summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2018-05-01 18:05:22 +0200
committerPacho Ramos <pacho@gentoo.org>2018-05-01 21:34:52 +0200
commitb28fce38e05dc021688e3210d9a1b2a8ff89d582 (patch)
tree0d64e5d201b172c009871148f17d8633a848a2a7 /games-puzzle
parentgames-puzzle/world-of-goo-demo: Drop old (diff)
downloadgentoo-b28fce38e05dc021688e3210d9a1b2a8ff89d582.tar.gz
gentoo-b28fce38e05dc021688e3210d9a1b2a8ff89d582.tar.bz2
gentoo-b28fce38e05dc021688e3210d9a1b2a8ff89d582.zip
games-puzzle/xblockout: Stop using games.eclass
Package-Manager: Portage-2.3.31, Repoman-2.3.9
Diffstat (limited to 'games-puzzle')
-rw-r--r--games-puzzle/xblockout/files/xblockout-1.1.6-font.patch4
-rw-r--r--games-puzzle/xblockout/xblockout-1.1.6-r1.ebuild60
2 files changed, 62 insertions, 2 deletions
diff --git a/games-puzzle/xblockout/files/xblockout-1.1.6-font.patch b/games-puzzle/xblockout/files/xblockout-1.1.6-font.patch
index bb0302963bdc..1e007494e93e 100644
--- a/games-puzzle/xblockout/files/xblockout-1.1.6-font.patch
+++ b/games-puzzle/xblockout/files/xblockout-1.1.6-font.patch
@@ -1,5 +1,5 @@
---- initmenu.c.old 2008-10-27 23:23:43.000000000 +0100
-+++ initmenu.c 2008-10-27 23:22:52.000000000 +0100
+--- a/initmenu.c.old 2008-10-27 23:23:43.000000000 +0100
++++ b/initmenu.c 2008-10-27 23:22:52.000000000 +0100
@@ -408,19 +408,17 @@
XCharStruct overall_return ;
diff --git a/games-puzzle/xblockout/xblockout-1.1.6-r1.ebuild b/games-puzzle/xblockout/xblockout-1.1.6-r1.ebuild
new file mode 100644
index 000000000000..71a44a6d8c39
--- /dev/null
+++ b/games-puzzle/xblockout/xblockout-1.1.6-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools desktop flag-o-matic
+
+DESCRIPTION="X Window block dropping game in 3 Dimension"
+HOMEPAGE="http://perso.univ-lyon1.fr/thierry.excoffier/XBL/"
+SRC_URI="http://perso.univ-lyon1.fr/thierry.excoffier/XBL/xbl-${PV}.tar.gz"
+
+LICENSE="GPL-1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ x11-libs/libX11
+ x11-libs/libXext
+"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/xbl-${PV}"
+
+src_prepare() {
+ default
+ eapply "${FILESDIR}"/${P}-font.patch
+ sed -i \
+ -e '/^CC/d' \
+ -e 's:-lm:-lm -lX11:' \
+ -e '/DGROUP_GID/d' \
+ -e "s:-g$:${CFLAGS}:" \
+ Makefile.in || die
+ # Don't know about other archs. --slarti
+ use amd64 && filter-flags "-fweb"
+
+ mv configure.in configure.ac || die
+ eautoreconf
+}
+
+src_compile() {
+ emake \
+ USE_SETGID= \
+ SCOREDIR="/usr/share/${PN}" \
+ RESOURCEDIR="/usr/share/${PN}" \
+ LDOPTIONS="${LDFLAGS}"
+}
+
+src_install() {
+ newbin bl xbl
+
+ insinto /usr/share/${PN}
+ newins Xbl.ad Xbl
+
+ newman xbl.man xbl.6
+ dodoc README xbl-README
+ HTML_DOCS="*.html *.gif" einstalldocs
+
+ newicon xbl-game.gif ${PN}.gif
+ make_desktop_entry xbl XBlockOut /usr/share/pixmaps/${PN}.gif
+}