fzy: add 1.0~git recipe, remove sys-apps/fzy (#6655)

This commit is contained in:
augiedoggie
2022-02-26 23:42:23 -07:00
committed by GitHub
parent 93cd1bda02
commit cc83486660
2 changed files with 56 additions and 42 deletions

View File

@@ -0,0 +1,56 @@
SUMMARY="Fuzzy text selector (interactive grep) for console"
DESCRIPTION="fzy is a fast, simple fuzzy text selector for the terminal with an advanced scoring \
algorithm."
HOMEPAGE="https://github.com/jhawthorn/fzy"
COPYRIGHT="2014 John Hawthorn"
LICENSE="MIT"
REVISION="1"
srcGitRev="9aa19d3250070f0cc9f5601b805ee6ce3d654377"
SOURCE_URI="https://github.com/jhawthorn/fzy/archive/$srcGitRev.tar.gz"
SOURCE_DIR="fzy-$srcGitRev"
CHECKSUM_SHA256="85aba9528c6f1ac954e7ba8c561f5daa9a4de11ef92cfa8e86f291ce822cbff7"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
fzy$secondaryArchSuffix = $portVersion
cmd:fzy$commandSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:make
"
BUILD()
{
make
}
INSTALL()
{
mkdir -p $commandBinDir
cp -af fzy $commandBinDir
mkdir -p $manDir/man1
cp -af fzy.1 $manDir/man1
}
TEST()
{
make check
}

View File

@@ -1,42 +0,0 @@
SUMMARY="A simple, fast fuzzy finder for the terminal"
DESCRIPTION="fzy is a fast, simple fuzzy text selector for the terminal \
with an advanced scoring algorithm."
HOMEPAGE="https://github.com/jhawthorn/fzy"
COPYRIGHT="2014-2020 John Hawthorn"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/jhawthorn/fzy/archive/$portVersion/fzy-$portVersion.tar.gz"
CHECKSUM_SHA256="80257fd74579e13438b05edf50dcdc8cf0cdb1870b4a2bc5967bd1fdbed1facf"
ARCHITECTURES="all ?x86_gcc2 ?arm"
PROVIDES="
fzy = $portVersion
cmd:fzy = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:gcc
cmd:make
"
BUILD()
{
make $jobArgs
}
INSTALL()
{
make BINDIR=$binDir MANDIR=$manDir install
}
TEST()
{
make check
}