diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-strategy/gwp |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-strategy/gwp')
-rw-r--r-- | games-strategy/gwp/Manifest | 7 | ||||
-rw-r--r-- | games-strategy/gwp/files/gwp-0.4.0-exec-stack.patch | 89 | ||||
-rw-r--r-- | games-strategy/gwp/files/gwp-0.4.0-gcc41.patch | 107 | ||||
-rw-r--r-- | games-strategy/gwp/gwp-0.4.0-r3.ebuild | 60 | ||||
-rw-r--r-- | games-strategy/gwp/metadata.xml | 8 |
5 files changed, 271 insertions, 0 deletions
diff --git a/games-strategy/gwp/Manifest b/games-strategy/gwp/Manifest new file mode 100644 index 000000000000..f80a062d3041 --- /dev/null +++ b/games-strategy/gwp/Manifest @@ -0,0 +1,7 @@ +AUX gwp-0.4.0-exec-stack.patch 2842 SHA256 645f0b054e476ce11e7d4b5c7fe6a9402122afb02dc69b70b15c51c808aa80d5 SHA512 b6845071c5639e4d240742e7470de4723e534814b670e8b98b1971c6e1ae2a64a8d4b8ffaf86ef28bdf3ad6d861dfeee5e2c5e46c43ea955614999fbed46da96 WHIRLPOOL f792febe013ae3d79740eb10ec5adeba1c696106c73d5afd136bb7bc46fe22dc2c853e7a592ccd1895ba5549663c78bcb68bccde771f7cb39eb742954d6a8fbc +AUX gwp-0.4.0-gcc41.patch 4100 SHA256 36f37f2f7e2444830fd5216df3060ee74eab5108dd0daa2ce71970821ed05367 SHA512 0e3acd8978f3a6f1585ad45c2d04c97282daa9173b6d67807d473d79bbc665be4a3471537139e9d710832afeff5e6aa4a3064c3cc36cfe3beba012f330530f31 WHIRLPOOL 3a60665b6e97896d5ac39c8f2019c857e35ab572ed42ffe631aefedbe078bff8064f538c7a32c601e58032efef4753b0d344f2bec01afb2a809f87dedd631faa +DIST gwp-0.4.0.tar.gz 2294453 SHA256 e2734e019e2c3ef28cb0abd524c193ec5beb35d2bc8ba3e10652fac45c8bbe99 SHA512 dcb23bb49929bc01129ab5f02b56edb7f775feb0c37bd7613277af8aa0f4b47667f95413725f74a2b83b60159555a50fcabdc8736094aad0684b03cd150b4957 WHIRLPOOL 4c3cc223799132bf2021e1cb2bc10c88ecd41f3ec7191aaf2c115b91985bfd0717ce70f476234bc64f52286c19ba6a9b9e3722f4d81cf2b91ce9c0b1579b9cd9 +EBUILD gwp-0.4.0-r3.ebuild 1310 SHA256 4ac3c314d4a3774a65504f0766b91409571e48e29f442267521f4b5a0afb207d SHA512 ccf43b97d60c7d3cc9cb6d67b99112664c0cf10147391e466857afdbd45ae2845556fb58e273516fe157408e5f9c4eee5088ca43662f79a40ef4334493e6f49f WHIRLPOOL a1ce910e4db37525d272c087851c3106b52552af19b689ca237cccec81bd5493269e44569df3611b9cfcc2f931e544cb4a031fb44b50a3363b5b7e344f7ff858 +MISC ChangeLog 2494 SHA256 85a42f950384176dd2534c82e18dd7ef8f5fb7c92dd78d7dd827a0c363ace82b SHA512 138b1ea2028f71f24bd2e205165d4a916380499f24e237a3534bf7dbd8dea2284e3457880f6764a3c91e6a5a054ca797f3cd52f7c1594edcdb9e0f23945b9780 WHIRLPOOL e6f83bac52ca6d01dea1a989db627adfca0d1ba3a11285f82e92ad6f22551fa8b7bd65e373acb68fe8b1436b56c111295c98ebd77c19f3d58d0527e9a77b4750 +MISC ChangeLog-2015 2326 SHA256 729ab2e93310f9571ef3c0466446a623e67a048df8438f1837036617cd96a7e7 SHA512 e37c6d645d09fd9becf976827b3d7b427b7983d4380c9a5fdd946badb68c3f8b939ff1134a7134ac918c7119c6f99c1edd4b268a675be7029fcd791ab833dd9d WHIRLPOOL ac0397c3968e10350bbf0e8e3e66480c381007f0905c3896cb9c44ea4334baf118716fcfc8697c2cb86fb8004106770c9fb1670d9d21c09aa27bc6341f222884 +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-strategy/gwp/files/gwp-0.4.0-exec-stack.patch b/games-strategy/gwp/files/gwp-0.4.0-exec-stack.patch new file mode 100644 index 000000000000..1458b7ba1dfd --- /dev/null +++ b/games-strategy/gwp/files/gwp-0.4.0-exec-stack.patch @@ -0,0 +1,89 @@ +--- src/starchart.c ++++ src/starchart.c +@@ -3187,10 +3187,16 @@ + /** + * Initializes starchart constellations. + */ ++static GSList *planets; ++ ++static void add_item (gpointer key, gpointer value, gpointer user_data) { ++ /* GSList *p_list = (GSList *)user_data; */ ++ planets = g_slist_append (planets, value); ++} ++ + static void + init_starchart_constellations (void) + { +- GSList *planets = NULL; + GSList *ppq[TOTAL_QUADS]; + GSList *list_nearby = NULL; + GwpPlanet *planet_a, *planet_b; +@@ -3199,10 +3205,6 @@ + gdouble wx, wy; + gdouble ax, ay, bx, by, zoom; + +- static void add_item (gpointer key, gpointer value, gpointer user_data) { +- /* GSList *p_list = (GSList *)user_data; */ +- planets = g_slist_append (planets, value); +- } + + g_hash_table_foreach (planet_list, (GHFunc)add_item, NULL); + +--- src/vcr.c ++++ src/vcr.c +@@ -2687,12 +2687,29 @@ + return( retval ); + } + ++static gchar *name; ++ ++static void foreach_func( gpointer key, gpointer value, gpointer user_data ) ++{ ++ GwpShip *ship = GWP_SHIP( value ); ++ GtkComboBox *box = GTK_COMBO_BOX( lookup_widget( "vcr_comboboxentry_sel_ext_shp_a" ) ); ++ gint *idlist = (gint *)g_object_get_data(G_OBJECT(lookup_widget("vcr_comboboxentry_sel_ext_shp_a")), "shipidlist"); ++ gint curr = idlist[0]; ++ ++ if( gwp_ship_is_mine( ship ) ) ++ { ++ curr++; ++ idlist[curr] = gwp_object_get_id( GWP_OBJECT(ship) ); ++ idlist[0]++; ++ g_sprintf( name, "%03d: ", idlist[curr] ); ++ strncat( name, gwp_object_get_name (GWP_OBJECT(ship)), 50 ); ++ gtk_combo_box_append_text( box, name ); ++ } ++} + + void vcr_populate_ship_a_list( GtkWidget *widget, gpointer user_data ) + { +- gchar *name; + gint *idlist; +- static void foreach_func( gpointer key, gpointer value, gpointer user_data ); + + /* test if list is already populated */ + idlist = (gint *)g_object_get_data(G_OBJECT(lookup_widget("vcr_comboboxentry_sel_ext_shp_a")), "shipidlist"); +@@ -2708,23 +2725,7 @@ + GtkWidget *combox = lookup_widget("vcr_comboboxentry_sel_ext_shp_a"); + g_object_set_data(G_OBJECT(combox), "shipidlist", idlist ); + +- void foreach_func( gpointer key, gpointer value, gpointer user_data ) +- { +- GwpShip *ship = GWP_SHIP( value ); +- GtkComboBox *box = GTK_COMBO_BOX( lookup_widget( "vcr_comboboxentry_sel_ext_shp_a" ) ); +- gint *idlist = (gint *)g_object_get_data(G_OBJECT(lookup_widget("vcr_comboboxentry_sel_ext_shp_a")), "shipidlist"); +- gint curr = idlist[0]; + +- if( gwp_ship_is_mine( ship ) ) +- { +- curr++; +- idlist[curr] = gwp_object_get_id( GWP_OBJECT(ship) ); +- idlist[0]++; +- g_sprintf( name, "%03d: ", idlist[curr] ); +- strncat( name, gwp_object_get_name (GWP_OBJECT(ship)), 50 ); +- gtk_combo_box_append_text( box, name ); +- } +- } + + g_hash_table_foreach( ship_list, (GHFunc) foreach_func, user_data ); + diff --git a/games-strategy/gwp/files/gwp-0.4.0-gcc41.patch b/games-strategy/gwp/files/gwp-0.4.0-gcc41.patch new file mode 100644 index 000000000000..fa7ee5c5443c --- /dev/null +++ b/games-strategy/gwp/files/gwp-0.4.0-gcc41.patch @@ -0,0 +1,107 @@ +--- src/gwp-game-state.c.old 2006-03-05 00:56:48.000000000 +0900 ++++ src/gwp-game-state.c 2006-03-05 00:57:38.000000000 +0900 +@@ -749,7 +749,7 @@ + /* Connect to interesting signals */ + /**********************************/ + /* Selected planets */ +- static void planet_conn (gpointer key, gpointer value, gpointer self) { ++ void planet_conn (gpointer key, gpointer value, gpointer self) { + g_signal_connect (GWP_PLANET(value), + "selected", + G_CALLBACK(selected_planet_notification), +@@ -757,7 +757,7 @@ + } + g_hash_table_foreach (planet_list, (GHFunc) planet_conn, self); + /* Selected ships */ +- static void ship_conn (gpointer key, gpointer value, gpointer self) { ++ void ship_conn (gpointer key, gpointer value, gpointer self) { + g_signal_connect (GWP_SHIP(value), + "selected", + G_CALLBACK(selected_ship_notification), +--- src/starchart.c.old 2006-03-05 01:13:39.000000000 +0900 ++++ src/starchart.c 2006-03-05 01:18:04.000000000 +0900 +@@ -2111,7 +2111,7 @@ + /*******************/ + /* Planets signals */ + /*******************/ +- static void planet_conn (gpointer key, gpointer value, gpointer data) { ++ void planet_conn (gpointer key, gpointer value, gpointer data) { + g_signal_connect (GWP_PLANET(value), + "property-changed", + G_CALLBACK(update_planet_notification), +--- src/vp_utils.c.old 2006-03-05 01:18:14.000000000 +0900 ++++ src/vp_utils.c 2006-03-05 01:18:52.000000000 +0900 +@@ -2590,7 +2590,7 @@ + gwp_planet_set_colonists (planet, atoi(p_clans)); + + /* Compare func */ +- static gint compare_race (gconstpointer race, gconstpointer adj) { ++ gint compare_race (gconstpointer race, gconstpointer adj) { + gchar *race_str = gwp_race_get_adjective(GWP_RACE(race)); + if (strncmp(race_str, adj, strlen(adj)) == 0) + return 0; +@@ -2639,7 +2639,7 @@ + /* Assign known planet values */ + gwp_planet_set_is_known (planet, TRUE); + /* Compare func */ +- static gint compare_race (gconstpointer race, gconstpointer adj) { ++ gint compare_race (gconstpointer race, gconstpointer adj) { + gchar *race_str = gwp_race_get_adjective(GWP_RACE(race)); + if (strncmp(race_str, adj, strlen(adj)) == 0) + return 0; +--- src/gwp-py-mappings.c.old 2006-03-05 01:28:39.000000000 +0900 ++++ src/gwp-py-mappings.c 2006-03-05 01:29:30.000000000 +0900 +@@ -8657,7 +8657,7 @@ + { + PyObject *ret = PyDict_New(); + +- static void add_ship (gpointer key, gpointer value, gpointer user_data) { ++ void add_ship (gpointer key, gpointer value, gpointer user_data) { + PyObject *dict = (PyObject *)user_data; + GwpShip *ship = GWP_SHIP(value); + +@@ -8679,7 +8679,7 @@ + { + PyObject *ret = PyDict_New(); + +- static void add_planet (gpointer key, gpointer value, gpointer user_data) { ++ void add_planet (gpointer key, gpointer value, gpointer user_data) { + PyObject *dict = (PyObject *)user_data; + GwpPlanet *planet = GWP_PLANET(value); + +@@ -8701,7 +8701,7 @@ + { + PyObject *ret = PyDict_New(); + +- static void add_hullspec (gpointer value, gpointer user_data) { ++ void add_hullspec (gpointer value, gpointer user_data) { + PyObject *dict = (PyObject *)user_data; + GwpHullSpec *hullspec = GWP_HULLSPEC(value); + +@@ -8723,7 +8723,7 @@ + { + PyObject *ret = PyDict_New(); + +- static void add_engspec (gpointer value, gpointer user_data) { ++ void add_engspec (gpointer value, gpointer user_data) { + PyObject *dict = (PyObject *)user_data; + GwpEngSpec *engspec = GWP_ENGSPEC(value); + +@@ -8745,7 +8745,7 @@ + { + PyObject *ret = PyDict_New(); + +- static void add_beamspec (gpointer value, gpointer user_data) { ++ void add_beamspec (gpointer value, gpointer user_data) { + PyObject *dict = (PyObject *)user_data; + GwpBeamSpec *beamspec = GWP_BEAMSPEC(value); + +@@ -8767,7 +8767,7 @@ + { + PyObject *ret = PyDict_New(); + +- static void add_torpspec (gpointer value, gpointer user_data) { ++ void add_torpspec (gpointer value, gpointer user_data) { + PyObject *dict = (PyObject *)user_data; + GwpTorpSpec *torpspec = GWP_TORPSPEC(value); + diff --git a/games-strategy/gwp/gwp-0.4.0-r3.ebuild b/games-strategy/gwp/gwp-0.4.0-r3.ebuild new file mode 100644 index 000000000000..b70ca42037df --- /dev/null +++ b/games-strategy/gwp/gwp-0.4.0-r3.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +GCONF_DEBUG="yes" +PYTHON_COMPAT=( python2_7 ) + +inherit eutils flag-o-matic gnome2 python-single-r1 + +DESCRIPTION="GNOME client for the classic PBEM strategy game VGA Planets 3" +HOMEPAGE="http://gwp.lunix.com.ar/" +SRC_URI="http://gwp.lunix.com.ar/releases/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="nls opengl python" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND="x11-libs/gtk+:2 + gnome-base/libgnomeui + gnome-base/libglade + app-text/rarian + dev-libs/libpcre + nls? ( virtual/libintl ) + opengl? ( x11-libs/gtkglext ) + python? ( ${PYTHON_DEPS} + dev-python/pygtk[${PYTHON_USEDEP}] )" +DEPEND="${RDEPEND} + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + append-libs -lm + epatch \ + "${FILESDIR}"/${P}-gcc41.patch \ + "${FILESDIR}"/${P}-exec-stack.patch + sed -i \ + -e '/ -O1/d' \ + -e '/ -g$/d' \ + src/Makefile.in || die + gnome2_src_prepare +} + +src_configure() { + gnome2_src_configure \ + $(use_enable nls) \ + $(use_enable opengl gtkglext) \ + $(use_enable python) +} + +src_install() { + DOCS="AUTHORS ChangeLog CHANGES README TODO" \ + gnome2_src_install + rm -rf "${D}"/usr/share/doc/gwp +} diff --git a/games-strategy/gwp/metadata.xml b/games-strategy/gwp/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-strategy/gwp/metadata.xml @@ -0,0 +1,8 @@ +<?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> +</pkgmetadata> |