mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
Hexalate: Update to Qt 6 (#10311)
This commit is contained in:
@@ -7,8 +7,8 @@ HOMEPAGE="https://gottcode.org/hexalate/"
|
|||||||
COPYRIGHT="2009-2020 Graeme Gott"
|
COPYRIGHT="2009-2020 Graeme Gott"
|
||||||
LICENSE="GNU GPL v3"
|
LICENSE="GNU GPL v3"
|
||||||
REVISION="1"
|
REVISION="1"
|
||||||
SOURCE_URI="https://gottcode.org/hexalate/hexalate-$portVersion-src.tar.bz2"
|
SOURCE_URI="https://gottcode.org/hexalate/hexalate-$portVersion.tar.bz2"
|
||||||
CHECKSUM_SHA256="5d3198523960d4df394d2092cd7e7b9003878a70a2934dbada60947651b1c88d"
|
CHECKSUM_SHA256="4e1a8391c072d030964cc4b4953031217bc8633c0d9a326a43110e9e4e4e0a62"
|
||||||
SOURCE_DIR="hexalate-$portVersion"
|
SOURCE_DIR="hexalate-$portVersion"
|
||||||
ADDITIONAL_FILES="hexalate.rdef.in"
|
ADDITIONAL_FILES="hexalate.rdef.in"
|
||||||
|
|
||||||
@@ -22,36 +22,45 @@ PROVIDES="
|
|||||||
REQUIRES="
|
REQUIRES="
|
||||||
haiku$secondaryArchSuffix
|
haiku$secondaryArchSuffix
|
||||||
lib:libGL$secondaryArchSuffix
|
lib:libGL$secondaryArchSuffix
|
||||||
lib:libQt5Core$secondaryArchSuffix
|
lib:libQt6Core$secondaryArchSuffix
|
||||||
lib:libQt5Gui$secondaryArchSuffix
|
lib:libQt6Gui$secondaryArchSuffix
|
||||||
lib:libQt5Widgets$secondaryArchSuffix
|
lib:libQt6Widgets$secondaryArchSuffix
|
||||||
"
|
"
|
||||||
|
|
||||||
BUILD_REQUIRES="
|
BUILD_REQUIRES="
|
||||||
haiku${secondaryArchSuffix}_devel
|
haiku${secondaryArchSuffix}_devel
|
||||||
devel:libQt5Core$secondaryArchSuffix
|
devel:libQt6Core$secondaryArchSuffix
|
||||||
devel:libQt5Gui$secondaryArchSuffix
|
devel:libQt6Gui$secondaryArchSuffix
|
||||||
devel:libQt5Widgets$secondaryArchSuffix
|
devel:libQt6UiTools$secondaryArchSuffix
|
||||||
|
devel:libQt6Widgets$secondaryArchSuffix
|
||||||
"
|
"
|
||||||
BUILD_PREREQUIRES="
|
BUILD_PREREQUIRES="
|
||||||
|
cmd:cmake
|
||||||
cmd:gcc$secondaryArchSuffix
|
cmd:gcc$secondaryArchSuffix
|
||||||
cmd:ld$secondaryArchSuffix
|
cmd:ld$secondaryArchSuffix
|
||||||
cmd:lrelease$secondaryArchSuffix >= 5
|
cmd:linguist6$secondaryArchSuffix
|
||||||
cmd:make
|
cmd:make
|
||||||
cmd:qmake$secondaryArchSuffix >= 5
|
|
||||||
"
|
"
|
||||||
|
|
||||||
BUILD()
|
BUILD()
|
||||||
{
|
{
|
||||||
qmake
|
cmake -B build -S . \
|
||||||
make $jobArgs
|
-DCMAKE_BUILD_TYPE='None' \
|
||||||
|
-Wno-dev \
|
||||||
|
-DCMAKE_INSTALL_BINDIR=$appsDir \
|
||||||
|
-DCMAKE_INSTALL_DATADIR=$dataDir/Hexalate \
|
||||||
|
-DCMAKE_INSTALL_MANDIR=$manDir
|
||||||
|
cmake --build build $jobArgs
|
||||||
}
|
}
|
||||||
|
|
||||||
INSTALL()
|
INSTALL()
|
||||||
{
|
{
|
||||||
mkdir -p $appsDir/Hexalate/translations
|
cmake --install build
|
||||||
cp hexalate $appsDir/Hexalate/Hexalate
|
|
||||||
cp -Rf translations/*.qm $appsDir/Hexalate/translations
|
# Remove unnecessary data files
|
||||||
|
rm -r $dataDir/Hexalate/applications
|
||||||
|
rm -r $dataDir/Hexalate/icons
|
||||||
|
rm -r $dataDir/Hexalate/metainfo
|
||||||
|
|
||||||
local APP_SIGNATURE="application/x-vnd.gottcode-hexalate"
|
local APP_SIGNATURE="application/x-vnd.gottcode-hexalate"
|
||||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||||
@@ -66,10 +75,11 @@ INSTALL()
|
|||||||
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
||||||
$portDir/additional-files/hexalate.rdef.in > $sourceDir/hexalate.rdef
|
$portDir/additional-files/hexalate.rdef.in > $sourceDir/hexalate.rdef
|
||||||
|
|
||||||
|
mv $appsDir/hexalate $appsDir/Hexalate
|
||||||
addResourcesToBinaries $sourceDir/hexalate.rdef \
|
addResourcesToBinaries $sourceDir/hexalate.rdef \
|
||||||
$appsDir/Hexalate/Hexalate
|
$appsDir/Hexalate
|
||||||
|
|
||||||
mimeset -f $appsDir/Hexalate/Hexalate
|
mimeset -f $appsDir/Hexalate
|
||||||
|
|
||||||
addAppDeskbarSymlink $appsDir/Hexalate/Hexalate Hexalate
|
addAppDeskbarSymlink $appsDir/Hexalate
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user