summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2018-08-09 13:11:15 +0200
committerPacho Ramos <pacho@gentoo.org>2018-08-09 13:11:15 +0200
commit5cf66435acd2fdfacb24c26ad4e41b111fd8fa14 (patch)
tree3b46a3d3540b24287e93dc0a6f6dcc6df15ac1aa /games-action
parentsys-libs/libcxx: Use -print-libgcc-file-name to get clang_rt path (diff)
downloadgentoo-5cf66435acd2fdfacb24c26ad4e41b111fd8fa14.tar.gz
gentoo-5cf66435acd2fdfacb24c26ad4e41b111fd8fa14.tar.bz2
gentoo-5cf66435acd2fdfacb24c26ad4e41b111fd8fa14.zip
games-action/abuse: Prevent segfault at start
Package-Manager: Portage-2.3.43, Repoman-2.3.10
Diffstat (limited to 'games-action')
-rw-r--r--games-action/abuse/abuse-0.8-r2.ebuild41
-rw-r--r--games-action/abuse/files/abuse-0.8-gentoo-r1.patch12
2 files changed, 53 insertions, 0 deletions
diff --git a/games-action/abuse/abuse-0.8-r2.ebuild b/games-action/abuse/abuse-0.8-r2.ebuild
new file mode 100644
index 000000000000..515f3cde59a1
--- /dev/null
+++ b/games-action/abuse/abuse-0.8-r2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit autotools desktop
+
+DESCRIPTION="Port of Abuse by Crack Dot Com"
+HOMEPAGE="http://abuse.zoy.org/"
+SRC_URI="http://abuse.zoy.org/raw-attachment/wiki/download/${P}.tar.gz"
+
+LICENSE="GPL-2 WTFPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=media-libs/libsdl-1.1.6[sound,opengl,video]
+ media-libs/sdl-mixer
+ virtual/opengl"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gentoo-r1.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ # Prevent segfault at start: https://bugs.archlinux.org/task/52915
+ econf --enable-debug
+}
+
+src_install() {
+ # Source-based install
+ default
+
+ doicon doc/${PN}.png
+ make_desktop_entry abuse Abuse
+}
diff --git a/games-action/abuse/files/abuse-0.8-gentoo-r1.patch b/games-action/abuse/files/abuse-0.8-gentoo-r1.patch
new file mode 100644
index 000000000000..8be2eaf92580
--- /dev/null
+++ b/games-action/abuse/files/abuse-0.8-gentoo-r1.patch
@@ -0,0 +1,12 @@
+diff -ru abuse-0.8.orig/Makefile.am abuse-0.8/Makefile.am
+--- abuse-0.8.orig/Makefile.am 2011-05-09 03:58:04.000000000 -0400
++++ abuse-0.8/Makefile.am 2011-05-16 22:22:51.642655295 -0400
+@@ -2,8 +2,6 @@
+
+ SUBDIRS = src data doc
+
+-EXTRA_DIST = COPYING.GPL COPYING.WTFPL PACKAGERS bootstrap
+-
+ dist-hook:
+ @echo ""
+ @echo " ===================================================="