mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-18 01:30:07 +02:00
77 lines
1.7 KiB
Bash
77 lines
1.7 KiB
Bash
SUMMARY="A text mode interface for git"
|
|
DESCRIPTION="
|
|
Tig functions mainly as a git repository browser. It can also help in the \
|
|
staging changes for commit at chunk level and act as a pager for output \
|
|
different git commands."
|
|
HOMEPAGE="http://jonas.nitro.dk/tig/
|
|
https://jonas.github.io/tig/"
|
|
COPYRIGHT="2006-2016 Jonas Fonseca"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/jonas/tig/releases/download/tig-$portVersion/tig-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="686f0386927904dc6410f0b1a712cb8bd7fff3303f688d7dc43162f4ad16c0ed"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
|
|
|
|
if [ "$targetArchitecture" != "x86_gcc2" ]; then
|
|
commandBinDir=$binDir
|
|
else
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
PROVIDES="
|
|
tig$secondaryArchSuffix = $portVersion
|
|
cmd:tig = $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
|
|
"
|
|
|
|
GLOBAL_WRITABLE_FILES="settings/tigrc keep-old"
|
|
|
|
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
|
|
}
|