diff options
author | Andreas Sturmlechner <andreas.sturmlechner@gmail.com> | 2016-07-26 18:27:51 +0200 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2016-07-28 01:55:39 +1000 |
commit | 00a2febe4eea1570748bac6bed13b74e56098d46 (patch) | |
tree | ca4e93531f49373751975d8fcccbb8086c27bb21 /kde-apps/kdebase-kioslaves | |
parent | kde4-base.eclass inheriting ebuilds: Add WEBKIT_REQUIRED=always (diff) | |
download | gentoo-00a2febe4eea1570748bac6bed13b74e56098d46.tar.gz gentoo-00a2febe4eea1570748bac6bed13b74e56098d46.tar.bz2 gentoo-00a2febe4eea1570748bac6bed13b74e56098d46.zip |
kde-apps/kdebase-kioslaves: Make kdewebkit optional
Package-Manager: portage-2.2.28
Diffstat (limited to 'kde-apps/kdebase-kioslaves')
-rw-r--r-- | kde-apps/kdebase-kioslaves/files/kdebase-kioslaves-16.04.3-webkit.patch | 50 | ||||
-rw-r--r-- | kde-apps/kdebase-kioslaves/kdebase-kioslaves-16.04.3-r1.ebuild | 56 |
2 files changed, 106 insertions, 0 deletions
diff --git a/kde-apps/kdebase-kioslaves/files/kdebase-kioslaves-16.04.3-webkit.patch b/kde-apps/kdebase-kioslaves/files/kdebase-kioslaves-16.04.3-webkit.patch new file mode 100644 index 000000000000..0a4d19ef03ee --- /dev/null +++ b/kde-apps/kdebase-kioslaves/files/kdebase-kioslaves-16.04.3-webkit.patch @@ -0,0 +1,50 @@ +commit 7209a3d7aa400f6dec72eb40ff21077a40110927 +Author: Andreas Sturmlechner <andreas.sturmlechner@gmail.com> +Date: Tue Jul 26 18:22:02 2016 +0200 + + [kioslave] Make KDEWEBKIT optional + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 8b4d0f2..520c00a 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -62,6 +62,8 @@ set_package_properties(LibGcrypt PROPERTIES DESCRIPTION "Libgcrypt is a general + # Build options + option(KDERUNTIME_BUILD_NEPOMUK "Build the Nepomuk KCM and kioslaves" FALSE) + ++option(WITH_KDEWEBKIT "Build features depending on KDEWEBKIT (currently HTML thumbnailer)" TRUE) ++ + check_include_files(sys/wait.h HAVE_SYS_WAIT_H) + check_include_files(sys/time.h HAVE_SYS_TIME_H) + +diff --git a/kioslave/thumbnail/CMakeLists.txt b/kioslave/thumbnail/CMakeLists.txt +index 8f28a4e..2d37906 100644 +--- a/kioslave/thumbnail/CMakeLists.txt ++++ b/kioslave/thumbnail/CMakeLists.txt +@@ -89,7 +89,7 @@ install(TARGETS textthumbnail DESTINATION ${PLUGIN_INSTALL_DIR}) + + ########### next target ############### + +-if(NOT WINCE) ++if(NOT WINCE AND WITH_KDEWEBKIT) + set(htmlthumbnail_PART_SRCS htmlcreator.cpp) + + kde4_add_plugin(htmlthumbnail ${htmlthumbnail_PART_SRCS}) +@@ -97,7 +97,8 @@ kde4_add_plugin(htmlthumbnail ${htmlthumbnail_PART_SRCS}) + target_link_libraries(htmlthumbnail ${KDE4_KDEWEBKIT_LIBS}) + + install(TARGETS htmlthumbnail DESTINATION ${PLUGIN_INSTALL_DIR}) +-endif(NOT WINCE) ++install(FILES htmlthumbnail.desktop DESTINATION ${SERVICES_INSTALL_DIR}) ++endif(NOT WINCE AND WITH_KDEWEBKIT) + + ########### next target ############### + +@@ -189,7 +190,6 @@ install(FILES + imagethumbnail.desktop + jpegthumbnail.desktop + textthumbnail.desktop +- htmlthumbnail.desktop + djvuthumbnail.desktop + desktopthumbnail.desktop + comicbookthumbnail.desktop diff --git a/kde-apps/kdebase-kioslaves/kdebase-kioslaves-16.04.3-r1.ebuild b/kde-apps/kdebase-kioslaves/kdebase-kioslaves-16.04.3-r1.ebuild new file mode 100644 index 000000000000..ba3a176cb486 --- /dev/null +++ b/kde-apps/kdebase-kioslaves/kdebase-kioslaves-16.04.3-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +KDE_HANDBOOK="optional" +KMNAME="kde-runtime" +KMMODULE="kioslave" +WEBKIT_REQUIRED="optional" +inherit kde4-meta + +KEYWORDS="~amd64 ~arm ~x86" +DESCRIPTION="KDE VFS framework - kioslaves present a filesystem-like view of arbitrary data" +IUSE="+bzip2 exif debug lzma openexr samba +sftp" + +# tests hang, last checked for 4.2.96 +RESTRICT="test" + +DEPEND=" + virtual/jpeg:0 + !aqua? ( x11-libs/libXcursor ) + bzip2? ( app-arch/bzip2 ) + exif? ( media-gfx/exiv2:= ) + openexr? ( media-libs/openexr:= ) + samba? ( || ( <net-fs/samba-4.0.0_alpha1[smbclient] >=net-fs/samba-4.0.0_alpha1[client] ) ) + sftp? ( >=net-libs/libssh-0.4.0:=[sftp] ) +" +RDEPEND="${DEPEND} + $(add_kdebase_dep kdelibs 'bzip2?,lzma?') + $(add_kdeapps_dep kdialog) + virtual/ssh + !aqua? ( !kernel_SunOS? ( virtual/eject ) ) +" + +KMEXTRA=" + kioexec + kdeeject +" + +PATCHES=( "${FILESDIR}/${P}-webkit.patch" ) + +src_configure() { + local mycmakeargs=( + -DWITH_SLP=OFF + -DWITH_BZip2=$(usex bzip2) + -DWITH_Exiv2=$(usex exif) + -DWITH_LibLZMA=$(usex lzma) + -DWITH_OpenEXR=$(usex openexr) + -DWITH_Samba=$(usex samba) + -DWITH_LibSSH=$(usex sftp) + -DWITH_KDEWEBKIT=$(usex webkit) + ) + + kde4-meta_src_configure +} |