mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
Cool Reader: Bump version and change repository
This commit is contained in:
113
app-text/coolreader3/coolreader3-3.2.2.4m.recipe
Normal file
113
app-text/coolreader3/coolreader3-3.2.2.4m.recipe
Normal file
@@ -0,0 +1,113 @@
|
||||
SUMMARY="Free e-book readers"
|
||||
DESCRIPTION="Cool Reader is fast and small cross-platform XML/CSS based eBook reader for \
|
||||
desktops and handheld devices. Supported formats: FB2, TXT, RTF, DOC, TCR, HTML, EPUB, \
|
||||
CHM, PDB, MOBI. Platforms: Windows, Linux, Android, Haiku, macOS. Ported on some eInk based \
|
||||
devices also. This is a fork of the Cool Reader with addition of patches useful for \
|
||||
desktop version of program. More information: https://exlmoto.ru/cool-reader-system-fonts"
|
||||
HOMEPAGE="https://github.com/buggins/coolreader"
|
||||
COPYRIGHT="1998-2018 Vadim Lopatin, 2013-2018 EXL"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
tagGitRev="cr3.2.2-4m"
|
||||
SOURCE_URI="https://github.com/EXLMOTODEV/coolreader/archive/$tagGitRev.tar.gz"
|
||||
CHECKSUM_SHA256="a229e2e7d76d3b8edfc61b3c3d6bdafbdf72071dd5e952201c6154f8a23f9ef3"
|
||||
SOURCE_DIR="coolreader-$tagGitRev"
|
||||
ADDITIONAL_FILES="
|
||||
coolreader.rdef.in
|
||||
haikuicons.zip
|
||||
"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
coolreader3$secondaryArchSuffix = $portVersion
|
||||
app:coolreader3$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libfontconfig$secondaryArchSuffix
|
||||
lib:libfreetype$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:libjpeg$secondaryArchSuffix
|
||||
lib:libpng16$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix
|
||||
lib:libQt5Gui$secondaryArchSuffix
|
||||
lib:libQt5Network$secondaryArchSuffix
|
||||
lib:libQt5PrintSupport$secondaryArchSuffix
|
||||
lib:libQt5Svg$secondaryArchSuffix
|
||||
lib:libQt5WebKit$secondaryArchSuffix
|
||||
lib:libQt5WebKitWidgets$secondaryArchSuffix
|
||||
lib:libQt5Widgets$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libfontconfig$secondaryArchSuffix
|
||||
devel:libfreetype$secondaryArchSuffix
|
||||
devel:libGL$secondaryArchSuffix
|
||||
devel:libjpeg$secondaryArchSuffix
|
||||
devel:libpng$secondaryArchSuffix
|
||||
devel:libQt5Core$secondaryArchSuffix
|
||||
devel:libQt5Gui$secondaryArchSuffix
|
||||
devel:libQt5Network$secondaryArchSuffix
|
||||
devel:libQt5PrintSupport$secondaryArchSuffix
|
||||
devel:libQt5Svg$secondaryArchSuffix
|
||||
devel:libQt5WebKit$secondaryArchSuffix
|
||||
devel:libQt5WebKitWidgets$secondaryArchSuffix
|
||||
devel:libQt5Widgets$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:git
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:lrelease$secondaryArchSuffix >= 5
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:unzip
|
||||
cmd:which
|
||||
"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
unzip -o $sourceDir/../../additional-files/haikuicons.zip -d $sourceDir/cr3qt/src/icons
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake .. -DGUI=QT5 \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=$appsDir/CoolReader3
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
mv -f $appsDir/CoolReader3/cr3 "$appsDir/CoolReader3/Cool Reader"
|
||||
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
||||
local INTERNAL="`echo "$portVersion" | cut -d. -f4 | cut -dm -f1`"
|
||||
|
||||
sed \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
-e "s|@INTERNAL@|$INTERNAL|" \
|
||||
$portDir/additional-files/coolreader.rdef.in > coolreader.rdef
|
||||
|
||||
addResourcesToBinaries coolreader.rdef "$appsDir/CoolReader3/Cool Reader"
|
||||
mimeset -f "$appsDir/CoolReader3/Cool Reader"
|
||||
addAppDeskbarSymlink "$appsDir/CoolReader3/Cool Reader"
|
||||
}
|
||||
Reference in New Issue
Block a user