pkgsrc-Changes archive

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

CVS commit: pkgsrc/editors/dte



Module Name:    pkgsrc
Committed By:   bacon
Date:           Fri Jan  5 14:41:20 UTC 2024

Modified Files:
        pkgsrc/editors/dte: Makefile PLIST distinfo
Added Files:
        pkgsrc/editors/dte/patches: patch-GNUmakefile patch-src_buffer.c

Log Message:
editors/dte: Update to 1.11.1

Packaging changes:
- Removed requirement for terminfo and curses as upstream now uses
  their own built-in support for terminals.

Changes from 1.11.0 -> 1.11.1:

Additions:
Fixes:
- Fixed a bug that was causing key bindings to not work properly when
  the Num Lock and/or Caps Lock modifiers were in effect in terminals
  supporting the [kitty keyboard protocol].
- Fixed the `save` command, to avoid breaking hard links when writing
  to existing files.
- Fixed an issue in the build system causing `make distcheck` to fail.

Other changes:
- Changed built-in filetype detection so that a `dot_` filename
  prefix isequivalent to a `.` prefix, or more specifically
  `dot_bashrc` is now treated the same way as `.bashrc`.
- Changed the `default` command in `dte-syntax` files to show an error
  if there are duplicate arguments.
- Removed the built-in `xsel` alias.

Changes from 1.10.0 -> 1.11.0:
Additions:
- Added 15 new command flags (see CHANGELOG.md)
- Added a new `exec` command.
- Added `overwrite` and `optimize-true-color` options.
- Added built-in `$RFILE`, `$FILEDIR` and `$COLNO` variables.
- Added `hi`, `msg` and `set` arguments to the `show` command.
- Added a _number_ argument to the `msg` command.
- Added support for 3-digit `#rgb` colors to the `hi` command.
- Added support for binding F13-F20 keys.
- Added support for parsing alternate encodings of F1-F4 keys
  (e.g. `CSI P`) sent by some terminals.
- Added support for the Kitty keyboard protocol.
- Added syntax highlighters for JSON, Go Module (`go.mod`), G-code
  and `.gitignore` files.
- Added support for binary literals and hex float literals to the C
  syntax highlighter.
- Added support for escaped newlines in string literals to the C
  syntax highlighter.
- Added support for `<<-EOF` heredocs to the shell syntax highlighter.
- Added support for template literals to the JavaScript syntax
  highlighter.
- Added support for terminal "synchronized updates" (both the
  DCS-based variant and the private mode `2026` variant).
- Added documentation for the `bookmark` command.
- Added `$PATH`, `$PWD`, `$OLDPWD` and `$DTE_VERSION` to the
  environment section of the `dte` man page.
- Added extended support for Contour and WezTerm terminals.
- Added an AppStream metadata file, which is installed by default when
  running `make install` (except on macOS).

Improvements:
- Updated Unicode support to version 15.
- Allowed `alias` and `errorfmt` entries to be removed, by running
  the commands with only 1 argument.
- Improved command auto-completion various commands.
- Improved documentation for various commands.
- Changed `quit -p quit` to display the number of modified/unsaved
  buffers in the dialog prompt.
- Excluded `.` and `..` from filename auto-completions.
- Allowed `-c <command>` options to be used multiple (up to 8) times.
- Allowed `+lineno,colno` command-line arguments.
- Extended `line` command to accept a `lineno,colno` argument.
- Limited the size of `.editorconfig` files to 32MiB.
- Enabled "enhanced" regex features on macOS, by using the
  `REG_ENHANCED` flag when calling `regcomp(3)`.
- Improved support for the `modifyOtherKeys` keyboard mode, by
  emitting the escape sequence to enable it at startup.
- Various improvements to built-in filetype detection.
- Various performance/efficiency improvements.

Fixes:
- Fixed a bug that caused searches started by `search -r search` to
  be incorrectly recorded by `macro record`.
- Fixed a bug that caused "broken pipe" errors to occur if the
  terminal was resized during certain long-running commands (e.g.
  `compile`).
- Fixed several regular expressions in built-in configs that were
  using non-portable regex features (`\s`, `\b` and `\w`) and causing
  errors on some systems.
- Fixed a portability issue that was causing execution of external
  commands to fail with "function not implemented" errors on some
  systems.

Breaking changes:
- Changed the default Ctrl+v key binding to `paste -a paste`.
- Removed the `display-invisible` global option.
- Removed the `-b` flag from the `select` command.
- Renamed the built-in `coffeescript` filetype to `coffee`.
- Made the `str` command in `dte-syntax` files produce an error if
  used with single-byte arguments (`char` should be used instead).
