mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
@@ -11,6 +11,7 @@ SOURCE_URI="https://github.com/OpenShot/openshot-qt/archive/v$portVersion.tar.gz
|
||||
CHECKSUM_SHA256="957792cb5c07ec7c593b9af7d234f75110ac8df0aa179e284ed84f48f552d9bd"
|
||||
SOURCE_FILENAME="openshot-$portVersion.tar.gz"
|
||||
SOURCE_DIR="openshot-qt-$portVersion"
|
||||
PATCHES="openshot-$portVersion.patchset"
|
||||
PYTHON_VERSION="3.6"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
30
media-video/openshot/patches/openshot-2.4.2.patchset
Normal file
30
media-video/openshot/patches/openshot-2.4.2.patchset
Normal file
@@ -0,0 +1,30 @@
|
||||
From fa3a1b30150925f6991a59a6a2992235a0c23d49 Mon Sep 17 00:00:00 2001
|
||||
From: Leorize <alaviss@users.noreply.github.com>
|
||||
Date: Sat, 1 Sep 2018 11:51:24 +0700
|
||||
Subject: classes/info: use finddir
|
||||
|
||||
|
||||
diff --git a/src/classes/info.py b/src/classes/info.py
|
||||
index 69faf7f..2c19635 100644
|
||||
--- a/src/classes/info.py
|
||||
+++ b/src/classes/info.py
|
||||
@@ -25,6 +25,7 @@
|
||||
along with OpenShot Library. If not, see <http://www.gnu.org/licenses/>.
|
||||
"""
|
||||
|
||||
+import subprocess
|
||||
import os
|
||||
|
||||
VERSION = "2.4.2"
|
||||
@@ -39,7 +40,7 @@ COPYRIGHT = "Copyright (c) 2008-2018 %s" % COMPANY_NAME
|
||||
CWD = os.getcwd()
|
||||
PATH = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) # Primary openshot folder
|
||||
HOME_PATH = os.path.join(os.path.expanduser("~"))
|
||||
-USER_PATH = os.path.join(HOME_PATH, ".openshot_qt")
|
||||
+USER_PATH = os.path.join(subprocess.run(["finddir", "B_USER_VAR_DIRECTORY"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, check=True, errors="strict").stdout.strip(), "openshot_qt")
|
||||
BACKUP_PATH = os.path.join(USER_PATH, "backup")
|
||||
BLENDER_PATH = os.path.join(USER_PATH, "blender")
|
||||
ASSETS_PATH = os.path.join(USER_PATH, "assets")
|
||||
--
|
||||
2.16.4
|
||||
|
||||
Reference in New Issue
Block a user