kservice: propagate service providers
This commit is contained in:
parent
e2383b1f08
commit
03ed16a1c4
|
@ -4,9 +4,11 @@
|
||||||
|
|
||||||
kdeFramework {
|
kdeFramework {
|
||||||
name = "kservice";
|
name = "kservice";
|
||||||
|
setupHook = ./setup-hook.sh;
|
||||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||||
buildInputs = [ kcoreaddons kcrash kdbusaddons ];
|
buildInputs = [ kcrash kdbusaddons ];
|
||||||
propagatedBuildInputs = [ kconfig ki18n kwindowsystem ];
|
propagatedBuildInputs = [ kconfig kcoreaddons ki18n kwindowsystem ];
|
||||||
|
propagatedUserEnvPkgs = [ kcoreaddons ];
|
||||||
patches = [
|
patches = [
|
||||||
./0001-qdiriterator-follow-symlinks.patch
|
./0001-qdiriterator-follow-symlinks.patch
|
||||||
./0002-no-canonicalize-path.patch
|
./0002-no-canonicalize-path.patch
|
||||||
|
|
|
@ -0,0 +1,43 @@
|
||||||
|
addServicePkg() {
|
||||||
|
local propagated
|
||||||
|
for dir in "share/kservices5" "share/kservicetypes5"; do
|
||||||
|
if [[ -d "$1/$dir" ]]; then
|
||||||
|
propagated=
|
||||||
|
for pkg in $propagatedBuildInputs; do
|
||||||
|
if [[ "z$pkg" == "z$1" ]]; then
|
||||||
|
propagated=1
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if [[ -z $propagated ]]; then
|
||||||
|
propagatedBuildInputs="$propagatedBuildInputs $1"
|
||||||
|
fi
|
||||||
|
|
||||||
|
propagated=
|
||||||
|
for pkg in $propagatedUserEnvPkgs; do
|
||||||
|
if [[ "z$pkg" == "z$1" ]]; then
|
||||||
|
propagated=1
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if [[ -z $propagated ]]; then
|
||||||
|
propagatedUserEnvPkgs="$propagatedUserEnvPkgs $1"
|
||||||
|
fi
|
||||||
|
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
envHooks+=(addServicePkg)
|
||||||
|
|
||||||
|
local propagated
|
||||||
|
for pkg in $propagatedBuildInputs; do
|
||||||
|
if [[ "z$pkg" == "z@out@" ]]; then
|
||||||
|
propagated=1
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if [[ -z $propagated ]]; then
|
||||||
|
propagatedBuildInputs="$propagatedBuildInputs @out@"
|
||||||
|
fi
|
Loading…
Reference in New Issue