diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2016-01-31 17:36:30 -0500 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2016-01-31 17:36:30 -0500 |
commit | 495bafc616c908f857fdd14d73fce40fa37bf7ea (patch) | |
tree | 2420b320c806bc1c04fa6acdb7efed2a2f49351a /games-puzzle/xbomb | |
parent | games-board/pokerth: rev bump to move to qt5 (bug #572678) (diff) | |
download | gentoo-495bafc616c908f857fdd14d73fce40fa37bf7ea.tar.gz gentoo-495bafc616c908f857fdd14d73fce40fa37bf7ea.tar.bz2 gentoo-495bafc616c908f857fdd14d73fce40fa37bf7ea.zip |
games-puzzle/xbomb: version bump (bug #573412)
Package-Manager: portage-2.2.26
Diffstat (limited to 'games-puzzle/xbomb')
-rw-r--r-- | games-puzzle/xbomb/Manifest | 1 | ||||
-rw-r--r-- | games-puzzle/xbomb/files/xbomb-2.2b-DESTDIR.patch | 34 | ||||
-rw-r--r-- | games-puzzle/xbomb/files/xbomb-2.2b-ldflags.patch | 11 | ||||
-rw-r--r-- | games-puzzle/xbomb/xbomb-2.2b.ebuild | 42 |
4 files changed, 88 insertions, 0 deletions
diff --git a/games-puzzle/xbomb/Manifest b/games-puzzle/xbomb/Manifest index f55deea83e16..7a9e39037472 100644 --- a/games-puzzle/xbomb/Manifest +++ b/games-puzzle/xbomb/Manifest @@ -1 +1,2 @@ DIST xbomb-2.2a.tgz 25080 SHA256 be9372a0447b9b606af2f705bcf24760e7cf5a51e7e917da43d4804c6ca8f068 SHA512 e0b223fbbbc1e3bf552b045134856e460e3c11366ace1b27564f9d3ae44c7fd32d65ba78b327b460a5c7f70deea01ab63aa21c9dab4996f813543347c86bd282 WHIRLPOOL 3ccca22a384de9a487ab7a183acb7bf33339e5cd4aa82ac2903c83f5ef2271fa832b629ef70b4b0b5684f8186b1c2126ad312f343989b84977270f44c2236a43 +DIST xbomb-2.2b.tgz 24774 SHA256 350d8443c0f6339ef463effbb17c9347f669b8641a159a2447706324b87c2219 SHA512 7315cc08bff1ef14cc376ea3ad4913c4286e2e33e92ca1d924e4703fba2f58e5aa9df0db760cd0d9a83f2f1730cc65281403f5b198f32a30d0c5e736add8c2e1 WHIRLPOOL 0db3088207bb14548d300b3c19aa5310b71f81d05068de8070bd1195524849cdf47ea82f585b2461db0259a543d323d6a15f93be1dcf43c482fb84b90c2c1059 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/xbomb-2.2b.ebuild b/games-puzzle/xbomb/xbomb-2.2b.ebuild new file mode 100644 index 000000000000..83969dbf683c --- /dev/null +++ b/games-puzzle/xbomb/xbomb-2.2b.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 ~ppc ~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 +} |