summaryrefslogtreecommitdiff
path: root/games-puzzle/xbomb
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-puzzle/xbomb
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'games-puzzle/xbomb')
-rw-r--r--games-puzzle/xbomb/Manifest5
-rw-r--r--games-puzzle/xbomb/files/xbomb-2.2b-DESTDIR.patch34
-rw-r--r--games-puzzle/xbomb/files/xbomb-2.2b-ldflags.patch11
-rw-r--r--games-puzzle/xbomb/metadata.xml8
-rw-r--r--games-puzzle/xbomb/xbomb-2.2b.ebuild40
5 files changed, 98 insertions, 0 deletions
diff --git a/games-puzzle/xbomb/Manifest b/games-puzzle/xbomb/Manifest
new file mode 100644
index 000000000000..bc88916ffec3
--- /dev/null
+++ b/games-puzzle/xbomb/Manifest
@@ -0,0 +1,5 @@
+AUX xbomb-2.2b-DESTDIR.patch 871 BLAKE2B 4a6841b33ce4cbfdf17507d8fe5001d82fa4de026693eb898b915c22b9779bf83e279a3add9fdba67ae8614cd42df5fc81f686016437184e7d529290fd2ce2fd SHA512 98135eb5927b4bd92bc1a6ac6fb86bf8c1f7387949c1ac419e3f78cc84184e1c8b2b8b6fb5d23089b6fdd8a7a8dca05733821180d1316d30edc53f487a16e4c8
+AUX xbomb-2.2b-ldflags.patch 177 BLAKE2B 2b22fe367177a8551fc692e97de539be366da981c79f31646bfc8dc5cf98bafdc916d9d89af3e44773e1a4c54bb35700cee1d093dee0233a639a6a6c4849b814 SHA512 21c7d9c57ec972ae49dd20a94041378a53dcd310685c8c3755571243d51b0b0e1664b30c0ce9013ad289d8589e7e219bafdcbcc31503ccc25052f2c3dbc2df82
+DIST xbomb-2.2b.tgz 24774 BLAKE2B 77a447af42ecd47654b826d884e7c31e98e0bdfb06d1574401064fe79dc42c961fc95a96dd6509871d78589e06eb54f975a292a5371c16520e125b75aae8b637 SHA512 7315cc08bff1ef14cc376ea3ad4913c4286e2e33e92ca1d924e4703fba2f58e5aa9df0db760cd0d9a83f2f1730cc65281403f5b198f32a30d0c5e736add8c2e1
+EBUILD xbomb-2.2b.ebuild 1001 BLAKE2B 0d0a6b3342161c22217f9cf868f8854002aa13bf7666f2e78b45ea02908a4cf6fe03b5594d303f0b9a8667045e2bffdf3447649032ee0afe08bb1278af44d15c SHA512 05d114f256b1a641714848d96df47faeaa64396e670a95d376ca32eea4b0c2f59d6246454a23bf301aa010938bde8af758fe3c90a3f6b2ee4a354bd72fe65e6a
+MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118
diff --git a/games-puzzle/xbomb/files/xbomb-2.2b-DESTDIR.patch b/games-puzzle/xbomb/files/xbomb-2.2b-DESTDIR.patch
new file mode 100644
index 000000000000..2ee8edd4ec91
--- /dev/null
+++ b/games-puzzle/xbomb/files/xbomb-2.2b-DESTDIR.patch
@@ -0,0 +1,34 @@
+*** xbomb-2.1/Makefile 1996-01-20 16:02:46.000000000 -0500
+--- xbomb-2.1.new/Makefile
+***************
+*** 27,34 ****
+
+ OBJ=xbomb.o xwindow.o hiscore.o
+
+- INSTDIR=/usr/local
+-
+ ########
+
+ xbomb : $(OBJ)
+--- 27,32 ----
+***************
+*** 52,60 ****
+
+ install :
+ strip xbomb
+! install -d $(INSTDIR)/bin
+! install -d $(INSTDIR)/man/man6
+! install -d $(INSTDIR)/lib/app-defaults
+! install -m 755 xbomb $(INSTDIR)/bin
+! install -m 644 xbomb.6 $(INSTDIR)/man/man6
+! install -m 644 xbomb.ad $(INSTDIR)/lib/app-defaults/XBomb
+--- 50,58 ----
+
+ install :
+ strip xbomb
+! install -d $(DESTDIR)/usr/bin
+! install -d $(DESTDIR)/usr/share/man/man6
+! install -d $(DESTDIR)/etc/X11/app-defaults
+! install -m 755 xbomb $(DESTDIR)/usr/bin
+! install -m 644 xbomb.6 $(DESTDIR)/usr/share/man/man6
+! install -m 644 xbomb.ad $(DESTDIR)/etc/X11/app-defaults/XBomb
diff --git a/games-puzzle/xbomb/files/xbomb-2.2b-ldflags.patch b/games-puzzle/xbomb/files/xbomb-2.2b-ldflags.patch
new file mode 100644
index 000000000000..a320b0900c53
--- /dev/null
+++ b/games-puzzle/xbomb/files/xbomb-2.2b-ldflags.patch
@@ -0,0 +1,11 @@
+--- Makefile.old
++++ Makefile
+@@ -30,7 +30,7 @@
+ ########
+
+ xbomb : $(OBJ)
+- $(LINK) $(OBJ) -o $@ $(LIB) $(XLIB)
++ $(LINK) $(LDFLAGS) $(OBJ) -o $@ $(LIB) $(XLIB)
+
+ ########
+
diff --git a/games-puzzle/xbomb/metadata.xml b/games-puzzle/xbomb/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-puzzle/xbomb/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-puzzle/xbomb/xbomb-2.2b.ebuild b/games-puzzle/xbomb/xbomb-2.2b.ebuild
new file mode 100644
index 000000000000..488c4de4bd50
--- /dev/null
+++ b/games-puzzle/xbomb/xbomb-2.2b.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Minesweeper clone with hexagonal, rectangular and triangular grid"
+HOMEPAGE="http://www.gedanken.org.uk/software/xbomb/"
+SRC_URI="http://www.gedanken.org.uk/software/xbomb/download/${P}.tgz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE=""
+
+DEPEND="x11-libs/libXaw"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-DESTDIR.patch \
+ "${FILESDIR}"/${P}-ldflags.patch
+ sed -i \
+ -e '/strip/d' \
+ -e '/^CC=/d' \
+ -e "/^CFLAGS/ { s:=.*:=${CFLAGS}: }" \
+ -e "s:/usr/bin:${GAMES_BINDIR}:" \
+ Makefile || die
+ sed -i \
+ -e "s:/var/tmp:${GAMES_STATEDIR}/${PN}:g" \
+ hiscore.c || die
+}
+
+src_install() {
+ default
+ dodir "${GAMES_STATEDIR}"/${PN}
+ touch "${D}/${GAMES_STATEDIR}"/${PN}/${PN}{3,4,6}.hi || die "touch failed"
+ fperms 660 "${GAMES_STATEDIR}"/${PN}/${PN}{3,4,6}.hi
+ make_desktop_entry xbomb XBomb
+ prepgamesdirs
+}