mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
81 lines
2.0 KiB
Bash
81 lines
2.0 KiB
Bash
SUMMARY="A Qt-based git GUI viewer"
|
|
DESCRIPTION="With qgit you will be able to browse revisions history,\
|
|
view patch content and changed files, graphically following different \
|
|
development branches."
|
|
HOMEPAGE="https://github.com/tibirna/qgit"
|
|
COPYRIGHT="2005-2008 Marco Costalba
|
|
2011-2019 Cristian Tibirna"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/tibirna/qgit/archive/qgit-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="9fa64b011963b7b876b8634b140ec5339a81a422317df71b619fcee5740a364a"
|
|
SOURCE_DIR="qgit-qgit-$portVersion"
|
|
ADDITIONAL_FILES="qgit.rdef.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
qgit$secondaryArchSuffix = $portVersion
|
|
app:QGit = $portVersion
|
|
cmd:qgit = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
cmd:git
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libQt6Core$secondaryArchSuffix
|
|
lib:libQt6Core5Compat$secondaryArchSuffix
|
|
lib:libQt6Gui$secondaryArchSuffix
|
|
lib:libQt6Widgets$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libQt6Core$secondaryArchSuffix
|
|
devel:libQt6Core5Compat$secondaryArchSuffix
|
|
devel:libQt6Gui$secondaryArchSuffix
|
|
devel:libQt6Widgets$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
|
|
$cmakeDirArgs
|
|
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
mkdir $appsDir
|
|
mv $prefix/bin/qgit $appsDir/QGit
|
|
ln -s $appsDir/QGit $prefix/bin/qgit
|
|
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
local MINOR="0"
|
|
local APP_NAME="QGit"
|
|
local LONG_INFO="$SUMMARY"
|
|
local APP_SIGNATURE="application/x-vnd.qgit"
|
|
sed \
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
-e "s|@MINOR@|$MINOR|" \
|
|
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
|
-e "s|@APP_NAME@|$APP_NAME|" \
|
|
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
|
$portDir/additional-files/qgit.rdef.in > qgit.rdef
|
|
|
|
addResourcesToBinaries qgit.rdef $appsDir/QGit
|
|
|
|
addAppDeskbarSymlink $appsDir/QGit
|
|
}
|