diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-03-05 23:52:45 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-03-05 23:52:45 +0000 |
commit | 1c33e521c460dc40899ce7bc919602b842ce27e2 (patch) | |
tree | 580eefad4cce1e883e7504b93352a9029b53036d /games-puzzle/xblockout/xblockout-1.1.6-r3.ebuild | |
parent | 65e4244e411c4f65f55f2aa91f39e228f4c0680b (diff) |
gentoo auto-resync : 05:03:2023 - 23:52:45
Diffstat (limited to 'games-puzzle/xblockout/xblockout-1.1.6-r3.ebuild')
-rw-r--r-- | games-puzzle/xblockout/xblockout-1.1.6-r3.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/games-puzzle/xblockout/xblockout-1.1.6-r3.ebuild b/games-puzzle/xblockout/xblockout-1.1.6-r3.ebuild new file mode 100644 index 000000000000..f433fd8aaccd --- /dev/null +++ b/games-puzzle/xblockout/xblockout-1.1.6-r3.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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" +S="${WORKDIR}/xbl-${PV}" + +LICENSE="GPL-1" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + x11-libs/libX11 + x11-libs/libXext +" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-font.patch + "${FILESDIR}"/${P}-configure-clang16.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 +} |