import tea

TEA is a powerful and simple-in-use GTK-based text editor with syntax
highlighting.  TEA can also open Openoffice.org Writer and Microsoft
Word files.

from Giovanni Bechis

ok merdely@
This commit is contained in:
okan 2008-01-23 17:02:30 +00:00
parent 340079523d
commit c019386304
8 changed files with 339 additions and 0 deletions

41
editors/tea/Makefile Normal file
View File

@ -0,0 +1,41 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/01/23 17:02:30 okan Exp $
COMMENT= powerful and simple GTK editor
DISTNAME= tea-17.5.4
CATEGORIES= editors x11
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tea-editor/}
EXTRACT_SUFX= .tar.bz2
HOMEPAGE= http://tea-editor.sf.net/
MAINTAINER= Giovanni Bechis <g.bechis@snb.it>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
LIB_DEPENDS= gdk_pixbuf-2.0,gdk-x11-2.0,gtk-x11-2.0::x11/gtk+2 \
gtksourceview-2.0:gtksourceview-2.*:x11/gtksourceview \
aspell.>=16:aspell-*:textproc/aspell/core \
zzip.>=13::archivers/zziplib
RUN_DEPENDS= ::textproc/antiword
WANTLIB= X11 Xau Xcursor Xdmcp Xext Xfixes Xi Xinerama Xrandr \
Xcomposite Xdamage Xrender expat fontconfig freetype z \
atk-1.0 glib-2.0 gmodule-2.0 gobject-2.0 glitz png \
pango-1.0 pangoft2-1.0 pangocairo-1.0 cairo xml2 \
c m stdc++
MODULES= devel/gettext
SEPARATE_BUILD= simple
CONFIGURE_STYLE= gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
LIBS="-lm -lstdc++"
USE_X11= Yes
.include <bsd.port.mk>

5
editors/tea/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (tea-17.5.4.tar.bz2) = w97Wq9De1Yfdi0LY8fFkOg==
RMD160 (tea-17.5.4.tar.bz2) = otaJJH8JoUS3CVS3caUh3m+VLRs=
SHA1 (tea-17.5.4.tar.bz2) = dXMV24+U38tJiUN9mjfPI/Y6ZXw=
SHA256 (tea-17.5.4.tar.bz2) = mf3T627R3S909JEmL1hVZa5g0uuONPr+f8EKxCKLYYU=
SIZE (tea-17.5.4.tar.bz2) = 454905

View File

