summaryrefslogtreecommitdiff
path: root/net/gnoemoe
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-01-14 19:13:51 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-01-14 19:13:51 +0000
commitf0a3edf438ddbd29645da2ce9c0e979f077ce35f (patch)
tree76ba8b93a3b289a58ace5b36ce80526df46acc4e /net/gnoemoe
parentUpdate to 2.2.7 (diff)
Add gnoemoe, a Gnome MOO (Mud Object Orientated) Client with support for many
easy to use features. GnoeMoe aims to be fast, easy to use and simple. PR: ports/76167 Submitted by: Jesse van den Kieboom <jesse@icecrew.nl>
Notes
Notes: svn path=/head/; revision=126445
Diffstat (limited to 'net/gnoemoe')
-rw-r--r--net/gnoemoe/Makefile34
-rw-r--r--net/gnoemoe/distinfo2
-rw-r--r--net/gnoemoe/files/patch-IfWorldPropertiesC11
-rw-r--r--net/gnoemoe/files/patch-Makefile.in11
-rw-r--r--net/gnoemoe/files/patch-po-Makefile.in.in11
-rw-r--r--net/gnoemoe/files/patch-src-if_world_properties.c22
-rw-r--r--net/gnoemoe/files/patch-src-if_worlds_listing.c47
-rw-r--r--net/gnoemoe/files/patch-src-script.c20
-rw-r--r--net/gnoemoe/files/patch-src-support.c15
-rw-r--r--net/gnoemoe/files/patch-src-world.c36
-rw-r--r--net/gnoemoe/pkg-descr6
-rw-r--r--net/gnoemoe/pkg-plist50
12 files changed, 265 insertions, 0 deletions
diff --git a/net/gnoemoe/Makefile b/net/gnoemoe/Makefile
new file mode 100644
index 000000000000..1c26e3384485
--- /dev/null
+++ b/net/gnoemoe/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: GnoeMoe
+# Date created: 11 January 2005
+# Whom: Jesse van den Kieboom <jesse@icecrew.nl>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gnoemoe
+PORTVERSION= 0.8.1
+CATEGORIES= net
+MASTER_SITES= http://www.icecrew.nl/software/gnoemoe/download/
+
+MAINTAINER= jesse@icecrew.nl
+COMMENT= Gnome MOO Client
+
+LIB_DEPENDS= vte:${PORTSDIR}/x11-toolkits/vte
+
+USE_RUBY= yes
+USE_RUBY_FEATURES= ruby18
+
+USE_GNOME= gnomeprefix gtksourceview libglade2 libgnomeui vte
+USE_X_PREFIX= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+USE_LIBTOOL_VER= 15
+USE_REINPLACE= yes
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|-Werror||' ${WRKSRC}/src/Makefile.in
+
+post-install:
+ update-mime-database ${PREFIX}/share/mime
+
+.include <bsd.port.mk>
diff --git a/net/gnoemoe/distinfo b/net/gnoemoe/distinfo
new file mode 100644
index 000000000000..50526e6bdd61
--- /dev/null
+++ b/net/gnoemoe/distinfo
@@ -0,0 +1,2 @@
+MD5 (gnoemoe-0.8.1.tar.gz) = d7b4e0f55ee497c2643568386045e521
+SIZE (gnoemoe-0.8.1.tar.gz) = 329444
diff --git a/net/gnoemoe/files/patch-IfWorldPropertiesC b/net/gnoemoe/files/patch-IfWorldPropertiesC
new file mode 100644
index 000000000000..22d9d85aa951
--- /dev/null
+++ b/net/gnoemoe/files/patch-IfWorldPropertiesC
@@ -0,0 +1,11 @@
+--- src/if_world_properties.c.orig Wed Jan 12 09:58:03 2005
++++ src/if_world_properties.c Wed Jan 12 09:57:44 2005
+@@ -234,7 +234,7 @@
+ create_world_properties(world * wld) {
+ gchar *oldPath;
+ GtkWidget *dlg = create_dlgWorld_properties(wld);
+- gint result;
++ gint result = 0;
+ gboolean isOkay = FALSE;
+
+ if (wld->path != NULL) {
diff --git a/net/gnoemoe/files/patch-Makefile.in b/net/gnoemoe/files/patch-Makefile.in
new file mode 100644
index 000000000000..29bcf9f697f1
--- /dev/null
+++ b/net/gnoemoe/files/patch-Makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.orig Tue Dec 14 09:34:20 2004
++++ Makefile.in Fri Jan 14 18:51:47 2005
+@@ -186,7 +186,7 @@
+ langdir = $(datadir)/gtksourceview-1.0/language-specs
+ lang_DATA = moo.lang
+
+-mimedir = $(datadir)/mime/packages
++mimedir = $(prefix)/share/mime/packages
+ mime_DATA = gnoemoe.xml
+ subdir = .
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
diff --git a/net/gnoemoe/files/patch-po-Makefile.in.in b/net/gnoemoe/files/patch-po-Makefile.in.in
new file mode 100644
index 000000000000..add512d0d84f
--- /dev/null
+++ b/net/gnoemoe/files/patch-po-Makefile.in.in
@@ -0,0 +1,11 @@
+--- po/Makefile.in.in.orig Tue Dec 14 09:34:17 2004
++++ po/Makefile.in.in Fri Jan 14 18:34:59 2005
+@@ -29,7 +29,7 @@
+ datadir = @datadir@
+ libdir = @libdir@
+ localedir = $(libdir)/locale
+-gnulocaledir = $(datadir)/locale
++gnulocaledir = $(prefix)/share/locale
+ gettextsrcdir = $(datadir)/glib-2.0/gettext/po
+ subdir = po
+ install_sh = @install_sh@
diff --git a/net/gnoemoe/files/patch-src-if_world_properties.c b/net/gnoemoe/files/patch-src-if_world_properties.c
new file mode 100644
index 000000000000..b22876ed7fd7
--- /dev/null
+++ b/net/gnoemoe/files/patch-src-if_world_properties.c
@@ -0,0 +1,22 @@
+--- src/if_world_properties.c.orig Fri Jan 14 18:10:45 2005
++++ src/if_world_properties.c Fri Jan 14 18:11:46 2005
+@@ -117,6 +117,8 @@
+ gboolean
+ check_world_properties_values() {
+
++ world *ifWld, *newWld;
++
+ GtkEntry *entry = GTK_ENTRY(if_world_properties_get_widget("entryName"));
+ gchar *name = g_strdup(gtk_entry_get_text(entry));
+ GtkEntry *entryHost = GTK_ENTRY(if_world_properties_get_widget("entryHost"));
+@@ -125,8 +127,8 @@
+ g_strstrip(name);
+ g_strstrip(host);
+
+- world *ifWld = world_get_by_name(name);
+- world *newWld = world_properties_get_world();
++ ifWld = world_get_by_name(name);
++ newWld = world_properties_get_world();
+
+ if (strlen(name) == 0) {
+ GtkWidget *mDlg =
diff --git a/net/gnoemoe/files/patch-src-if_worlds_listing.c b/net/gnoemoe/files/patch-src-if_worlds_listing.c
new file mode 100644
index 000000000000..ca7304278e70
--- /dev/null
+++ b/net/gnoemoe/files/patch-src-if_worlds_listing.c
@@ -0,0 +1,47 @@
+--- src/if_worlds_listing.c.orig Fri Sep 10 23:56:49 2004
++++ src/if_worlds_listing.c Fri Jan 14 18:06:02 2005
+@@ -149,6 +149,7 @@
+ GtkTreeIter iter;
+ GtkTreeModel *tvwModel;
+ gchar *name;
++ world *wld;
+
+ gboolean isActive = gtk_cell_renderer_toggle_get_active(cell);
+
+@@ -159,7 +160,7 @@
+ gtk_tree_model_get_iter_from_string(tvwModel, &iter, path_string);
+ gtk_tree_model_get(tvwModel, &iter, NAME_COLUMN, &name, -1);
+
+- world *wld = world_get_by_name(name);
++ wld = world_get_by_name(name);
+
+ g_free(name);
+ options_set_int(wld->settings, "autoload", !isActive);
+@@ -293,9 +294,10 @@
+ gchar *name;
+
+ if (firstPath) {
++ world *wld;
+ gtk_tree_model_get_iter(model, &iter, firstPath->data);
+ gtk_tree_model_get(model, &iter, NAME_COLUMN, &name, -1);
+- world *wld = world_get_by_name(name);
++ wld = world_get_by_name(name);
+
+ g_free(name);
+
+@@ -328,12 +330,13 @@
+ gint result;
+
+ if (firstPath) {
++ world *wld, *newWld;
+ gtk_tree_model_get_iter(model, &iter, firstPath->data);
+ gtk_tree_model_get(model, &iter, NAME_COLUMN, &name, -1);
+- world *wld = world_get_by_name(name);
++ wld = world_get_by_name(name);
+
+ // now duplicate the world
+- world *newWld = world_copy(wld);
++ newWld = world_copy(wld);
+
+ // Make sure that we set the path to NULL, because otherwise it would look like
+ // a modifying of the source world, we don't want that! Setting it to NULL will
diff --git a/net/gnoemoe/files/patch-src-script.c b/net/gnoemoe/files/patch-src-script.c
new file mode 100644
index 000000000000..2dbd7bfed0ad
--- /dev/null
+++ b/net/gnoemoe/files/patch-src-script.c
@@ -0,0 +1,20 @@
+--- src/script.c.orig Mon Dec 13 14:34:09 2004
++++ src/script.c Fri Jan 14 18:15:51 2005
+@@ -153,6 +153,8 @@
+
+ if(!NIL_P(ruby_errinfo)) {
+
++ VALUE ary;
++
+ lasterr = rb_gv_get("$!");
+ err = RSTRING(rb_obj_as_string(lasterr))->ptr;
+
+@@ -162,7 +164,7 @@
+ if_scripts_add(SCRIPTC_ERROR, msg);
+ g_free(msg);
+
+- VALUE ary = rb_funcall(ruby_errinfo, rb_intern("backtrace"), 0);
++ ary = rb_funcall(ruby_errinfo, rb_intern("backtrace"), 0);
+ debug_msg(1, "script_error: Ruby backtrace:");
+ if_scripts_add(SCRIPTC_ERROR, _("Ruby backtrace:"));
+
diff --git a/net/gnoemoe/files/patch-src-support.c b/net/gnoemoe/files/patch-src-support.c
new file mode 100644
index 000000000000..8fe2aab2f7e7
--- /dev/null
+++ b/net/gnoemoe/files/patch-src-support.c
@@ -0,0 +1,15 @@
+--- src/support.c.orig Mon Dec 13 14:03:44 2004
++++ src/support.c Fri Jan 14 15:50:26 2005
+@@ -194,11 +194,11 @@
+ ret = regexec(&url_regexp, (char *)(tmp + offset), 1, matches, 0);
+
+ if (ret == 0) {
++ gint s;
+ if (matches[0].rm_so > matches[0].rm_eo) {
+ break;
+ }
+
+- gint s;
+ num_matches++;
+
+ s = matches[0].rm_so + offset;
diff --git a/net/gnoemoe/files/patch-src-world.c b/net/gnoemoe/files/patch-src-world.c
new file mode 100644
index 000000000000..b0b8469326e4
--- /dev/null
+++ b/net/gnoemoe/files/patch-src-world.c
@@ -0,0 +1,36 @@
+--- src/world.c.orig Mon Dec 13 13:47:38 2004
++++ src/world.c Fri Jan 14 18:00:30 2005
+@@ -1308,7 +1308,6 @@
+ g_free(sendLine);
+
+ #ifdef HASRUBY
+- script_function *f;
+ if ((f = script_find("on_login")) != NULL) {
+ script_run(wld, f, NULL);
+ }
+@@ -1483,11 +1482,12 @@
+ */
+ void
+ world_update(world * wld) {
++ gchar *logsDir, *tmpDir;
+ interface_update_world(wld);
+
+ // See if there is need to create a logs dir
+- gchar *logsDir = g_strconcat(wld->path, "/logs", NULL);
+- gchar *tmpDir = g_strconcat(wld->path, "/tmp", NULL);
++ logsDir = g_strconcat(wld->path, "/logs", NULL);
++ tmpDir = g_strconcat(wld->path, "/tmp", NULL);
+
+ if (!g_file_test(logsDir, G_FILE_TEST_EXISTS)) {
+ mkdir(logsDir, 0750);
+@@ -1779,8 +1779,9 @@
+ PangoContext *pc = gtk_widget_create_pango_context(wld->widgets.txtVwWorld);
+
+ if (style->font_desc != NULL) {
++ PangoLayout *pl;
+ pango_context_set_font_description(pc, style->font_desc);
+- PangoLayout *pl = pango_layout_new(pc);
++ pl = pango_layout_new(pc);
+
+ pango_layout_set_text(pl, "G", 1);
+ pango_layout_get_pixel_size(pl, &(wld->characterWidth), &(wld->characterHeight));
diff --git a/net/gnoemoe/pkg-descr b/net/gnoemoe/pkg-descr
new file mode 100644
index 000000000000..ebb7e37b2c75
--- /dev/null
+++ b/net/gnoemoe/pkg-descr
@@ -0,0 +1,6 @@
+GnoeMoe is a Gnome MOO Client with many features and good support.
+
+WWW: http://www.icecrew.nl/software/gnoemoe/
+
+- Jesse van den Kieboom
+jesse@icecrew.nl
diff --git a/net/gnoemoe/pkg-plist b/net/gnoemoe/pkg-plist
new file mode 100644
index 000000000000..f34ece230901
--- /dev/null
+++ b/net/gnoemoe/pkg-plist
@@ -0,0 +1,50 @@
+bin/gnoemoe
+share/gnome/applications/gnoemoe.desktop
+share/gnome/gnoemoe/gnoemoe.glade
+share/gnome/gnoemoe/pixmaps/browser.png
+share/gnome/gnoemoe/pixmaps/close.xpm
+share/gnome/gnoemoe/pixmaps/editor.xpm
+share/gnome/gnoemoe/pixmaps/editor_text.xpm
+share/gnome/gnoemoe/pixmaps/editor_verb.xpm
+share/gnome/gnoemoe/pixmaps/gnoemoe_logo.svg
+share/gnome/gnoemoe/pixmaps/ice-userlist/avail+idle.svg
+share/gnome/gnoemoe/pixmaps/ice-userlist/away+idle.svg
+share/gnome/gnoemoe/pixmaps/ice-userlist/away.svg
+share/gnome/gnoemoe/pixmaps/ice-userlist/busy+idle.svg
+share/gnome/gnoemoe/pixmaps/ice-userlist/busy.svg
+share/gnome/gnoemoe/pixmaps/ice-userlist/inhabitant.svg
+share/gnome/gnoemoe/pixmaps/ice-userlist/programmer.svg
+share/gnome/gnoemoe/pixmaps/ice-userlist/wizard.svg
+share/gnome/gnoemoe/pixmaps/saveclose.xpm
+share/gnome/gnoemoe/pixmaps/terminal.png
+share/gnome/gnoemoe/pixmaps/tray/active.svg
+share/gnome/gnoemoe/pixmaps/tray/default.svg
+share/gnome/gnoemoe/pixmaps/userlist/away.svg
+share/gnome/gnoemoe/pixmaps/userlist/friend.svg
+share/gnome/gnoemoe/pixmaps/userlist/idle.svg
+share/gnome/gnoemoe/pixmaps/userlist/idleaway.svg
+share/gnome/gnoemoe/pixmaps/userlist/inhabitant.svg
+share/gnome/gnoemoe/pixmaps/userlist/inhabitantplus.svg
+share/gnome/gnoemoe/pixmaps/userlist/key.svg
+share/gnome/gnoemoe/pixmaps/userlist/newbie.svg
+share/gnome/gnoemoe/pixmaps/userlist/schooled.svg
+share/gnome/gnoemoe/pixmaps/userlist/star.svg
+share/gnome/gnoemoe/pixmaps/userlist/wizard.svg
+share/gnome/gnoemoe/pixmaps/world.png
+share/gnome/gnoemoe/pixmaps/world_inactive.png
+share/gnome/gnoemoe/scripts/editing.rb
+share/gnome/gnoemoe/scripts/misc.rb
+share/gnome/gnoemoe/scripts/music.rb
+share/gnome/gnoemoe/scripts/run.rb
+share/gnome/gtksourceview-1.0/language-specs/moo.lang
+share/gnome/pixmaps/gnoemoe-logo.svg
+share/locale/nl/LC_MESSAGES/gnoemoe.mo
+share/mime/packages/gnoemoe.xml
+@dirrm share/gnome/gnoemoe/scripts
+@dirrm share/gnome/gnoemoe/pixmaps/userlist
+@dirrm share/gnome/gnoemoe/pixmaps/tray
+@dirrm share/gnome/gnoemoe/pixmaps/ice-userlist
+@dirrm share/gnome/gnoemoe/pixmaps
+@dirrm share/gnome/gnoemoe
+@exec update-mime-database %D/share/mime
+@unexec update-mime-database %D/share/mime