summaryrefslogtreecommitdiff
path: root/games-emulation/gxmame
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-emulation/gxmame
reinit the tree, so we can have metadata
Diffstat (limited to 'games-emulation/gxmame')
-rw-r--r--games-emulation/gxmame/Manifest7
-rw-r--r--games-emulation/gxmame/files/gxmame-0.35_beta2-glib-single-include.patch13
-rw-r--r--games-emulation/gxmame/files/gxmame-0.35_beta2-ovflfix.patch29
-rw-r--r--games-emulation/gxmame/gxmame-0.35_beta2.ebuild66
-rw-r--r--games-emulation/gxmame/metadata.xml11
5 files changed, 126 insertions, 0 deletions
diff --git a/games-emulation/gxmame/Manifest b/games-emulation/gxmame/Manifest
new file mode 100644
index 000000000000..6dc99d9bff06
--- /dev/null
+++ b/games-emulation/gxmame/Manifest
@@ -0,0 +1,7 @@
+AUX gxmame-0.35_beta2-glib-single-include.patch 367 SHA256 cb744edee7c68e4dd6105e424b58b7caa1ef8940d770125deb0ea45015a6bb59 SHA512 def963684ed246027dbb2613be4960ad103bd539ac8e8bdccfdea65899198be3052d7f8f89ade363a3d53e184ec0ea0d110f0d988bad5d5ec0cb54e159040319 WHIRLPOOL 4428b612ff7437ea0616ddf5f91b54cf7514ef1d436c6a4079083d2ba205894cd442a6f05be143d1ee4055bc20cd86851967c5e6c4af72fb4a801f56a85c4323
+AUX gxmame-0.35_beta2-ovflfix.patch 1488 SHA256 ff0bfabe24b822fbfa40dc04ca498bc43b0686609fe4fb7fc673ff60923a5b08 SHA512 3c13151fbb1c285dc819413be3e049f089bc246bded77df02aafa950a1822d1f84e24206b07934fda079fd6f5ecc316335daee3b5516f2a8d87791bdd04eab40 WHIRLPOOL 3b7ed9823beb87ec04b6fea761fa6980b844f437a40a10fba6d298cfbe3ff1dbe8edff3c74b939f16aa8f1dbe8c431ab37ffb00dbc741cf31344008e7b2625ba
+DIST gxmame-0.35beta2.tar.gz 697013 SHA256 6d0339bf334f40ff0b972cf5c4df14660c48a2f0bce10f23d6a0feb3d5c83622 SHA512 c2b47c1f3f76d86846302754b31954b81d5b7165f5778153c6e6285bdcc6040c5479009cd70dcf32c86afa245ae8b6fe98af781f0d51acfcb76c8deb76422fe2 WHIRLPOOL 1c9f8d9aca3b8b49edf435f9888dce917992c919c1a869b2da4102fca549bc851ab47ecd4f2b9b2325fa89c6dad8667824ca6bd48ab94da1d8be35d63bb4592e
+EBUILD gxmame-0.35_beta2.ebuild 1827 SHA256 fe907a971d0e80fe7b06853298efbd98d3d1b1dcbd9eb6131e9fdc2b47392d86 SHA512 5fd2490e3f976b93d066876d6dd3ff2e017a9f0c63ad506235f9475299373cf489494684b3a0e331b1280779eb33e32cec4e1ea2e44bb5b08ed9ea15ee82cfc6 WHIRLPOOL f1087f3f2883e55533c7408437d1a76fb98a3f4d0e37aadd4fff383f48b284d95f65afd2e4ee9e3bd7703930951556973a472fa1c27571f2a1f42bbb9944cb3a
+MISC ChangeLog 2820 SHA256 60f3069aad59755017bcb80d9e9269759dcdf3a582ac02f7cb2e17b1018a6f60 SHA512 7d2c3d6897176617f2554c32f3bb1ee47af39b189b60fca1575adf2106d37fc9bee6340c3d5b04d4cc8b2319f81271f100852a8a09f9b5f4b78bd07364c78533 WHIRLPOOL 483390d9d3fd28d0c63eb8574158c35e2ea5b6cf552e288426d87b5adedf3b9a998b914bfbcdef293ffced05516a303d91a6b96d14c7975bdabdbcec3d4f77d8
+MISC ChangeLog-2015 3687 SHA256 093fd907555be2df729ab5a6e86cf22bd667d2222dd360bc45d66c5c2891dc56 SHA512 33816bf3d2d5f44262a9add8ca0e1659906698c812dfb85615a8edfca2f75491334452691885ab1aae6380e8aa491b2c5c50feb2eb1f4b3de8c891f1614c0f60 WHIRLPOOL 587963ea187bec2b3af313dc84b41a0911631c14eb04ee2b79bf67f2ead56a9b53d9188c4554512bc41a698cd93b1758a22b3f0d4cea80be3d9096739b53f4d0
+MISC metadata.xml 329 SHA256 d3f5512942c260cd9b9a51e58d028aef4ea2f93d7c56172fcfeffb45fd51c7e0 SHA512 313bc1d6e61d610abbdd7e7a95826005e6160e5ea7dc4ca3fa58b9811fbd77cf33e33221526871bc2ac383f90d8676f2264629e4898fe92d1d26b5d84c878527 WHIRLPOOL 47808b02bb00eb81e22961453a7855df472a6aea2dd4174351a32af08898be0e39ce64c85f4e06e0345fcfda943040e83ac084f572ae510e1b4aa71e3b4570fd
diff --git a/games-emulation/gxmame/files/gxmame-0.35_beta2-glib-single-include.patch b/games-emulation/gxmame/files/gxmame-0.35_beta2-glib-single-include.patch
new file mode 100644
index 000000000000..83ef4aa075e5
--- /dev/null
+++ b/games-emulation/gxmame/files/gxmame-0.35_beta2-glib-single-include.patch
@@ -0,0 +1,13 @@
+Index: gxmame-0.35beta2/src/gxmame.c
+===================================================================
+--- gxmame-0.35beta2.orig/src/gxmame.c
++++ gxmame-0.35beta2/src/gxmame.c
+@@ -31,7 +31,7 @@
+ #include <unistd.h>
+ #include <signal.h>
+ #include <glib/gprintf.h>
+-#include <glib/gutils.h>
++#include <glib.h>
+ #include <gtk/gtkmain.h>
+ #include <gtk/gtkfilesel.h>
+
diff --git a/games-emulation/gxmame/files/gxmame-0.35_beta2-ovflfix.patch b/games-emulation/gxmame/files/gxmame-0.35_beta2-ovflfix.patch
new file mode 100644
index 000000000000..8831a3e09b61
--- /dev/null
+++ b/games-emulation/gxmame/files/gxmame-0.35_beta2-ovflfix.patch
@@ -0,0 +1,29 @@
+--- src/options.c.old 2010-12-01 10:48:45.000000000 +0100
++++ src/options.c 2010-12-01 10:53:55.000000000 +0100
+@@ -4245,7 +4245,7 @@
+ case XMAME_EXEC_SVGAFX:
+ target->fxgkeepaspect = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (fxgkeepaspect_checkbutton));
+ used_text = gtk_editable_get_chars (GTK_EDITABLE (fx_entry), 0, -1);
+- strncpy (target->resolution, used_text, 20);
++ strncpy (target->resolution, used_text, sizeof(target->resolution));
+ g_free (used_text);
+ break;
+
+@@ -4330,7 +4330,7 @@
+ }
+
+ used_text = gtk_editable_get_chars (GTK_EDITABLE (soundfile_entry), 0, -1);
+- strncpy (target->soundfile, used_text, 50);
++ strncpy (target->soundfile, used_text, sizeof(target->soundfile));
+ g_free (used_text);
+
+ target->timer = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (timer_checkbutton));
+@@ -4465,7 +4465,7 @@
+ target->skip_disclaimer = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (disclaimer_checkbutton));
+ target->skip_gameinfo = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (gameinfo_checkbutton));
+ used_text = gtk_editable_get_chars (GTK_EDITABLE (debug_size_combo_entry), 0, -1);
+- strncpy (target->debug_size, used_text, 20);
++ strncpy (target->debug_size, used_text, sizeof(target->debug_size));
+ g_free (used_text);
+ target->use_additional_options = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (additional_options_checkbutton));
+ /* here I'm using directly the additional option because I don't know its length */
diff --git a/games-emulation/gxmame/gxmame-0.35_beta2.ebuild b/games-emulation/gxmame/gxmame-0.35_beta2.ebuild
new file mode 100644
index 000000000000..d52519f5043f
--- /dev/null
+++ b/games-emulation/gxmame/gxmame-0.35_beta2.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+MY_P="${PN}-${PV/_beta/beta}"
+DESCRIPTION="frontend for XMame using the GTK library"
+HOMEPAGE="http://gxmame.sourceforge.net/"
+SRC_URI="mirror://sourceforge/gxmame/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nls joystick"
+
+RDEPEND="dev-libs/expat
+ >=x11-libs/gtk+-2.4:2
+ >=dev-libs/glib-2.4:2
+ x11-themes/gnome-icon-theme
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-glib-single-include.patch \
+ "${FILESDIR}"/${P}-ovflfix.patch
+ sed -i \
+ -e "s:-O2 -fomit-frame-pointer -ffast-math:${CFLAGS}:" \
+ -e "s:-O2:${CFLAGS}:" \
+ configure || die
+ sed -i \
+ -e '/Icon/s/\.png//' \
+ -e '/Categories/s/Application;//' \
+ gxmame.desktop.in || die
+ sed -i \
+ -e 's:COPYING::' \
+ -e "s:^docdir = .*:docdir = /usr/share/doc/${PF}:" \
+ -e "s:^htmldir = .*:htmldir = /usr/share/doc/${PF}/html:" \
+ -e "s:^icondir = .*:icondir = /usr/share/icons:" \
+ -e "s:^pixmapdir = .*:pixmapdir = /usr/share/pixmaps:" \
+ -e "s:^gnulocaledir = .*:gnulocaledir = /usr/share/locale:" \
+ -e "s:^icon2dir = .*:icon2dir = /usr/share/icons/mini:" \
+ -e "s:^Graphicsdir = .*:Graphicsdir = /usr/share/applications:" \
+ -e "/DDATADIR/s:\$(datadir):/usr/share/pixmaps:" \
+ -e "/DPACKAGE_LOCALE_DIR/s:\$(datadir):/usr/share:" \
+ Makefile.in html/Makefile.in src/Makefile.in po/Makefile.in.in || die
+ sed -i -e 's/"gxmame"/""/' src/gui.c || die
+}
+
+src_configure() {
+ egamesconf \
+ --with-xmame-dir="${GAMES_DATADIR}"/xmame \
+ $(use_enable nls) \
+ $(use_enable joystick)
+}
+
+src_install() {
+ DOCS="AUTHORS BUGS ChangeLog NEWS README TODO" \
+ default
+ prepgamesdirs
+}
diff --git a/games-emulation/gxmame/metadata.xml b/games-emulation/gxmame/metadata.xml
new file mode 100644
index 000000000000..e5c3f321f04a
--- /dev/null
+++ b/games-emulation/gxmame/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">gxmame</remote-id>
+ </upstream>
+</pkgmetadata>