summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Heiko Becker <heirecka@exherbo.org> 2017-09-25 20:19:55 +0200
committerAvatar Heiko Becker <heirecka@exherbo.org> 2017-09-25 21:13:31 +0200
commit3c055db80c16a46896c5492ad0307c76b184fc9b (patch)
tree27f39b2a51ed0a2945faf072e10e756fd646f665
parentb78f2c18f399a1b613c314c5ea9ac79c611a075e (diff)
downloadkde-3c055db80c16a46896c5492ad0307c76b184fc9b.tar.gz
kde-3c055db80c16a46896c5492ad0307c76b184fc9b.tar.xz
kmarkdownwebview: Initial exheres
-rw-r--r--metadata/repository_mask.conf1
-rw-r--r--packages/kde/kmarkdownwebview/kmarkdownwebview-0.1.0.exheres-07
-rw-r--r--packages/kde/kmarkdownwebview/kmarkdownwebview-scm.exheres-07
-rw-r--r--packages/kde/kmarkdownwebview/kmarkdownwebview.exlib52
4 files changed, 67 insertions, 0 deletions
diff --git a/metadata/repository_mask.conf b/metadata/repository_mask.conf
index 6fcf6f0..1ca2753 100644
--- a/metadata/repository_mask.conf
+++ b/metadata/repository_mask.conf
@@ -123,6 +123,7 @@
kde/kmahjongg:4[~scm]
kde/kmail[~scm]
kde/kmail-account-wizard[~scm]
+ kde/kmarkdownwebview[~scm]
kde/kmenuedit:4[~scm]
kde/kmines:4[~scm]
kde/kmix:4[~scm]
diff --git a/packages/kde/kmarkdownwebview/kmarkdownwebview-0.1.0.exheres-0 b/packages/kde/kmarkdownwebview/kmarkdownwebview-0.1.0.exheres-0
new file mode 100644
index 0000000..4501ca0
--- /dev/null
+++ b/packages/kde/kmarkdownwebview/kmarkdownwebview-0.1.0.exheres-0
@@ -0,0 +1,7 @@
+# Copyright 2017 Heiko Becker <heirecka@exherbo.org>
+# Distributed under the terms of the GNU General Public License v2
+
+require kmarkdownwebview
+
+PLATFORMS="~amd64"
+
diff --git a/packages/kde/kmarkdownwebview/kmarkdownwebview-scm.exheres-0 b/packages/kde/kmarkdownwebview/kmarkdownwebview-scm.exheres-0
new file mode 100644
index 0000000..4501ca0
--- /dev/null
+++ b/packages/kde/kmarkdownwebview/kmarkdownwebview-scm.exheres-0
@@ -0,0 +1,7 @@
+# Copyright 2017 Heiko Becker <heirecka@exherbo.org>
+# Distributed under the terms of the GNU General Public License v2
+
+require kmarkdownwebview
+
+PLATFORMS="~amd64"
+
diff --git a/packages/kde/kmarkdownwebview/kmarkdownwebview.exlib b/packages/kde/kmarkdownwebview/kmarkdownwebview.exlib
new file mode 100644
index 0000000..3d2f77a
--- /dev/null
+++ b/packages/kde/kmarkdownwebview/kmarkdownwebview.exlib
@@ -0,0 +1,52 @@
+# Copyright 2017 Heiko Becker <heirecka@exherbo.org>
+# Distributed under the terms of the GNU General Public License v2
+
+require kde.org [ subdir="${PN}/${PV}/src" ] kde [ cmake_minimum_version=3.0 ]
+require freedesktop-desktop
+
+SUMMARY="A Markdown format viewer KParts plugin"
+DESCRIPTION="
+* Markdown viewer KParts plugin which allows KParts-using applications to
+display files in Markdown format in the target format
+* A Markdown file KIO thumbnail generator plugin which allows KIO-powered file
+managers & dialogs to show thumbnails and previews of files in Markdown format
+in the target format (currently only available when building against QtWebKit
+and for scm)
+"
+
+LICENCES="LGPL-2.1"
+SLOT="0"
+MYOPTIONS="
+ qtwebkit [[
+ description = [ Use Qt5WebKit instead of Qt5WebEngine to render Markdown content ]
+ ]]
+"
+
+if ever at_least scm ; then
+ KF5_MIN_VER="5.25.0"
+else
+ KF5_MIN_VER="5.23.0"
+fi
+QT_MIN_VER="5.6.0"
+
+DEPENDENCIES="
+ build:
+ build+run:
+ kde-frameworks/ki18n:5[>=${KF5_MIN_VER}]
+ kde-frameworks/kparts:5[>=${KF5_MIN_VER}]
+ x11-libs/qtbase:5[>=${QT_MIN_VER}]
+ qtwebkit? ( x11-libs/qtwebkit:5[>=${QT_MIN_VER}] )
+ !qtwebkit? ( x11-libs/qtwebengine:5[>=${QT_MIN_VER}] )
+"
+
+if ever at_least scm ; then
+ DEPENDENCIES+="
+ build+run:
+ kde-frameworks/kio:5[>=${KF5_MIN_VER}]
+ "
+fi
+
+CMAKE_SRC_CONFIGURE_OPTIONS+=(
+ 'qtwebkit USE_QTWEBKIT'
+)
+