Import qdirstat as a replacement for x11/kdirstat (KDE3)

From DESCR:

QDirStat is a graphical application to show where your disk space has gone and
to help you to clean it up.

This is a Qt-only port of the old Qt3/KDE3-based KDirStat.

ok landry@
This commit is contained in:
rsadowski 2017-10-26 12:54:07 +00:00
parent c6ec5e22dd
commit 7703080c8a
9 changed files with 152 additions and 0 deletions

28
x11/qdirstat/Makefile Normal file
View File

@ -0,0 +1,28 @@
# $OpenBSD: Makefile,v 1.1.1.1 2017/10/26 12:54:07 rsadowski Exp $
COMMENT = Qt-based directory statistics
GH_ACCOUNT = shundhammer
GH_PROJECT = qdirstat
GH_TAGNAME = 1.4
CATEGORIES = x11
MAINTAINER = Rafael Sadowski <rsadowski@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += ${COMPILER_LIBCXX} GL Qt5Core Qt5Gui Qt5Widgets c m
WANTLIB += z
MODULES = devel/qmake \
x11/qt5
RUN_DEPENDS += devel/desktop-file-utils \
x11/gtk+3,-guic
post-install:
${INSTALL_PROGRAM} ${WRKBUILD}/src/qdirstat ${PREFIX}/bin/
.include <bsd.port.mk>

2
x11/qdirstat/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (qdirstat-1.4.tar.gz) = f5oKcwTFXr+tHlDHdHunYrBwaPSDBLPTkZvbZe4DeZk=
SIZE (qdirstat-1.4.tar.gz) = 2534241

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-doc_doc_pro,v 1.1.1.1 2017/10/26 12:54:07 rsadowski Exp $
Index: doc/doc.pro
--- doc/doc.pro.orig
+++ doc/doc.pro
@@ -5,7 +5,7 @@ TARGET = $(nothing)
doc.files = *.txt *.md ../*.md ../LICENSE
# Ubuntu / Debian pkg doc path
-doc.path = /usr/share/doc/qdirstat
+doc.path = $$PREFIX/share/doc/qdirstat
exists( /usr/share/doc/packages ) {
# SUSE pkg doc path

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-doc_stats_stats_pro,v 1.1.1.1 2017/10/26 12:54:07 rsadowski Exp $
Index: doc/stats/stats.pro
--- doc/stats/stats.pro.orig
+++ doc/stats/stats.pro
@@ -5,7 +5,7 @@ TARGET = $(nothing)
doc.files = *.txt *.md
# Ubuntu / Debian pkg doc path
-doc.path = /usr/share/doc/qdirstat/stats
+doc.path = $$PREFIX/share/doc/qdirstat/stats
exists( /usr/share/doc/packages ) {
# SUSE pkg doc path

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-scripts_scripts_pro,v 1.1.1.1 2017/10/26 12:54:07 rsadowski Exp $
Index: scripts/scripts.pro
--- scripts/scripts.pro.orig
+++ scripts/scripts.pro
@@ -5,7 +5,7 @@ TARGET = $(nothing)
QMAKE_STRIP = /bin/true # prevent stripping the script(s)
scripts.files = qdirstat-cache-writer
-scripts.path = /usr/bin
+scripts.path = $$PREFIX/bin
INSTALLS += scripts

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-src_Exception_cpp,v 1.1.1.1 2017/10/26 12:54:07 rsadowski Exp $
fix errno(2) include
Index: src/Exception.cpp
--- src/Exception.cpp.orig
+++ src/Exception.cpp
@@ -7,7 +7,7 @@
*/
-#include <sys/errno.h>
+#include <errno.h>
#include "Exception.h"

View File

@ -0,0 +1,26 @@
$OpenBSD: patch-src_src_pro,v 1.1.1.1 2017/10/26 12:54:07 rsadowski Exp $
Index: src/src.pro
--- src/src.pro.orig
+++ src/src.pro
@@ -23,7 +23,7 @@ major_is_less_5 = $$find(QT_MAJOR_VERSION, [234])
TARGET = qdirstat
TARGET.files = qdirstat
-TARGET.path = /usr/bin
+TARGET.path = $$PREFIX/bin
INSTALLS += TARGET desktop icons
SOURCES = main.cpp \
@@ -155,9 +155,9 @@ FORMS = main-window.ui \
RESOURCES = icons.qrc
desktop.files = *.desktop
-desktop.path = /usr/share/applications
+desktop.path = $$PREFIX/share/applications
icons.files = icons/qdirstat.png
-icons.path = /usr/share/icons/hicolor/32x32/apps
+icons.path = $$PREFIX/share/icons/hicolor/32x32/apps
mac:ICON = icons/qdirstat.icns

4
x11/qdirstat/pkg/DESCR Normal file
View File

@ -0,0 +1,4 @@
QDirStat is a graphical application to show where your disk space has gone and
to help you to clean it up.
This is a Qt-only port of the old Qt3/KDE3-based KDirStat.

34
x11/qdirstat/pkg/PLIST Normal file
View File

@ -0,0 +1,34 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2017/10/26 12:54:07 rsadowski Exp $
@pkgpath x11/kdirstat
@conflict kdirstat-*
@bin bin/qdirstat
bin/qdirstat-cache-writer
share/applications/qdirstat.desktop
share/doc/qdirstat/
share/doc/qdirstat/Building.md
share/doc/qdirstat/Contributing.md
share/doc/qdirstat/Debugging-Tips.md
share/doc/qdirstat/DevHistory.md
share/doc/qdirstat/GitHub-Workflow.md
share/doc/qdirstat/Installing.md
share/doc/qdirstat/LICENSE
share/doc/qdirstat/QDirStat-for-Servers.md
share/doc/qdirstat/README.md
share/doc/qdirstat/TODO.md
share/doc/qdirstat/Troubleshooting.md
share/doc/qdirstat/cache-file-format.txt
share/doc/qdirstat/stats/
share/doc/qdirstat/stats/Buckets-Table.md
share/doc/qdirstat/stats/File-Size-Histogram.md
share/doc/qdirstat/stats/Histogram-Options.md
share/doc/qdirstat/stats/Histograms-in-General.md
share/doc/qdirstat/stats/Median-Percentiles.md
share/doc/qdirstat/stats/Overflow-Area.md
share/doc/qdirstat/stats/Percentiles-Table.md
share/doc/qdirstat/stats/README.md
share/doc/qdirstat/stats/Statistics.md
share/icons/hicolor/32x32/apps/qdirstat.png
@exec %D/bin/update-desktop-database
@unexec-delete %D/bin/update-desktop-database
@exec %D/bin/gtk-update-icon-cache -q -t %D/share/icons/hicolor
@unexec-delete %D/bin/gtk-update-icon-cache -q -t %D/share/icons/hicolor