summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Dittrich <markusle@gentoo.org>2006-02-07 04:37:09 +0000
committerMarkus Dittrich <markusle@gentoo.org>2006-02-07 04:37:09 +0000
commit2664bc510f8859c0bcae08935d063e31261a6486 (patch)
treee50197d53872dd184d0d1af4d9ae9b72f9d1df6f /sci-visualization/gfsview
parentStable on x86; bug #121776 (diff)
downloadgentoo-2-2664bc510f8859c0bcae08935d063e31261a6486.tar.gz
gentoo-2-2664bc510f8859c0bcae08935d063e31261a6486.tar.bz2
gentoo-2-2664bc510f8859c0bcae08935d063e31261a6486.zip
Initial import (fixes bug #102325). Many thanks to Tim Cera <timcera@earthlink.net> for his ebuild and patches.
(Portage version: 2.1_pre4-r1)
Diffstat (limited to 'sci-visualization/gfsview')
-rw-r--r--sci-visualization/gfsview/ChangeLog12
-rw-r--r--sci-visualization/gfsview/Manifest15
-rw-r--r--sci-visualization/gfsview/files/digest-gfsview-0.43
-rw-r--r--sci-visualization/gfsview/files/gtk-client-events-handling.patch35
-rw-r--r--sci-visualization/gfsview/gfsview-0.4.ebuild39
-rw-r--r--sci-visualization/gfsview/metadata.xml9
6 files changed, 113 insertions, 0 deletions
diff --git a/sci-visualization/gfsview/ChangeLog b/sci-visualization/gfsview/ChangeLog
new file mode 100644
index 000000000000..498eac954ab4
--- /dev/null
+++ b/sci-visualization/gfsview/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for sci-visualization/gfsview
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gfsview/ChangeLog,v 1.1 2006/02/07 04:37:09 markusle Exp $
+
+*gfsview-0.4 (07 Feb 2006)
+
+ 07 Feb 2006; Markus Dittrich <markusle@gentoo.org>
+ +files/gtk-client-events-handling.patch, +metadata.xml,
+ +gfsview-0.4.ebuild:
+ Initial import (fixes bug #102325). Many thanks to Tim Cera
+ <timcera@earthlink.net> for his ebuild and patches.
+
diff --git a/sci-visualization/gfsview/Manifest b/sci-visualization/gfsview/Manifest
new file mode 100644
index 000000000000..206c3c44127a
--- /dev/null
+++ b/sci-visualization/gfsview/Manifest
@@ -0,0 +1,15 @@
+MD5 9a614d7293f4f1a2e89bc83c736b52f3 ChangeLog 406
+RMD160 1bb0495540bba36c4e5ed1b09c323e795c96c221 ChangeLog 406
+SHA256 f5a999a1b653c4f196acfc41379a05fd233fef3149566df239420beb7a8e41e8 ChangeLog 406
+MD5 0aa0f156bafb93c3a7e3f9420681c47b files/digest-gfsview-0.4 235
+RMD160 7dc8d61ccc0ebdc6e44685b0587d83d6d25bda65 files/digest-gfsview-0.4 235
+SHA256 98ecf796568574c1161b9fdfb14b295285a486f983de0284a36fab76a4fd507f files/digest-gfsview-0.4 235
+MD5 d73e040c74528c3ce7779fd10f5967ec files/gtk-client-events-handling.patch 869
+RMD160 408af1227852ab8e69fdb6d92b92a962114dfb46 files/gtk-client-events-handling.patch 869
+SHA256 c68b3163dedd075c4ad55876c020fb313c75f5531e0492288713fdbaaa18cf76 files/gtk-client-events-handling.patch 869
+MD5 bffe7acafe9a7c476765fc375b7d794e gfsview-0.4.ebuild 869
+RMD160 5a4f8bee469b0549b08bffafb39cba739e25e1b2 gfsview-0.4.ebuild 869
+SHA256 99fdf589f4e72d9005f173f321266f92852558e54d9a7d795fcbb33461189d05 gfsview-0.4.ebuild 869
+MD5 041650a939ada57b9df1755a488ad1b7 metadata.xml 254
+RMD160 991c43f74018cbcaaa60b41290c912a8b61091c8 metadata.xml 254
+SHA256 80784c7acbd54102b4d3fc01c3fb2ae5862732093798671596c67a8350c25454 metadata.xml 254
diff --git a/sci-visualization/gfsview/files/digest-gfsview-0.4 b/sci-visualization/gfsview/files/digest-gfsview-0.4
new file mode 100644
index 000000000000..5bc0e696e354
--- /dev/null
+++ b/sci-visualization/gfsview/files/digest-gfsview-0.4
@@ -0,0 +1,3 @@
+MD5 b352c141754faa7302ac4ba9af29738f gfsview-0.4.tar.gz 299158
+RMD160 77d5bdfec579eddfe3e16478257cf6b9658e4ec8 gfsview-0.4.tar.gz 299158
+SHA256 34b976f742976e07b0671bae5e8a4717f5dd4d0e5afebfa95238e72e7b4908a5 gfsview-0.4.tar.gz 299158
diff --git a/sci-visualization/gfsview/files/gtk-client-events-handling.patch b/sci-visualization/gfsview/files/gtk-client-events-handling.patch
new file mode 100644
index 000000000000..f6f9ff7c8099
--- /dev/null
+++ b/sci-visualization/gfsview/files/gtk-client-events-handling.patch
@@ -0,0 +1,35 @@
+diff -Naur gfsview-0.4/view/gfkgl.c gfsview-0.4-new/view/gfkgl.c
+--- gfsview-0.4/view/gfkgl.c 2005-10-11 22:55:13.000000000 +0000
++++ gfsview-0.4-new/view/gfkgl.c 2006-02-06 20:07:45.000000000 +0000
+@@ -2376,16 +2376,21 @@
+
+ static gboolean client_event (GtkWidget * view, GdkEventClient * msg)
+ {
+- FILE * fp;
+- GfsGl2PSParams * p;
+-
+- GFK_GL_UNPACK_MSG (msg, fp, p);
+- gfs_gl2ps (p, fp, "", view);
+- if (fp == stdout || fp == stderr)
+- fflush (fp);
+- else
+- fclose (fp);
+- g_free (p);
++ gchar * name = gdk_atom_name (msg->message_type);
++
++ if (!strcmp (name, "GFS_SAVE_EVENT")) {
++ FILE * fp;
++ GfsGl2PSParams * p;
++
++ GFK_GL_UNPACK_MSG (msg, fp, p);
++ gfs_gl2ps (p, fp, "", view);
++ if (fp == stdout || fp == stderr)
++ fflush (fp);
++ else
++ fclose (fp);
++ g_free (p);
++ }
++ g_free (name);
+ return TRUE;
+ }
+
diff --git a/sci-visualization/gfsview/gfsview-0.4.ebuild b/sci-visualization/gfsview/gfsview-0.4.ebuild
new file mode 100644
index 000000000000..37e86b9ce73a
--- /dev/null
+++ b/sci-visualization/gfsview/gfsview-0.4.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gfsview/gfsview-0.4.ebuild,v 1.1 2006/02/07 04:37:09 markusle Exp $
+
+inherit eutils
+
+DESCRIPTION="GfsView is a graphical viewer for Gerris simulation files."
+HOMEPAGE="http://gfs.sourceforge.net/"
+SRC_URI="mirror://sourceforge/gfs/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+IUSE=""
+DEPEND=">=x11-libs/gtkglext-1.0.6
+ >=x11-libs/gtk+-2.4.0
+ >=sci-libs/gerris-0.8.0"
+
+src_unpack() {
+ unpack "${A}" || die "Unpacking the source failed"
+ cd "${S}" || die "Failed to change directory"
+
+ # apply upstream patch to fix crashes when
+ # clicking on menu items
+ epatch "${FILESDIR}"/gtk-client-events-handling.patch
+}
+
+src_compile() {
+ econf || die "Configure failed"
+ emake || die "Make failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "Install failed"
+ dodoc AUTHORS ChangeLog NEWS README TODO
+}
+
+
diff --git a/sci-visualization/gfsview/metadata.xml b/sci-visualization/gfsview/metadata.xml
new file mode 100644
index 000000000000..a3ced4f52edf
--- /dev/null
+++ b/sci-visualization/gfsview/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>markusle@gentoo.org</email>
+ <name>Markus Dittrich</name>
+ </maintainer>
+ <herd>sci</herd>
+</pkgmetadata>