From 116da1cac326479842c6a369dfcac9019874bedf Mon Sep 17 00:00:00 2001 From: zzzzzzzzz Date: Wed, 30 Nov 2016 23:31:36 +0100 Subject: [PATCH] tig: bump to 2.2.1, add manual, install cmd: to bin. (#872) --- .../tig/{tig-2.1.recipe => tig-2.2.1.recipe} | 40 ++++++++++++++----- 1 file changed, 30 insertions(+), 10 deletions(-) rename dev-vcs/tig/{tig-2.1.recipe => tig-2.2.1.recipe} (53%) diff --git a/dev-vcs/tig/tig-2.1.recipe b/dev-vcs/tig/tig-2.2.1.recipe similarity index 53% rename from dev-vcs/tig/tig-2.1.recipe rename to dev-vcs/tig/tig-2.2.1.recipe index d316c15cc..27a0197d1 100644 --- a/dev-vcs/tig/tig-2.1.recipe +++ b/dev-vcs/tig/tig-2.2.1.recipe @@ -3,19 +3,26 @@ 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/" -SOURCE_URI="http://jonas.nitro.dk/tig/releases/tig-2.1.tar.gz" -CHECKSUM_SHA256="306287f684f57563a53abf1cf46149e0d30c6b500fbc0c39e9bc059506373cb0" -REVISION="1" +HOMEPAGE="http://jonas.nitro.dk/tig/ + https://jonas.github.io/tig/" +COPYRIGHT="2006-2016 Jonas Fonseca" LICENSE="GNU GPL v2" -COPYRIGHT="2006-2014 Jonas Fonseca" +REVISION="1" +SOURCE_URI="https://github.com/jonas/tig/releases/download/tig-$portVersion/tig-$portVersion.tar.gz" +CHECKSUM_SHA256="0b48080896de59179c45c980080b4b414bb235df65ad08d661a9c9e169c3fa71" -ARCHITECTURES="!x86_gcc2 x86 ?x86_64" -SECONDARY_ARCHITECTURES="x86" +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$secondaryArchSuffix = $portVersion + cmd:tig = $portVersion " REQUIRES=" haiku$secondaryArchSuffix @@ -24,6 +31,7 @@ REQUIRES=" lib:libreadline$secondaryArchSuffix cmd:git " + BUILD_REQUIRES=" devel:libiconv$secondaryArchSuffix devel:libncurses$secondaryArchSuffix @@ -33,8 +41,9 @@ BUILD_PREREQUIRES=" haiku${secondaryArchSuffix}_devel cmd:asciidoc cmd:autoconf + cmd:find cmd:git - cmd:libtoolize + cmd:libtoolize$secondaryArchSuffix cmd:make cmd:gcc$secondaryArchSuffix cmd:ld$secondaryArchSuffix @@ -46,11 +55,22 @@ BUILD() { libtoolize --force --copy --install ./autogen.sh - runConfigure ./configure + runConfigure --omit-dirs binDir ./configure --bindir=$commandBinDir make } 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 }