pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/editors/xnedit editors/xnedit: Import 1.4.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d4621224f2a9
branches:  trunk
changeset: 372662:d4621224f2a9
user:      micha <micha%pkgsrc.org@localhost>
date:      Fri Jan 28 11:50:12 2022 +0000

description:
editors/xnedit: Import 1.4.0

A fast and classic X11 text editor, based on NEdit, with full unicode
support and antialiased text rendering.

diffstat:

 editors/xnedit/DESCR                                |  10 +++
 editors/xnedit/Makefile                             |  61 +++++++++++++++++++++
 editors/xnedit/PLIST                                |  10 +++
 editors/xnedit/distinfo                             |   7 ++
 editors/xnedit/patches/patch-source_Makefile.common |  24 ++++++++
 editors/xnedit/patches/patch-source_textSel.c       |  24 ++++++++
 6 files changed, 136 insertions(+), 0 deletions(-)

diffs (160 lines):

diff -r 49e46ab2c1e0 -r d4621224f2a9 editors/xnedit/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/xnedit/DESCR      Fri Jan 28 11:50:12 2022 +0000
@@ -0,0 +1,10 @@
+XNEdit is a multi-purpose text editor for the X Window System, which
+combines a standard, easy to use, graphical user interface with the
+thorough functionality and stability required by users who edit text
+eight hours a day. It provides intensive support for development in
+a wide variety of languages, text processors, and other tools, but at
+the same time can be used productively by just about anyone who needs
+to edit text.
+
+XNEdit is a fork of the Nirvana Editor (NEdit) and provides new
+functionality like antialiased text rendering and support for unicode.
diff -r 49e46ab2c1e0 -r d4621224f2a9 editors/xnedit/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/xnedit/Makefile   Fri Jan 28 11:50:12 2022 +0000
@@ -0,0 +1,61 @@
+# $NetBSD: Makefile,v 1.1 2022/01/28 11:50:12 micha Exp $
+
+VERS=          1.4.0
+DISTNAME=      xnedit-${VERS}
+CATEGORIES=    editors
+MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=xnedit/}
+
+MAINTAINER=    micha%NetBSD.org@localhost
+HOMEPAGE=      https://sourceforge.net/projects/xnedit/
+COMMENT=       Fork of NEdit with Unicode support and antialiased text
+LICENSE=       gnu-gpl-v2
+
+USE_LANGUAGES= c99
+USE_TOOLS=     pkg-config yacc
+
+WRKSRC=                        ${WRKDIR}/xnedit
+BUILD_TARGET=          generic
+INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1 ${PREFIX}/share/doc/xnedit
+
+# Search for Xft headers in X11 subdirectory
+# Upstream ticket: <https://sourceforge.net/p/xnedit/bugs/20/>
+# Fixed with commit 452499daab227afab372763f7a64ec996c7057db, remove this patch
+# for next release.
+SUBST_CLASSES+=                        fix-include
+SUBST_STAGE.fix-include=       pre-configure
+SUBST_MESSAGE.fix-include=     Fixing include Xft.h.
+SUBST_FILES.fix-include=       source/nedit.h
+SUBST_FILES.fix-include+=      source/rangeset.h
+SUBST_FILES.fix-include+=      source/text.h
+SUBST_FILES.fix-include+=      source/textDisp.h
+SUBST_FILES.fix-include+=      source/textP.h
+SUBST_FILES.fix-include+=      util/colorchooser.c
+SUBST_FILES.fix-include+=      util/fontsel.c
+SUBST_SED.fix-include=         -e 's,Xft/Xft.h>,X11/&,'
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/source/xnedit ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_PROGRAM} ${WRKSRC}/source/xnc ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_MAN} ${WRKSRC}/doc/xnedit.man \
+               ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/xnedit.1
+       ${INSTALL_MAN} ${WRKSRC}/doc/xnc.man \
+               ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/xnc.1
+.for f in README.md ReleaseNotes
+        ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/share/doc/xnedit
+.endfor
+.for f in NEdit.ad faq.txt xnedit.txt
+       ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DESTDIR}${PREFIX}/share/doc/xnedit
+.endfor
+
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../devel/pcre/buildlink3.mk"
+.include "../../fonts/fontconfig/buildlink3.mk"
+.include "../../mk/motif.buildlink3.mk"
+.include "../../x11/libICE/buildlink3.mk"
+.include "../../x11/libSM/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXft/buildlink3.mk"
+.include "../../x11/libXpm/buildlink3.mk"
+.include "../../x11/libXrender/buildlink3.mk"
+.include "../../x11/libXt/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 49e46ab2c1e0 -r d4621224f2a9 editors/xnedit/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/xnedit/PLIST      Fri Jan 28 11:50:12 2022 +0000
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1 2022/01/28 11:50:12 micha Exp $
+bin/xnc
+bin/xnedit
+man/man1/xnc.1
+man/man1/xnedit.1
+share/doc/xnedit/NEdit.ad
+share/doc/xnedit/README.md
+share/doc/xnedit/ReleaseNotes
+share/doc/xnedit/faq.txt
+share/doc/xnedit/xnedit.txt
diff -r 49e46ab2c1e0 -r d4621224f2a9 editors/xnedit/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/xnedit/distinfo   Fri Jan 28 11:50:12 2022 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2022/01/28 11:50:12 micha Exp $
+
+BLAKE2s (xnedit-1.4.0.tar.gz) = 6d36770d496e3e7fed8c907bf86073e0bba5e77f264565d2d8740d1096982fee
+SHA512 (xnedit-1.4.0.tar.gz) = eba465679984290b5ff1c0584c78fadf78d96b6daef8e78b772bee4e6b4278c025c5f2b22f0688ed3f8bcdea6d54cb6154727cf0d7c53372d908d7d1fb80a401
+Size (xnedit-1.4.0.tar.gz) = 1509634 bytes
+SHA1 (patch-source_Makefile.common) = 337bc0d1ae32a448b6bb0c6141b096dba3654a78
+SHA1 (patch-source_textSel.c) = e6b365de6d6dd58e0df125baf3011a69671eafbe
diff -r 49e46ab2c1e0 -r d4621224f2a9 editors/xnedit/patches/patch-source_Makefile.common
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/xnedit/patches/patch-source_Makefile.common       Fri Jan 28 11:50:12 2022 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-source_Makefile.common,v 1.1 2022/01/28 11:50:12 micha Exp $
+
+Honor LDFLAGS.
+
+Upstream ticket: <https://sourceforge.net/p/xnedit/bugs/19/>
+Fixed with commit 8e9bf66e77b7108f5803c9945f6d799d11fa6091, remove this patch
+for next release.
+
+--- source/Makefile.common.orig        2022-01-09 12:28:40.000000000 +0000
++++ source/Makefile.common
+@@ -21,11 +21,11 @@ all: xnedit xnc
+ xnedit: $(OBJS) ../util/libNUtil.a $(XMLLIB) $(XLTLIB)
+       $(CC) $(CFLAGS) -c linkdate.c -o linkdate.o
+       $(CC) $(CFLAGS) $(OBJS) linkdate.o \
+-       ../util/libNUtil.a $(XMLLIB) $(XLTLIB) $(LIBS) -o $@
++       ../util/libNUtil.a $(LDFLAGS) $(XMLLIB) $(XLTLIB) $(LIBS) -o $@
+ 
+ # Note LIBS isn't quite right here; it links unnecessarily against Motif
+ xnc: nc.o server_common.o ../util/libNUtil.a
+-      $(CC) $(CFLAGS) nc.o server_common.o ../util/libNUtil.a $(LIBS) -o $@
++      $(CC) $(CFLAGS) nc.o server_common.o ../util/libNUtil.a $(LDFLAGS) $(LIBS) -o $@
+ 
+ help.o: help.c
+       $(CC) $(CFLAGS) $(BIGGER_STRINGS) -c help.c -o $@
diff -r 49e46ab2c1e0 -r d4621224f2a9 editors/xnedit/patches/patch-source_textSel.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/xnedit/patches/patch-source_textSel.c     Fri Jan 28 11:50:12 2022 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-source_textSel.c,v 1.1 2022/01/28 11:50:12 micha Exp $
+
+Enable codepath for Apple operating systems unconditionally.
+
+Otherwise inserting the X11 primary selection does not work in some cases
+(e.g. with selections from FLTK widgets on NetBSD).
+
+Upstream ticket: <https://sourceforge.net/p/xnedit/bugs/18/>
+Fixed with commit 20e0de407a217a279f229c216288a5f8aa1b309f, remove this patch
+for next release.
+
+--- source/textSel.c.orig      2022-01-09 12:28:40.000000000 +0000
++++ source/textSel.c
+@@ -251,7 +251,9 @@ void InsertPrimarySelection(Widget w, Ti
+     
+     selectionTime = time;
+     
+-#ifdef __APPLE__
++
++/* #ifdef __APPLE__ */
++#if 1
+     XtGetSelectionValue(w, XA_PRIMARY, targets[1], getSelectionCB, sel, time);
+     XtGetSelectionValue(w, XA_PRIMARY, targets[0], getSelectionCB, sel, time);
+ #else



Home | Main Index | Thread Index | Old Index