@ -0,0 +1,42 @@
$OpenBSD: patch-Makefile_in,v 1.1.1.1 2008/01/23 17:02:30 okan Exp $
--- Makefile.in.orig Sat Oct 27 15:11:04 2007
+++ Makefile.in Sat Oct 27 15:15:47 2007
@@ -629,7 +629,7 @@ uninstall-am: uninstall-local
@DEB_TRUE@install-data-local:
@DEB_TRUE@ @$(NORMAL_INSTALL)
-@DEB_TRUE@ $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/doc;
+@DEB_TRUE@ $(mkinstalldirs) $(DESTDIR)$(datadir)/doc;
@DEB_FALSE@@FINK_TRUE@install-data-local:
@DEB_FALSE@@FINK_TRUE@ @$(NORMAL_INSTALL)
@DEB_FALSE@@FINK_TRUE@ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir); \
@@ -650,19 +650,19 @@ uninstall-am: uninstall-local
@DEB_FALSE@@FINK_TRUE@ fi
@DEB_FALSE@@FINK_FALSE@install-data-local:
@DEB_FALSE@@FINK_FALSE@ @$(NORMAL_INSTALL)
-@DEB_FALSE@@FINK_FALSE@ $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/doc; \
-@DEB_FALSE@@FINK_FALSE@ cp -r $(srcdir)/doc $(DESTDIR)$(pkgdatadir); \
-@DEB_FALSE@@FINK_FALSE@ cp $(srcdir)/AUTHORS $(DESTDIR)$(pkgdatadir)/doc; \
-@DEB_FALSE@@FINK_FALSE@ cp $(srcdir)/ChangeLog $(DESTDIR)$(pkgdatadir)/doc; \
-@DEB_FALSE@@FINK_FALSE@ cp $(srcdir)/README $(DESTDIR)$(pkgdatadir)/doc; \
-@DEB_FALSE@@FINK_FALSE@ cp $(srcdir)/NEWS $(DESTDIR)$(pkgdatadir)/doc; \
-@DEB_FALSE@@FINK_FALSE@ cp $(srcdir)/COPYING $(DESTDIR)$(pkgdatadir)/doc; \
-@DEB_FALSE@@FINK_FALSE@ cp $(srcdir)/TODO $(DESTDIR)$(pkgdatadir)/doc; \
+@DEB_FALSE@@FINK_FALSE@ $(mkinstalldirs) $(DESTDIR)$(datadir)/doc/tea; \
+@DEB_FALSE@@FINK_FALSE@ cp -r $(srcdir)/doc/* $(DESTDIR)$(datadir)/doc/tea; \
+@DEB_FALSE@@FINK_FALSE@ cp $(srcdir)/AUTHORS $(DESTDIR)$(datadir)/doc/tea; \
+@DEB_FALSE@@FINK_FALSE@ cp $(srcdir)/ChangeLog $(DESTDIR)$(datadir)/doc/tea; \
+@DEB_FALSE@@FINK_FALSE@ cp $(srcdir)/README $(DESTDIR)$(datadir)/doc/tea; \
+@DEB_FALSE@@FINK_FALSE@ cp $(srcdir)/NEWS $(DESTDIR)$(datadir)/doc/tea; \
+@DEB_FALSE@@FINK_FALSE@ cp $(srcdir)/COPYING $(DESTDIR)$(datadir)/doc/tea; \
+@DEB_FALSE@@FINK_FALSE@ cp $(srcdir)/TODO $(DESTDIR)$(datadir)/doc/tea; \
@DEB_FALSE@@FINK_FALSE@ if test -d $(srcdir)/pixmaps; then \
-@DEB_FALSE@@FINK_FALSE@ $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/pixmaps; \
+@DEB_FALSE@@FINK_FALSE@ $(mkinstalldirs) $(DESTDIR)$(datadir)/pixmaps/tea; \
@DEB_FALSE@@FINK_FALSE@ for pixmap in $(srcdir)/pixmaps/*; do \
@DEB_FALSE@@FINK_FALSE@ if test -f $$pixmap; then \
-@DEB_FALSE@@FINK_FALSE@ $(INSTALL_DATA) $$pixmap $(DESTDIR)$(pkgdatadir)/pixmaps; \
+@DEB_FALSE@@FINK_FALSE@ $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/pixmaps/tea; \
@DEB_FALSE@@FINK_FALSE@ fi \
@DEB_FALSE@@FINK_FALSE@ done \
@DEB_FALSE@@FINK_FALSE@ fi

View File

@ -0,0 +1,19 @@
$OpenBSD: patch-src_rox_strings_c,v 1.1.1.1 2008/01/23 17:02:30 okan Exp $
--- src/rox_strings.c.orig Wed Jan 23 08:17:33 2008
+++ src/rox_strings.c Wed Jan 23 08:19:39 2008
@@ -2320,7 +2320,7 @@ gchar* text_load_msdoc (const gchar *filename)
if (! filename)
return NULL;
- gchar *cm = g_strconcat ("antiword -m UTF-8.txt ", filename, " > ", confile.tmp_file, NULL);
+ gchar *cm = g_strconcat ("antiword -m UTF-8.txt \"", filename, "\" > ", confile.tmp_file, NULL);
system (cm);
g_free (cm);
return get_tmp_file_string ();
@@ -3113,4 +3113,4 @@ gint count_of_char (const gchar *s, gchar c)
g_print ("%d", i);
return count;
}
-*/
\ No newline at end of file
+*/

View File

@ -0,0 +1,22 @@
$OpenBSD: patch-src_tea_config_c,v 1.1.1.1 2008/01/23 17:02:30 okan Exp $
--- src/tea_config.c.orig Wed Jan 23 14:26:06 2008
+++ src/tea_config.c Wed Jan 23 14:26:49 2008
@@ -1108,9 +1108,9 @@ void confile_reload (void)
confile.autoclose_tags = ht_get_int_value ("autoclose_tags", 0);
confile.rtf_enc = ht_get_char_value ("rtf_enc", "CP1251");
- confile.def_filesave_charset = ht_get_char_value ("def_filesave_charset", "UTF-8");
+ confile.def_filesave_charset = ht_get_char_value ("def_filesave_charset", "autodetect");
- confile.default_charset = ht_get_char_value ("default_charset", "UTF-8");
+ confile.default_charset = ht_get_char_value ("default_charset", "autodetect");
confile.main_wnd_show_full_path = ht_get_int_value ("main_wnd_show_full_path", 1);
confile.do_backup = ht_get_int_value ("do_backup", 0);
@@ -1348,4 +1348,4 @@ GList* get_color_scheme_ids (void)
return NULL;
#endif
-}
\ No newline at end of file
+}

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_tea_defs_h,v 1.1.1.1 2008/01/23 17:02:30 okan Exp $
--- src/tea_defs.h.orig Fri Dec 7 22:02:59 2007
+++ src/tea_defs.h Mon Dec 31 17:18:17 2007
@@ -116,7 +116,7 @@
#else
-#if defined(DARWIN)
+#if defined(DARWIN) || defined(OpenBSD)
#define TEA_DOC_DIR PACKAGE_DATA_DIR"/doc/tea/"

