Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ktexteditor: add recipe for version 5.39.0
- Loading branch information
Showing
2 changed files
with
170 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
SUMMARY="Full text editor component" | ||
DESCRIPTION="KTextEditor provides a powerful text editor component that you \ | ||
can embed in your application, either as a KPart or using the KF5::TextEditor \ | ||
library (if you need more control). | ||
The text editor component contains many useful features, from syntax \ | ||
highlighting and automatic indentation to advanced scripting support, \ | ||
making it suitable for everything from a simple embedded text-file editor \ | ||
to an advanced IDE." | ||
HOMEPAGE="https://github.com/KDE/ktexteditor/" | ||
COPYRIGHT="2010-2017 KDE Organisation" | ||
LICENSE="GNU LGPL v2" | ||
REVISION="1" | ||
SOURCE_URI="https://github.com/KDE/ktexteditor/archive/v$portVersion.tar.gz" | ||
CHECKSUM_SHA256="eaa2ff782c054224bbf0308c4b730bd19279d62d20443f0ede88dad3493f0a5f" | ||
PATCHES="ktexteditor-$portVersion.patchset" | ||
|
||
ARCHITECTURES="!x86_gcc2 x86_64" | ||
SECONDARY_ARCHITECTURES="x86" | ||
|
||
PROVIDES=" | ||
ktexteditor$secondaryArchSuffix = $portVersion | ||
lib:libKF5TextEditor$secondaryArchSuffix = $portVersion compat >= 5 | ||
" | ||
REQUIRES=" | ||
haiku$secondaryArchSuffix | ||
lib:libgit2$secondaryArchSuffix | ||
lib:libKF5Archive$secondaryArchSuffix | ||
lib:libKF5Auth$secondaryArchSuffix | ||
lib:libKF5Codecs$secondaryArchSuffix | ||
lib:libKF5Completion$secondaryArchSuffix | ||
lib:libKF5ConfigCore$secondaryArchSuffix | ||
lib:libKF5ConfigGui$secondaryArchSuffix | ||
lib:libKF5ConfigWidgets$secondaryArchSuffix | ||
lib:libKF5CoreAddons$secondaryArchSuffix | ||
lib:libKF5GuiAddons$secondaryArchSuffix | ||
lib:libKF5I18n$secondaryArchSuffix | ||
lib:libKF5IconThemes$secondaryArchSuffix | ||
lib:libKF5ItemViews$secondaryArchSuffix | ||
lib:libKF5JobWidgets$secondaryArchSuffix | ||
lib:libKF5KIOCore$secondaryArchSuffix | ||
lib:libKF5KIOWidgets$secondaryArchSuffix | ||
lib:libKF5Parts$secondaryArchSuffix | ||
lib:libKF5Service$secondaryArchSuffix | ||
lib:libKF5SonnetCore$secondaryArchSuffix | ||
lib:libKF5SonnetUi$secondaryArchSuffix | ||
lib:libKF5SyntaxHighlighting$secondaryArchSuffix | ||
lib:libKF5TextEditor$secondaryArchSuffix | ||
lib:libKF5TextWidgets$secondaryArchSuffix | ||
lib:libKF5WidgetsAddons$secondaryArchSuffix | ||
lib:libKF5XmlGui$secondaryArchSuffix | ||
lib:libQt5Core$secondaryArchSuffix | ||
lib:libQt5DBus$secondaryArchSuffix | ||
lib:libQt5Gui$secondaryArchSuffix | ||
lib:libQt5Network$secondaryArchSuffix | ||
lib:libQt5PrintSupport$secondaryArchSuffix | ||
lib:libQt5Qml$secondaryArchSuffix | ||
lib:libQt5Widgets$secondaryArchSuffix | ||
lib:libQt5Xml$secondaryArchSuffix | ||
" | ||
|
||
PROVIDES_devel=" | ||
ktexteditor${secondaryArchSuffix}_devel = $portVersion | ||
devel:libKF5TextEditor$secondaryArchSuffix = $portVersion compat >= 5 | ||
" | ||
REQUIRES_devel=" | ||
ktexteditor$secondaryArchSuffix == $portVersion base | ||
" | ||
|
||
BUILD_REQUIRES=" | ||
extra_cmake_modules >= 5.39 | ||
haiku${secondaryArchSuffix}_devel | ||
devel:libgit2$secondaryArchSuffix | ||
devel:libKF5Archive$secondaryArchSuffix | ||
devel:libKF5Auth$secondaryArchSuffix | ||
devel:libKF5Bookmarks$secondaryArchSuffix | ||
devel:libKF5Codecs$secondaryArchSuffix | ||
devel:libKF5Completion$secondaryArchSuffix | ||
devel:libKF5ConfigCore$secondaryArchSuffix | ||
devel:libKF5ConfigGui$secondaryArchSuffix | ||
devel:libKF5ConfigWidgets$secondaryArchSuffix | ||
devel:libKF5CoreAddons$secondaryArchSuffix | ||
devel:libKF5GuiAddons$secondaryArchSuffix | ||
devel:libKF5I18n$secondaryArchSuffix | ||
devel:libKF5IconThemes$secondaryArchSuffix | ||
devel:libKF5ItemViews$secondaryArchSuffix | ||
devel:libKF5JobWidgets$secondaryArchSuffix | ||
devel:libKF5KIOCore$secondaryArchSuffix | ||
devel:libKF5Parts$secondaryArchSuffix | ||
devel:libKF5Service$secondaryArchSuffix | ||
devel:libKF5Solid$secondaryArchSuffix | ||
devel:libKF5SyntaxHighlighting$secondaryArchSuffix | ||
devel:libKF5TextWidgets$secondaryArchSuffix | ||
devel:libKF5WidgetsAddons$secondaryArchSuffix | ||
devel:libKF5WindowSystem$secondaryArchSuffix | ||
devel:libKF5XmlGui$secondaryArchSuffix | ||
devel:libQt5Core$secondaryArchSuffix | ||
devel:libQt5Gui$secondaryArchSuffix | ||
devel:libQt5TextToSpeech$secondaryArchSuffix | ||
devel:libQt5Xml$secondaryArchSuffix | ||
devel:libKF5SonnetUi$secondaryArchSuffix | ||
devel:libKF5SonnetCore$secondaryArchSuffix | ||
" | ||
BUILD_PREREQUIRES=" | ||
cmd:cmake | ||
cmd:g++$secondaryArchSuffix | ||
cmd:make | ||
cmd:python2 | ||
" | ||
|
||
BUILD() | ||
{ | ||
mkdir -p build | ||
cd build | ||
|
||
cmake .. $cmakeDirArgs \ | ||
-DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs \ | ||
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \ | ||
-DKAUTH_HELPER_INSTALL_DIR:PATH=$addOnsDir/Qt5/kauth/helper | ||
make $jobArgs | ||
} | ||
|
||
INSTALL() | ||
{ | ||
cd build | ||
make install | ||
|
||
prepareInstalledDevelLibs \ | ||
libKF5TextEditor | ||
|
||
packageEntries devel \ | ||
$libDir/cmake \ | ||
$dataDir/Qt5/mkspecs \ | ||
$developDir | ||
} | ||
|
||
TEST() | ||
{ | ||
cd build | ||
make test | ||
} |
28 changes: 28 additions & 0 deletions
28
kde-frameworks/ktexteditor/patches/ktexteditor-5.39.0.patchset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
From 6c29279caeb5dc99e9bdc6dd6fcba6772990bdcb Mon Sep 17 00:00:00 2001 | ||
From: Sergei Reznikov <diver@gelios.net> | ||
Date: Fri, 15 Dec 2017 12:35:46 +0300 | ||
Subject: Disable kauth_ktexteditor_helper for now | ||
|
||
* cmake installs helper to a wrong place and I | ||
didn't manage to change it with KAUTH_HELPER_INSTALL_DIR | ||
|
||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt | ||
index a5e60e1..939641d 100644 | ||
--- a/src/CMakeLists.txt | ||
+++ b/src/CMakeLists.txt | ||
@@ -365,9 +365,9 @@ add_executable(kauth_ktexteditor_helper buffer/katesecuretextbuffer.cpp) | ||
target_link_libraries(kauth_ktexteditor_helper | ||
KF5::Auth | ||
) | ||
-install(TARGETS kauth_ktexteditor_helper DESTINATION ${KAUTH_HELPER_INSTALL_DIR} ) | ||
-kauth_install_helper_files(kauth_ktexteditor_helper org.kde.ktexteditor.katetextbuffer root) | ||
-kauth_install_actions(org.kde.ktexteditor.katetextbuffer buffer/org.kde.ktexteditor.katetextbuffer.actions) | ||
+#install(TARGETS kauth_ktexteditor_helper DESTINATION ${KAUTH_HELPER_INSTALL_DIR} ) | ||
+#kauth_install_helper_files(kauth_ktexteditor_helper org.kde.ktexteditor.katetextbuffer root) | ||
+#kauth_install_actions(org.kde.ktexteditor.katetextbuffer buffer/org.kde.ktexteditor.katetextbuffer.actions) | ||
|
||
# add part | ||
add_subdirectory(part) | ||
-- | ||
2.15.0 | ||
|