Here's an update to the Jed editor, bringing it to 0.99.19.
  
  I'm using it daily with no issue so far on i386 and amd64, among with
libslang 2.2.2.

  UTF8 works fine, provided a JED_UTF8 environement variable has been defined.
  
  The port includes an extra patch that fixes two important issues,
backported from the Jed git:
  
- Jed froze while invoked with sh -c. This was a showstopper when Jed
was used with an SCM.

- Buffers weren't checked until a key was pressed.

  Best regards,
  
      -Frank.

-- 
Frank Denis - j [at] pureftpd.org - http://00f.net - http://www.pureftpd.org
Index: editors/jed/Makefile
===================================================================
RCS file: /var3/mirrors/cvs/openbsd/cvs/ports/editors/jed/Makefile,v
retrieving revision 1.32
diff -u -N editors/jed/Makefile
--- editors/jed/Makefile        27 Oct 2009 21:51:53 -0000      1.32
+++ editors/jed/Makefile        12 Sep 2010 10:19:35 -0000
@@ -2,8 +2,8 @@
 
 COMMENT=       text editor
 
-DISTNAME=      jed-0.99-18
-PKGNAME=       jed-0.99.18p0
+DISTNAME=      jed-0.99-19
+PKGNAME=       jed-0.99.19
 CATEGORIES=    editors
 MASTER_SITES=   ftp://space.mit.edu/pub/davis/jed/v0.99/ \
                ftp://ftp.ntua.gr/pub/lang/slang/jed/v0.99/ \
Index: editors/jed/distinfo
===================================================================
RCS file: /var3/mirrors/cvs/openbsd/cvs/ports/editors/jed/distinfo,v
retrieving revision 1.5
diff -u -N editors/jed/distinfo
--- editors/jed/distinfo        13 Oct 2009 21:46:46 -0000      1.5
+++ editors/jed/distinfo        12 Sep 2010 09:21:33 -0000
@@ -1,5 +1,5 @@
-MD5 (jed-0.99-18.tar.gz) = LTcQRgSMx70Whu5wwArUlQ==
-RMD160 (jed-0.99-18.tar.gz) = 2FMEJL9C7kHz37g85BUe6h39dE8=
-SHA1 (jed-0.99-18.tar.gz) = l0e7y8+nUmBprwo921C52TAUDFs=
-SHA256 (jed-0.99-18.tar.gz) = 2qzG9coJRHFgLchlD3bRAAMJiFTxaUn+37oAOqP1PDs=
-SIZE (jed-0.99-18.tar.gz) = 971456
+MD5 (jed-0.99-19.tar.gz) = /DVJC0YwP5uIpLHU88G6Vw==
+RMD160 (jed-0.99-19.tar.gz) = B6XirHjYmvoK52Oqo/hVV5lyNJM=
+SHA1 (jed-0.99-19.tar.gz) = +jE4W28iMgAhI9uYUIVj/OEKGSg=
+SHA256 (jed-0.99-19.tar.gz) = Xu1f7eepXxizO3syy3G+nVCca6vBSD3VxYsaFp8r31I=
+SIZE (jed-0.99-19.tar.gz) = 1094494
Index: editors/jed/patches/patch-src_Makefile_in
===================================================================
RCS file: 
/var3/mirrors/cvs/openbsd/cvs/ports/editors/jed/patches/patch-src_Makefile_in,v
retrieving revision 1.1
diff -u -N editors/jed/patches/patch-src_Makefile_in
--- editors/jed/patches/patch-src_Makefile_in   13 Oct 2009 21:46:46 -0000      
1.1
+++ editors/jed/patches/patch-src_Makefile_in   12 Sep 2010 09:46:21 -0000
@@ -1,24 +1,15 @@
 $OpenBSD: patch-src_Makefile_in,v 1.1 2009/10/13 21:46:46 sthen Exp $
---- src/Makefile.in.orig       Thu Feb 16 04:09:50 2006
-+++ src/Makefile.in    Sat Oct 10 18:16:26 2009
-@@ -60,7 +60,7 @@ OBJDIR = @OBJDIR@
-  
- # 2. XFree86 XRENDERFONT (Anti-aliased font) support for XJED
- #    Also modify "XJED_HAS_XRENDERFONT" in jed-feat.h
--#XRENDERFONTLIBS = -lXft -lXrender -lfreetype -lXext
-+XRENDERFONTLIBS = -lXft -lXrender -lfreetype -lXext
- 
- #---------------------------------------------------------------------------
- # S-Lang library location
-@@ -187,11 +187,10 @@ install_directories:
+--- src/Makefile.in.orig       Mon Dec 14 03:12:55 2009
++++ src/Makefile.in    Sun Sep 12 11:46:15 2010
+@@ -227,10 +227,11 @@ distclean: clean
+ install_data_directories:
        $(MKINSDIR) $(DEST_MAN_DIR)
        $(MKINSDIR) $(DEST_JED_ROOT)
