pkgsrc-Changes archive

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

CVS commit: pkgsrc/editors/micro



Module Name:    pkgsrc
Committed By:   sjmulder
Date:           Sat Mar 15 15:34:04 UTC 2025

Modified Files:
        pkgsrc/editors/micro: Makefile PLIST distinfo go-modules.mk

Log Message:
editors/micro: Update to 2.0.14

Packaging changes:
 - Now installs README.md and licenses to share/micro/doc/
 - Now installs micro.desktop to share/applications/
 - Removed the custom do-build target, now the one from
   lang/go/go-module.mk is used, which disables telemetry.

Changes:

New options
 - matchbracestyle to choose whether to underline or highlight matching
   braces
 - matchbraceleft to choose whether to match brace to the left of the
   cursor
 - hltrailingws to highlight trailing whitespace
 - hltaberrors to highlight tab vs space inconsistencies

Cursor movement and selection improvements
 - Add jump command to perform a relative goto
 - Add sub-word movement actions and improve word movements
 - Add paragraph selection actions and improve paragraph movements
 - Make Shift-PageUp/Down the default keybindings for SelectPageUp/Down

Syntax highlighting improvements
 - Add signatures support to improve filetype detection in ambiguous
   cases
 - Provide default.yaml for default syntax highlighting
 - Improvements in syntax highlighting for various languages

Mouse improvements
 - More generic support for mouse events handling
 - Add mouse release and mouse drag events
 - Make MouseMultiCursor toggle cursors

Lua improvements
 - Better support for handling mouse events in lua
 - Better API for lua timers
 - Add onAnyEvent callback

Misc improvements
 - Allow colorschemes to include other colorschemes
 - Give user's files in ~/.config/micro/ precedence over micro's
   built-in files
 - Respect umask when creating files
 - Smarter smartpaste
 - Make default fileformat value suited to the OS
 - Improve buffer view relocation after jumping to a far-away location
 - Improve return values of some actions for better action chaining
 - Autocomplete filetypes
 - Allow raw escape sequence to be bound with bind
 - Various small improvements

Bugfixes
 - Fix various crashes
 - Fix micro killed by SIGINT sent to its shell job
 - Various fixes for setting local options
 - Various fixes for reloading settings via reload command
 - Various fixes for updating settings after changing filetype
 - Fix unneeded rewriting of settings.json
 - Fix overwriting persistent non-default settings in settings.json with
   temporary default settings
 - Autosave fixes
    - Don't apply rmtrailingws on autosave
    - Don't autosave unmodified buffer
    - Properly update autosave timer when the autosave option value
      changes
 - Fix opening filenames including colons with parsecursor
 - Fix replace to be able to insert '$'
 - Fix cursor moving to an unexpected location after a redo
 - Make cursor movements after selection consistent
 - Fix incorrect buffer view after reloading file
 - Fix lost mouse release events in case the pane becomes inactive
 - Add proper locking to LineArray to fix potential races
 - Various small fixes

Documentation improvements
 - Cleanup indentation and trailing whitespace by
 - Improve plugin documentation


To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 pkgsrc/editors/micro/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/editors/micro/PLIST
cvs rdiff -u -r1.10 -r1.11 pkgsrc/editors/micro/distinfo
cvs rdiff -u -r1.2 -r1.3 pkgsrc/editors/micro/go-modules.mk

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

Modified files:

Index: pkgsrc/editors/micro/Makefile
diff -u pkgsrc/editors/micro/Makefile:1.58 pkgsrc/editors/micro/Makefile:1.59
--- pkgsrc/editors/micro/Makefile:1.58  Fri Mar  7 20:54:19 2025
+++ pkgsrc/editors/micro/Makefile       Sat Mar 15 15:34:04 2025
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.58 2025/03/07 20:54:19 bsiegert Exp $
+# $NetBSD: Makefile,v 1.59 2025/03/15 15:34:04 sjmulder Exp $
 
-DISTNAME=      micro-2.0.13
-PKGREVISION=   8
+DISTNAME=      micro-2.0.14
 CATEGORIES=    editors
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=zyedidia/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}
@@ -11,18 +10,18 @@ HOMEPAGE=   https://micro-editor.github.io
 COMMENT=       Modern and intuitive terminal-based text editor
 LICENSE=       mit
 
-INSTALLATION_DIRS+=    ${PKGMANDIR}/man1
+INSTALLATION_DIRS+=    bin ${PKGMANDIR}/man1 share/applications share/doc/micro
 
-GO_BUILD_PATTERN=      ./cmd/micro
 GO_LDFLAGS+=           -X github.com/zyedidia/micro/v2/internal/util.Version=${PKGVERSION_NOREV}
 GO_LDFLAGS+=           -X github.com/zyedidia/micro/v2/internal/util.CommitHash=${GITHUB_TAG}
-GO_ARGS+=              -ldflags ${GO_LDFLAGS:Q}
-
-do-build:
-       ${RUN} cd ${WRKSRC} && ${PKGSRC_SETENV} ${MAKE_ENV} ${GO} install -v ${GO_ARGS} ${GO_BUILD_PATTERN}
+GO_BUILD_PATTERN=      -ldflags ${GO_LDFLAGS:Q} ./cmd/micro
 
 post-install:
