Files
haikuports/dev-vcs/gittyup/gittyup-1.3.0~git.recipe

154 lines
4.5 KiB
Bash

SUMMARY="Graphical git client application"
DESCRIPTION="Gittyup is a graphical git client designed to help you understand and manage your \
source code history.
Features include:
* Optional single branch view to focus on your work
* Fullscreen mode
* Tabs for each open repository
* Integrated diff viewer
* Tree view
* Blame view
* Single line staging
* Amending commits
* Solving rebase conflicts
* Starred commits
* Tag selection
* Commit message templates
and more..."
HOMEPAGE="https://github.com/Murmele/Gittyup/"
COPYRIGHT="2021-2024 Gittyup contributors
2016-2020 Scientific Toolworks, Inc. and contributors"
LICENSE="MIT"
REVISION="2"
srcGitRev="dac06473c069864c013ea5a410a1a705df21be4f"
SOURCE_URI="https://github.com/Murmele/Gittyup/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="982fc8dcefb203a2ebc9a29091acada2b38f612b64646c0987de93d36a255fce"
SOURCE_DIR="Gittyup-$srcGitRev"
PATCHES="gittyup-$portVersion.patchset"
ADDITIONAL_FILES="gittyup.rdef.in"
srcGitRev2="7861f401ea25e1ceaf7323c1585de4d633e0ec39"
SOURCE_URI_2="https://github.com/stinb/libgit2/archive/$srcGitRev2.tar.gz"
CHECKSUM_SHA256_2="8d53e1debb07f37ae5b326b3cc282d7119393be359be197c53fdeafb3fbd3845"
SOURCE_DIR_2="libgit2-$srcGitRev2"
srcGitRev3="82b21cd1348366a7dc25d57c6de532968da40541"
SOURCE_URI_3="https://github.com/ScintillaOrg/lexilla/archive/$srcGitRev3.tar.gz"
CHECKSUM_SHA256_3="4bb82032b05f9a7864c515e0f28acdff4606f47d1c26863f62c3471b69bbe522"
SOURCE_DIR_3="lexilla-$srcGitRev3"
srcGitRev4="33d0e3433a2046c1077f6b33fc801caf6bfac7a9"
SOURCE_URI_4="https://github.com/orbitalquark/scintillua/archive/$srcGitRev4.tar.gz"
CHECKSUM_SHA256_4="12217f2f1a7437ca577e33c458f5290e0dd2ee73185c94cba0a5c4e49636a2e3"
SOURCE_DIR_4="scintillua-$srcGitRev4"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
gittyup$secondaryArchSuffix = $portVersion
cmd:gittyup
cmd:indexer
cmd:relauncher
"
REQUIRES="
haiku$secondaryArchSuffix
cmd:git
lib:libcmark$secondaryArchSuffix
lib:libcrypto$secondaryArchSuffix
lib:libhunspell_1.7$secondaryArchSuffix
lib:liblua$secondaryArchSuffix >= 5.4
lib:libpcre$secondaryArchSuffix
lib:libQt5Concurrent$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Network$secondaryArchSuffix
lib:libQt5PrintSupport$secondaryArchSuffix
lib:libQt5Test$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
lib:libssh2$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcmark$secondaryArchSuffix
devel:libcrypto$secondaryArchSuffix
devel:libhunspell_1.7$secondaryArchSuffix
devel:liblua$secondaryArchSuffix >= 5.4
devel:libpcre$secondaryArchSuffix
devel:libQt5Concurrent$secondaryArchSuffix
devel:libQt5Core$secondaryArchSuffix
devel:libQt5Gui$secondaryArchSuffix
devel:libQt5PrintSupport$secondaryArchSuffix
devel:libQt5Network$secondaryArchSuffix
devel:libQt5Test$secondaryArchSuffix
devel:libQt5Widgets$secondaryArchSuffix
devel:libssh2$secondaryArchSuffix
devel:libssl$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:qdbuscpp2xml$secondaryArchSuffix >= 5
"
BUILD()
{
rm -rf dep/libgit2/libgit2
ln -sf $sourceDir2 dep/libgit2/libgit2
rm -rf dep/scintilla/lexilla
ln -sf $sourceDir3 dep/scintilla/lexilla
rm -rf dep/scintilla/scintillua
ln -sf $sourceDir4 dep/scintilla/scintillua
if [ "$targetArchitecture" = x86_gcc2 ];then
extraArgs=-DCMAKE_CXX_FLAGS=-fpermissive
fi
cmake -B build -S . $cmakeDirArgs \
-DCMAKE_INSTALL_BINDIR=bin \
-DCMAKE_BUILD_TYPE=Release \
-DUSE_SYSTEM_CMARK=ON \
-DUSE_SYSTEM_GIT=ON \
-DUSE_SYSTEM_HUNSPELL=ON \
-DUSE_SYSTEM_LIBSSH2=ON \
-DUSE_SYSTEM_LUA=ON \
-DUSE_SYSTEM_OPENSSL=ON \
-DUSE_SYSTEM_QT=ON \
-DENABLE_UPDATE_OVER_GUI=OFF \
-DENABLE_TESTS=OFF \
"$extraArgs"
make -C build $jobArgs
}
INSTALL()
{
make -C build $jobArgs install
# remove the extra files from libgit2
rm -rf $libDir $developDir
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3 | cut -d~ -f1`"
if [ -z "$MINOR" ]; then MINOR=0; fi
sed \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
$portDir/additional-files/gittyup.rdef.in > $sourceDir/build/gittyup.rdef
addResourcesToBinaries build/gittyup.rdef $prefix/bin/gittyup
addAppDeskbarSymlink $prefix/bin/gittyup "Gittyup"
}