summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--archivers/katoob/Makefile40
-rw-r--r--archivers/katoob/distinfo3
-rw-r--r--archivers/katoob/files/patch-src-conf.c10
-rw-r--r--archivers/katoob/files/patch-src-init.c21
-rw-r--r--archivers/katoob/files/patch-src-katoob.h14
-rw-r--r--archivers/katoob/files/patch-src-search.c14
-rw-r--r--archivers/katoob/pkg-descr8
-rw-r--r--archivers/katoob/pkg-plist18
8 files changed, 128 insertions, 0 deletions
diff --git a/archivers/katoob/Makefile b/archivers/katoob/Makefile
new file mode 100644
index 000000000..7de450ba7
--- /dev/null
+++ b/archivers/katoob/Makefile
@@ -0,0 +1,40 @@
+# New ports collection makefile for: katoob
+# Date created: 13th September 2003
+# Whom: Pav Lucistnik <pav@oook.cz>
+#
+# $FreeBSD$
+#
+
+PORTNAME= katoob
+PORTVERSION= 0.3.5
+PORTREVISION= 9
+CATEGORIES= arabic
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= arabeyes
+
+MAINTAINER= sbahra@gwu.edu
+COMMENT= Light-weight, bidirectional editor for arabic texts
+
+MAN1= katoob.1
+
+USE_GMAKE= yes
+USE_XLIB= yes
+USE_GNOME= gnomeprefix gnomehack gtk20
+WANT_GNOME= yes
+USE_AUTOTOOLS= libtool:15
+USE_GETOPT_LONG=yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
+
+.include <bsd.port.pre.mk>
+
+.if ${HAVE_GNOME:Mgtksourceview}!="" || defined(WITH_HIGHLIGHTING)
+CONFIGURE_ARGS+= "--enable-highlight"
+USE_GNOME+= gtksourceview
+.endif
+
+.if defined(WITH_SPELLCHECKER) || exists(${LOCALBASE}/lib/libaspell.so.16)
+CONFIGURE_ARGS+= "--enable-spell"
+LIB_DEPENDS+= aspell.16:${PORTSDIR}/textproc/aspell
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/archivers/katoob/distinfo b/archivers/katoob/distinfo
new file mode 100644
index 000000000..3f2eef931
--- /dev/null
+++ b/archivers/katoob/distinfo
@@ -0,0 +1,3 @@
+MD5 (katoob-0.3.5.tar.gz) = a05723c7aee914c51226270aa3d61ff9
+SHA256 (katoob-0.3.5.tar.gz) = 213dde01195dbb10ff1710aff7c3948e3c20c7a0c227ca05e0665922b7bb2c64
+SIZE (katoob-0.3.5.tar.gz) = 427297
diff --git a/archivers/katoob/files/patch-src-conf.c b/archivers/katoob/files/patch-src-conf.c
new file mode 100644
index 000000000..26604b1e6
--- /dev/null
+++ b/archivers/katoob/files/patch-src-conf.c
@@ -0,0 +1,10 @@
+--- src/conf.c Tue Aug 26 07:54:35 2003
++++ src/conf.c.patch Mon May 24 16:57:43 2004
+@@ -798,6 +798,7 @@
+ if (!fp)
+ {
+ g_warning ("Can't open the printing configuration file.");
++ return;
+ }
+
+ fprintf (fp, "font_family = %s\n", encode_font (PConf->font_family));
diff --git a/archivers/katoob/files/patch-src-init.c b/archivers/katoob/files/patch-src-init.c
new file mode 100644
index 000000000..7bff8d026
--- /dev/null
+++ b/archivers/katoob/files/patch-src-init.c
@@ -0,0 +1,21 @@
+--- src/init.c Tue Aug 26 07:54:35 2003
++++ /home/samy/development/katoob/src/init.c Thu Aug 28 00:36:48 2003
+@@ -101,7 +101,18 @@
+ katoob->xkb_grps[i] =
+ XGetAtomName (GDK_DISPLAY (), kbinfo->names->groups[i]);
+ }
++ else
++ {
++ katoob->xkb_grps[i] = NULL;
++ }
+ }
++ }
++
++/* Let's NULL all the remaining array. */
++ while (grpnum < XkbNumKbdGroups)
++ {
++ katoob->xkb_grps[grpnum] = NULL;
++ ++grpnum;
+ }
+
+ XkbGetControls (GDK_DISPLAY (), XkbAllControlsMask, kbinfo);
diff --git a/archivers/katoob/files/patch-src-katoob.h b/archivers/katoob/files/patch-src-katoob.h
new file mode 100644
index 000000000..71fe915e9
--- /dev/null
+++ b/archivers/katoob/files/patch-src-katoob.h
@@ -0,0 +1,14 @@
+--- src/katoob.h.orig Thu May 20 12:44:35 2004
++++ src/katoob.h Thu May 20 12:44:48 2004
+@@ -25,11 +25,6 @@
+ #ifndef __KATOOB_H__
+ #define __KATOOB_H__
+
+-#define G_DISABLE_DEPRECATED 1
+-#define GDK_DISABLE_DEPRECATED 1
+-#define GDK_PIXBUF_DISABLE_DEPRECATED 1
+-#define GTK_DISABLE_DEPRECATED 1
+-
+ #include <gtk/gtk.h>
+ #include "encodings.h"
+ #ifdef ENABLE_HIGHLIGHT
diff --git a/archivers/katoob/files/patch-src-search.c b/archivers/katoob/files/patch-src-search.c
new file mode 100644
index 000000000..b9f3b63c7
--- /dev/null
+++ b/archivers/katoob/files/patch-src-search.c
@@ -0,0 +1,14 @@
+--- src/search.c Tue Aug 26 07:54:37 2003
++++ src/search.c.patch Mon May 24 17:07:16 2004
+@@ -266,9 +266,8 @@
+ tmp = katoob_document_get_last_replaced (doc);
+ if ((tmp) && (replace))
+ {
+- gtk_entry_set_text (GTK_ENTRY (entry2), g_strdup (tmp));
+- g_free (tmp);
+- tmp = NULL;
++ gtk_entry_set_text (GTK_ENTRY (entry2), tmp);
++ tmp = NULL;
+ }
+ }
+
diff --git a/archivers/katoob/pkg-descr b/archivers/katoob/pkg-descr
new file mode 100644
index 000000000..e1ae573cb
--- /dev/null
+++ b/archivers/katoob/pkg-descr
@@ -0,0 +1,8 @@
+Katoob is a light weight, multi lingual,
+BIDI-aware text editor based on the Gtk+ 2
+library. It supports opening and saving files
+in multiple encodings. The main support was
+for Arabic language but more languages are
+currently supported.
+
+WWW: http://www.arabeyes.org/project.php?proj=Katoob
diff --git a/archivers/katoob/pkg-plist b/archivers/katoob/pkg-plist
new file mode 100644
index 000000000..a31b2fbf0
--- /dev/null
+++ b/archivers/katoob/pkg-plist
@@ -0,0 +1,18 @@
+bin/katoob
+share/applications/katoob.desktop
+share/katoob/close.png
+share/katoob/emulator/arabic
+share/katoob/green.png
+share/katoob/katoob.png
+share/katoob/katoob-small.png
+share/katoob/landscape.png
+share/katoob/portrait.png
+share/katoob/red.png
+share/pixmaps/katoob-icon.png
+share/locale/ar/LC_MESSAGES/katoob.mo
+share/locale/pl/LC_MESSAGES/katoob.mo
+share/locale/sv/LC_MESSAGES/katoob.mo
+@dirrm share/katoob/emulator
+@dirrm share/katoob
+@dirrmtry share/locale/pl/LC_MESSAGES
+@dirrmtry share/locale/pl