mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
Fixes some overflow and memory leak issues: https://github.com/dvorka/hstr/releases/tag/2.6 Mark x86_gcc2 as broken (hstr uses "-std=c99").
71 lines
1.7 KiB
Bash
71 lines
1.7 KiB
Bash
SUMMARY="Shell history suggest box"
|
||
DESCRIPTION="Easily view, navigate, search and use your command history with \
|
||
shell history suggest box for Bash."
|
||
HOMEPAGE="http://me.mindforger.com/projects/hh.html"
|
||
COPYRIGHT="2014-2022 Martin Dvorak"
|
||
LICENSE="Apache v2"
|
||
REVISION="1"
|
||
SOURCE_URI="https://github.com/dvorka/hstr/archive/$portVersion.tar.gz"
|
||
CHECKSUM_SHA256="085f8a087481bcdf33e75e2fa5aaa9289931782c0bee2db3e02425b9a7d83cdf"
|
||
PATCHES="hstr-$portVersion.patchset"
|
||
|
||
ARCHITECTURES="all !x86_gcc2"
|
||
SECONDARY_ARCHITECTURES="x86"
|
||
|
||
# On x86_gcc2 we don't want to install the commands in bin/<arch>/, but in bin/.
|
||
commandBinDir=$binDir
|
||
commandSuffix=$secondaryArchSuffix
|
||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||
commandBinDir=$prefix/bin
|
||
commandSuffix=
|
||
fi
|
||
|
||
PROVIDES="
|
||
hstr$secondaryArchSuffix = $portVersion
|
||
cmd:hstr$commandSuffix = $portVersion
|
||
"
|
||
REQUIRES="
|
||
haiku$secondaryArchSuffix
|
||
lib:libncursesw$secondaryArchSuffix
|
||
lib:libreadline$secondaryArchSuffix
|
||
"
|
||
|
||
BUILD_REQUIRES="
|
||
haiku${secondaryArchSuffix}_devel
|
||
devel:libncursesw$secondaryArchSuffix
|
||
devel:libreadline$secondaryArchSuffix
|
||
"
|
||
BUILD_PREREQUIRES="
|
||
cmd:aclocal
|
||
cmd:autoconf
|
||
cmd:automake
|
||
cmd:awk
|
||
cmd:gcc$secondaryArchSuffix
|
||
cmd:libtoolize$secondaryArchSuffix
|
||
cmd:make
|
||
cmd:pkg_config$secondaryArchSuffix
|
||
"
|
||
|
||
defineDebugInfoPackage hstr$secondaryArchSuffix $commandBinDir/hstr
|
||
|
||
BUILD()
|
||
{
|
||
libtoolize --force --copy --install
|
||
aclocal
|
||
autoconf
|
||
automake --add-missing --force-missing
|
||
|
||
runConfigure --omit-dirs "binDir sbinDir" ./configure \
|
||
--bindir="$commandBinDir" \
|
||
--sbindir="$commandBinDir"
|
||
|
||
make $jobArgs
|
||
}
|
||
|
||
INSTALL()
|
||
{
|
||
make install
|
||
# Remove the "hh" symlink to "hstr". The user can create an alias if needed.
|
||
rm $commandBinDir/hh
|
||
}
|