git: 8311edc1814f - main - deskutils/qmediamanager: GUI tool for managing removable media

From: Jason W. Bacon <jwb_at_FreeBSD.org>
Date: Sat, 10 Jun 2023 12:08:54 UTC
The branch main has been updated by jwb:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8311edc1814f39d24f3aaa0ef912243b620e8170

commit 8311edc1814f39d24f3aaa0ef912243b620e8170
Author:     Jason W. Bacon <jwb@FreeBSD.org>
AuthorDate: 2023-06-10 12:08:28 +0000
Commit:     Jason W. Bacon <jwb@FreeBSD.org>
CommitDate: 2023-06-10 12:08:28 +0000

    deskutils/qmediamanager: GUI tool for managing removable media
    
    QMediaManager is a GUI application for managing removable media.  It is
    meant to be launched by an automount service such as sysutils/automount
    to provide the user options when removable media are inserted.
---
 deskutils/Makefile                  |  1 +
 deskutils/qmediamanager/Makefile    | 33 +++++++++++++++++++++++++++++++++
 deskutils/qmediamanager/distinfo    |  3 +++
 deskutils/qmediamanager/pkg-descr   |  3 +++
 deskutils/qmediamanager/pkg-message | 10 ++++++++++
 5 files changed, 50 insertions(+)

diff --git a/deskutils/Makefile b/deskutils/Makefile
index fd1689e3fddc..2e399841ae67 100644
--- a/deskutils/Makefile
+++ b/deskutils/Makefile
@@ -228,6 +228,7 @@
     SUBDIR += py-vdirsyncer
     SUBDIR += py-vobject
     SUBDIR += qlipper
+    SUBDIR += qmediamanager
     SUBDIR += qownnotes
     SUBDIR += qtfeedback
     SUBDIR += recoll
diff --git a/deskutils/qmediamanager/Makefile b/deskutils/qmediamanager/Makefile
new file mode 100644
index 000000000000..feff2b6fdeb0
--- /dev/null
+++ b/deskutils/qmediamanager/Makefile
@@ -0,0 +1,33 @@
+PORTNAME=	qmediamanager
+DISTVERSION=	0.1.0
+CATEGORIES=	deskutils
+
+MAINTAINER=	jwb@FreeBSD.org
+COMMENT=	GUI tool for managing removable media
+WWW=		https://github.com/outpaddling/qmediamanager
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+LIB_DEPENDS=	libxtend.so:devel/libxtend
+RUN_DEPENDS=	npmount>0:sysutils/npmount \
+		automount>0:sysutils/automount \
+		auto-admin>=0.7.16:sysutils/auto-admin \
+		rxvt-unicode>0:x11/rxvt-unicode
+
+USES=		gl qmake qt:6
+USE_QT=		base tools:build
+USE_GL=		gl
+USE_GITHUB=	yes
+
+GH_ACCOUNT=	outpaddling
+
+WITH_DEBUG=	yes
+
+PLIST_FILES=	bin/qmediamanager man/man1/qmediamanager.1.gz
+
+do-install:
+	${INSTALL} -c ${WRKSRC}/qmediamanager ${STAGEDIR}${PREFIX}/bin
+	${INSTALL} -c ${WRKSRC}/Man/qmediamanager.1 ${STAGEDIR}${MANPREFIX}/man/man1
+
+.include <bsd.port.mk>
diff --git a/deskutils/qmediamanager/distinfo b/deskutils/qmediamanager/distinfo
new file mode 100644
index 000000000000..c59909813b15
--- /dev/null
+++ b/deskutils/qmediamanager/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1686347756
+SHA256 (outpaddling-qmediamanager-0.1.0_GH0.tar.gz) = dcb64c09d74864efed82836755fa324e350773ca258916fc072f771f984428b7
+SIZE (outpaddling-qmediamanager-0.1.0_GH0.tar.gz) = 6590
diff --git a/deskutils/qmediamanager/pkg-descr b/deskutils/qmediamanager/pkg-descr
new file mode 100644
index 000000000000..bb428b325930
--- /dev/null
+++ b/deskutils/qmediamanager/pkg-descr
@@ -0,0 +1,3 @@
+QMediaManager is a GUI application for managing removable media.  It is
+meant to be launched by an automount service such as sysutils/automount
+to provide the user options when removable media are inserted.
diff --git a/deskutils/qmediamanager/pkg-message b/deskutils/qmediamanager/pkg-message
new file mode 100644
index 000000000000..97e6633b1f21
--- /dev/null
+++ b/deskutils/qmediamanager/pkg-message
@@ -0,0 +1,10 @@
+[
+{ type: install
+  message: <<EOM
+
+Add the following to ${PREFIX}/etc/automount.conf:
+
+FM=${PREFIX}/bin/qmediamanager
+EOM
+}
+]