git: 3d9a2a18ec99 - main - sysutils/plasma6-kinfocenter: Add missing runtime dependencies

From: Max Brazhnikov <makc_at_FreeBSD.org>
Date: Thu, 13 Mar 2025 21:59:06 UTC
The branch main has been updated by makc:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3d9a2a18ec99b8e1be31b2021271e47c275eae83

commit 3d9a2a18ec99b8e1be31b2021271e47c275eae83
Author:     Max Brazhnikov <makc@FreeBSD.org>
AuthorDate: 2025-03-13 21:56:49 +0000
Commit:     Max Brazhnikov <makc@FreeBSD.org>
CommitDate: 2025-03-13 21:56:49 +0000

    sysutils/plasma6-kinfocenter: Add missing runtime dependencies
    
    and install FreeBSD logo.
---
 sysutils/plasma6-kinfocenter/Makefile              | 18 ++++++
 .../plasma6-kinfocenter/files/freebsd_logo.svg     | 74 ++++++++++++++++++++++
 .../plasma6-kinfocenter/files/kcm-about-distrorc   |  4 ++
 sysutils/plasma6-kinfocenter/pkg-plist             |  2 +
 4 files changed, 98 insertions(+)

diff --git a/sysutils/plasma6-kinfocenter/Makefile b/sysutils/plasma6-kinfocenter/Makefile
index 6a20f5256111..7e092b56de17 100644
--- a/sysutils/plasma6-kinfocenter/Makefile
+++ b/sysutils/plasma6-kinfocenter/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	kinfocenter
 DISTVERSION=	${KDE_PLASMA_VERSION}
+PORTREVISION=	1
 CATEGORIES=	sysutils kde kde-plasma
 
 MAINTAINER=	kde@FreeBSD.org
@@ -8,8 +9,11 @@ COMMENT=	View information about your computer's hardware
 BUILD_DEPENDS=	${LOCALBASE}/include/vulkan/vulkan.h:graphics/vulkan-headers
 RUN_DEPENDS=	clinfo:devel/clinfo \
 		glxinfo:graphics/mesa-demos \
+		lsblk:sysutils/lsblk \
 		lscpu:sysutils/lscpu \
+		pipewire:multimedia/pipewire \
 		vulkaninfo:graphics/vulkan-tools \
+		wayland-info:graphics/wayland-utils \
 		xdpyinfo:x11/xdpyinfo
 
 USES=		cmake gettext gl kde:6 pkgconfig qt:6 tar:xz
@@ -21,4 +25,18 @@ USE_KDE=	auth colorscheme completion config configwidgets coreaddons \
 		kirigami2:run systemsettings:run
 USE_QT=		base declarative
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH} == i386
+RUN_DEPENDS+=	dmidecode:sysutils/dmidecode
+.endif
+
+# install freebsd-logo and distrorc
+post-install:
+	${MKDIR} ${STAGEDIR}/${DATADIR}/images
+	${INSTALL_DATA} ${FILESDIR}/freebsd_logo.svg ${STAGEDIR}/${DATADIR}/images/
+	${MKDIR} ${STAGEDIR}/${PREFIX}/etc/xdg
+	${INSTALL_DATA} ${FILESDIR}/kcm-about-distrorc ${STAGEDIR}/${PREFIX}/etc/xdg/
+	${REINPLACE_CMD} -i "" -e "s#%%DATADIR%%#${DATADIR}#" ${STAGEDIR}/${PREFIX}/etc/xdg/kcm-about-distrorc
+
 .include <bsd.port.mk>
