diff options
author | Christophe Giboudeaux <christophe@krop.fr> | 2017-11-29 16:31:42 +0100 |
---|---|---|
committer | Christophe Giboudeaux <christophe@krop.fr> | 2017-11-30 08:42:14 +0100 |
commit | fd60f2b893d0b07f96f0fd715109cbd8d4e66140 (patch) | |
tree | 943e0ff49b4ed2a8b28d3907b3d0ef56ebd427e6 /tests/ECMGeneratePkgConfigFile/metainfo_with_empty_description.yaml | |
parent | 64915e0291cd8ad00fbdf9526977961de8341368 (diff) | |
download | extra-cmake-modules-fd60f2b893d0b07f96f0fd715109cbd8d4e66140.tar.gz extra-cmake-modules-fd60f2b893d0b07f96f0fd715109cbd8d4e66140.tar.bz2 |
Add the description tag to the generated pkgconfig filesv5.41.0-rc1v5.41.0
Summary:
pkgconfig complains when the .pc file doesn't have a description. eg:
$ pkg-config Baloo
Package 'Baloo' has no Description: field
With this change, if the DESCRIPTION parameter is not used,
ECM_GENERATE_PKGCONFIG_FILE will :
- First look if there's a metainfo.yaml file and get the description from there
- If the file doesn't exist, or if the description tag is empty or non-existent,
create a description based on the LIB_NAME value
Test Plan: Tests added & pass
Reviewers: dfaure, apol
Reviewed By: dfaure
Subscribers: #frameworks, #build_system
Tags: #frameworks, #build_system
Differential Revision: https://phabricator.kde.org/D9056
Diffstat (limited to 'tests/ECMGeneratePkgConfigFile/metainfo_with_empty_description.yaml')
-rw-r--r-- | tests/ECMGeneratePkgConfigFile/metainfo_with_empty_description.yaml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/ECMGeneratePkgConfigFile/metainfo_with_empty_description.yaml b/tests/ECMGeneratePkgConfigFile/metainfo_with_empty_description.yaml new file mode 100644 index 00000000..c46465d1 --- /dev/null +++ b/tests/ECMGeneratePkgConfigFile/metainfo_with_empty_description.yaml @@ -0,0 +1,21 @@ +maintainer: mpyne +description: +tier: 1 +type: functional +platforms: + - name: Linux + - name: FreeBSD + - name: Windows + - name: MacOSX + - name: Android +portingAid: false +deprecated: false +release: true +libraries: + - qmake: KCoreAddons + cmake: "KF5::CoreAddons" +cmakename: KF5CoreAddons + +public_lib: true +group: Frameworks +subgroup: Tier 1 |