2017-02-23 07:01:41 +00:00
|
|
|
SUMMARY="A simple offline documentation browser inspired by Dash"
|
|
|
|
DESCRIPTION="Zeal is a cross-platform, open source, offline \
|
|
|
|
documentation browser for software developers, inspired by Dash Docs \
|
|
|
|
for macOS and iOS. Zeal has over 195+ docsets and are all compatible \
|
2017-10-25 09:08:40 +00:00
|
|
|
with Dash docsets."
|
2018-11-03 16:23:53 +00:00
|
|
|
HOMEPAGE="https://zealdocs.org/"
|
2018-09-03 11:49:45 +00:00
|
|
|
COPYRIGHT="2013-2018 Oleg Shparber"
|
2017-02-23 07:01:41 +00:00
|
|
|
LICENSE="GNU GPL v3"
|
|
|
|
REVISION="1"
|
|
|
|
SOURCE_URI="https://github.com/zealdocs/zeal/archive/v$portVersion.tar.gz"
|
2018-11-03 16:23:53 +00:00
|
|
|
CHECKSUM_SHA256="095c08f9903071849d5c79878abd48237ce1615f16d324afff1873ab6b5f0026"
|
|
|
|
SOURCE_FILENAME="zeal-$portVersion.tar.gz"
|
2017-02-23 07:01:41 +00:00
|
|
|
PATCHES="zeal-$portVersion.patchset"
|
2018-09-03 11:49:45 +00:00
|
|
|
ADDITIONAL_FILES="zeal.rdef.in"
|
2017-02-23 07:01:41 +00:00
|
|
|
|
2021-09-15 19:40:18 +00:00
|
|
|
ARCHITECTURES="all !x86_gcc2 ?x86"
|
2018-11-03 16:23:53 +00:00
|
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
2018-09-03 11:49:45 +00:00
|
|
|
SECONDARY_ARCHITECTURES="x86"
|
2018-11-03 16:23:53 +00:00
|
|
|
fi
|
2017-02-23 07:01:41 +00:00
|
|
|
|
|
|
|
PROVIDES="
|
|
|
|
zeal$secondaryArchSuffix = $portVersion
|
2017-10-25 09:08:40 +00:00
|
|
|
app:Zeal = $portVersion
|
2017-02-23 07:01:41 +00:00
|
|
|
"
|
|
|
|
REQUIRES="
|
|
|
|
haiku$secondaryArchSuffix
|
|
|
|
lib:libarchive$secondaryArchSuffix
|
2017-10-25 09:08:40 +00:00
|
|
|
lib:libGL$secondaryArchSuffix
|
|
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
|
|
lib:libQt5Gui$secondaryArchSuffix
|
|
|
|
lib:libQt5Network$secondaryArchSuffix
|
|
|
|
lib:libQt5WebKit$secondaryArchSuffix
|
2018-09-03 11:49:45 +00:00
|
|
|
lib:libQt5WebKitWidgets$secondaryArchSuffix
|
2017-10-25 09:08:40 +00:00
|
|
|
lib:libsqlite3$secondaryArchSuffix
|
2017-02-23 07:01:41 +00:00
|
|
|
lib:libz$secondaryArchSuffix
|
|
|
|
"
|
|
|
|
|
|
|
|
BUILD_REQUIRES="
|
|
|
|
haiku${secondaryArchSuffix}_devel
|
2018-11-03 16:23:53 +00:00
|
|
|
extra_cmake_modules$secondaryArchSuffix
|
2017-02-23 07:01:41 +00:00
|
|
|
devel:libarchive$secondaryArchSuffix
|
2017-10-25 09:08:40 +00:00
|
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
|
|
devel:libQt5Gui$secondaryArchSuffix
|
|
|
|
devel:libQt5Network$secondaryArchSuffix
|
|
|
|
devel:libQt5WebKit$secondaryArchSuffix
|
|
|
|
devel:libsqlite3$secondaryArchSuffix
|
2017-02-23 07:01:41 +00:00
|
|
|
devel:libz$secondaryArchSuffix
|
|
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
2018-09-03 11:49:45 +00:00
|
|
|
cmd:cmake
|
2017-02-23 07:01:41 +00:00
|
|
|
cmd:g++$secondaryArchSuffix
|
2017-10-25 09:08:40 +00:00
|
|
|
cmd:ld$secondaryArchSuffix
|
2017-02-23 07:01:41 +00:00
|
|
|
cmd:make
|
|
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
|
|
"
|
|
|
|
|
|
|
|
BUILD()
|
|
|
|
{
|
2018-09-03 11:49:45 +00:00
|
|
|
mkdir -p build
|
|
|
|
cd build
|
|
|
|
cmake .. $cmakeDirArgs \
|
|
|
|
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
|
2017-02-23 07:01:41 +00:00
|
|
|
make $jobArgs
|
|
|
|
}
|
|
|
|
|
|
|
|
INSTALL()
|
|
|
|
{
|
2018-09-03 11:49:45 +00:00
|
|
|
mkdir -p $appsDir
|
|
|
|
cp build/bin/zeal $appsDir/Zeal
|
|
|
|
|
|
|
|
local APP_SIGNATURE="application/x-vnd.zeal"
|
|
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
|
|
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
|
|
|
local LONG_INFO="$SUMMARY"
|
|
|
|
sed \
|
|
|
|
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
|
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
|
|
-e "s|@MINOR@|$MINOR|" \
|
|
|
|
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
|
|
|
$portDir/additional-files/zeal.rdef.in > zeal.rdef
|
|
|
|
|
|
|
|
addResourcesToBinaries zeal.rdef $appsDir/Zeal
|
|
|
|
mimeset -f $appsDir/Zeal
|
|
|
|
addAppDeskbarSymlink $appsDir/Zeal
|
2017-02-23 07:01:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
TEST()
|
|
|
|
{
|
|
|
|
make test
|
|
|
|
}
|