- The `pipe-from` `-s` flag was effectively renamed to `-n`, as part
  of the made for the new `exec` command.

Other changes:
- Increased the minimum GNU Make version requirement to 4.0.
- Increased the minimum GCC version requirement to 4.8.

Changes from 1.9.1 -> 1.10.0:
Additions:
- Added 7 new commands
- Added 12 new command flags
- Added 2 new global options
- Added an optional *exitcode* argument to the `quit` command.
- Added `color`, `command`, `env`, `errorfmt`, `ft`, `macro`,
  `option`, `search` and `wsplit` arguments to the `show` command.
- Added support for the `\e` escape sequence in double-quoted command
  arguments.
- Added syntax highlighting for Lisp and Scheme files.
- Added an Alt+Enter key binding to search mode, for performing
  plain-text searches.
- Added a Shift+Tab key binding to command mode, for iteratating
  auto-completions in reverse order.
- Added `%b`, `%N` and `%S` statusline format specifiers.
- Added a large confirmation dialog, shown when `quit -p quit` is
  run with unsaved changes.
- Added the ability to exclude individual commands from command
  history.

Improvements:
- Updated Unicode support to version 13.
- Bound Ctrl+c to `copy -k` by default.
- Re-introduced built-in support for rxvt Ctrl/Alt/Shift key
  combinations.
- Fixed the handling of optional capture groups in `errorfmt`
  patterns.
- Improved the legibility of the default color scheme on a wider range
  of terminals.
- Changed the `filter` and `pipe-from` commands to set
  `$LINES`/`$COLUMNS` to the current window height/width, before
  running the specified program.
- Clarified which command flags in the [`dterc`] man page are mutually
  exclusive (by separating them with `|`).
- Fixed signal handling, to allow interrupting unresponsive/deadlocked
  child processes with Ctrl+c.
- Fixed command-line auto-completion to work properly when option
  flags are present.
- Various syntax highlighting improvements.
- Various terminal compatibility improvements.
- Various performance improvements.

Breaking changes:
- Removed support for linking to the system terminfo library. The
  terminfo database has only been used as a last resort source of
  information for several releases now. Most terminals that people
  are likely to be using already have built-in support in the editor,
  including several capabilities not available from terminfo. This is
  listed as a breaking change because it may break support for a few
  archaic hardware terminals (primarily those that aren't ECMA-48
  compatible or whose terminfo strings contain mandatory padding).
- Removed support for vertical tab bars (the `tab-bar` option was
  changed from an enum to a Boolean).


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/editors/dte/Makefile \
    pkgsrc/editors/dte/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/editors/dte/PLIST
cvs rdiff -u -r0 -r1.1 pkgsrc/editors/dte/patches/patch-GNUmakefile \
    pkgsrc/editors/dte/patches/patch-src_buffer.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/editors/dte/Makefile
diff -u pkgsrc/editors/dte/Makefile:1.5 pkgsrc/editors/dte/Makefile:1.6
--- pkgsrc/editors/dte/Makefile:1.5     Fri Aug 11 08:44:16 2023
+++ pkgsrc/editors/dte/Makefile Fri Jan  5 14:41:20 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.5 2023/08/11 08:44:16 nia Exp $
+# $NetBSD: Makefile,v 1.6 2024/01/05 14:41:20 bacon Exp $
 
-DISTNAME=      dte-1.9.1
+DISTNAME=      dte-1.11.1
 CATEGORIES=    editors
 MASTER_SITES=  https://craigbarnes.gitlab.io/dist/dte/
 
@@ -18,6 +18,4 @@ MAKE_FLAGS+=  LDFLAGS=${LDFLAGS:Q}
 MAKE_FLAGS+=   prefix=${PREFIX}
 MAKE_FLAGS+=   mandir=${PREFIX}/${PKGMANDIR}
 
-.include "../../mk/curses.buildlink3.mk"
-.include "../../mk/terminfo.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
Index: pkgsrc/editors/dte/distinfo
diff -u pkgsrc/editors/dte/distinfo:1.5 pkgsrc/editors/dte/distinfo:1.6
--- pkgsrc/editors/dte/distinfo:1.5     Tue Oct 26 10:21:26 2021
+++ pkgsrc/editors/dte/distinfo Fri Jan  5 14:41:20 2024
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.5 2021/10/26 10:21:26 nia Exp $
+$NetBSD: distinfo,v 1.6 2024/01/05 14:41:20 bacon Exp $
 
