Files
haikuports/app-editors/vis/vis-0.8.recipe
Peter van Dijk 038316c699 libtermkey: new port, version 0.22 (#8141)
vis: new port, version 0.8
2023-04-29 19:41:08 +02:00

57 lines
1.5 KiB
Bash

SUMMARY="A vi-like editor based on Plan 9's structural regular expressions"
DESCRIPTION="Vis aims to be a modern, legacy-free, simple yet efficient editor, combining the strengths of both vi(m) and sam."
HOMEPAGE="https://github.com/martanne/vis"
COPYRIGHT="2014-2020 Marc André Tanner, et al."
LICENSE="Vis"
REVISION="1"
SOURCE_URI="https://github.com/martanne/vis/releases/download/v$portVersion/vis-$portVersion.tar.gz"
CHECKSUM_SHA256="61b10d40f15c4db2ce16e9acf291dbb762da4cbccf0cf2a80b28d9ac998a39bd"
PATCHES="vis-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
vis$secondaryArchSuffix = $portVersion
cmd:vis = $portVersion
cmd:vis_clipboard = $portVersion
cmd:vis_complete = $portVersion
cmd:vis_digraph = $portVersion
cmd:vis_menu = $portVersion
cmd:vis_open = $portVersion
"
# could add TRE here (would be dev-libs/tre if we had it)
# as the README (https://github.com/martanne/vis) notes:
# * TRE (optional for more memory efficient regex search)
REQUIRES="
haiku$secondaryArchSuffix
lib:lpeg$secondaryArchSuffix
lib:liblua$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
lib:libtermkey$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
cmd:pkg_config${secondaryArchSuffix}
devel:liblua$secondaryArchSuffix >= 5.3
devel:libtermkey$secondaryArchSuffix
devel:libncurses$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:make
"
BUILD()
{
runConfigure ./configure --sharedir=$dataDir
make
}
INSTALL()
{
make install
}