pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/editors Add editors/kakoune.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/56ea876daf90
branches:  trunk
changeset: 336816:56ea876daf90
user:      nia <nia%pkgsrc.org@localhost>
date:      Wed Jul 24 17:01:02 2019 +0000

description:
Add editors/kakoune.

Kakoune is a code editor that implements Vi's "keystrokes as a text editing
language" model. As it's also a modal editor, it is somewhat similar to the
Vim editor (after which Kakoune was originally inspired).

Kakoune can operate in two modes, normal and insertion. In insertion mode,
keys are directly inserted into the current buffer. In normal mode, keys
are used to manipulate the current selection and to enter insertion mode.

Kakoune has a strong focus on interactivity, most commands provide immediate
and incremental results, while still being competitive (as in keystroke
count) with Vim.

Kakoune works on selections, which are oriented, inclusive range of characters,
selections have an anchor and a cursor character. Most commands move both
of them, except when extending selection where the anchor character stays
fixed and the cursor one moves around.

diffstat:

 editors/Makefile                           |    3 +-
 editors/kakoune/DESCR                      |   16 +++
 editors/kakoune/Makefile                   |   27 +++++
 editors/kakoune/PLIST                      |  137 +++++++++++++++++++++++++++++
 editors/kakoune/distinfo                   |    8 +
 editors/kakoune/patches/patch-src_Makefile |   30 ++++++
 editors/kakoune/patches/patch-src_file.cc  |   19 ++++
 7 files changed, 239 insertions(+), 1 deletions(-)

diffs (278 lines):

diff -r 013ca363aa05 -r 56ea876daf90 editors/Makefile
--- a/editors/Makefile  Wed Jul 24 17:00:35 2019 +0000
+++ b/editors/Makefile  Wed Jul 24 17:01:02 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.188 2019/07/07 15:00:15 leot Exp $
+# $NetBSD: Makefile,v 1.189 2019/07/24 17:01:02 nia Exp $
 #
 
 COMMENT=       Editors
@@ -62,6 +62,7 @@
 SUBDIR+=       jed
 SUBDIR+=       joe
 SUBDIR+=       jove
+SUBDIR+=       kakoune
 SUBDIR+=       kate
 SUBDIR+=       kile
 SUBDIR+=       kilo