diff --git a/sysutils/plasma6-kinfocenter/files/freebsd_logo.svg b/sysutils/plasma6-kinfocenter/files/freebsd_logo.svg
new file mode 100644
index 000000000000..ad31dbf09b8c
--- /dev/null
+++ b/sysutils/plasma6-kinfocenter/files/freebsd_logo.svg
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="152.18201"
+   height="149.834"
+   viewBox="0 0 152.18201 149.83399"
+   id="svg3935"
+   version="1.1"
+   inkscape:version="0.91 r13725"
+   sodipodi:docname="freebsd_logo.svg">
+  <defs
+     id="defs3937" />
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="0.98994949"
+     inkscape:cx="-532.00922"
+     inkscape:cy="700.32883"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="false"
+     units="px"
+     inkscape:window-width="3840"
+     inkscape:window-height="2130"
+     inkscape:window-x="3840"
+     inkscape:window-y="0"
+     inkscape:window-maximized="0" />
+  <metadata
+     id="metadata3940">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(0,-902.52825)">
+    <g
+       transform="translate(-728.15805,300.0142)"
+       id="g273">
+      <path
+         inkscape:connector-curvature="0"
+         d="m 878.598,605.07 c 8.066,8.064 -14.297,43.508 -18.077,47.29 -3.78,3.774 -13.383,0.302 -21.448,-7.764 -8.066,-8.063 -11.541,-17.669 -7.761,-21.448 3.781,-3.783 39.22,-26.143 47.286,-18.078 z"
+         id="path275" />
+      <path
+         inkscape:connector-curvature="0"
+         d="m 765.474,613.603 c -12.314,-6.987 -29.839,-14.761 -35.414,-9.187 -5.648,5.647 2.41,23.566 9.47,35.904 6.283,-10.924 15.225,-20.122 25.944,-26.717 z"
+         id="path277" />
+      <path
+         inkscape:connector-curvature="0"
+         d="m 866.295,649.578 c 1.135,3.848 0.928,7.025 -0.908,8.86 -4.299,4.298 -15.901,-0.276 -26.362,-10.233 -0.729,-0.653 -1.454,-1.333 -2.167,-2.046 -3.78,-3.784 -6.725,-7.813 -8.607,-11.522 -3.663,-6.572 -4.58,-12.377 -1.81,-15.146 1.508,-1.508 3.923,-1.919 6.868,-1.389 1.92,-1.214 4.186,-2.568 6.674,-3.953 -10.111,-5.273 -21.603,-8.252 -33.799,-8.252 -40.441,0 -73.228,32.781 -73.228,73.226 0,40.44 32.786,73.225 73.228,73.225 40.442,0 73.229,-32.784 73.229,-73.225 0,-13.06 -3.427,-25.308 -9.416,-35.926 -1.295,2.362 -2.553,4.526 -3.702,6.381 z"
+         id="path279" />
+    </g>
+  </g>
+</svg>
diff --git a/sysutils/plasma6-kinfocenter/files/kcm-about-distrorc b/sysutils/plasma6-kinfocenter/files/kcm-about-distrorc
new file mode 100644
index 000000000000..06bbf52cc586
--- /dev/null
+++ b/sysutils/plasma6-kinfocenter/files/kcm-about-distrorc
@@ -0,0 +1,4 @@
+[General]
+Name=FreeBSD
+LogoPath=%%DATADIR%%/images/freebsd_logo.svg
+Website=https://www.FreeBSD.org
diff --git a/sysutils/plasma6-kinfocenter/pkg-plist b/sysutils/plasma6-kinfocenter/pkg-plist
index 0499c8b22d8d..1318259dbb75 100644
--- a/sysutils/plasma6-kinfocenter/pkg-plist
+++ b/sysutils/plasma6-kinfocenter/pkg-plist
@@ -1,4 +1,5 @@
 bin/kinfocenter
+etc/xdg/kcm-about-distrorc
 lib/libKInfoCenterInternal.so
 lib/libexec/kf6/kauth/kinfocenter-dmidecode-helper
 lib/libexec/kinfocenter-opengl-helper
@@ -71,6 +72,7 @@ share/doc/HTML/uk/kinfocenter/kinfocenter.png
 %%DATADIR%%/categories/networkinfocategory.desktop
 %%DATADIR%%/edid/edid.sh
 %%DATADIR%%/firmware_security/fwupdmgr.sh
+%%DATADIR%%/images/freebsd_logo.svg
 share/locale/af/LC_MESSAGES/kcm_samba.mo
 share/locale/af/LC_MESSAGES/kcmusb.mo
 share/locale/ar/LC_MESSAGES/kcm_about-distro.mo