3
editors/tea/pkg/DESCR Normal file
View File

@ -0,0 +1,3 @@
TEA is a powerful and simple-in-use GTK-based text editor with syntax
highlighting. TEA can also open Openoffice.org Writer and Microsoft
Word files.

195
editors/tea/pkg/PLIST Normal file
View File

@ -0,0 +1,195 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/01/23 17:02:30 okan Exp $
bin/tea
share/doc/tea/
share/doc/tea/AUTHORS
share/doc/tea/COPYING
share/doc/tea/ChangeLog
share/doc/tea/NEWS
share/doc/tea/README
share/doc/tea/TODO
share/doc/tea/cs/
share/doc/tea/cs/index.html
share/doc/tea/en/
share/doc/tea/en/a1028.html
share/doc/tea/en/c102.html
share/doc/tea/en/c113.html
share/doc/tea/en/c14.html
share/doc/tea/en/c226.html
share/doc/tea/en/c243.html
share/doc/tea/en/c30.html
share/doc/tea/en/c319.html
share/doc/tea/en/c385.html
share/doc/tea/en/c68.html
share/doc/tea/en/c799.html
share/doc/tea/en/c805.html
share/doc/tea/en/c841.html
share/doc/tea/en/c872.html
share/doc/tea/en/c956.html
share/doc/tea/en/c981.html
share/doc/tea/en/c991.html
share/doc/tea/en/index.html
share/doc/tea/en/x286.html
share/doc/tea/en/x329.html
share/doc/tea/en/x348.html
share/doc/tea/en/x365.html
share/doc/tea/en/x398.html
share/doc/tea/en/x424.html
share/doc/tea/en/x458.html
share/doc/tea/en/x469.html
share/doc/tea/en/x486.html
share/doc/tea/en/x496.html
share/doc/tea/en/x503.html
share/doc/tea/en/x518.html
share/doc/tea/en/x539.html
share/doc/tea/en/x550.html
share/doc/tea/en/x561.html
share/doc/tea/en/x573.html
share/doc/tea/en/x59.html
share/doc/tea/en/x62.html
share/doc/tea/en/x672.html
share/doc/tea/en/x678.html
share/doc/tea/en/x696.html
share/doc/tea/en/x749.html
share/doc/tea/en/x758.html
share/doc/tea/en/x789.html
share/doc/tea/en/x885.html
share/doc/tea/en/x911.html
share/doc/tea/en/x915.html
share/doc/tea/en/x922.html
share/doc/tea/en/x930.html
share/doc/tea/en/x939.html
share/doc/tea/en/x945.html
share/doc/tea/en/x952.html
share/doc/tea/en/x973.html
share/doc/tea/es/
share/doc/tea/es/a799.html
share/doc/tea/es/c105.html
share/doc/tea/es/c18.html
share/doc/tea/es/c197.html
share/doc/tea/es/c210.html
share/doc/tea/es/c231.html
share/doc/tea/es/c298.html
share/doc/tea/es/c34.html
share/doc/tea/es/c590.html
share/doc/tea/es/c616.html
share/doc/tea/es/c623.html
share/doc/tea/es/c63.html
share/doc/tea/es/c651.html
share/doc/tea/es/c675.html
share/doc/tea/es/c742.html
share/doc/tea/es/c771.html
share/doc/tea/es/c792.html
share/doc/tea/es/c94.html
share/doc/tea/es/favicon.ico
share/doc/tea/es/img/
share/doc/tea/es/img/caution.gif
share/doc/tea/es/img/cross.png
share/doc/tea/es/img/home.gif
share/doc/tea/es/img/important.gif
share/doc/tea/es/img/leftbuttons.png
share/doc/tea/es/img/logo.gif
share/doc/tea/es/img/next.gif
share/doc/tea/es/img/note.gif
share/doc/tea/es/img/prev.gif
share/doc/tea/es/img/resize.png
share/doc/tea/es/img/rightbuttons.png
share/doc/tea/es/img/runbutton.png
share/doc/tea/es/img/runbutton1.png
share/doc/tea/es/img/tip.gif
share/doc/tea/es/img/toolbar.gif
share/doc/tea/es/img/up.gif
share/doc/tea/es/img/warning.gif
share/doc/tea/es/index.html
share/doc/tea/es/style.css
share/doc/tea/es/x242.html
share/doc/tea/es/x261.html
share/doc/tea/es/x278.html
share/doc/tea/es/x305.html
share/doc/tea/es/x332.html
share/doc/tea/es/x341.html
share/doc/tea/es/x350.html
share/doc/tea/es/x366.html
share/doc/tea/es/x373.html
share/doc/tea/es/x388.html
share/doc/tea/es/x398.html
share/doc/tea/es/x497.html
share/doc/tea/es/x503.html
share/doc/tea/es/x515.html
share/doc/tea/es/x558.html
share/doc/tea/es/x567.html
share/doc/tea/es/x579.html
share/doc/tea/es/x687.html
share/doc/tea/es/x704.html
share/doc/tea/es/x708.html
share/doc/tea/es/x715.html
share/doc/tea/es/x719.html
share/doc/tea/es/x722.html
share/doc/tea/es/x726.html
share/doc/tea/es/x733.html
share/doc/tea/es/x738.html
share/doc/tea/es/x763.html
share/doc/tea/ru/
share/doc/tea/ru/a805.html
share/doc/tea/ru/c13.html
share/doc/tea/ru/c190.html
share/doc/tea/ru/c207.html
share/doc/tea/ru/c254.html
share/doc/tea/ru/c31.html
share/doc/tea/ru/c318.html
share/doc/tea/ru/c647.html
share/doc/tea/ru/c654.html
share/doc/tea/ru/c686.html
share/doc/tea/ru/c70.html
share/doc/tea/ru/c713.html
share/doc/tea/ru/c767.html
share/doc/tea/ru/c789.html
share/doc/tea/ru/c799.html
share/doc/tea/ru/c91.html
share/doc/tea/ru/c99.html
share/doc/tea/ru/index.html
share/doc/tea/ru/x237.html
share/doc/tea/ru/x264.html
share/doc/tea/ru/x283.html
share/doc/tea/ru/x298.html
share/doc/tea/ru/x327.html
share/doc/tea/ru/x334.html
share/doc/tea/ru/x356.html
share/doc/tea/ru/x369.html
share/doc/tea/ru/x394.html
share/doc/tea/ru/x400.html
share/doc/tea/ru/x420.html
share/doc/tea/ru/x431.html
share/doc/tea/ru/x443.html
share/doc/tea/ru/x456.html
share/doc/tea/ru/x466.html
share/doc/tea/ru/x539.html
share/doc/tea/ru/x543.html
share/doc/tea/ru/x560.html
share/doc/tea/ru/x59.html
share/doc/tea/ru/x599.html
share/doc/tea/ru/x608.html
share/doc/tea/ru/x637.html
share/doc/tea/ru/x64.html
share/doc/tea/ru/x708.html
share/doc/tea/ru/x724.html
share/doc/tea/ru/x734.html
share/doc/tea/ru/x741.html
share/doc/tea/ru/x745.html
share/doc/tea/ru/x748.html
share/doc/tea/ru/x764.html
share/doc/tea/ru/x785.html
share/doc/tea/tea_doc.css
share/locale/cs/LC_MESSAGES/tea.mo
share/locale/de/LC_MESSAGES/tea.mo
share/locale/es/LC_MESSAGES/tea.mo
share/locale/fr/LC_MESSAGES/tea.mo
share/locale/ja/LC_MESSAGES/tea.mo
share/locale/lv/LC_MESSAGES/tea.mo
share/locale/pl/LC_MESSAGES/tea.mo
share/locale/ru/LC_MESSAGES/tea.mo
share/locale/sr/LC_MESSAGES/tea.mo
share/locale/uk/LC_MESSAGES/tea.mo
share/pixmaps/
share/pixmaps/tea/
share/pixmaps/tea/tea_icon_v2.png
share/pixmaps/tea/tea_logo.jpg