summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-util/scanmem/ChangeLog11
-rw-r--r--dev-util/scanmem/files/scanmem-0.13-configure.patch31
-rw-r--r--dev-util/scanmem/files/scanmem-0.13-desktop.patch11
-rw-r--r--dev-util/scanmem/files/scanmem-0.13-docs.patch19
-rw-r--r--dev-util/scanmem/metadata.xml3
-rw-r--r--dev-util/scanmem/scanmem-0.13.ebuild57
6 files changed, 130 insertions, 2 deletions
diff --git a/dev-util/scanmem/ChangeLog b/dev-util/scanmem/ChangeLog
index 23f331ad8261..3c9b640c4820 100644
--- a/dev-util/scanmem/ChangeLog
+++ b/dev-util/scanmem/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-util/scanmem
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/scanmem/ChangeLog,v 1.9 2011/11/22 21:26:55 radhermit Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/scanmem/ChangeLog,v 1.10 2012/09/20 11:08:39 radhermit Exp $
+
+*scanmem-0.13 (20 Sep 2012)
+
+ 20 Sep 2012; Tim Harder <radhermit@gentoo.org> +scanmem-0.13.ebuild,
+ +files/scanmem-0.13-configure.patch, +files/scanmem-0.13-desktop.patch,
+ +files/scanmem-0.13-docs.patch, metadata.xml:
+ Version bump (bug #420657 by Sergey Popov).
22 Nov 2011; Tim Harder <radhermit@gentoo.org> scanmem-0.07.ebuild,
metadata.xml:
diff --git a/dev-util/scanmem/files/scanmem-0.13-configure.patch b/dev-util/scanmem/files/scanmem-0.13-configure.patch
new file mode 100644
index 000000000000..cedc96a07098
--- /dev/null
+++ b/dev-util/scanmem/files/scanmem-0.13-configure.patch
@@ -0,0 +1,31 @@
+--- scanmem-0.13/configure.ac
++++ scanmem-0.13/configure.ac
+@@ -108,16 +108,17 @@
+ test/Makefile
+ ])
+
+-AC_ARG_ENABLE(gui, [AS_HELP_STRING([--enable-gui],
+- [enable gameconqueror, the gui front-end of scanmem])],
+- [enable_gui=true
+- AC_CONFIG_FILES([
+- gui/Makefile
+- gui/consts.py
+- gui/gameconqueror
+- ])],
+- [enable_gui=false]
+- )
++AC_ARG_ENABLE([gui],
++ AS_HELP_STRING([--enable-gui],
++ [enable gameconqueror, the gui front-end of scanmem]))
+
+-AM_CONDITIONAL([ENABLE_GUI], [test x$enable_gui = xtrue])
++AS_IF([test "x$enable_gui" = "xyes"], [
++ AC_CONFIG_FILES([
++ gui/Makefile
++ gui/consts.py
++ gui/gameconqueror
++ ])
++])
++
++AM_CONDITIONAL([ENABLE_GUI], [test "x$enable_gui" = "xyes"])
+ AC_OUTPUT
diff --git a/dev-util/scanmem/files/scanmem-0.13-desktop.patch b/dev-util/scanmem/files/scanmem-0.13-desktop.patch
new file mode 100644
index 000000000000..7fabcb3f2860
--- /dev/null
+++ b/dev-util/scanmem/files/scanmem-0.13-desktop.patch
@@ -0,0 +1,11 @@
+--- scanmem-0.13/gui/GameConqueror.desktop
++++ scanmem-0.13/gui/GameConqueror.desktop
+@@ -4,6 +4,6 @@
+ Exec=gameconqueror
+ Terminal=false
+ Type=Application
+-Icon=GameConqueror_128x128.png
+-Categories=GNOME;Application;Game;
++Icon=GameConqueror_128x128
++Categories=GNOME;GTK;Game;
+ StartupNotify=true
diff --git a/dev-util/scanmem/files/scanmem-0.13-docs.patch b/dev-util/scanmem/files/scanmem-0.13-docs.patch
new file mode 100644
index 000000000000..7969de3ec0e8
--- /dev/null
+++ b/dev-util/scanmem/files/scanmem-0.13-docs.patch
@@ -0,0 +1,19 @@
+--- scanmem-0.13/gui/Makefile.am
++++ scanmem-0.13/gui/Makefile.am
+@@ -4,7 +4,6 @@
+ dist_icons_DATA = GameConqueror_128x128.png GameConqueror_72x72.png
+ dist_desktop_DATA = GameConqueror.desktop
+ dist_man_MANS = gameconqueror.1
+-dist_doc_DATA = README TODO COPYING
+ EXTRA_DIST = gameconqueror.in consts.py.in
+
+ gameconquerordir=$(datadir)/gameconqueror
+--- scanmem-0.13/Makefile.am
++++ scanmem-0.13/Makefile.am
+@@ -12,6 +12,5 @@
+ scanmem_SOURCES += scanroutines.h scanroutines.c show_message.h show_message.c
+ scanmem_CFLAGS = -O2 -g -Wall
+ dist_man_MANS = scanmem.1
+-dist_doc_DATA = README
+
+ EXTRA_DIST = gpl-2.0.txt gpl-3.0.txt
diff --git a/dev-util/scanmem/metadata.xml b/dev-util/scanmem/metadata.xml
index 157326a7e891..ed53b6b2f6bd 100644
--- a/dev-util/scanmem/metadata.xml
+++ b/dev-util/scanmem/metadata.xml
@@ -5,4 +5,7 @@
<email>radhermit@gentoo.org</email>
<name>Tim Harder</name>
</maintainer>
+ <use>
+ <flag name="gui">Enable the GameConqueror GUI</flag>
+ </use>
</pkgmetadata>
diff --git a/dev-util/scanmem/scanmem-0.13.ebuild b/dev-util/scanmem/scanmem-0.13.ebuild
new file mode 100644
index 000000000000..940051f93d52
--- /dev/null
+++ b/dev-util/scanmem/scanmem-0.13.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/scanmem/scanmem-0.13.ebuild,v 1.1 2012/09/20 11:08:39 radhermit Exp $
+
+EAPI=4
+PYTHON_DEPEND="gui? 2"
+
+inherit autotools eutils python
+
+DESCRIPTION="Locate and modify variables in executing processes"
+HOMEPAGE="http://code.google.com/p/scanmem/"
+SRC_URI="http://scanmem.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gui kde"
+
+DEPEND="sys-libs/readline"
+RDEPEND="${DEPEND}
+ gui? (
+ dev-python/pygtk:2
+ kde? ( kde-base/kdesu )
+ !kde? ( x11-libs/gksu )
+ )"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-configure.patch
+ epatch "${FILESDIR}"/${P}-desktop.patch
+ epatch "${FILESDIR}"/${P}-docs.patch
+ sed -i "/CFLAGS/d" Makefile.am || die
+
+ if use gui ; then
+ sed -i "s/python/python2/" gui/gameconqueror.in || die
+
+ if use kde ; then
+ sed -i 's/gksu --description "GameConqueror"/kdesu -c/' gui/gameconqueror.in || die
+ fi
+ fi
+
+ eautoreconf
+ chmod +x configure
+}
+
+src_configure() {
+ econf \
+ $(use_enable gui)
+}
+
+src_install() {
+ default
+
+ if use gui ; then
+ docinto gui
+ dodoc gui/{README,TODO}
+ fi
+}