From 231975d77c2787e1215a7f8f3458d63b49e32989 Mon Sep 17 00:00:00 2001 From: krion Date: Tue, 13 Jul 2004 16:10:46 +0000 Subject: Add tea 0.9.1, a simple GTK+ text editor. PR: ports/68995 Submitted by: Jean-Yves Lefort --- editors/Makefile | 1 + editors/tea/Makefile | 35 ++++++++++++++++++++++++ editors/tea/distinfo | 2 ++ editors/tea/files/patch-src::callbacks.c | 34 +++++++++++++++++++++++ editors/tea/files/patch-src::tea_text_document.c | 25 +++++++++++++++++ editors/tea/pkg-descr | 6 ++++ editors/tea/pkg-plist | 8 ++++++ 7 files changed, 111 insertions(+) create mode 100644 editors/tea/Makefile create mode 100644 editors/tea/distinfo create mode 100644 editors/tea/files/patch-src::callbacks.c create mode 100644 editors/tea/files/patch-src::tea_text_document.c create mode 100644 editors/tea/pkg-descr create mode 100644 editors/tea/pkg-plist (limited to 'editors') diff --git a/editors/Makefile b/editors/Makefile index 310130a1e188..b8ea52ed773f 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 000000000000..4fc62189f0ac --- /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 +# +# $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 diff --git a/editors/tea/distinfo b/editors/tea/distinfo new file mode 100644 index 000000000000..3d4fcd8e29bd --- /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 000000000000..a34974dedc14 --- /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 + #include + ++#include + #include + #include + #include +@@ -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 000000000000..1a263835505b --- /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 + #include + #include ++#include + + #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 000000000000..5fd0a8501bcf --- /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 000000000000..8e8554b50dde --- /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%% -- cgit