pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/editors editors/ee: import package from wip.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/05b6df820a89
branches:  trunk
changeset: 389574:05b6df820a89
user:      vins <vins%pkgsrc.org@localhost>
date:      Tue Dec 06 11:38:00 2022 +0000

description:
editors/ee: import package from wip.

EasyEdit is an easy to use text editor. Intended to be usable with little
or no instruction. Provides a terminal (curses based) interface. Features
pop-up menus. Born in HP-UX, included in FreeBSD.

diffstat:

 editors/Makefile                     |   3 +-
 editors/ee/DESCR                     |   3 +
 editors/ee/Makefile                  |  33 +++++++++++++++++++
 editors/ee/PLIST                     |   3 +
 editors/ee/distinfo                  |   7 ++++
 editors/ee/patches/patch-create.make |  61 ++++++++++++++++++++++++++++++++++++
 editors/ee/patches/patch-ee.c        |  17 ++++++++++
 7 files changed, 126 insertions(+), 1 deletions(-)

diffs (165 lines):

diff -r 5381f31a7565 -r 05b6df820a89 editors/Makefile
--- a/editors/Makefile  Tue Dec 06 11:15:06 2022 +0000
+++ b/editors/Makefile  Tue Dec 06 11:38:00 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.231 2022/12/06 11:14:00 vins Exp $
+# $NetBSD: Makefile,v 1.232 2022/12/06 11:38:00 vins Exp $
 #
 
 COMMENT=       Text and binary editors
@@ -30,6 +30,7 @@
 SUBDIR+=       edt
 SUBDIR+=       elvis
 SUBDIR+=       elvis-x11
+SUBDIR+=       ee
 SUBDIR+=       em
 SUBDIR+=       emacs
 SUBDIR+=       emacs-nox11
