mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
kpmcore: add recipe for version 3.3.0
This commit is contained in:
90
sys-libs/kpmcore/kpmcore-3.3.0~git.recipe
Normal file
90
sys-libs/kpmcore/kpmcore-3.3.0~git.recipe
Normal file
@@ -0,0 +1,90 @@
|
||||
SUMMARY="Library for managing partitions"
|
||||
DESCRIPTION="https://www.kde.org/applications/system/kdepartitionmanager."
|
||||
HOMEPAGE="https://github.com/KDE/kpmcore/"
|
||||
COPYRIGHT="2010-2018 KDE Organisation"
|
||||
LICENSE="GNU LGPL v2"
|
||||
REVISION="1"
|
||||
COMMIT="9e6cf4063a29dd13fafed939e2ee4ae3061a37d6"
|
||||
SOURCE_URI="https://github.com/KDE/kpmcore/archive/$COMMIT.zip"
|
||||
SOURCE_DIR="kpmcore-$COMMIT"
|
||||
CHECKSUM_SHA256="0b641ca970c6f109fdf40d3693fb7eddeb8cb1f6e0e807310ce9f1d41dbe87cd"
|
||||
PATCHES="kpmcore-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
kpmcore$secondaryArchSuffix = $portVersion
|
||||
lib:libkpmcore$secondaryArchSuffix = $portVersion compat >= 9
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libKF5Auth$secondaryArchSuffix
|
||||
lib:libKF5CoreAddons$secondaryArchSuffix
|
||||
lib:libKF5I18n$secondaryArchSuffix
|
||||
lib:libKF5WidgetsAddons$secondaryArchSuffix
|
||||
lib:libqca$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix >= 5.7
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
kpmcore${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libkpmcore$secondaryArchSuffix = $portVersion compat >= 9
|
||||
"
|
||||
REQUIRES_devel="
|
||||
kpmcore$secondaryArchSuffix == $portVersion
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
extra_cmake_modules >= 5.45
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libKF5Auth$secondaryArchSuffix
|
||||
devel:libKF5CoreAddons$secondaryArchSuffix
|
||||
devel:libKF5I18n$secondaryArchSuffix
|
||||
devel:libKF5WidgetsAddons$secondaryArchSuffix
|
||||
devel:libqca$secondaryArchSuffix
|
||||
devel:libQt5Core$secondaryArchSuffix >= 5.7
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
GLOBAL_WRITABLE_FILES="
|
||||
settings/dbus-1/system.d/org.kde.kpmcore.externalcommand.conf keep-old
|
||||
settings/dbus-1/system.d/org.kde.kpmcore.helperinterface.conf keep-old
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build
|
||||
cd build
|
||||
|
||||
cmake .. $cmakeDirArgs \
|
||||
-DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt5 \
|
||||
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
|
||||
-DINCLUDE_INSTALL_DIR=$includeDir \
|
||||
-DKAUTH_HELPER_INSTALL_DIR:PATH=$addOnsDir/Qt5/kauth/helper
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
|
||||
prepareInstalledDevelLibs \
|
||||
libkpmcore
|
||||
|
||||
packageEntries devel \
|
||||
$libDir/cmake \
|
||||
$developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd build
|
||||
make test
|
||||
}
|
||||
Reference in New Issue
Block a user