[gnome-software] build: Add subproject support for malcontent



commit d999264b502837ee93c038050c01386fc6e3cea7
Author: Philip Withnall <withnall endlessm com>
Date:   Tue Jul 7 11:54:55 2020 +0100

    build: Add subproject support for malcontent
    
    While I’m doing subproject support, I might as well add malcontent,
    since it’s not yet widely packaged in distributions either.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>

 meson.build                 | 2 +-
 subprojects/malcontent.wrap | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 72e935e6..57488bc2 100644
--- a/meson.build
+++ b/meson.build
@@ -179,7 +179,7 @@ if get_option('flatpak')
 endif
 
 if get_option('malcontent')
-  malcontent = dependency('malcontent-0', version: '>= 0.3.0')
+  malcontent = dependency('malcontent-0', version: '>= 0.3.0', fallback: ['malcontent', 
'libmalcontent_dep'],)
 endif
 
 if get_option('rpm_ostree')
diff --git a/subprojects/malcontent.wrap b/subprojects/malcontent.wrap
new file mode 100644
index 00000000..bb5b3c7d
--- /dev/null
+++ b/subprojects/malcontent.wrap
@@ -0,0 +1,4 @@
+[wrap-git]
+directory=malcontent
+url=https://gitlab.freedesktop.org/pwithnall/malcontent.git
+revision=7d9c32aa9aa2dc185680bcda8f69f4687adf95f6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]