Skip to content

Commit

Permalink
games-puzzle/gnurobbo: version bump 0.68
Browse files Browse the repository at this point in the history
Also import debian patch to fix build

Closes: https://bugs.gentoo.org/711992
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Alexey Sokolov <[email protected]>
Closes: gentoo#17371
Signed-off-by: James Le Cuirot <[email protected]>
  • Loading branch information
DarthGandalf authored and chewi committed Sep 6, 2020
1 parent 76edc3d commit 9caae14
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 24 deletions.
3 changes: 2 additions & 1 deletion games-puzzle/gnurobbo/Manifest
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
DIST gnurobbo-0.66-source.tar.gz 1765034 BLAKE2B 4a88d1281fdea44516c86e704a828e1d3ef2116cc7d6401960524ea53435828bb09f73adf57016bf3b7a0fa107ee411c575ca2f288375148658bf1bdf0b16aa2 SHA512 5f217ba87e8d1c56d9630cca44bde8d405c93929ebb1722c80955fceedec93a5e02ab3dbafd557c3cbedd63a97a73abe6e8aeff115931844a11f6cc1dd00533c
DIST gnurobbo-0.68-single-variable-declarations.patch 41708 BLAKE2B 05de30e26be4c927c0ec23b2e2b9ce40dd4ef115928fc297235f10740286e9668ac67ac48d78e9ec5b52ce4c61b196407e1a0c5cac3af4d65e7031a9c69246ea SHA512 e8a498983bd5a8174e851f317088852e3f1ea510efa2377b71b9fe43005403a163c468ff7fdbaca2bd15524f51234de595d87b7791d24d0e9b871d1772f06854
DIST gnurobbo-0.68-source.tar.gz 2400364 BLAKE2B bfc97fef53b8dc35fd21131557ab7f679890f20b1635268241ff0364262d2fdf7070fd889b6ebc62af8ae8740f5520de3d411acb91158382d6be0ff19c62aaeb SHA512 cf2ebfa556bf9852142c83f9d6fc304ed973d02983179fda0a7db8af0951116b6327ec7bbb462541f2678d32d4d9760e80b1c82c98a64138b25596cf1e3d52f6
18 changes: 0 additions & 18 deletions games-puzzle/gnurobbo/files/gnurobbo-0.66-underlink.patch

This file was deleted.

14 changes: 14 additions & 0 deletions games-puzzle/gnurobbo/files/gnurobbo-0.68-cflags-d.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Description: Drop -d which causes an error with GCC 7
Author: Stephen Kitt <[email protected]>

--- a/Makefile
+++ b/Makefile
@@ -61,7 +61,7 @@



-CFLAGS+=-d -Wall `$(SDL_CONFIG) --cflags` -DPLATFORM_PC -DVERSION=\"$(VERSION)\" $(SMOOTH_SCRL) $(LIGHTNING)\
+CFLAGS+=-Wall `$(SDL_CONFIG) --cflags` -DPLATFORM_PC -DVERSION=\"$(VERSION)\" $(SMOOTH_SCRL) $(LIGHTNING)\
-DPACKAGE_DATA_DIR=\"$(PACKAGE_DATA_DIR)\" $(FONT_USE_PIXMAP) $(MUSIC) $(DESIGNER)
LDFLAGS?=
# Use these instead for debugging and/or profiling (mainly intended for GNU Robbo developers)
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
# Copyright 1999-2018 Gentoo Foundation
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6
EAPI=7
inherit desktop

DESCRIPTION="Robbo, a popular Atari XE/XL game ported to Linux"
HOMEPAGE="http://gnurobbo.sourceforge.net/"
SRC_URI="mirror://sourceforge/gnurobbo/${P}-source.tar.gz"
SRC_URI="
mirror://sourceforge/gnurobbo/${P}-source.tar.gz
https://salsa.debian.org/games-team/gnurobbo/-/raw/debian/0.68+dfsg-5/debian/patches/single-variable-declarations.patch?inline=false -> ${P}-single-variable-declarations.patch
"

LICENSE="GPL-2 BitstreamVera"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
S="${WORKDIR}/${P}/${PN}"

RDEPEND="
media-libs/libsdl[sound,video,joystick]
Expand All @@ -21,11 +25,14 @@ RDEPEND="
"
DEPEND="${RDEPEND}"

PATCHES=( "${FILESDIR}"/${P}-underlink.patch )
PATCHES=(
"${FILESDIR}/${P}-cflags-d.patch"
"${DISTDIR}/${P}-single-variable-declarations.patch"
)

src_compile() {
emake \
PACKAGE_DATA_DIR="/usr/share/${PN}" \
PACKAGE_DATA_DIR="${EPREFIX}/usr/share/${PN}" \
BINDIR="/usr/bin" \
DOCDIR="/usr/share/doc/${PF}"
}
Expand Down

0 comments on commit 9caae14

Please sign in to comment.