From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 99F4B1388C0 for ; Thu, 25 Feb 2016 09:13:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 701D721C02E; Thu, 25 Feb 2016 09:13:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 00CDE21C02E for ; Thu, 25 Feb 2016 09:13:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E8404340A3D for ; Thu, 25 Feb 2016 09:13:44 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 31A7EC6F for ; Thu, 25 Feb 2016 09:13:42 +0000 (UTC) From: "Michael Palimaka" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Palimaka" Message-ID: <1456391611.61e168e25ad2678d6c19234be603b149deb1424e.kensington@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: media-plugins/kipi-plugins/ X-VCS-Repository: proj/kde X-VCS-Files: media-plugins/kipi-plugins/kipi-plugins-5.0.0_beta4.ebuild X-VCS-Directories: media-plugins/kipi-plugins/ X-VCS-Committer: kensington X-VCS-Committer-Name: Michael Palimaka X-VCS-Revision: 61e168e25ad2678d6c19234be603b149deb1424e X-VCS-Branch: master Date: Thu, 25 Feb 2016 09:13:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: bc5ec5ce-6334-4a9e-b284-94de425b80ea X-Archives-Hash: d91e40f21db1ca6fe875bbed65a782c2 commit: 61e168e25ad2678d6c19234be603b149deb1424e Author: Felix Leif Keppmann keppmann de> AuthorDate: Wed Feb 24 23:05:00 2016 +0000 Commit: Michael Palimaka gentoo org> CommitDate: Thu Feb 25 09:13:31 2016 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=61e168e2 media-plugins/kipi-plugins: version bump to 5.0.0_beta4 Ebuild for beta version of Kipi Plugins 5 along with Digikam 5. .../kipi-plugins/kipi-plugins-5.0.0_beta4.ebuild | 141 +++++++++++++++++++++ 1 file changed, 141 insertions(+) diff --git a/media-plugins/kipi-plugins/kipi-plugins-5.0.0_beta4.ebuild b/media-plugins/kipi-plugins/kipi-plugins-5.0.0_beta4.ebuild new file mode 100644 index 0000000..d013c64 --- /dev/null +++ b/media-plugins/kipi-plugins/kipi-plugins-5.0.0_beta4.ebuild @@ -0,0 +1,141 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +if [[ ${KDE_BUILD_TYPE} != live ]]; then + KDE_HANDBOOK=true + KDE_TEST=true +fi + +inherit kde5 + +DESCRIPTION="Plugins for the KDE Image Plugin Interface" +HOMEPAGE="http://www.digikam.org/" + +LICENSE="GPL-2" +KEYWORDS="" +IUSE="calendar expoblending flashexport mediawiki panorama phonon viewers vkontakte" + +if [[ ${KDE_BUILD_TYPE} != live ]]; then + + MY_PV=${PV/_/-} + MY_P="digikam-${MY_PV}" + + SRC_BRANCH=stable + [[ ${PV} =~ beta[0-9]$ ]] && SRC_BRANCH=unstable + SRC_URI="mirror://kde/${SRC_BRANCH}/digikam/${MY_P}.tar.bz2" + + S=${WORKDIR}/${MY_P}/extra/${PN} + +fi + +COMMON_DEPEND=" + $(add_frameworks_dep kcompletion) + $(add_frameworks_dep kconfig) + $(add_frameworks_dep kconfigwidgets) + $(add_frameworks_dep ki18n) + $(add_frameworks_dep kiconthemes) + $(add_frameworks_dep kio) + $(add_frameworks_dep kjobwidgets) + $(add_frameworks_dep kservice) + $(add_frameworks_dep ktextwidgets) + $(add_frameworks_dep kwindowsystem) + $(add_frameworks_dep kxmlgui) + $(add_qt_dep qtconcurrent) + $(add_qt_dep qtgui) + $(add_qt_dep qtprintsupport) + $(add_qt_dep qtsvg) + $(add_qt_dep qtwebkit) + $(add_qt_dep qtwidgets) + $(add_qt_dep qtxml) + $(add_qt_dep qtxmlpatterns) + kde-apps/libkipi:5= + calendar? ( $(add_kdeapps_dep kcalcore) ) + flashexport? ( $(add_frameworks_dep karchive) ) + mediawiki? ( net-libs/libmediawiki:5 ) + panorama? ( $(add_frameworks_dep threadweaver) ) + phonon? ( media-libs/phonon[qt5] ) + viewers? ( + $(add_qt_dep qtopengl) + x11-libs/libX11 + x11-libs/libXrandr + virtual/opengl + ) + vkontakte? ( net-libs/libkvkontakte:5 ) +" + +DEPEND="${COMMON_DEPEND} + sys-devel/gettext + panorama? ( + sys-devel/bison + sys-devel/flex + ) +" + +RDEPEND="${COMMON_DEPEND} + !media-plugins/kipi-plugins:4 + expoblending? ( media-gfx/hugin ) + panorama? ( + media-gfx/enblend + media-gfx/hugin + ) +" + +RESTRICT=test + +src_prepare() { + + undetect_lib() { + local _use=${1} + local _name=${2} + [[ -z ${_name} ]] && _name=$(echo ${_use} | sed 's/./\U&/g') + use $_use || \ + sed -i -e "/DETECT_LIB${_name}/d" CMakeLists.txt || die + } + + undetect_lib mediawiki + undetect_lib vkontakte KVKONTAKTE + + sed -i -e "/add_subdirectory(expoblending)/ s/^/#DONT/" CMakeLists.txt || die + + if [[ ${KDE_BUILD_TYPE} != live ]]; then + # prepare the handbook + mv "${WORKDIR}"/${MY_P}/doc/${PN} "${S}"/doc || die + + if use handbook; then + echo "add_subdirectory( doc )" >> CMakeLists.txt || die + fi + + if [[ ${SRC_BRANCH} != unstable ]]; then + # prepare the translations + mv "${WORKDIR}/${MY_P}/po" po || die + find po -name "*.po" -and -not -name "kipiplugin*.po" -delete || die + echo "find_package(Msgfmt REQUIRED)" >> CMakeLists.txt || die + echo "find_package(Gettext REQUIRED)" >> CMakeLists.txt || die + echo "add_subdirectory( po )" >> CMakeLists.txt || die + fi + fi + + kde5_src_prepare + +} + +src_configure() { + + local mycmakeargs=( + $(cmake-utils_use_find_package calendar KF5CalendarCore) + $(cmake-utils_use_find_package flashexport KF5Archive) + $(cmake-utils_use_find_package panorama BISON) + $(cmake-utils_use_find_package panorama FLEX) + $(cmake-utils_use_find_package panorama KF5ThreadWeaver) + $(cmake-utils_use_find_package phonon Phonon4Qt5) + $(cmake-utils_use_find_package viewers OpenGL) + $(cmake-utils_use_find_package viewers Qt5OpenGL) + $(cmake-utils_use_find_package viewers X11) + ) + + kde5_src_configure + +}