Files
haikuports/app-editors/kakoune/kakoune-2021.11.08.recipe
Tobias Kortkamp 3680d726c9 kakoune: some improvements (#6803)
* kakoune: add B_BACKGROUND_APP to app_flags

This avoids it briefly flashing up at least once in the Deskbar whenever it is launched.

* kakoune: add debuginfo package

/bin/kak is unstripped and ~40 MiB in size.

Reduces package size from 14 MiB to 1.5 MiB.

* kakoune: bump
2022-04-17 12:27:12 +02:00

79 lines
2.2 KiB
Bash

SUMMARY="Modal code editor with a focus on interactivity"
DESCRIPTION="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 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."
HOMEPAGE="https://kakoune.org/"
COPYRIGHT="Public Domain"
LICENSE="Unlicense"
REVISION="2"
SOURCE_URI="https://github.com/mawww/kakoune/releases/download/v$portVersion/kakoune-$portVersion.tar.bz2"
CHECKSUM_SHA256="aa30889d9da11331a243a8f40fe4f6a8619321b19217debac8f565e06eddb5f4"
PATCHES="kakoune-$portVersion.patchset"
ADDITIONAL_FILES="
kak.rdef.in
"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
kakoune$secondaryArchSuffix = $portVersion
cmd:kak$commandSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:cmp
cmd:find
cmd:gcc$secondaryArchSuffix
cmd:install
cmd:ld$secondaryArchSuffix
cmd:make
"
defineDebugInfoPackage kakoune$secondaryArchSuffix \
"$commandBinDir"/kak
BUILD()
{
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3`"
sed \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
"$portDir"/additional-files/kak.rdef.in > kak.rdef
make $jobArgs
}
INSTALL()
{
make bindir="$commandBinDir" docdir="$docDir" libexecdir="$libExecDir" \
mandir="$manDir/man1" sharedir="$dataDir/kak" install
addResourcesToBinaries kak.rdef "$commandBinDir"/kak
}