mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
81 lines
1.8 KiB
Bash
81 lines
1.8 KiB
Bash
SUMMARY="A text mode interface for git"
|
|
DESCRIPTION="Tig is an ncurses-based text-mode interface for git. \
|
|
It functions mainly as a Git repository browser, but can also assist in \
|
|
staging changes for commit at chunk level and act as a pager for output from \
|
|
various Git commands."
|
|
HOMEPAGE="https://jonas.github.io/tig/"
|
|
COPYRIGHT="2006-2018 Jonas Fonseca"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="2"
|
|
SOURCE_URI="https://github.com/jonas/tig/releases/download/tig-$portVersion/tig-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="b6b6aa183e571224d0e1fab3ec482542c1a97fa7a85b26352dc31dbafe8558b8"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandSuffix=$secondaryArchSuffix
|
|
commandBinDir=$binDir
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
GLOBAL_WRITABLE_FILES="settings/tigrc keep-old"
|
|
|
|
PROVIDES="
|
|
tig$secondaryArchSuffix = $portVersion
|
|
cmd:tig$commandSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libiconv$secondaryArchSuffix
|
|
lib:libncurses$secondaryArchSuffix
|
|
lib:libreadline$secondaryArchSuffix
|
|
cmd:git
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libiconv$secondaryArchSuffix
|
|
devel:libncurses$secondaryArchSuffix
|
|
devel:libreadline$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:asciidoc
|
|
cmd:autoconf
|
|
cmd:find
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
TEST_REQUIRES="
|
|
cmd:git
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fi -I tools
|
|
runConfigure --omit-dirs binDir ./configure \
|
|
--bindir=$commandBinDir
|
|
make $jobArgs DIST_VERSION=$portVersion
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# temporary solution because of xmlto deps failing
|
|
mkdir -p $manDir/man{1,5,7}
|
|
cp -af tig.1 $manDir/man1
|
|
cp -af tigrc.5 $manDir/man5
|
|
cp -af tigmanual.7 $manDir/man7
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make test
|
|
}
|