diff --git a/sci-electronics/librepcb/librepcb-0.1.4.recipe b/sci-electronics/librepcb/librepcb-0.1.5.recipe similarity index 96% rename from sci-electronics/librepcb/librepcb-0.1.4.recipe rename to sci-electronics/librepcb/librepcb-0.1.5.recipe index 4ecb2abdd..757b65260 100644 --- a/sci-electronics/librepcb/librepcb-0.1.4.recipe +++ b/sci-electronics/librepcb/librepcb-0.1.5.recipe @@ -13,7 +13,7 @@ COPYRIGHT="Urban Bruhin" LICENSE="GNU GPL v3" REVISION="1" SOURCE_URI="https://download.librepcb.org/releases/$portVersion/librepcb-$portVersion-source.zip" -CHECKSUM_SHA256="08299e8077f9ef4fb6df3fd5b22053b9ab6361411470809e2a1ee0f1ad9aadac" +CHECKSUM_SHA256="f956dfa5b9ad1faffcab7f5dd03f158c2b97a7c82cfc9a09dc4066cbcf0db76a" SOURCE_DIR="librepcb-$portVersion" PATCHES="librepcb-$portVersion.patchset" ADDITIONAL_FILES="librepcb.rdef.in" diff --git a/sci-electronics/librepcb/patches/librepcb-0.1.4.patchset b/sci-electronics/librepcb/patches/librepcb-0.1.5.patchset similarity index 57% rename from sci-electronics/librepcb/patches/librepcb-0.1.4.patchset rename to sci-electronics/librepcb/patches/librepcb-0.1.5.patchset index 6b5490d53..c3ff7966e 100644 --- a/sci-electronics/librepcb/patches/librepcb-0.1.4.patchset +++ b/sci-electronics/librepcb/patches/librepcb-0.1.5.patchset @@ -1,14 +1,14 @@ -From 7637cb84831c698cff3973c83db51fd5b7541cfa Mon Sep 17 00:00:00 2001 +From 6d53b510ac5232de369e355e0a4098be55dd3b3b Mon Sep 17 00:00:00 2001 From: Gerasim Troeglazov <3dEyes@gmail.com> -Date: Tue, 21 Apr 2020 23:00:01 +1000 +Date: Fri, 11 Dec 2020 21:11:56 +1000 Subject: Add Haiku support diff --git a/libs/librepcb/common/systeminfo.cpp b/libs/librepcb/common/systeminfo.cpp -index 444352f..69504d9 100644 +index 3436f2f..48e49e1 100644 --- a/libs/librepcb/common/systeminfo.cpp +++ b/libs/librepcb/common/systeminfo.cpp -@@ -56,6 +56,10 @@ +@@ -59,6 +59,10 @@ #error "Unknown operating system!" #endif @@ -19,19 +19,19 @@ index 444352f..69504d9 100644 /******************************************************************************* * Namespace ******************************************************************************/ -@@ -284,6 +288,12 @@ QString SystemInfo::getProcessNameByPid(qint64 pid) { - if (i >= 0) processName.remove(0, i + 1); - i = processName.lastIndexOf(QLatin1Char('.')); - if (i >= 0) processName.truncate(i); +@@ -295,6 +299,12 @@ QString SystemInfo::getProcessNameByPid(qint64 pid) { + return QString(); // process not running + } + processName = QString::fromLocal8Bit(psinfo.pr_fname); +#elif defined(Q_OS_HAIKU) -+team_info info; -+if (get_team_info(pid, &info) == B_OK) { -+ processName = QString::fromLocal8Bit(info.args, 64); -+} else ++ team_info info; ++ if (get_team_info(pid, &info) == B_OK) { ++ processName = QString::fromLocal8Bit(info.args, 64); ++ } else + return QString(); #else #error "Unknown operating system!" #endif -- -2.26.0 +2.28.0