meson: Fix xkbcommon-x11.pc Requires versioning

Old meson expects an array with one dependency per element. Providing a
string containing multiple deps results in only the first dep getting
its whitespace properly applied. As a result, the output was:

    Requires.private: xcb >= 1.10 xcb-xkb>=1.10

And downstream projects failed to find a package named 'xcb-xkb>=1.10'.

Specifying an array of versioned deps results in correct output:

    Requires.private: xcb >= 1.10, xcb-xkb >= 1.10

Fixes #64.

Signed-off-by: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
master
Jan Alexander Steffens (heftig) 2018-07-17 17:21:02 +02:00
parent a3c907d389
commit 83a553a009
1 changed files with 2 additions and 2 deletions

View File

@ -258,8 +258,8 @@ You can disable X11 support with -Denable-x11=false.''')
libraries: libxkbcommon_x11, libraries: libxkbcommon_x11,
version: meson.project_version(), version: meson.project_version(),
description: 'XKB API common to servers and clients - X11 support', description: 'XKB API common to servers and clients - X11 support',
requires: 'xkbcommon', requires: ['xkbcommon'],
requires_private: 'xcb>=1.10 xcb-xkb>=1.10', requires_private: ['xcb>=1.10', 'xcb-xkb>=1.10'],
) )
endif endif