Blame SOURCES/0001-Install-the-man-file-when-using-meson-as-a-buildsyst.patch

dcb102
From b820207aeff98b5ccf21649036259333fd0e0175 Mon Sep 17 00:00:00 2001
dcb102
From: Richard Hughes <richard@hughsie.com>
dcb102
Date: Mon, 17 Feb 2020 09:57:01 +0000
dcb102
Subject: [PATCH] Install the man file when using meson as a buildsystem
dcb102
dcb102
This fixes a regression with the Fedora package.
dcb102
dcb102
Change-Id: I881bd5002a842072ce9dadea033c51a2668f9e7c
dcb102
Signed-off-by: Richard Hughes <richard@hughsie.com>
dcb102
---
dcb102
 meson.build | 9 +++++++++
dcb102
 1 file changed, 9 insertions(+)
dcb102
dcb102
diff --git a/meson.build b/meson.build
dcb102
index 375089c3..df39290b 100644
dcb102
--- a/meson.build
dcb102
+++ b/meson.build
dcb102
@@ -299,6 +299,7 @@ endif
dcb102
 prefix = get_option('prefix')
dcb102
 sbindir = join_paths(prefix, get_option('sbindir'))
dcb102
 libdir = join_paths(prefix, get_option('libdir'))
dcb102
+mandir = join_paths(prefix, get_option('mandir'))
dcb102
 
dcb102
 install_headers([
dcb102
     'libflashrom.h',
dcb102
@@ -372,6 +373,14 @@ pkgg.generate(
dcb102
   description : 'library to interact with flashrom',
dcb102
 )
dcb102
 
dcb102
+configure_file(
dcb102
+  input : 'flashrom.8.tmpl',
dcb102
+  output : 'flashrom.8',
dcb102
+  copy: true,
dcb102
+  install: true,
dcb102
+  install_dir: join_paths(mandir, 'man8'),
dcb102
+)
dcb102
+
dcb102
 flashrom_dep = declare_dependency(
dcb102
   link_with : flashrom,
dcb102
   include_directories : include_directories('.'),
dcb102
-- 
dcb102
2.24.1
dcb102