media-video/kamoso: new package
authorMichael Palimaka <kensington@gentoo.org>
Thu, 24 Sep 2015 17:26:36 +0000 (03:26 +1000)
committerMichael Palimaka <kensington@gentoo.org>
Thu, 24 Sep 2015 17:27:08 +0000 (03:27 +1000)
Package-Manager: portage-2.2.20.1

media-video/kamoso/Manifest [new file with mode: 0644]
media-video/kamoso/files/kamoso-3.0-bogus-deps.patch [new file with mode: 0644]
media-video/kamoso/kamoso-3.0.ebuild [new file with mode: 0644]
media-video/kamoso/metadata.xml [new file with mode: 0644]

diff --git a/media-video/kamoso/Manifest b/media-video/kamoso/Manifest
new file mode 100644 (file)
index 0000000..f121c2d
--- /dev/null
@@ -0,0 +1 @@
+DIST kamoso-3.0.tar.xz 109340 SHA256 bd19e8771e91fb8bfa15df2c316e056eb2ac207252c3d6c02fc81a19d1845d46 SHA512 9d00dab4bad9b17a35de2a5f883d2194509686aa72197c4ac5277bcaa69676d9af867f3889788805f0640626e1bdd2be4746b7e7a9b67b9a00b58a98a7609e6d WHIRLPOOL decb88362059021979250ce19086d62d3517537006478df028ead96f8b1a581c011f0e456a1a0d115589f5b7cbc812a20409657aca0d33c2c76bee5abca1d077
diff --git a/media-video/kamoso/files/kamoso-3.0-bogus-deps.patch b/media-video/kamoso/files/kamoso-3.0-bogus-deps.patch
new file mode 100644 (file)
index 0000000..d741995
--- /dev/null
@@ -0,0 +1,57 @@
+From d68516ef3522856b09e861a24e6d537b0dba1b77 Mon Sep 17 00:00:00 2001
+From: Michael Palimaka <kensington@gentoo.org>
+Date: Fri, 25 Sep 2015 03:14:37 +1000
+Subject: [PATCH] Remove unused dependencies.
+
+REVIEW: 125379
+---
+ CMakeLists.txt     | 4 ++--
+ src/CMakeLists.txt | 4 ++--
+ src/device.h       | 1 -
+ 3 files changed, 4 insertions(+), 5 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 98dc813..f975549 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -5,8 +5,8 @@ cmake_minimum_required(VERSION 2.8.12)
+ find_package(ECM 0.0.9 REQUIRED NO_MODULE)
+ set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
+-find_package(Qt5 NO_MODULE REQUIRED COMPONENTS Core Gui Widgets Quick Network OpenGL DBus Test)
+-find_package(KF5 REQUIRED COMPONENTS WidgetsAddons Config ConfigWidgets DocTools Solid KIO Declarative I18n)
++find_package(Qt5 NO_MODULE REQUIRED COMPONENTS Core Gui Widgets Quick)
++find_package(KF5 REQUIRED COMPONENTS Config DocTools KIO Declarative I18n)
+ find_package(Qt5GStreamer 1.1.90 REQUIRED)
+ find_package(KDEExperimentalPurpose REQUIRED)
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 9fa08a7..5a0f96d 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -24,8 +24,8 @@ add_executable(kamoso
+ )
+ target_link_libraries(kamoso
+-    Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Quick Qt5::OpenGL
+-    KF5::Declarative KF5::KIOWidgets KF5::Solid KF5::KIOWidgets KF5::ConfigGui KF5::I18n
++    Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Quick
++    KF5::Declarative KF5::KIOWidgets KF5::KIOWidgets KF5::ConfigGui KF5::I18n
+     Qt5GStreamer Qt5GStreamerQuick
+     ${UDEV_LIBS}
+ )
+diff --git a/src/device.h b/src/device.h
+index 3690830..5eabd56 100644
+--- a/src/device.h
++++ b/src/device.h
+@@ -22,7 +22,6 @@
+ #include <QtCore/QObject>
+-#include <solid/device.h>
+ #include <KSharedConfig>
+ namespace UdevQt {
+-- 
+2.4.9
+
diff --git a/media-video/kamoso/kamoso-3.0.ebuild b/media-video/kamoso/kamoso-3.0.ebuild
new file mode 100644 (file)
index 0000000..f7bbc1f
--- /dev/null
@@ -0,0 +1,40 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KDE_HANDBOOK="true"
+KDE_PUNT_BOGUS_DEPS="true"
+inherit kde5
+
+DESCRIPTION="Application to take pictures and videos from your webcam by KDE"
+HOMEPAGE="https://userbase.kde.org/Kamoso"
+SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz"
+
+LICENSE="GPL-2+"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="
+       $(add_frameworks_dep kconfig)
+       $(add_frameworks_dep kcoreaddons)
+       $(add_frameworks_dep kdeclarative)
+       $(add_frameworks_dep ki18n)
+       $(add_frameworks_dep kio)
+       dev-libs/purpose:5
+       dev-qt/qtdeclarative:5
+       dev-qt/qtgui:5
+       dev-qt/qtwidgets:5
+       media-libs/qt-gstreamer[qt5]
+       virtual/libudev:=
+"
+RDEPEND="${DEPEND}
+       media-plugins/gst-plugins-meta[alsa,theora,vorbis,v4l,xv]
+"
+
+src_prepare() {
+       epatch "${FILESDIR}/${P}-bogus-deps.patch"
+
+       kde5_src_prepare
+}
diff --git a/media-video/kamoso/metadata.xml b/media-video/kamoso/metadata.xml
new file mode 100644 (file)
index 0000000..a23f444
--- /dev/null
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <herd>kde</herd>
+</pkgmetadata>