summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authormicha <micha@pkgsrc.org>2022-01-28 11:50:12 +0000
committermicha <micha@pkgsrc.org>2022-01-28 11:50:12 +0000
commit29fad4b70a250b5c4f79f39102e002e23a60584f (patch)
tree7b2eba53f3c0126533bf2740fadb626f3495ba5f /editors
parentcac6527609d54e695729001e2eaadafce9ff2393 (diff)
downloadpkgsrc-29fad4b70a250b5c4f79f39102e002e23a60584f.tar.gz
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 (limited to 'editors')
-rw-r--r--editors/xnedit/DESCR10
-rw-r--r--editors/xnedit/Makefile61
-rw-r--r--editors/xnedit/PLIST10
-rw-r--r--editors/xnedit/distinfo7
-rw-r--r--editors/xnedit/patches/patch-source_Makefile.common24
-rw-r--r--editors/xnedit/patches/patch-source_textSel.c24
6 files changed, 136 insertions, 0 deletions
diff --git a/editors/xnedit/DESCR b/editors/xnedit/DESCR
new file mode 100644
index 00000000000..aceca339529
--- /dev/null
+++ b/editors/xnedit/DESCR
@@ -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 --git a/editors/xnedit/Makefile b/editors/xnedit/Makefile
new file mode 100644
index 00000000000..d49cfe9c3c5
--- /dev/null
+++ b/editors/xnedit/Makefile
@@ -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
+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 --git a/editors/xnedit/PLIST b/editors/xnedit/PLIST
new file mode 100644
index 00000000000..e442d68e43e
--- /dev/null
+++ b/editors/xnedit/PLIST
@@ -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 --git a/editors/xnedit/distinfo b/editors/xnedit/distinfo
new file mode 100644
index 00000000000..d5478db30cd
--- /dev/null
+++ b/editors/xnedit/distinfo
@@ -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 --git a/editors/xnedit/patches/patch-source_Makefile.common b/editors/xnedit/patches/patch-source_Makefile.common
new file mode 100644
index 00000000000..f33397f6a56
--- /dev/null
+++ b/editors/xnedit/patches/patch-source_Makefile.common
@@ -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 --git a/editors/xnedit/patches/patch-source_textSel.c b/editors/xnedit/patches/patch-source_textSel.c
new file mode 100644
index 00000000000..5ff231ad413
--- /dev/null
+++ b/editors/xnedit/patches/patch-source_textSel.c
@@ -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