From 5df28b4a346a67cfb30004b5444e8c5e05a408a3 Mon Sep 17 00:00:00 2001
From: Nathan Du <nathandu@outlook.com>
Date: Sun, 1 Oct 2023 17:35:01 +0800
Subject: [PATCH] sys-apps/systemd-utils: install libudev man pages

Signed-off-by: Nathan Du <nathandu@outlook.com>
---
 sys-apps/systemd-utils/systemd-utils-252.9.ebuild  | 14 ++++++++++++++
 sys-apps/systemd-utils/systemd-utils-253.11.ebuild | 14 ++++++++++++++
 sys-apps/systemd-utils/systemd-utils-253.12.ebuild | 14 ++++++++++++++
 sys-apps/systemd-utils/systemd-utils-253.6.ebuild  | 14 ++++++++++++++
 sys-apps/systemd-utils/systemd-utils-254.3.ebuild  | 14 ++++++++++++++
 sys-apps/systemd-utils/systemd-utils-254.4.ebuild  | 14 ++++++++++++++
 sys-apps/systemd-utils/systemd-utils-254.5.ebuild  | 14 ++++++++++++++
 7 files changed, 98 insertions(+)

diff --git a/sys-apps/systemd-utils/systemd-utils-252.9.ebuild b/sys-apps/systemd-utils/systemd-utils-252.9.ebuild
index 88a1650b54c0..3542c101a32e 100644
--- a/sys-apps/systemd-utils/systemd-utils-252.9.ebuild
+++ b/sys-apps/systemd-utils/systemd-utils-252.9.ebuild
@@ -341,6 +341,18 @@ multilib_src_compile() {
 		targets+=(
 			udev:shared_library
 			src/libudev/libudev.pc
+			man/libudev.3
+			man/udev_device_get_syspath.3
+			man/udev_device_has_tag.3
+			man/udev_device_new_from_syspath.3
+			man/udev_enumerate_add_match_subsystem.3
+			man/udev_enumerate_new.3
+			man/udev_enumerate_scan_devices.3
+			man/udev_list_entry.3
+			man/udev_monitor_filter_update.3
+			man/udev_monitor_new_from_netlink.3
+			man/udev_monitor_receive_device.3
+			man/udev_new.3
 		)
 		if use test; then
 			targets+=(
@@ -450,6 +462,8 @@ multilib_src_install() {
 		gen_usr_ldscript -a udev
 		insinto "/usr/$(get_libdir)/pkgconfig"
 		doins src/libudev/libudev.pc
+		doman man/libudev.3
+		doman man/udev_*.3
 	fi
 }
 
diff --git a/sys-apps/systemd-utils/systemd-utils-253.11.ebuild b/sys-apps/systemd-utils/systemd-utils-253.11.ebuild
index b0af755e370d..de6425e32cf7 100644
--- a/sys-apps/systemd-utils/systemd-utils-253.11.ebuild
+++ b/sys-apps/systemd-utils/systemd-utils-253.11.ebuild
@@ -347,6 +347,18 @@ multilib_src_compile() {
 		targets+=(
 			udev:shared_library
 			src/libudev/libudev.pc
+			man/libudev.3
+			man/udev_device_get_syspath.3
+			man/udev_device_has_tag.3
+			man/udev_device_new_from_syspath.3
+			man/udev_enumerate_add_match_subsystem.3
+			man/udev_enumerate_new.3
+			man/udev_enumerate_scan_devices.3
+			man/udev_list_entry.3
+			man/udev_monitor_filter_update.3
+			man/udev_monitor_new_from_netlink.3
+			man/udev_monitor_receive_device.3
+			man/udev_new.3
 		)
 		if use test; then
 			targets+=(
@@ -458,6 +470,8 @@ multilib_src_install() {
 		gen_usr_ldscript -a udev
 		insinto "/usr/$(get_libdir)/pkgconfig"
 		doins src/libudev/libudev.pc
+		doman man/libudev.3
+		doman man/udev_*.3
 	fi
 }
 
diff --git a/sys-apps/systemd-utils/systemd-utils-253.12.ebuild b/sys-apps/systemd-utils/systemd-utils-253.12.ebuild
index c06d1b1a0d0c..16e6b7cebd76 100644
--- a/sys-apps/systemd-utils/systemd-utils-253.12.ebuild
+++ b/sys-apps/systemd-utils/systemd-utils-253.12.ebuild
@@ -347,6 +347,18 @@ multilib_src_compile() {
 		targets+=(
 			udev:shared_library
 			src/libudev/libudev.pc
+			man/libudev.3
+			man/udev_device_get_syspath.3
+			man/udev_device_has_tag.3
+			man/udev_device_new_from_syspath.3
+			man/udev_enumerate_add_match_subsystem.3
+			man/udev_enumerate_new.3
+			man/udev_enumerate_scan_devices.3
+			man/udev_list_entry.3
+			man/udev_monitor_filter_update.3
+			man/udev_monitor_new_from_netlink.3
+			man/udev_monitor_receive_device.3
+			man/udev_new.3
 		)
 		if use test; then
 			targets+=(
@@ -458,6 +470,8 @@ multilib_src_install() {
 		gen_usr_ldscript -a udev
 		insinto "/usr/$(get_libdir)/pkgconfig"
 		doins src/libudev/libudev.pc
+		doman man/libudev.3
+		doman man/udev_*.3
 	fi
 }
 
diff --git a/sys-apps/systemd-utils/systemd-utils-253.6.ebuild b/sys-apps/systemd-utils/systemd-utils-253.6.ebuild
index b0af755e370d..de6425e32cf7 100644
--- a/sys-apps/systemd-utils/systemd-utils-253.6.ebuild
+++ b/sys-apps/systemd-utils/systemd-utils-253.6.ebuild
@@ -347,6 +347,18 @@ multilib_src_compile() {
 		targets+=(
 			udev:shared_library
 			src/libudev/libudev.pc
+			man/libudev.3
+			man/udev_device_get_syspath.3
+			man/udev_device_has_tag.3
+			man/udev_device_new_from_syspath.3
+			man/udev_enumerate_add_match_subsystem.3
+			man/udev_enumerate_new.3
+			man/udev_enumerate_scan_devices.3
+			man/udev_list_entry.3
+			man/udev_monitor_filter_update.3
+			man/udev_monitor_new_from_netlink.3
+			man/udev_monitor_receive_device.3
+			man/udev_new.3
 		)
 		if use test; then
 			targets+=(
@@ -458,6 +470,8 @@ multilib_src_install() {
 		gen_usr_ldscript -a udev
 		insinto "/usr/$(get_libdir)/pkgconfig"
 		doins src/libudev/libudev.pc
+		doman man/libudev.3
+		doman man/udev_*.3
 	fi
 }
 
diff --git a/sys-apps/systemd-utils/systemd-utils-254.3.ebuild b/sys-apps/systemd-utils/systemd-utils-254.3.ebuild
index 849af65cc76c..78bd97986039 100644
--- a/sys-apps/systemd-utils/systemd-utils-254.3.ebuild
+++ b/sys-apps/systemd-utils/systemd-utils-254.3.ebuild
@@ -352,6 +352,18 @@ multilib_src_compile() {
 		targets+=(
 			udev:shared_library
 			src/libudev/libudev.pc
+			man/libudev.3
+			man/udev_device_get_syspath.3
+			man/udev_device_has_tag.3
+			man/udev_device_new_from_syspath.3
+			man/udev_enumerate_add_match_subsystem.3
+			man/udev_enumerate_new.3
+			man/udev_enumerate_scan_devices.3
+			man/udev_list_entry.3
+			man/udev_monitor_filter_update.3
+			man/udev_monitor_new_from_netlink.3
+			man/udev_monitor_receive_device.3
+			man/udev_new.3
 		)
 		if use test; then
 			targets+=(
@@ -460,6 +472,8 @@ multilib_src_install() {
 		gen_usr_ldscript -a udev
 		insinto "/usr/$(get_libdir)/pkgconfig"
 		doins src/libudev/libudev.pc
+		doman man/libudev.3
+		doman man/udev_*.3
 	fi
 }
 
diff --git a/sys-apps/systemd-utils/systemd-utils-254.4.ebuild b/sys-apps/systemd-utils/systemd-utils-254.4.ebuild
index 849af65cc76c..78bd97986039 100644
--- a/sys-apps/systemd-utils/systemd-utils-254.4.ebuild
+++ b/sys-apps/systemd-utils/systemd-utils-254.4.ebuild
@@ -352,6 +352,18 @@ multilib_src_compile() {
 		targets+=(
 			udev:shared_library
 			src/libudev/libudev.pc
+			man/libudev.3
+			man/udev_device_get_syspath.3
+			man/udev_device_has_tag.3
+			man/udev_device_new_from_syspath.3
+			man/udev_enumerate_add_match_subsystem.3
+			man/udev_enumerate_new.3
+			man/udev_enumerate_scan_devices.3
+			man/udev_list_entry.3
+			man/udev_monitor_filter_update.3
+			man/udev_monitor_new_from_netlink.3
+			man/udev_monitor_receive_device.3
+			man/udev_new.3
 		)
 		if use test; then
 			targets+=(
@@ -460,6 +472,8 @@ multilib_src_install() {
 		gen_usr_ldscript -a udev
 		insinto "/usr/$(get_libdir)/pkgconfig"
 		doins src/libudev/libudev.pc
+		doman man/libudev.3
+		doman man/udev_*.3
 	fi
 }
 
diff --git a/sys-apps/systemd-utils/systemd-utils-254.5.ebuild b/sys-apps/systemd-utils/systemd-utils-254.5.ebuild
index 849af65cc76c..78bd97986039 100644
--- a/sys-apps/systemd-utils/systemd-utils-254.5.ebuild
+++ b/sys-apps/systemd-utils/systemd-utils-254.5.ebuild
@@ -352,6 +352,18 @@ multilib_src_compile() {
 		targets+=(
 			udev:shared_library
 			src/libudev/libudev.pc
+			man/libudev.3
+			man/udev_device_get_syspath.3
+			man/udev_device_has_tag.3
+			man/udev_device_new_from_syspath.3
+			man/udev_enumerate_add_match_subsystem.3
+			man/udev_enumerate_new.3
+			man/udev_enumerate_scan_devices.3
+			man/udev_list_entry.3
+			man/udev_monitor_filter_update.3
+			man/udev_monitor_new_from_netlink.3
+			man/udev_monitor_receive_device.3
+			man/udev_new.3
 		)
 		if use test; then
 			targets+=(
@@ -460,6 +472,8 @@ multilib_src_install() {
 		gen_usr_ldscript -a udev
 		insinto "/usr/$(get_libdir)/pkgconfig"
 		doins src/libudev/libudev.pc
+		doman man/libudev.3
+		doman man/udev_*.3
 	fi
 }
 
-- 
2.41.0