Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

build: add app KKEditQT #2155

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions io.github.KKEditQT/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package:
id: io.github.KKEditQT
name: KKEditQT
version: 1.0.0.1
kind: app
description: |
KKEditQT Source Code Editor.
runtime:
id: org.deepin.Runtime
version: 23.0.0
depends:
- id: automake/1.16.5
- id: pkgconf/2.0.3
- id: qtwebengine/5.15.7
- id: aspell/0.60.8
type: runtime

source:
kind: git
url: https://github.com/KeithDHedger/KKEditQT.git
commit: b224132145635e0893831e84b2d8c1234e6a3b42
patch:
- patches/0001-fix-include.patch
- patches/0001-fix.patch
build:
kind: qmake
manual:
configure: |
./autogen.sh
./configure --prefix=${PREFIX} --libdir=${PREFIX}/lib/${TRIPLET} --includedir=${PREFIX}/include CXXFLAGS="-I/${PREFIX}/include"
build: |
make ${jobs}
install: |
make ${jobs} DESTDIR=${dest_dir} install
94 changes: 94 additions & 0 deletions io.github.KKEditQT/patches/0001-fix-include.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
From c2d224bb22a23258ef4f145efb1098c7676771c3 Mon Sep 17 00:00:00 2001
From: van <[email protected]>
Date: Tue, 7 Nov 2023 14:22:38 +0800
Subject: [PATCH] fix-include

---
KKEditQT/plugins/Clipboard/plugin/plugin.pro | 1 +
KKEditQT/plugins/Favourites/plugin/plugin.pro | 2 +-
KKEditQT/plugins/OpenUri/plugin/plugin.pro | 2 +-
KKEditQT/plugins/SaveHistory/plugin/plugin.pro | 2 +-
KKEditQT/plugins/SymbolsMenu/plugin/plugin.pro | 2 +-
KKEditQT/plugins/kkeditqtPluginExample/plugin/plugin.pro | 2 +-
6 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/KKEditQT/plugins/Clipboard/plugin/plugin.pro b/KKEditQT/plugins/Clipboard/plugin/plugin.pro
index 3701fe7..ff73a6d 100644
--- a/KKEditQT/plugins/Clipboard/plugin/plugin.pro
+++ b/KKEditQT/plugins/Clipboard/plugin/plugin.pro
@@ -5,6 +5,7 @@ HEADERS = Clipboard.h
SOURCES = Clipboard.cpp
TARGET = $$qtLibraryTarget(Clipboard)
DESTDIR = plugins
+INCLUDEPATH+=${PREFIX}/include

documentation.files = docs/*
image.files = ClipboardViewer.png
diff --git a/KKEditQT/plugins/Favourites/plugin/plugin.pro b/KKEditQT/plugins/Favourites/plugin/plugin.pro
index eb72bae..7d5748a 100644
--- a/KKEditQT/plugins/Favourites/plugin/plugin.pro
+++ b/KKEditQT/plugins/Favourites/plugin/plugin.pro
@@ -5,7 +5,7 @@ HEADERS = Favourites.h
SOURCES = Favourites.cpp
TARGET = $$qtLibraryTarget(Favourites)
DESTDIR = plugins
-
+INCLUDEPATH+=${PREFIX}/include
documentation.files = docs/*
image.files = Favorite.png

diff --git a/KKEditQT/plugins/OpenUri/plugin/plugin.pro b/KKEditQT/plugins/OpenUri/plugin/plugin.pro
index 56a7a3f..cae4eb8 100644
--- a/KKEditQT/plugins/OpenUri/plugin/plugin.pro
+++ b/KKEditQT/plugins/OpenUri/plugin/plugin.pro
@@ -5,7 +5,7 @@ HEADERS = OpenUri.h
SOURCES = OpenUri.cpp
TARGET = $$qtLibraryTarget(OpenUri)
DESTDIR = plugins
-
+INCLUDEPATH+=${PREFIX}/include
documentation.files = docs/*
image.files = OpenUri.png

diff --git a/KKEditQT/plugins/SaveHistory/plugin/plugin.pro b/KKEditQT/plugins/SaveHistory/plugin/plugin.pro
index 69b4e13..0a56d96 100644
--- a/KKEditQT/plugins/SaveHistory/plugin/plugin.pro
+++ b/KKEditQT/plugins/SaveHistory/plugin/plugin.pro
@@ -5,7 +5,7 @@ HEADERS = SaveHistory.h
SOURCES = SaveHistory.cpp
TARGET = $$qtLibraryTarget(SaveHistory)
DESTDIR = plugins
-
+INCLUDEPATH+=${PREFIX}/include
documentation.files = docs/*

target.path = ../build/plugins
diff --git a/KKEditQT/plugins/SymbolsMenu/plugin/plugin.pro b/KKEditQT/plugins/SymbolsMenu/plugin/plugin.pro
index 42309dc..01097f0 100644
--- a/KKEditQT/plugins/SymbolsMenu/plugin/plugin.pro
+++ b/KKEditQT/plugins/SymbolsMenu/plugin/plugin.pro
@@ -5,7 +5,7 @@ HEADERS = SymbolsMenu.h
SOURCES = SymbolsMenu.cpp
TARGET = $$qtLibraryTarget(SymbolsMenu)
DESTDIR = plugins
-
+INCLUDEPATH+=${PREFIX}/include
data.files = indicator-chars.txt
documentation.files = docs/*
image.files = Symbols.png
diff --git a/KKEditQT/plugins/kkeditqtPluginExample/plugin/plugin.pro b/KKEditQT/plugins/kkeditqtPluginExample/plugin/plugin.pro
index 566f7e5..19d2d90 100644
--- a/KKEditQT/plugins/kkeditqtPluginExample/plugin/plugin.pro
+++ b/KKEditQT/plugins/kkeditqtPluginExample/plugin/plugin.pro
@@ -5,7 +5,7 @@ HEADERS = kkeditqtPluginExample.h
SOURCES = kkeditqtPluginExample.cpp
TARGET = $$qtLibraryTarget(kkeditqtPluginExample)
DESTDIR = .plugins
-
+INCLUDEPATH+=${PREFIX}/include
documentation.files = docs/*

target.path = ../build/plugins
--
2.33.1

36 changes: 36 additions & 0 deletions io.github.KKEditQT/patches/0001-fix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
From 7d4a84de6c27d33ef216f55fd0dd9867e4bf894b Mon Sep 17 00:00:00 2001
From: van <[email protected]>
Date: Wed, 8 May 2024 23:03:17 +0800
Subject: [PATCH] fix

---
buildplugs.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/buildplugs.sh b/buildplugs.sh
index 47c0677..819a598 100755
--- a/buildplugs.sh
+++ b/buildplugs.sh
@@ -28,7 +28,7 @@ buildPlug ()
WHERE="$2"
THISDIR=$(basename $(pwd))
PARENTDIR="$(basename "$(dirname $(pwd))")"
-
+ PREFIX="$PREFIX"
mkdir -vp build

case $WHAT in
@@ -38,8 +38,8 @@ buildPlug ()
"build")
mkdir -vp build
cd build
- qmake ..
- make
+ qmake .. PREFIX=${PREFIX}
+ make ${JOBS}
;;
"install")
cd build
--
2.33.1

Loading