mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
kig, bump to 25.04.0, still on KF5 (#12370)
This commit is contained in:
@@ -5,11 +5,11 @@ as a drawing tool for mathematical figures. Constructions can be made with point
|
||||
lines, and polygons and all elements can be modified directly by using the mouse. Kig helps \
|
||||
teachers and students to make conjectures and to understand how to prove geometric theorems."
|
||||
HOMEPAGE="https://apps.kde.org/kig/"
|
||||
COPYRIGHT="2010-2024 KDE Organisation"
|
||||
COPYRIGHT="2010-2025 KDE Organisation"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/kig-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="af60bd4d9440dd404ebd2be0d6799a8e571307b16034ca5c790a1c6b0b2d705e"
|
||||
CHECKSUM_SHA256="15315e0333182f3d956136ff7618ef27ec2a596c56adc26d1426a2e98db9f7b3"
|
||||
ADDITIONAL_FILES="kig.rdef.in"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
@@ -17,7 +17,7 @@ SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
kig$secondaryArchSuffix = $portVersion
|
||||
app:Kig$secondaryArchSuffix = $portVersion
|
||||
app:Kig = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
@@ -106,31 +106,33 @@ BUILD_PREREQUIRES="
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
PATCH()
|
||||
{
|
||||
# disable docs generation
|
||||
sed -e '/add_subdirectory( doc )/ s/^#*/#/' -i CMakeLists.txt
|
||||
sed -e '/kdoctools_install(po)/ s/^#*/#/' -i CMakeLists.txt
|
||||
}
|
||||
|
||||
mkdir -p build
|
||||
cd build
|
||||
|
||||
cmake .. \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
BUILD()
|
||||
{
|
||||
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=$appsDir/Kig \
|
||||
-DCMAKE_INSTALL_DATADIR=$dataDir \
|
||||
-DCMAKE_INSTALL_DATAROOTDIR=$dataDir \
|
||||
-DSHARE_INSTALL_PREFIX=$dataDir \
|
||||
-DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt5 \
|
||||
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
|
||||
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
|
||||
-Wno-dev
|
||||
|
||||
make $jobArgs
|
||||
make -C build $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
make -C build install
|
||||
|
||||
# cleanup
|
||||
rm -rf $dataDir/{applications,icons,metainfo}
|
||||
|
||||
mv $appsDir/Kig/bin/kig $appsDir/Kig/Kig
|
||||
rm -rf $appsDir/Kig/bin dataDir/kig/{icons,applications}
|
||||
Reference in New Issue
Block a user