-       $(MKINSDIR) $(DEST_JED_ROOT)/bin
--      $(MKINSDIR) $(DEST_JED_ROOT)/info
 -      $(MKINSDIR) $(DEST_JED_ROOT)/doc
 -      $(MKINSDIR) $(DEST_JED_ROOT)/doc/txt
 -      $(MKINSDIR) $(DEST_JED_ROOT)/doc/hlp
 -      $(MKINSDIR) $(DEST_JED_ROOT)/doc/manual
++      $(MKINSDIR) $(DEST_JED_ROOT)/bin
 +      $(MKINSDIR) $(DESTDIR)${prefix}/share/doc/jed
 +      $(MKINSDIR) $(DESTDIR)${prefix}/share/doc/jed/txt
 +      $(MKINSDIR) $(DESTDIR)${prefix}/share/doc/jed/hlp
@@ -26,7 +17,7 @@
        $(MKINSDIR) $(DEST_JED_ROOT)/lib
        $(MKINSDIR) $(DEST_JED_ROOT)/lib/colors
        $(MKINSDIR) $(DEST_JED_ROOT)/lib/colors/Xjed
-@@ -232,28 +231,28 @@ install: all install_directories
+@@ -279,23 +280,23 @@ install_data: install_data_directories
        done
        @for i in $(JED_DOC_FILES); \
        do \
@@ -56,12 +47,5 @@
 +              $(INSTALL_DATA) $$i $(DESTDIR)$(prefix)/share/doc/jed/manual; \
 +              echo $(INSTALL_DATA) $$i 
$(DESTDIR)$(prefix)/share/doc/jed/manual; \
        done
-       @for i in $(JED_INFO_FILES); \
-       do \
--              $(INSTALL_DATA) $$i $(DEST_JED_ROOT)/info/; \
--              echo $(INSTALL_DATA) $$i $(DEST_JED_ROOT)/info/; \
-+              $(INSTALL_DATA) $$i $(DESTDIR)$(prefix)/info/; \
-+              echo $(INSTALL_DATA) $$i $(DESTDIR)$(prefix)/info/; \
-       done
- #
- runtests: $(OBJDIR)/jed
+ #     @for i in $(JED_INFO_FILES); \
+ #     do \
Index: editors/jed/patches/patch-src_unix_c
===================================================================
RCS file: editors/jed/patches/patch-src_unix_c
diff -u -N editors/jed/patches/patch-src_unix_c
--- /dev/null   12 Sep 2010 12:19:40 -0000
+++ editors/jed/patches/patch-src_unix_c        12 Sep 2010 10:08:10 -0000
@@ -0,0 +1,33 @@
+$OpenBSD$
+--- src/unix.c.orig    Mon Dec 14 03:12:55 2009
++++ src/unix.c Sun Sep 12 12:08:01 2010
+@@ -211,8 +211,19 @@ static void set_process_group (void)
+      {
+       pid_t pid = getpid ();
+       Startup_PGID = getpgid (pid);
+-      (void) tcsetpgrp (Read_FD, pid);
+-      (void) setpgid (pid, pid);
++      if (-1 == tcsetpgrp (Read_FD, pid))
++        {
++           fprintf (stderr, "tcsetpgrp failed\n");
++           Terminal_PGID = -1;
++           return;
++        }
++      if (-1 == setpgid (pid, pid))
++        {
++           fprintf (stderr, "setpgid failed\n");
++           (void) tcsetpgrp (Read_FD, Startup_PGID);
++           Terminal_PGID = -1;
++           return;
++        }         
+      }
+ #endif
+ }
+@@ -422,6 +433,7 @@ unsigned char sys_getkey (void) /*{{{*/
+       /* update status line in case user is displaying time */
+       if (Display_Time || all)
+         {
++           check_buffers ();              
+            JWindow->trashed = 1;
+            update((Line *) NULL, 0, 1, 0);
+         }
Index: editors/jed/pkg/PLIST
===================================================================
RCS file: /var3/mirrors/cvs/openbsd/cvs/ports/editors/jed/pkg/PLIST,v
retrieving revision 1.14
diff -u -N editors/jed/pkg/PLIST
--- editors/jed/pkg/PLIST       13 Oct 2009 21:46:46 -0000      1.14
+++ editors/jed/pkg/PLIST       12 Sep 2010 09:48:55 -0000
@@ -1,9 +1,6 @@
 @comment $OpenBSD: PLIST,v 1.14 2009/10/13 21:46:46 sthen Exp $
 @bin bin/jed
 bin/jed-script
-...@comment info/dir.info
-...@comment info/info.info
-...@info info/jed.info
 lib/jed/
 lib/jed/bin/
 @bin lib/jed/bin/getmail
@@ -129,6 +126,7 @@
 lib/jed/lib/os.sl
 lib/jed/lib/paste.sl
 lib/jed/lib/perl.sl
+lib/jed/lib/perlxtra.sl
 lib/jed/lib/php.sl
 lib/jed/lib/pipe.sl
 lib/jed/lib/popups.sl
@@ -167,6 +165,7 @@
 lib/jed/lib/tiasm.sl
 lib/jed/lib/tmisc.sl
 lib/jed/lib/tmmode.sl
+lib/jed/lib/tmpfile.sl
 lib/jed/lib/tpascal.sl
 lib/jed/lib/untab.sl
 lib/jed/lib/util.sl

Reply via email to