mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
qdirstat: new recipe (#1196)
This commit is contained in:
committed by
Jérôme Duval
parent
089b52fbf8
commit
6b8ac3d6cc
48
sys-apps/qdirstat/patches/qdirstat-1.2.patchset
Normal file
48
sys-apps/qdirstat/patches/qdirstat-1.2.patchset
Normal file
@@ -0,0 +1,48 @@
|
||||
From 65eade57f3da656b5a8da8af97fdd66624b22683 Mon Sep 17 00:00:00 2001
|
||||
From: Calvin Hill <calvin@hakobaito.co.uk>
|
||||
Date: Tue, 28 Feb 2017 11:12:09 +0000
|
||||
Subject: [PATCH] header fixes for haiku
|
||||
|
||||
---
|
||||
src/DirReadJob.cpp | 5 ++++-
|
||||
src/Exception.cpp | 6 +++++-
|
||||
2 files changed, 9 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/DirReadJob.cpp b/src/DirReadJob.cpp
|
||||
index 0ee743a..665549e 100644
|
||||
--- a/src/DirReadJob.cpp
|
||||
+++ b/src/DirReadJob.cpp
|
||||
@@ -11,8 +11,11 @@
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
+#if defined(__HAIKU__)
|
||||
+#include <errno.h>
|
||||
+#else
|
||||
#include <sys/errno.h>
|
||||
-
|
||||
+#endif
|
||||
#include <QMutableListIterator>
|
||||
|
||||
#include "DirTree.h"
|
||||
diff --git a/src/Exception.cpp b/src/Exception.cpp
|
||||
index 26396f8..938edd0 100644
|
||||
--- a/src/Exception.cpp
|
||||
+++ b/src/Exception.cpp
|
||||
@@ -6,8 +6,12 @@
|
||||
* Author: Stefan Hundhammer <Stefan.Hundhammer@gmx.de>
|
||||
*/
|
||||
|
||||
-
|
||||
+#if defined(__HAIKU__)
|
||||
+#include <errno.h>
|
||||
+#else
|
||||
#include <sys/errno.h>
|
||||
+#endif
|
||||
+
|
||||
#include <string.h> // strerror()
|
||||
|
||||
#include "Exception.h"
|
||||
--
|
||||
2.2.2
|
||||
|
||||
56
sys-apps/qdirstat/qdirstat-1.2.recipe
Normal file
56
sys-apps/qdirstat/qdirstat-1.2.recipe
Normal file
@@ -0,0 +1,56 @@
|
||||
SUMMARY="A cross-platform graphical disk usage utility"
|
||||
DESCRIPTION="QDirStat is a graphical application to show \
|
||||
where your disk space has gone and to help you clean it up. \
|
||||
QDirStat is the Qt-only port of the old Qt3/KDE3-based KDirStat now \
|
||||
based on the latest Qt5. It runs on every X11-based desktop on \
|
||||
Linux, BSD, and other Unix-like systems. \
|
||||
QDirStat has a number of new features compared to KDirStat: \
|
||||
* Multi-selection in both the tree and the treemap.
|
||||
* Unlimited number of user-defined cleanup actions.
|
||||
* Properly show errors of cleanup actions.
|
||||
* File categories and their treemap color are now configurable.
|
||||
* Exclude rules for directories are easily configurable.
|
||||
* Cross-Platform; independent on KDE or any other specific toolkit.
|
||||
"
|
||||
HOMEPAGE="https://github.com/shundhammer/qdirstat"
|
||||
COPYRIGHT="2015, 2017 Stefan Hundhammer"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/shundhammer/qdirstat/archive/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="d79734915768ae858c784142c7a07b7599178329b40c73894bf575decaf1a911"
|
||||
PATCHES="qdirstat-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
qdirstat$secondaryArchSuffix = $portVersion
|
||||
app:QDirStat$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
qt5$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
qt5${secondaryArchSuffix}_devel
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:qmake$secondaryArchSuffix
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
BUILD()
|
||||
{
|
||||
qmake .
|
||||
make $jobArgs
|
||||
}
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $appsDir
|
||||
cp src/qdirstat $appsDir/QDirStat
|
||||
addAppDeskbarSymlink $appsDir/QDirStat
|
||||
}
|
||||
Reference in New Issue
Block a user