diff -r 013ca363aa05 -r 56ea876daf90 editors/kakoune/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/kakoune/DESCR     Wed Jul 24 17:01:02 2019 +0000
@@ -0,0 +1,16 @@
+Kakoune is a code editor that implements Vi's "keystrokes as a text editing
+language" model. As it's also a modal editor, it is somewhat similar to the
+Vim editor (after which Kakoune was originally inspired).
+
+Kakoune can operate in two modes, normal and insertion. In insertion mode,
+keys are directly inserted into the current buffer. In normal mode, keys
+are used to manipulate the current selection and to enter insertion mode.
+
+Kakoune has a strong focus on interactivity, most commands provide immediate
+and incremental results, while still being competitive (as in keystroke
+count) with Vim.
+
+Kakoune works on selections, which are oriented, inclusive range of characters,
+selections have an anchor and a cursor character. Most commands move both
+of them, except when extending selection where the anchor character stays
+fixed and the cursor one moves around.
diff -r 013ca363aa05 -r 56ea876daf90 editors/kakoune/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/kakoune/Makefile  Wed Jul 24 17:01:02 2019 +0000
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1 2019/07/24 17:01:02 nia Exp $
+
+DISTNAME=      kakoune-2019.07.01
+CATEGORIES=    editors
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=mawww/}
+GITHUB_RELEASE=        v${PKGVERSION_NOREV}
+EXTRACT_SUFX=  .tar.bz2
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://kakoune.org/
+COMMENT=       Experimental modal code editor
+LICENSE=       unlicense
+
+BUILD_DIRS=    src
+USE_TOOLS+=    gmake pkg-config
+USE_LANGUAGES= c c++
+
+# C++17
+GCC_REQD+=     7
+
+FAKE_NCURSES=  yes
+
+MAKE_FLAGS+=   mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+MAKE_FLAGS+=   gzip_man=no
+
+.include "../../devel/ncursesw/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 013ca363aa05 -r 56ea876daf90 editors/kakoune/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/kakoune/PLIST     Wed Jul 24 17:01:02 2019 +0000
@@ -0,0 +1,137 @@
+@comment $NetBSD: PLIST,v 1.1 2019/07/24 17:01:02 nia Exp $
+bin/kak
+man/man1/kak.1
+share/doc/kak/README.asciidoc
+share/kak/autoload
+share/kak/colors/base16.kak
+share/kak/colors/default.kak
+share/kak/colors/desertex.kak
+share/kak/colors/github.kak
+share/kak/colors/gruvbox.kak
+share/kak/colors/lucius.kak
+share/kak/colors/palenight.kak
+share/kak/colors/red-phoenix.kak
+share/kak/colors/reeder.kak
+share/kak/colors/solarized-dark-termcolors.kak
+share/kak/colors/solarized-dark.kak
+share/kak/colors/solarized-light-termcolors.kak
+share/kak/colors/solarized-light.kak
+share/kak/colors/tomorrow-night.kak
+share/kak/colors/zenburn.kak
+share/kak/doc/buffers.asciidoc
+share/kak/doc/changelog.asciidoc
+share/kak/doc/command-parsing.asciidoc
+share/kak/doc/commands.asciidoc
+share/kak/doc/execeval.asciidoc
+share/kak/doc/expansions.asciidoc
+share/kak/doc/faces.asciidoc
+share/kak/doc/faq.asciidoc
+share/kak/doc/highlighters.asciidoc
+share/kak/doc/hooks.asciidoc
+share/kak/doc/keymap.asciidoc
+share/kak/doc/keys.asciidoc
+share/kak/doc/mapping.asciidoc
+share/kak/doc/modes.asciidoc
+share/kak/doc/options.asciidoc
+share/kak/doc/regex.asciidoc
+share/kak/doc/registers.asciidoc
+share/kak/doc/scopes.asciidoc
+share/kak/kakrc
+share/kak/rc/detection/editorconfig.kak
+share/kak/rc/detection/file.kak
+share/kak/rc/detection/modeline.kak
+share/kak/rc/filetype/arch-linux.kak
+share/kak/rc/filetype/asciidoc.kak
+share/kak/rc/filetype/awk.kak
+share/kak/rc/filetype/c-family.kak
+share/kak/rc/filetype/cabal.kak
+share/kak/rc/filetype/clojure.kak
+share/kak/rc/filetype/cmake.kak
+share/kak/rc/filetype/coffee.kak
+share/kak/rc/filetype/crystal.kak
+share/kak/rc/filetype/css.kak
+share/kak/rc/filetype/cucumber.kak
+share/kak/rc/filetype/d.kak
+share/kak/rc/filetype/dart.kak
+share/kak/rc/filetype/diff.kak
+share/kak/rc/filetype/dockerfile.kak
+share/kak/rc/filetype/elixir.kak
+share/kak/rc/filetype/elm.kak
+share/kak/rc/filetype/etc.kak
+share/kak/rc/filetype/exherbo.kak
+share/kak/rc/filetype/fish.kak
+share/kak/rc/filetype/gas.kak
+share/kak/rc/filetype/git.kak
+share/kak/rc/filetype/go.kak
+share/kak/rc/filetype/haml.kak
+share/kak/rc/filetype/haskell.kak
+share/kak/rc/filetype/hbs.kak
+share/kak/rc/filetype/html.kak
+share/kak/rc/filetype/i3.kak
+share/kak/rc/filetype/ini.kak
+share/kak/rc/filetype/java.kak
+share/kak/rc/filetype/javascript.kak
+share/kak/rc/filetype/json.kak
+share/kak/rc/filetype/julia.kak
+share/kak/rc/filetype/just.kak
+share/kak/rc/filetype/kakrc.kak
+share/kak/rc/filetype/kickstart.kak
+share/kak/rc/filetype/latex.kak
+share/kak/rc/filetype/lisp.kak
+share/kak/rc/filetype/lua.kak
+share/kak/rc/filetype/mail.kak
+share/kak/rc/filetype/makefile.kak
+share/kak/rc/filetype/markdown.kak
+share/kak/rc/filetype/mercurial.kak
+share/kak/rc/filetype/moon.kak
+share/kak/rc/filetype/nim.kak
+share/kak/rc/filetype/ocaml.kak
+share/kak/rc/filetype/perl.kak
+share/kak/rc/filetype/php.kak
+share/kak/rc/filetype/pony.kak
+share/kak/rc/filetype/protobuf.kak
+share/kak/rc/filetype/pug.kak
+share/kak/rc/filetype/python.kak
+share/kak/rc/filetype/r.kak
+share/kak/rc/filetype/ragel.kak
+share/kak/rc/filetype/restructuredtext.kak
+share/kak/rc/filetype/ruby.kak
+share/kak/rc/filetype/rust.kak
+share/kak/rc/filetype/sass.kak
+share/kak/rc/filetype/scala.kak
+share/kak/rc/filetype/scheme.kak
+share/kak/rc/filetype/scss.kak
+share/kak/rc/filetype/sh.kak
+share/kak/rc/filetype/sql.kak
+share/kak/rc/filetype/swift.kak
+share/kak/rc/filetype/systemd.kak
+share/kak/rc/filetype/taskpaper.kak
+share/kak/rc/filetype/toml.kak
+share/kak/rc/filetype/troff.kak
+share/kak/rc/filetype/tupfile.kak
+share/kak/rc/filetype/void-linux.kak
+share/kak/rc/filetype/yaml.kak
+share/kak/rc/tools/autorestore.kak
+share/kak/rc/tools/autowrap.kak
+share/kak/rc/tools/clang.kak
+share/kak/rc/tools/comment.kak
+share/kak/rc/tools/ctags.kak
+share/kak/rc/tools/doc.kak
+share/kak/rc/tools/formatter.kak
+share/kak/rc/tools/git.kak
+share/kak/rc/tools/go/go-tools.kak
+share/kak/rc/tools/grep.kak
+share/kak/rc/tools/lint.kak
+share/kak/rc/tools/make.kak
+share/kak/rc/tools/man.kak
+share/kak/rc/tools/python/jedi.kak
+share/kak/rc/tools/rust/racer.kak
+share/kak/rc/tools/spell.kak
+share/kak/rc/windowing/iterm.kak
+share/kak/rc/windowing/kitty.kak
+share/kak/rc/windowing/new-client.kak
+share/kak/rc/windowing/repl/tmux.kak
+share/kak/rc/windowing/repl/x11.kak
+share/kak/rc/windowing/screen.kak
+share/kak/rc/windowing/tmux.kak
+share/kak/rc/windowing/x11.kak
diff -r 013ca363aa05 -r 56ea876daf90 editors/kakoune/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/kakoune/distinfo  Wed Jul 24 17:01:02 2019 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2019/07/24 17:01:02 nia Exp $
+
+SHA1 (kakoune-2019.07.01.tar.bz2) = 531066fc87417f3f60f0fe6c47d9c440a67aece4
+RMD160 (kakoune-2019.07.01.tar.bz2) = 1ed222e839ef6efdb36462b0984b3b15b0307c2f
+SHA512 (kakoune-2019.07.01.tar.bz2) = 55a25046d2c46b0d947beefbf7680dc3674e1d027548e134d0fc62b416ae12018bc9518870573144f2668ce8743ec37ba0f97dbfabbaed120ccc07f87a0187c0
+Size (kakoune-2019.07.01.tar.bz2) = 452043 bytes
+SHA1 (patch-src_Makefile) = 8f6cc30df318ef4f2c9168c2e3bdb08fa952395c
+SHA1 (patch-src_file.cc) = 933ce2bfe0fde31d1c3854396241340322755355
diff -r 013ca363aa05 -r 56ea876daf90 editors/kakoune/patches/patch-src_Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/kakoune/patches/patch-src_Makefile        Wed Jul 24 17:01:02 2019 +0000
@@ -0,0 +1,30 @@
+$NetBSD: patch-src_Makefile,v 1.1 2019/07/24 17:01:02 nia Exp $
+
+Do not force -O3 or -g.
+
+Allow KAK_BIN_PATH to be used as a fallback for finding the executable
+path on more platforms.
+
+--- src/Makefile.orig  2019-07-01 12:07:29.000000000 +0000
++++ src/Makefile
+@@ -14,7 +14,6 @@ ifeq ($(debug),yes)
+     suffix := .debug
+ else
+     ifeq ($(debug),no)
+-        CXXFLAGS += -O3
+         suffix := .opt
+     else
+         $(error debug should be either yes or no)
+@@ -85,10 +84,11 @@ else
+ 
+     LIBS += $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --libs ncursesw)
+     NCURSES_CFLAGS += $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --cflags ncursesw)
++    CPPFLAGS += -D'KAK_BIN_PATH="$(bindir)/kak"'
+     LDFLAGS += -rdynamic
+ endif
+ 
+-CXXFLAGS += -pedantic -std=c++17 -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address
++CXXFLAGS += -pedantic -std=c++17 -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address
+ 
+ all : kak
+ 
diff -r 013ca363aa05 -r 56ea876daf90 editors/kakoune/patches/patch-src_file.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/kakoune/patches/patch-src_file.cc Wed Jul 24 17:01:02 2019 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-src_file.cc,v 1.1 2019/07/24 17:01:02 nia Exp $
+
+Allow KAK_BIN_PATH to be used as a fallback for finding the executable
+path on more platforms.
+
+--- src/file.cc.orig   2019-07-01 12:07:29.000000000 +0000
++++ src/file.cc
+@@ -641,10 +641,8 @@ String get_kak_binary_path()
+     kak_assert(res != -1);
+     buffer[res] = '\0';
+     return buffer;
+-#elif defined(__OpenBSD__)
+-    return KAK_BIN_PATH;
+ #else
+-# error "finding executable path is not implemented on this platform"
++    return KAK_BIN_PATH;
+ #endif
+ }
+ 



Home | Main Index | Thread Index | Old Index