markdownpart, new recipe (#10431)

This commit is contained in:
Schrijvers Luc
2024-05-09 09:24:46 +02:00
committed by GitHub
parent 2a558b4ee6
commit 0fca66764f

View File

@@ -0,0 +1,78 @@
SUMMARY="Markdown viewer KPart"
DESCRIPTION="The Markdown Viewer KPart allows KParts-using software to display files in Markdown \
format in a rendered view.
Extends: Ark icon Ark | Kate icon Kate | KDevelop icon KDevelop | Konqueror icon Konqueror | \
Krusader icon Krusader"
HOMEPAGE="https://apps.kde.org/markdownpart/"
COPYRIGHT="2010-2024 KDE Organisation"
LICENSE="GNU LGPL v2.1"
REVISION="1"
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/markdownpart-$portVersion.tar.xz"
CHECKSUM_SHA256="32905b77e393f625c388c414b9e350d8152856e6931566d5f2b8c35ed6d5ebf2"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
markdownpart$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
# KF5
lib:libKF5I18n$secondaryArchSuffix
lib:libKF5Parts$secondaryArchSuffix
# Qt5
lib:libQt5Core$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
# KF5
extra_cmake_modules$secondaryArchSuffix
devel:libKF5Auth$secondaryArchSuffix
devel:libKF5Bookmarks$secondaryArchSuffix
devel:libKF5Codecs$secondaryArchSuffix
devel:libKF5Completion$secondaryArchSuffix
devel:libKF5ConfigCore$secondaryArchSuffix
devel:libKF5ConfigWidgets$secondaryArchSuffix
devel:libKF5CoreAddons$secondaryArchSuffix
devel:libKF5I18n$secondaryArchSuffix
devel:libKF5ItemViews$secondaryArchSuffix
devel:libKF5JobWidgets$secondaryArchSuffix
devel:libKF5KIOCore$secondaryArchSuffix
devel:libKF5Parts$secondaryArchSuffix
devel:libKF5Service$secondaryArchSuffix
devel:libKF5Solid$secondaryArchSuffix
devel:libKF5SonnetCore$secondaryArchSuffix
devel:libKF5TextWidgets$secondaryArchSuffix
devel:libKF5WidgetsAddons$secondaryArchSuffix
devel:libKF5WindowSystem$secondaryArchSuffix
devel:libKF5XmlGui$secondaryArchSuffix
# Qt5
devel:libQt5Core$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:make
cmd:msgfmt
cmd:msgmerge
cmd:pkg_config$secondaryArchSuffix
cmd:qdbuscpp2xml$secondaryArchSuffix >= 5
"
BUILD()
{
cmake -Bbuild -S. $cmakeDirArgs \
-DCMAKE_BUILD_TYPE=Release \
-DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt5 \
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
make -C build $jobArgs
}
INSTALL()
{
make -C build install
}