git-cola: fix documentation location (#8407)

This commit is contained in:
augiedoggie
2023-04-15 22:04:51 -06:00
committed by GitHub
parent 5f13ba7246
commit 5061853b89
2 changed files with 4 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ DESCRIPTION="git-cola is a powerful Git GUI with a slick and intuitive user inte
HOMEPAGE="https://git-cola.github.io/"
COPYRIGHT="2007-2020 David Aguilar and contributors"
LICENSE="GNU GPL v2"
REVISION="4"
REVISION="5"
SOURCE_URI="https://github.com/git-cola/git-cola/archive/refs/tags/v$portVersion.tar.gz"
CHECKSUM_SHA256="ec1167ea9a472214bf18f5537d96e137c724f3d28a85b3642f07dba35f04b24a"
SOURCE_DIR="git-cola-$portVersion"
@@ -81,8 +81,8 @@ INSTALL()
addAppDeskbarSymlink $appsDir/Git\ DAG
# cleanup
mkdir -p $documentationDir
mv $prefix/share/doc/git-cola $documentationDir
mkdir -p $docDir
mv $prefix/share/doc/git-cola/* $docDir
# move the icons, scripts, etc...
mv $prefix/share/git-cola/* $dataDir/git-cola

View File

@@ -201,7 +201,7 @@ index ac3faa2..68f0fa7 100644
"""Return a path relative to cola's /usr/share/doc/ directory"""
- return os.path.join(_prefix, 'share', 'doc', 'git-cola', *args)
+ if utils.is_haiku():
+ return os.path.join(_prefix, 'documentation', 'git-cola', *args)
+ return os.path.join(_prefix, 'documentation', 'packages', 'git_cola', *args)
+ else:
+ return os.path.join(_prefix, 'share', 'doc', 'git-cola', *args)