summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Sokolov <sokolov@google.com>2020-11-22 22:34:37 +0000
committerStefan Strogin <steils@gentoo.org>2020-11-24 21:14:41 +0200
commit56ef5bc1dfef2cfd2f27d8691fff510680b34c98 (patch)
treeb8fb4687924e5355df32e0b6e7efb47b50ca75c4 /games-puzzle
parentdev-libs/libuv: stable 1.40.0 for hppa, bug #756100 (diff)
downloadgentoo-56ef5bc1dfef2cfd2f27d8691fff510680b34c98.tar.gz
gentoo-56ef5bc1dfef2cfd2f27d8691fff510680b34c98.tar.bz2
gentoo-56ef5bc1dfef2cfd2f27d8691fff510680b34c98.zip
games-puzzle/xblockout: fix build, bump EAPI
Closes: https://bugs.gentoo.org/710592 Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org> Signed-off-by: Stefan Strogin <steils@gentoo.org>
Diffstat (limited to 'games-puzzle')
-rw-r--r--games-puzzle/xblockout/xblockout-1.1.6-r2.ebuild65
1 files changed, 65 insertions, 0 deletions
diff --git a/games-puzzle/xblockout/xblockout-1.1.6-r2.ebuild b/games-puzzle/xblockout/xblockout-1.1.6-r2.ebuild
new file mode 100644
index 000000000000..914ab6d1ac1c
--- /dev/null
+++ b/games-puzzle/xblockout/xblockout-1.1.6-r2.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools desktop flag-o-matic toolchain-funcs
+
+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"
+
+RDEPEND="
+ x11-libs/libX11
+ x11-libs/libXext
+"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/xbl-${PV}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-font.patch
+)
+
+src_prepare() {
+ default
+ sed -i \
+ -e '/^CC/d' \
+ -e 's:-lm:-lm -lX11:' \
+ -e '/DGROUP_GID/d' \
+ -e 's:-g$:$(GENTOO_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="${EPREFIX}/usr/share/${PN}" \
+ RESOURCEDIR="${EPREFIX}/usr/share/${PN}" \
+ LDOPTIONS="${LDFLAGS}" \
+ GENTOO_CFLAGS="${CFLAGS}" \
+ CC="$(tc-getCC)"
+}
+
+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
+}