mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
Kate: bump version
This commit is contained in:
@@ -61,8 +61,7 @@ COPYRIGHT="2010-2021 KDE Organisation"
|
||||
LICENSE="GNU LGPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/kate-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="81bc2d8afe1958186feec8b1b275da5d6eb52bd8b4fa154896d19830d628d4fd"
|
||||
PATCHES="kate-$portVersion.patchset"
|
||||
CHECKSUM_SHA256="d68898759dd2538051124681e5928ef5fb163ca61b6cd8f59ee056cc068ea6b2"
|
||||
ADDITIONAL_FILES="kate.rdef.in"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
@@ -123,7 +122,7 @@ REQUIRES="
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
extra_cmake_modules$secondaryArchSuffix >= 5.77
|
||||
extra_cmake_modules$secondaryArchSuffix >= 5.86
|
||||
devel:libKF5Activities$secondaryArchSuffix
|
||||
devel:libKF5Archive$secondaryArchSuffix
|
||||
devel:libKF5Attica$secondaryArchSuffix
|
||||
@@ -180,6 +179,7 @@ BUILD()
|
||||
cd build
|
||||
|
||||
cmake .. \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=$prefix \
|
||||
-DINCLUDE_INSTALL_DIR=$includeDir \
|
||||
-DSHARE_INSTALL_PREFIX=$dataDir \
|
||||
@@ -1,22 +0,0 @@
|
||||
From 7e90b4cdd7ae1b410a45e6388f501409c9b0b385 Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Sun, 24 Mar 2019 20:40:34 +1000
|
||||
Subject: Allow running as root on Haiku
|
||||
|
||||
|
||||
diff --git a/kate/main.cpp b/kate/main.cpp
|
||||
index dca9ffc..a1f21c6 100644
|
||||
--- a/kate/main.cpp
|
||||
+++ b/kate/main.cpp
|
||||
@@ -58,7 +58,7 @@
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
-#ifndef Q_OS_WIN
|
||||
+#if !defined(Q_OS_WIN) && !defined(Q_OS_HAIKU)
|
||||
// Prohibit using sudo or kdesu (but allow using the root user directly)
|
||||
if (getuid() == 0) {
|
||||
if (!qEnvironmentVariableIsEmpty("SUDO_USER")) {
|
||||
--
|
||||
2.19.1
|
||||
|
||||
Reference in New Issue
Block a user