Files
haikuports/kde-frameworks/kservice/kservice-5.45.0.recipe
Sergei Reznikov a26720a2a3 kde-frameworks: bump to 5.45.0
* for future reference batch git rename was done using this command:
find . -maxdepth 3 -type f -name '*5.39*.recipe' | grep -v 1 | a
while read fname; do git mv $fname ${fname//5.39/5.45}; done

(don't forget to repeat for .patchset files)

* batch CHECKSUM_SHA256 update was done using this script:

cd haikuports
tar --exclude download --exclude work* -zcvf kde-frameworks-`date '+%Y-%m-%d-%H-%M-%S'`.tgz kde-frameworks/

find /home/haikuports/kde-frameworks -maxdepth 2 -name "*5.39*.recipe" | while read FNAME; do \

portVersion=5.45.0 ; source $FNAME ; echo $SOURCE_URI $FNAME ;
echo `curl -s -L $SOURCE_URI | sha256sum | head -c 64`
sed -i "s/$CHECKSUM_SHA256/`curl -s -L $SOURCE_URI | sha256sum | head -c 64`/" $FNAME ; done

* the recipes were built in this order

hp extra_cmake_modules
hp phonon
hp karchive
hp kcodecs
hp kconfig
hp kcoreaddons
hp kdbusaddons
hp kguiaddons
hp ki18n
hp kitemmodels
hp kitemviews
hp kwidgetsaddons
hp kwindowsystem
hp solid
hp sonnet
hp threadweaver
hp kauth
hp kcompletion
hp kcrash
hp kdoctools
hp kunitconversion
hp kconfigwidgets
hp kservice
hp kglobalaccel
hp kpackage
hp kemoticons
hp kiconthemes
hp kjobwidgets
hp knotifications
hp ktextwidgets
hp kxmlgui
hp kbookmarks
hp kwallet
hp kio
hp kdeclarative
hp kcmutils
hp kinit
hp knotifyconfig
hp kparts
hp kactivities
hp kded
hp kdesignerplugin
hp breeze_icons
hp kdelibs4support
hp kross
hp kdiagram
2018-04-17 18:28:59 +03:00

100 lines
2.5 KiB
Bash

SUMMARY="Plugin framework for desktop services"
DESCRIPTION="KService provides a plugin framework for handling desktop \
services. Services can be applications or libraries. They can be bound to \
MIME types or handled by application specific code."
HOMEPAGE="https://github.com/KDE/kservice/"
COPYRIGHT="2010-2018 KDE Organisation"
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="https://github.com/KDE/kservice/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="1a09110a48102fad895e18971079dca22fac2716f39ca6d01edb6355c556b355"
ARCHITECTURES="!x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
kservice$secondaryArchSuffix = $portVersion
cmd:kbuildsycoca5$secondaryArchSuffix = $portVersion
lib:libKF5Service$secondaryArchSuffix = $portVersion compat >= 5
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libKF5ConfigCore$secondaryArchSuffix
lib:libKF5CoreAddons$secondaryArchSuffix
lib:libKF5Crash$secondaryArchSuffix
lib:libKF5DBusAddons$secondaryArchSuffix
lib:libKF5I18n$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5DBus$secondaryArchSuffix
lib:libQt5Xml$secondaryArchSuffix
"
PROVIDES_devel="
kservice${secondaryArchSuffix}_devel = $portVersion
devel:libKF5Service$secondaryArchSuffix = $portVersion compat >= 5
"
REQUIRES_devel="
kservice$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
extra_cmake_modules >= 5.45
haiku${secondaryArchSuffix}_devel
devel:libKF5ConfigCore$secondaryArchSuffix
devel:libKF5CoreAddons$secondaryArchSuffix
devel:libKF5Crash$secondaryArchSuffix
devel:libKF5DBusAddons$secondaryArchSuffix
devel:libKF5I18n$secondaryArchSuffix
devel:libQt5Core$secondaryArchSuffix >= 5.7
devel:libQt5DBus$secondaryArchSuffix >= 5.7
devel:libQt5Xml$secondaryArchSuffix >= 5.7
"
BUILD_PREREQUIRES="
cmd:bison
cmd:cmake
cmd:flex
cmd:g++$secondaryArchSuffix
cmd:make
cmd:python2
"
GLOBAL_WRITABLE_FILES="
settings/xdg/menus/applications.menu keep-old
settings/xdg/kservice.categories keep-old
"
BUILD()
{
mkdir -p build
cd build
# TODO: /bin/kbuildsycoca5 - Couldn't create "/boot/system/cache"
# TODO: ECM_MKSPECS_INSTALL_DIR is not picked up unless defined
cmake .. $cmakeDirArgs \
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
-DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs
make $jobArgs
}
INSTALL()
{
cd build
make install
# TODO: doesn't work for some reason
# rm -rf $settingsDir
prepareInstalledDevelLibs \
libKF5Service
packageEntries devel \
$libDir/cmake \
$dataDir/Qt5/mkspecs \
$developDir
}
TEST()
{
cd build
make test
}