From fd60f2b893d0b07f96f0fd715109cbd8d4e66140 Mon Sep 17 00:00:00 2001 From: Christophe Giboudeaux Date: Wed, 29 Nov 2017 16:31:42 +0100 Subject: Add the description tag to the generated pkgconfig files 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 --- .../metainfo_without_description.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/ECMGeneratePkgConfigFile/metainfo_without_description.yaml (limited to 'tests/ECMGeneratePkgConfigFile/metainfo_without_description.yaml') diff --git a/tests/ECMGeneratePkgConfigFile/metainfo_without_description.yaml b/tests/ECMGeneratePkgConfigFile/metainfo_without_description.yaml new file mode 100644 index 00000000..b7f094c2 --- /dev/null +++ b/tests/ECMGeneratePkgConfigFile/metainfo_without_description.yaml @@ -0,0 +1,20 @@ +maintainer: mpyne +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 -- cgit v1.2.1