-       ${INSTALL_MAN} ${WRKSRC}/assets/packaging/micro.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+       ${INSTALL_MAN}  ${WRKSRC}/assets/packaging/micro.1       ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
+       ${INSTALL_DATA} ${WRKSRC}/assets/packaging/micro.desktop ${DESTDIR}${PREFIX}/share/applications/
+       ${INSTALL_DATA} ${WRKSRC}/README.md           ${DESTDIR}${PREFIX}/share/doc/micro/
+       ${INSTALL_DATA} ${WRKSRC}/LICENSE             ${DESTDIR}${PREFIX}/share/doc/micro/
+       ${INSTALL_DATA} ${WRKSRC}/LICENSE-THIRD-PARTY ${DESTDIR}${PREFIX}/share/doc/micro/
 
 .include "go-modules.mk"
 

Index: pkgsrc/editors/micro/PLIST
diff -u pkgsrc/editors/micro/PLIST:1.1 pkgsrc/editors/micro/PLIST:1.2
--- pkgsrc/editors/micro/PLIST:1.1      Tue Jun  2 08:48:18 2020
+++ pkgsrc/editors/micro/PLIST  Sat Mar 15 15:34:04 2025
@@ -1,3 +1,7 @@
-@comment $NetBSD: PLIST,v 1.1 2020/06/02 08:48:18 sjmulder Exp $
+@comment $NetBSD: PLIST,v 1.2 2025/03/15 15:34:04 sjmulder Exp $
 bin/micro
 man/man1/micro.1
+share/applications/micro.desktop
+share/doc/micro/LICENSE
+share/doc/micro/LICENSE-THIRD-PARTY
+share/doc/micro/README.md

Index: pkgsrc/editors/micro/distinfo
diff -u pkgsrc/editors/micro/distinfo:1.10 pkgsrc/editors/micro/distinfo:1.11
--- pkgsrc/editors/micro/distinfo:1.10  Tue Jan 30 15:46:27 2024
+++ pkgsrc/editors/micro/distinfo       Sat Mar 15 15:34:04 2025
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.10 2024/01/30 15:46:27 sjmulder Exp $
+$NetBSD: distinfo,v 1.11 2025/03/15 15:34:04 sjmulder Exp $
 
 BLAKE2s (github.com_blang_semver_@v_v3.5.1+incompatible.mod) = 90703ddd7449c70b84e1be1a2b5671c5dc0ee30dc2ce7f14d5e35f0785a9057a
 SHA512 (github.com_blang_semver_@v_v3.5.1+incompatible.mod) = 5f7f52012aa82bdc43bd89d1491fbe00091299554bd85dbfc07f0cc757fcf44f4499df97a4f19c234ce70fbb7af0f4c54c13ffd547ef0a733365ea9c68dd0297
@@ -324,6 +324,6 @@ Size (gopkg.in_yaml.v2_@v_v2.2.8.mod) = 
 BLAKE2s (gopkg.in_yaml.v2_@v_v2.2.8.zip) = 3ad99eca6ee3b3673ac0ab8a50d8f6cdab25f134329dbdd8edb5c0fd28bae0ea
 SHA512 (gopkg.in_yaml.v2_@v_v2.2.8.zip) = 19f019e85b8c9a533c3cf2fd492b1813272f00cce06a56ffe43046935e49ccf6e191ce83f1d236f6355bae7126aa722016f05174687ff2faf54f121958266edf
 Size (gopkg.in_yaml.v2_@v_v2.2.8.zip) = 80666 bytes
-BLAKE2s (micro-2.0.13.tar.gz) = 023ab6176d374da69641e8116d3c5fa7403b6415e5b4c9de951ccd4c7a5aae8d
-SHA512 (micro-2.0.13.tar.gz) = b4b1dd3b03c906ee5c0bf9d0b576efea2a527fcdb0fe40338c78515fd5f6a4eb22bd9541567bb5956c4087e749775a1e8c33a73d185f7a6b00ba91e405d6a117
-Size (micro-2.0.13.tar.gz) = 563438 bytes
+BLAKE2s (micro-2.0.14.tar.gz) = 5ba89fcb2f57beee610914cf3a68feb39a4ff5fd6ab4c4d2778aa61c41e9ea57
+SHA512 (micro-2.0.14.tar.gz) = 424fd5b03167ca428e6831069e4f0ac471acd8a74a8476240835dc1e5d57d7398302814a5bfe460554169ececbd1e6f7d026b716ef1307887e3e2a8363f5e70a
+Size (micro-2.0.14.tar.gz) = 576800 bytes

Index: pkgsrc/editors/micro/go-modules.mk
diff -u pkgsrc/editors/micro/go-modules.mk:1.2 pkgsrc/editors/micro/go-modules.mk:1.3
--- pkgsrc/editors/micro/go-modules.mk:1.2      Tue Jan 30 15:46:27 2024
+++ pkgsrc/editors/micro/go-modules.mk  Sat Mar 15 15:34:04 2025
@@ -1,4 +1,4 @@
-# $NetBSD: go-modules.mk,v 1.2 2024/01/30 15:46:27 sjmulder Exp $
+# $NetBSD: go-modules.mk,v 1.3 2025/03/15 15:34:04 sjmulder Exp $
 
 GO_MODULE_FILES+=      github.com/blang/semver/@v/v3.5.1+incompatible.mod
 GO_MODULE_FILES+=      github.com/blang/semver/@v/v3.5.1+incompatible.zip



Home | Main Index | Thread Index | Old Index