From f41276c945618a02eddf1d4386c4b66410eec67a Mon Sep 17 00:00:00 2001 From: Gerasim Troeglazov <3dEyes@gmail.com> Date: Sun, 6 May 2018 00:37:17 +1000 Subject: [PATCH] NotepadQQ: bump version --- ...qq-1.2.0.recipe => notepadqq-1.4.0.recipe} | 6 ++--- .../patches/notepadqq-1.2.0.patchset | 23 ---------------- .../patches/notepadqq-1.4.0.patchset | 27 +++++++++++++++++++ 3 files changed, 30 insertions(+), 26 deletions(-) rename app-editors/notepadqq/{notepadqq-1.2.0.recipe => notepadqq-1.4.0.recipe} (94%) delete mode 100644 app-editors/notepadqq/patches/notepadqq-1.2.0.patchset create mode 100644 app-editors/notepadqq/patches/notepadqq-1.4.0.patchset diff --git a/app-editors/notepadqq/notepadqq-1.2.0.recipe b/app-editors/notepadqq/notepadqq-1.4.0.recipe similarity index 94% rename from app-editors/notepadqq/notepadqq-1.2.0.recipe rename to app-editors/notepadqq/notepadqq-1.4.0.recipe index 12061fb2c..a6dedfa8f 100644 --- a/app-editors/notepadqq/notepadqq-1.2.0.recipe +++ b/app-editors/notepadqq/notepadqq-1.4.0.recipe @@ -3,11 +3,11 @@ DESCRIPTION="Notepadqq is designed from developers, for developers. With its \ more than 100 supported languages, it is the ideal text editor for your daily \ tasks." HOMEPAGE="http://notepadqq.altervista.org/" -COPYRIGHT="2012-2017 Notepadqq Project" +COPYRIGHT="2012-2018 Notepadqq Project" LICENSE="GNU LGPL v3" -REVISION="4" +REVISION="1" SOURCE_URI="https://github.com/notepadqq/notepadqq/archive/v$portVersion.tar.gz" -CHECKSUM_SHA256="423d224724deb5298837327ce7efa0d71dbe73693c783241eeb7bb2327ee97d4" +CHECKSUM_SHA256="f295353224848c06fafcc71c7f6a38780a98890075ab33f0179181ebf21bad08" ADDITIONAL_FILES="notepadqq.rdef.in" ARCHITECTURES="!x86_gcc2 x86_64" diff --git a/app-editors/notepadqq/patches/notepadqq-1.2.0.patchset b/app-editors/notepadqq/patches/notepadqq-1.2.0.patchset deleted file mode 100644 index 36ab7df9e..000000000 --- a/app-editors/notepadqq/patches/notepadqq-1.2.0.patchset +++ /dev/null @@ -1,23 +0,0 @@ -From e2b65b01938db4a78b1374f7e01729bf65e05fbf Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= -Date: Tue, 4 Jul 2017 20:54:53 +0200 -Subject: [PATCH] Haiku got no qtchooser - ---- - src/ui/ui.pro | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/src/ui/ui.pro b/src/ui/ui.pro -index f9e27b34..3d3f4a24 100644 ---- a/src/ui/ui.pro -+++ b/src/ui/ui.pro -@@ -43,7 +43,8 @@ isEmpty(DESTDIR) { - } - - isEmpty(LRELEASE) { -- !macx: LRELEASE = qtchooser -run-tool=lrelease -qt=5 -+ !macx:!haiku: LRELEASE = qtchooser -run-tool=lrelease -qt=5 -+ haiku: LRELEASE = lrelease - macx: LRELEASE = lrelease - } - diff --git a/app-editors/notepadqq/patches/notepadqq-1.4.0.patchset b/app-editors/notepadqq/patches/notepadqq-1.4.0.patchset new file mode 100644 index 000000000..7bf6da308 --- /dev/null +++ b/app-editors/notepadqq/patches/notepadqq-1.4.0.patchset @@ -0,0 +1,27 @@ +From 2cce2c0b4390c278f13564b13f16180f001d25c8 Mon Sep 17 00:00:00 2001 +From: Gerasim Troeglazov <3dEyes@gmail.com> +Date: Wed, 2 May 2018 21:41:35 +1000 +Subject: Disable root check for haiku + + +diff --git a/src/ui/main.cpp b/src/ui/main.cpp +index 7bae071..712b2e5 100644 +--- a/src/ui/main.cpp ++++ b/src/ui/main.cpp +@@ -83,11 +83,13 @@ int main(int argc, char *argv[]) + // Check for "run-and-exit" options like -h or -v + const auto parser = Notepadqq::getCommandLineArgumentsParser(QApplication::arguments()); + ++#ifndef Q_OS_HAIKU + // Check if we're running as root + if( getuid() == 0 && !parser->isSet("allow-root") ) { + qWarning() << QObject::tr("Running Notepadqq as root is not recommended. Use --allow-root if you really want to."); + return EXIT_SUCCESS; + } ++#endif + + if (a.attachToOtherInstance()) { + return EXIT_SUCCESS; +-- +2.16.2 +