media-video/subtitlecomposer: 0.7.0 version bump, EAPI-7 bump
authorAndreas Sturmlechner <asturm@gentoo.org>
Thu, 4 Jul 2019 19:07:43 +0000 (21:07 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Thu, 4 Jul 2019 19:39:34 +0000 (21:39 +0200)
Package-Manager: Portage-2.3.68, Repoman-2.3.16
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
media-video/subtitlecomposer/Manifest
media-video/subtitlecomposer/files/subtitlecomposer-0.7.0-tests-optional.patch [new file with mode: 0644]
media-video/subtitlecomposer/subtitlecomposer-0.7.0.ebuild [new file with mode: 0644]

index 65a61b133c301415043bd31a4e5157499495931c..de64ad95ae7e05b4c1d0f3d89e4cf333faea6570 100644 (file)
@@ -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 (file)
index 0000000..b2db3d9
--- /dev/null
@@ -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 (file)
index 0000000..210696b
--- /dev/null
@@ -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."
+}