-BLAKE2s (dte-1.9.1.tar.gz) = 380c4520611254aa2fae867a498a80a0ac65b1b7d2f0b7e2a44ae418d0453dff
-SHA512 (dte-1.9.1.tar.gz) = f8bea92f518d5f5dec1a1052c4ee9fbd3175cd149140c43163bd4e2f2e5c3e68ee9289d3388555c635ce10a30a490907f8959fde74c49e357821cb85c9275358
-Size (dte-1.9.1.tar.gz) = 281750 bytes
+BLAKE2s (dte-1.11.1.tar.gz) = 1930bd74fe54962a8a808bf48a171bc19aabedc624b328fa02a1d777d32e7437
+SHA512 (dte-1.11.1.tar.gz) = bdc2100d1d9db8ed24fd5df37154c681625f1d8af66b3e544450f25fa90341d2ff151504b3718e7b2a69ebc28dac41a1841d1024cab9a60c82cc4807b88a4887
+Size (dte-1.11.1.tar.gz) = 415294 bytes
+SHA1 (patch-GNUmakefile) = f8de9c3a3d84d89c996f72bad933a72ca2ad734a
+SHA1 (patch-src_buffer.c) = 0118730fde1e72a7f86cbcebc20f3061eda478a2

Index: pkgsrc/editors/dte/PLIST
diff -u pkgsrc/editors/dte/PLIST:1.1 pkgsrc/editors/dte/PLIST:1.2
--- pkgsrc/editors/dte/PLIST:1.1        Fri Nov 24 06:46:01 2017
+++ pkgsrc/editors/dte/PLIST    Fri Jan  5 14:41:20 2024
@@ -1,5 +1,12 @@
-@comment $NetBSD: PLIST,v 1.1 2017/11/24 06:46:01 kamil Exp $
+@comment $NetBSD: PLIST,v 1.2 2024/01/05 14:41:20 bacon Exp $
+@comment
+@comment X11 related files aren't installed when on Darwin:
+@comment https://gitlab.com/craigbarnes/dte/-/blob/v1.11.1/GNUmakefile#L44
+@comment
 bin/dte
 man/man1/dte.1
 man/man5/dte-syntax.5
 man/man5/dterc.5
+share/applications/dte.desktop
+share/bash-completion/completions/dte
+share/metainfo/dte.appdata.xml

Added files:

Index: pkgsrc/editors/dte/patches/patch-GNUmakefile
diff -u /dev/null pkgsrc/editors/dte/patches/patch-GNUmakefile:1.1
--- /dev/null   Fri Jan  5 14:41:20 2024
+++ pkgsrc/editors/dte/patches/patch-GNUmakefile        Fri Jan  5 14:41:20 2024
@@ -0,0 +1,22 @@
+$NetBSD: patch-GNUmakefile,v 1.1 2024/01/05 14:41:20 bacon Exp $
+
+Keep the desktop and appstream files on Darwin
+
+--- GNUmakefile.orig   2024-01-05 03:02:19.383401126 +0000
++++ GNUmakefile
+@@ -38,13 +38,8 @@ endef
+ 
+ all: $(dte)
+ check: check-tests check-opts
+-install: install-bin install-man install-bash-completion
+-uninstall: uninstall-bin uninstall-man uninstall-bash-completion
+-
+-ifneq "$(KERNEL)" "Darwin"
+- install: install-desktop-file install-appstream
+- uninstall: uninstall-desktop-file uninstall-appstream
+-endif
++install: install-bin install-man install-bash-completion install-desktop-file install-appstream
++uninstall: uninstall-bin uninstall-man uninstall-bash-completion uninstall-desktop-file uninstall-appstream
+ 
+ install-bin: all
+       $(Q) $(INSTALL) -d -m755 '$(DESTDIR)$(bindir)'
Index: pkgsrc/editors/dte/patches/patch-src_buffer.c
diff -u /dev/null pkgsrc/editors/dte/patches/patch-src_buffer.c:1.1
--- /dev/null   Fri Jan  5 14:41:20 2024
+++ pkgsrc/editors/dte/patches/patch-src_buffer.c       Fri Jan  5 14:41:20 2024
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_buffer.c,v 1.1 2024/01/05 14:41:20 bacon Exp $
+
+https://github.com/craigbarnes/dte/commit/77bec65e5f43ded39239a96cf8c26a5a599c31eb
+
+--- src/buffer.c.orig  2023-03-01 23:29:00.000000000 +0000
++++ src/buffer.c
+@@ -459,7 +459,8 @@ String dump_buffer(const Buffer *buffer)
+     char modestr[12];
+     char timestr[64];
+     if (!timespec_to_str(&file->mtime, timestr, sizeof(timestr))) {
+-        memcpy(timestr, STRN("[error]") + 1);
++        static const char msg[] = "[error]";
++        memcpy(timestr, msg, sizeof(msg));
+     }
+ 
+     string_sprintf (



Home | Main Index | Thread Index | Old Index