summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2019-07-04 21:07:43 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2019-07-04 21:39:34 +0200
commit887447c7391670e54d2b368610050431e9091ced (patch)
treed59cca58a0ec1608adfcf958966786566df7754f /media-video/subtitlecomposer
parentkde5.eclass: install linguas-related files unconditionally for kconfigwidgets (diff)
downloadgentoo-887447c7391670e54d2b368610050431e9091ced.tar.gz
gentoo-887447c7391670e54d2b368610050431e9091ced.tar.bz2
gentoo-887447c7391670e54d2b368610050431e9091ced.zip
media-video/subtitlecomposer: 0.7.0 version bump, EAPI-7 bump
Package-Manager: Portage-2.3.68, Repoman-2.3.16 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-video/subtitlecomposer')
-rw-r--r--media-video/subtitlecomposer/Manifest1
-rw-r--r--media-video/subtitlecomposer/files/subtitlecomposer-0.7.0-tests-optional.patch9
-rw-r--r--media-video/subtitlecomposer/subtitlecomposer-0.7.0.ebuild77
3 files changed, 87 insertions, 0 deletions
diff --git a/media-video/subtitlecomposer/Manifest b/media-video/subtitlecomposer/Manifest
index 65a61b133c30..de64ad95ae7e 100644
--- a/media-video/subtitlecomposer/Manifest
+++ b/media-video/subtitlecomposer/Manifest
@@ -1 +1,2 @@
DIST subtitlecomposer-0.6.6.tar.gz 1637272 BLAKE2B 0a3a7cc7f0301b5ea8cb7affd4600349c8b65bf8a856480e706a3549d8deb7ddc687faad11258d7753e6484783b50fff99ddbd1fc9f68a35fbd0b4346a7a2748 SHA512 0f1513d3ff0abcbd0979b370e1ec4cd0b92f7e65adef8c922ddbf37e2dbc73fb4cd821356df6dc1ba3d8832ab8cba25573f68297f4f6be05b5c4d824a663872a
+DIST subtitlecomposer-0.7.0.tar.gz 1649840 BLAKE2B a60d3917cc9bd8025d75782e850ba2507ab140ffaeff84e995d58994e848ebe4e103a87824a20dd689132235f67102e7fec39bf0f99d827c78883165e01e9fb7 SHA512 b1c71496a2609686946af2377862b86d70e357565646a3de2f158481bc9e397f649d0907499ecd21a193ec07eaf2135b7f5831697e6b20ba6721a743227fbe04
diff --git a/media-video/subtitlecomposer/files/subtitlecomposer-0.7.0-tests-optional.patch b/media-video/subtitlecomposer/files/subtitlecomposer-0.7.0-tests-optional.patch
new file mode 100644
index 000000000000..b2db3d9975e6
--- /dev/null
+++ b/media-video/subtitlecomposer/files/subtitlecomposer-0.7.0-tests-optional.patch
@@ -0,0 +1,9 @@
+--- a/src/core/CMakeLists.txt 2019-07-04 21:15:26.000891815 +0200
++++ b/src/core/CMakeLists.txt 2019-07-04 21:15:26.005891858 +0200
+@@ -13,4 +13,6 @@
+ CACHE INTERNAL EXPORTEDVARIABLE
+ )
+
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
diff --git a/media-video/subtitlecomposer/subtitlecomposer-0.7.0.ebuild b/media-video/subtitlecomposer/subtitlecomposer-0.7.0.ebuild
new file mode 100644
index 000000000000..210696b121d1
--- /dev/null
+++ b/media-video/subtitlecomposer/subtitlecomposer-0.7.0.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+KDE_TEST="forceoptional"
+VIRTUALX_REQUIRED="test"
+inherit kde5
+
+DESCRIPTION="Text-based subtitles editor"
+HOMEPAGE="https://github.com/maxrd2/subtitlecomposer"
+SRC_URI="https://github.com/maxrd2/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE="gstreamer libav mpv unicode xine"
+
+BDEPEND="
+ sys-devel/gettext
+ virtual/pkgconfig
+"
+DEPEND="
+ $(add_frameworks_dep kcodecs)
+ $(add_frameworks_dep kcompletion)
+ $(add_frameworks_dep kconfig)
+ $(add_frameworks_dep kconfigwidgets)
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep ki18n)
+ $(add_frameworks_dep kio)
+ $(add_frameworks_dep kross)
+ $(add_frameworks_dep ktextwidgets)
+ $(add_frameworks_dep kwidgetsaddons)
+ $(add_frameworks_dep kxmlgui)
+ $(add_frameworks_dep sonnet)
+ $(add_qt_dep qtgui)
+ $(add_qt_dep qtwidgets)
+ media-libs/phonon[qt5(+)]
+ gstreamer? (
+ dev-libs/glib:2
+ media-libs/gstreamer:1.0
+ media-libs/gst-plugins-base:1.0
+ )
+ libav? ( media-video/libav:= )
+ !libav? ( media-video/ffmpeg:0= )
+ mpv? ( media-video/mpv[libmpv] )
+ unicode? ( dev-libs/icu:= )
+ xine? (
+ media-libs/xine-lib
+ x11-libs/libX11
+ x11-libs/libxcb
+ )
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}-tests-optional.patch" )
+
+S="${WORKDIR}/SubtitleComposer-${PV}"
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_DISABLE_FIND_PACKAGE_PocketSphinx=ON # bug 616706
+ $(cmake-utils_use_find_package gstreamer GStreamer)
+ $(cmake-utils_use_find_package mpv MPV)
+ $(cmake-utils_use_find_package unicode ICU)
+ $(cmake-utils_use_find_package xine Xine)
+ $(cmake-utils_use_find_package xine X11)
+ )
+
+ kde5_src_configure
+}
+
+pkg_postinst() {
+ kde5_pkg_postinst
+
+ elog "Some example scripts provided by ${PN} require dev-lang/ruby"
+ elog "or dev-lang/python to be installed."
+}