rev bump to work with wxGTK:3.0 (bug #564090)
authorMichael Sterrett <mr_bones_@gentoo.org>
Sun, 15 Nov 2015 19:34:57 +0000 (14:34 -0500)
committerMichael Sterrett <mr_bones_@gentoo.org>
Sun, 15 Nov 2015 19:34:57 +0000 (14:34 -0500)
Package-Manager: portage-2.2.20.1

games-util/wxchtdecoder/files/wxchtdecoder-1.5a-wxgtk.patch [new file with mode: 0644]
games-util/wxchtdecoder/wxchtdecoder-1.5a-r1.ebuild [new file with mode: 0644]

diff --git a/games-util/wxchtdecoder/files/wxchtdecoder-1.5a-wxgtk.patch b/games-util/wxchtdecoder/files/wxchtdecoder-1.5a-wxgtk.patch
new file mode 100644 (file)
index 0000000..1eb61fe
--- /dev/null
@@ -0,0 +1,37 @@
+--- wxchtdecoder-1.5a.orig/source/chtdecoder.cc
++++ wxchtdecoder-1.5a/source/chtdecoder.cc
+@@ -64,26 +64,26 @@
+ const wxSize *CHTDecoder::APP_SIZE = new wxSize(640, 480);
+ 
+ namespace {
+-    const wxCmdLineEntryDesc CMDLINE_DESC[] = {
++    wxCmdLineEntryDesc CMDLINE_DESC[] = {
+         { 
+-            wxCMD_LINE_SWITCH, wxT("h"), wxT("help"),
+-            wxT("display usage information"), wxCMD_LINE_VAL_STRING,
++            wxCMD_LINE_SWITCH, "h", "help",
++            "display usage information", wxCMD_LINE_VAL_STRING,
+             wxCMD_LINE_OPTION_HELP
+         },
+           
+         { 
+-            wxCMD_LINE_SWITCH, wxT("v"), wxT("version"),
+-            wxT("display version information"), wxCMD_LINE_VAL_STRING,
++            wxCMD_LINE_SWITCH, "v", "version",
++            "display version information", wxCMD_LINE_VAL_STRING,
+             wxCMD_LINE_OPTION_HELP 
+         },
+           
+         {
+-            wxCMD_LINE_SWITCH, wxT("f"), wxT("force-open"),
+-            wxT("force opening of possibly invalid .CHT files")
++            wxCMD_LINE_SWITCH, "f", "force-open",
++            "force opening of possibly invalid .CHT files"
+         },
+         
+         {
+-            wxCMD_LINE_PARAM, 0, 0, wxT(".CHT file(s)"),
++            wxCMD_LINE_PARAM, 0, 0, ".CHT file(s)",
+             wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_MULTIPLE
+         },
+         
diff --git a/games-util/wxchtdecoder/wxchtdecoder-1.5a-r1.ebuild b/games-util/wxchtdecoder/wxchtdecoder-1.5a-r1.ebuild
new file mode 100644 (file)
index 0000000..71c8386
--- /dev/null
@@ -0,0 +1,32 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+WX_GTK_VER="3.0"
+inherit eutils wxwidgets
+
+DESCRIPTION="A program to decode .CHT files in Snes9x and ZSNES to plain text"
+HOMEPAGE="http://games.technoplaza.net/chtdecoder/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="x11-libs/wxGTK:${WX_GTK_VER}[X]"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+       epatch "${FILESDIR}"/${P}-wxgtk.patch
+}
+
+src_configure() {
+       econf --with-wx-config=${WX_CONFIG}
+}
+
+src_install() {
+       dobin source/wxchtdecoder
+       dodoc docs/wxchtdecoder.txt
+}