Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jul 2004 17:46:44 +0200 (CEST)
From:      Jean-Yves Lefort <jylefort@brutele.be>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/68995: New port: editors/tea, a simple GTK+ text editor
Message-ID:  <20040713154644.380D122E1E@jsite.lefort.net>
Resent-Message-ID: <200407131550.i6DFoIoY007730@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         68995
>Category:       ports
>Synopsis:       New port: editors/tea, a simple GTK+ text editor
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 13 15:50:18 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Jean-Yves Lefort
>Release:        FreeBSD 4.10-RELEASE i386
>Organization:
>Environment:
System: FreeBSD jsite.lefort.net 4.10-RELEASE FreeBSD 4.10-RELEASE #0: Thu Jul 1 14:25:43 CEST 2004 jylefort@jsite.lefort.net:/usr/obj/usr/src/sys/JSITE i386
>Description:
>How-To-Repeat:
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	tea
#	tea/pkg-plist
#	tea/pkg-descr
#	tea/distinfo
#	tea/Makefile
#	tea/files
#	tea/files/patch-src::callbacks.c
#	tea/files/patch-src::tea_text_document.c
#
echo c - tea
mkdir -p tea > /dev/null 2>&1
echo x - tea/pkg-plist
sed 's/^X//' >tea/pkg-plist << 'END-of-tea/pkg-plist'
Xbin/tea
Xshare/locale/ru/LC_MESSAGES/tea.mo
Xshare/locale/uk/LC_MESSAGES/tea.mo
X%%PORTDOCS%%%%DOCSDIR%%/en/index.html
X%%PORTDOCS%%%%DOCSDIR%%/ru/index.html
X%%PORTDOCS%%@dirrm %%DOCSDIR%%/en
X%%PORTDOCS%%@dirrm %%DOCSDIR%%/ru
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-tea/pkg-plist
echo x - tea/pkg-descr
sed 's/^X//' >tea/pkg-descr << 'END-of-tea/pkg-descr'
XTEA is a simple GTK+ text editor.
X
XWWW: http://tea.linux.kiev.ua/
X
X- Jean-Yves Lefort
Xjylefort@brutele.be
END-of-tea/pkg-descr
echo x - tea/distinfo
sed 's/^X//' >tea/distinfo << 'END-of-tea/distinfo'
XMD5 (tea.tar.bz2) = a88523a562d12a0ece89133c647c3558
XSIZE (tea.tar.bz2) = 176078
END-of-tea/distinfo
echo x - tea/Makefile
sed 's/^X//' >tea/Makefile << 'END-of-tea/Makefile'
X# New ports collection makefile for:	TEA
X# Date created:			13 Jul 2004
X# Whom:				Jean-Yves Lefort <jylefort@brutele.be>
X#
X# $FreeBSD$
X#
X
XPORTNAME=		tea
XPORTVERSION=		0.9.1
XCATEGORIES=		editors
XMASTER_SITES=		http://tea.linux.kiev.ua/
XDISTFILES=		${PORTNAME}${EXTRACT_SUFX}
X
XMAINTAINER=		jylefort@brutele.be
XCOMMENT=		A simple GTK+ text editor
X
XUSE_X_PREFIX=		yes
XUSE_BZIP2=		yes
XGNU_CONFIGURE=		yes
XUSE_GCC=		3.3
XUSE_GNOME=		gtk20
XCONFIGURE_ENV=		CPPFLAGS="-I${LOCALBASE}/include" \
X			LDFLAGS="-L${LOCALBASE}/lib"
X
X.if !defined(NOPORTDOCS)
Xpost-install:
X	${MKDIR} ${DOCSDIR}/en
X	${MKDIR} ${DOCSDIR}/ru
X	${INSTALL_DATA} ${WRKSRC}/doc/EN/index.html ${DOCSDIR}/en
X	${INSTALL_DATA} ${WRKSRC}/doc/RU/index.html ${DOCSDIR}/ru
X.endif
X
X.include <bsd.port.mk>
END-of-tea/Makefile
echo c - tea/files
mkdir -p tea/files > /dev/null 2>&1
echo x - tea/files/patch-src::callbacks.c
sed 's/^X//' >tea/files/patch-src::callbacks.c << 'END-of-tea/files/patch-src::callbacks.c'
X--- src/callbacks.c.orig	Tue Jul 13 17:01:57 2004
X+++ src/callbacks.c	Tue Jul 13 17:05:25 2004
X@@ -24,6 +24,7 @@
X #include <gdk/gdk.h>
X #include <gdk/gdkkeysyms.h>
X 
X+#include <sys/param.h>
X #include <errno.h>
X #include <sys/stat.h>
X #include <glib.h>
X@@ -1065,9 +1066,10 @@
X   
X   if (get_page_fnav ())
X      {
X+      char buf[MAXPATHLEN];
X       gchar *fn = (gchar*) g_malloc (2048); 
X       
X-      if (realpath ((gchar *) get_current_dir_name (), fn))
X+      if (getcwd(buf, sizeof(buf)) && realpath (buf, fn))
X          set_fam_text (fn);
X       else 
X           set_fam_text ("/"); 
X@@ -3005,9 +3007,10 @@
X   
X   if (get_page_fnav ())
X      {
X+      char buf[MAXPATHLEN];
X       gchar *fn = (gchar*) g_malloc (2048); 
X       
X-      if (realpath ((gchar *) get_current_dir_name (), fn))
X+      if (getcwd(buf, sizeof(buf)) && realpath (buf, fn))
X          set_fam_text (fn);
X       else 
X           set_fam_text ("/"); 
END-of-tea/files/patch-src::callbacks.c
echo x - tea/files/patch-src::tea_text_document.c
sed 's/^X//' >tea/files/patch-src::tea_text_document.c << 'END-of-tea/files/patch-src::tea_text_document.c'
X--- src/tea_text_document.c.orig	Tue Jul 13 17:05:42 2004
X+++ src/tea_text_document.c	Tue Jul 13 17:11:39 2004
X@@ -36,6 +36,7 @@
X #include <stdio.h>
X #include <strings.h>
X #include <unistd.h>
X+#include <sys/param.h>
X 
X #include "tea_file_nav.h"
X #include "tea_text_document.h"
X@@ -1289,12 +1290,13 @@
X 
X t_note_page* page_create_new_filenav (void)
X {
X+  char buf[MAXPATHLEN];
X   t_note_page *page = (t_note_page *) g_malloc (sizeof (t_note_page));
X  
X   page->hash_filelist = NULL; 
X   gchar *fn = (gchar*) g_malloc (2048); 
X 
X-  if (realpath ((gchar *) get_current_dir_name (), fn))
X+  if (getcwd(buf, sizeof(buf)) && realpath (buf, fn))
X      page->current_path = fn;	
X 
X   page->type = 1;
END-of-tea/files/patch-src::tea_text_document.c
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040713154644.380D122E1E>