summaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/Makefile1
-rw-r--r--editors/tea/Makefile35
-rw-r--r--editors/tea/distinfo2
-rw-r--r--editors/tea/files/patch-src::callbacks.c34
-rw-r--r--editors/tea/files/patch-src::tea_text_document.c25
-rw-r--r--editors/tea/pkg-descr6
-rw-r--r--editors/tea/pkg-plist8
7 files changed, 111 insertions, 0 deletions
diff --git a/editors/Makefile b/editors/Makefile
index 310130a..b8ea52e 100644
--- a/editors/Makefile
+++ b/editors/Makefile
@@ -177,6 +177,7 @@
SUBDIR += sted
SUBDIR += tamago
SUBDIR += tamago-emacs20
+ SUBDIR += tea
SUBDIR += ted
SUBDIR += tetradraw
SUBDIR += texmacs
diff --git a/editors/tea/Makefile b/editors/tea/Makefile
new file mode 100644
index 0000000..4fc6218
--- /dev/null
+++ b/editors/tea/Makefile
@@ -0,0 +1,35 @@
+# New ports collection makefile for: TEA
+# Date created: 13 Jul 2004
+# Whom: Jean-Yves Lefort <jylefort@brutele.be>
+#
+# $FreeBSD$
+#
+
+PORTNAME= tea
+PORTVERSION= 0.9.1
+CATEGORIES= editors
+MASTER_SITES= http://tea.linux.kiev.ua/
+DISTNAME= ${PORTNAME}
+
+MAINTAINER= jylefort@brutele.be
+COMMENT= A simple GTK+ text editor
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
+USE_X_PREFIX= yes
+USE_BZIP2= yes
+GNU_CONFIGURE= yes
+USE_GCC= 3.3
+USE_GNOME= gtk20
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+.if !defined(NOPORTDOCS)
+post-install:
+ ${MKDIR} ${DOCSDIR}/en
+ ${MKDIR} ${DOCSDIR}/ru
+ ${INSTALL_DATA} ${WRKSRC}/doc/EN/index.html ${DOCSDIR}/en
+ ${INSTALL_DATA} ${WRKSRC}/doc/RU/index.html ${DOCSDIR}/ru
+.endif
+
+.include <bsd.port.mk>
diff --git a/editors/tea/distinfo b/editors/tea/distinfo
new file mode 100644
index 0000000..3d4fcd8
--- /dev/null
+++ b/editors/tea/distinfo
@@ -0,0 +1,2 @@
+MD5 (tea.tar.bz2) = a88523a562d12a0ece89133c647c3558
+SIZE (tea.tar.bz2) = 176078
diff --git a/editors/tea/files/patch-src::callbacks.c b/editors/tea/files/patch-src::callbacks.c
new file mode 100644
index 0000000..a34974d
--- /dev/null
+++ b/editors/tea/files/patch-src::callbacks.c
@@ -0,0 +1,34 @@
+--- src/callbacks.c.orig Tue Jul 13 17:01:57 2004
++++ src/callbacks.c Tue Jul 13 17:05:25 2004
+@@ -24,6 +24,7 @@
+ #include <gdk/gdk.h>
+ #include <gdk/gdkkeysyms.h>
+
++#include <sys/param.h>
+ #include <errno.h>
+ #include <sys/stat.h>
+ #include <glib.h>
+@@ -1065,9 +1066,10 @@
+
+ if (get_page_fnav ())
+ {
++ char buf[MAXPATHLEN];
+ gchar *fn = (gchar*) g_malloc (2048);
+
+- if (realpath ((gchar *) get_current_dir_name (), fn))
++ if (getcwd(buf, sizeof(buf)) && realpath (buf, fn))
+ set_fam_text (fn);
+ else
+ set_fam_text ("/");
+@@ -3005,9 +3007,10 @@
+
+ if (get_page_fnav ())
+ {
++ char buf[MAXPATHLEN];
+ gchar *fn = (gchar*) g_malloc (2048);
+
+- if (realpath ((gchar *) get_current_dir_name (), fn))
++ if (getcwd(buf, sizeof(buf)) && realpath (buf, fn))
+ set_fam_text (fn);
+ else
+ set_fam_text ("/");
diff --git a/editors/tea/files/patch-src::tea_text_document.c b/editors/tea/files/patch-src::tea_text_document.c
new file mode 100644
index 0000000..1a26383
--- /dev/null
+++ b/editors/tea/files/patch-src::tea_text_document.c
@@ -0,0 +1,25 @@
+--- src/tea_text_document.c.orig Tue Jul 13 17:05:42 2004
++++ src/tea_text_document.c Tue Jul 13 17:11:39 2004
+@@ -36,6 +36,7 @@
+ #include <stdio.h>
+ #include <strings.h>
+ #include <unistd.h>
++#include <sys/param.h>
+
+ #include "tea_file_nav.h"
+ #include "tea_text_document.h"
+@@ -1289,12 +1290,13 @@
+
+ t_note_page* page_create_new_filenav (void)
+ {
++ char buf[MAXPATHLEN];
+ t_note_page *page = (t_note_page *) g_malloc (sizeof (t_note_page));
+
+ page->hash_filelist = NULL;
+ gchar *fn = (gchar*) g_malloc (2048);
+
+- if (realpath ((gchar *) get_current_dir_name (), fn))
++ if (getcwd(buf, sizeof(buf)) && realpath (buf, fn))
+ page->current_path = fn;
+
+ page->type = 1;
diff --git a/editors/tea/pkg-descr b/editors/tea/pkg-descr
new file mode 100644
index 0000000..5fd0a85
--- /dev/null
+++ b/editors/tea/pkg-descr
@@ -0,0 +1,6 @@
+TEA is a simple GTK+ text editor.
+
+WWW: http://tea.linux.kiev.ua/
+
+- Jean-Yves Lefort
+jylefort@brutele.be
diff --git a/editors/tea/pkg-plist b/editors/tea/pkg-plist
new file mode 100644
index 0000000..8e8554b
--- /dev/null
+++ b/editors/tea/pkg-plist
@@ -0,0 +1,8 @@
+bin/tea
+share/locale/ru/LC_MESSAGES/tea.mo
+share/locale/uk/LC_MESSAGES/tea.mo
+%%PORTDOCS%%%%DOCSDIR%%/en/index.html
+%%PORTDOCS%%%%DOCSDIR%%/ru/index.html
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/en
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/ru
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
OpenPOWER on IntegriCloud