diff -r 5381f31a7565 -r 05b6df820a89 editors/ee/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/ee/DESCR  Tue Dec 06 11:38:00 2022 +0000
@@ -0,0 +1,3 @@
+An easy to use text editor. Intended to be usable with little or no
+instruction. Provides a terminal (curses based) interface. Features
+pop-up menus. Born in HP-UX, included in FreeBSD.
diff -r 5381f31a7565 -r 05b6df820a89 editors/ee/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/ee/Makefile       Tue Dec 06 11:38:00 2022 +0000
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.3 2022/12/06 11:38:00 vins Exp $
+
+DISTNAME=      ee-1.5.2.src
+PKGNAME=       ${DISTNAME:S,.src,,}
+CATEGORIES=    editors
+MASTER_SITES=  https://mirrors.ustc.edu.cn/gentoo/distfiles/
+DIST_SUBDIR=   ${PKGNAME_NOREV}
+EXTRACT_SUFX=  .tgz
+
+MAINTAINER=    vms%retrobsd.ddns.net@localhost
+HOMEPAGE=      https://www.ucl.ac.uk/~ccaabaa/is/unix/ee.htm
+COMMENT=       EasyEdit, a classic curses text editor
+LICENSE=       2-clause-bsd
+
+USE_NCURSES=   yes     # fixterm()
+
+MAKE_ENV+=     CFLAGS=${CFLAGS:Q}
+MAKE_ENV+=     LDFLAGS=${LDFLAGS:Q}
+
+INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1
+
+WRKSRC=        ${WRKDIR}/easyedit-${PKGVERSION_NOREV}
+
+do-build:
+       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV}                                   \
+       ${MAKE_PROGRAM:Q} ${MAKE_FLAGS} all
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/ee ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_MAN} ${WRKSRC}/ee.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+
+.include "../../devel/ncurses/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 5381f31a7565 -r 05b6df820a89 editors/ee/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/ee/PLIST  Tue Dec 06 11:38:00 2022 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.3 2022/12/06 11:38:00 vins Exp $
+bin/ee
+man/man1/ee.1
diff -r 5381f31a7565 -r 05b6df820a89 editors/ee/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/ee/distinfo       Tue Dec 06 11:38:00 2022 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.3 2022/12/06 11:38:00 vins Exp $
+
+BLAKE2s (ee-1.5.2/ee-1.5.2.src.tgz) = a8be0743e80ab053ff72e238da2ce66ed80bc494f1aa066cb50eb57ab5a9faf9
+SHA512 (ee-1.5.2/ee-1.5.2.src.tgz) = 9ca0e82d65971b0bce38e09c365b6eb8b81ca6ff5b244107ae254322e47e841e7f5345bf242a0a9dd66b731d46cead6f442016b9e070a1298e1a5319b1d7b97a
+Size (ee-1.5.2/ee-1.5.2.src.tgz) = 69651 bytes
+SHA1 (patch-create.make) = 89315d0e23bcd8f42a2020aa2197bba14400fe45
+SHA1 (patch-ee.c) = 9da740c0bf6720c8b44839a6037d9cdbd7b3ba52
diff -r 5381f31a7565 -r 05b6df820a89 editors/ee/patches/patch-create.make
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/ee/patches/patch-create.make      Tue Dec 06 11:38:00 2022 +0000
@@ -0,0 +1,61 @@
+$NetBSD: patch-create.make,v 1.1 2022/12/06 11:38:00 vins Exp $
+
+Prefer local ncurses over ee's own implementation.
+
+--- create.make.orig   2002-09-23 04:18:30.000000000 +0000
++++ create.make
+@@ -154,35 +154,8 @@ else
+       catgets="-DNO_CATGETS"
+ fi
+ 
+-# make decisions about use of new_curse.c (use of new_curse is recommended 
+-# rather than local curses)
+-
+-if [ -n "$terminfo_exists" -a -z "$termcap_exists" ]
+-then
+-      echo "Neither terminfo or termcap are on this system!  "
+-      if [ -f /usr/include/curses.h ]
+-      then
+-              echo "Relying on local curses implementation."
+-      else
+-              cat <<-EOF
+-              Don't know where to find curses, you'll need to modify 
+-              source code to be able to build!
+-              
+-              Modify the file make.default and build ee by typing:
+-              
+-              make -f make.default
+-              
+-              EOF
+-
+-              exit 1
+-      fi
+-      
+-      TARGET="curses"
+-      curses=""
+-else
+-      curses="-DNCURSE"
+-      TARGET="ee"
+-fi
++curses=""
++TARGET="curses"
+ 
+ if [ -z "$termio" -a -z "$sgtty" ]
+ then
+@@ -261,13 +234,15 @@ echo "DEFINES =  $termio $terminfo_exists
+ echo "" >> make.local
+ echo "CFLAGS =        $HAS_UNISTD $HAS_STDARG $HAS_STDLIB $HAS_CTYPE $HAS_SYS_IOCTL $HAS_SYS_WAIT $five_lib $five_include $select_hdr $other_cflags $termcap_exists" >> make.local
+ echo "" >> make.local
++echo "LDFLAGS =       $LDFLAGS" >> make.local
++echo "" >> make.local
+ echo "" >> make.local
+ echo "all :   $TARGET" >> make.local
+ 
+ cat  >> make.local << EOF
+ 
+ curses :      ee.c
+-      cc ee.c -o ee \$(CFLAGS) -lcurses 
++      cc ee.c -o ee \$(CFLAGS) \$(LDFLAGS) -lncurses
+ 
+ ee :  ee.o new_curse.o
+       cc -o ee ee.o new_curse.o \$(CFLAGS) 
diff -r 5381f31a7565 -r 05b6df820a89 editors/ee/patches/patch-ee.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/ee/patches/patch-ee.c     Tue Dec 06 11:38:00 2022 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-ee.c,v 1.1 2022/12/06 11:38:00 vins Exp $
+
+Portability fix for POSIX <signal.h>
+
+--- ee.c.orig  2010-06-04 01:56:36.000000000 +0000
++++ ee.c
+@@ -111,6 +111,10 @@ nl_catd catalog;
+ #define SIGCHLD SIGCLD
+ #endif
+ 
++#ifndef       SIGUNUSED
++#define SIGUNUSED SIGSYS
++#endif
++
+ #define TAB 9
+ #define max(a, b)     (a > b ? a : b)
+ #define min(a, b)     (a < b ? a : b)



Home | Main Index | Thread Index | Old Index