summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Sautier <sautier.louis@gmail.com>2016-04-16 02:06:45 +0200
committerIan Delaney <idella4@gentoo.org>2016-04-21 17:51:59 +0800
commitb7bad4dcadbfcaf5e71469b95a8449531d0b0865 (patch)
tree5365bec74855b0dbd65feb2a2f4f07d172477457 /media-libs
parent=dev-libs/protobuf-2.4.1: drop old (diff)
downloadgentoo-b7bad4dcadbfcaf5e71469b95a8449531d0b0865.tar.gz
gentoo-b7bad4dcadbfcaf5e71469b95a8449531d0b0865.tar.bz2
gentoo-b7bad4dcadbfcaf5e71469b95a8449531d0b0865.zip
media-libs/libopenshot: bump to 0.1.1
- imagemagick is now optional - python and ruby can be disabled using cmake options Package-Manager: portage-2.2.28 Closes: https://github.com/gentoo/gentoo/pull/1271 Signed-off-by: Ian Delaney <idella4@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/libopenshot/Manifest5
-rw-r--r--media-libs/libopenshot/libopenshot-0.1.1.ebuild73
-rw-r--r--media-libs/libopenshot/metadata.xml2
3 files changed, 79 insertions, 1 deletions
diff --git a/media-libs/libopenshot/Manifest b/media-libs/libopenshot/Manifest
index 2a3fdcab7443..095f501907f3 100644
--- a/media-libs/libopenshot/Manifest
+++ b/media-libs/libopenshot/Manifest
@@ -1 +1,6 @@
+AUX libopenshot-0.1.0-fix-tests-exit-code.patch 816 SHA256 029b5ef64fabae87cbce4bc11253cbc476a49ecf45ec71bf3404e88126102665 SHA512 d1a585e824097a7ce379059b49f057bc1c040b8f54c273cfdc058bbc6f6a4c52d45e4d5a763ebbf72f1b50901483a1e59e3f7d9d108ba4c060f1c1d632ceb0dc WHIRLPOOL a566e84699cf1f7dc277e5d1814e78958647ce11441f86f6f12b695675e7f0def505c65ade130806ff8807dcca181292421ec5f4ff3effcbba4fb74e1443f942
DIST libopenshot-0.1.0.tar.gz 10970157 SHA256 1eb3cc27d9d5a5c966dd5dd445567239c6cbcc08772ba99e5f3b52c87a28d809 SHA512 bd5767b96ae38da7f31bfcca3ec5b34c458ab271d3e899b1982cd09b0576d29a3101c54fc840766d40aa7cbc83130064f0440f5c465999f0518449318ab87480 WHIRLPOOL c485271357545e85b94753659f0a58f4e7b0f4c4ee2a4d53bbcb1d650a3cef730103b73577848d0e2e6a355d42788451fbc1839c82343b2f172c3fd725906f29
+DIST libopenshot-0.1.1.tar.gz 10970421 SHA256 7f79084b0fda085ee5740f4907a2ac4bd736de6b3c4958b4441f49eaedfc7eee SHA512 7ed329b8a066ace9996342504ce817cd0e20a8599a71fa6483d8b2eeb52b5bfeed0cb4b9d099c34a275fc529d55d1bd0527707264ddd5d106574ee25e4fcd3ec WHIRLPOOL 9a759029f4b0ff1510157c91ac09f67c665446b5551487c6d228c2a668b019bb919aae53e5813b541863d32116017f0fc2a19dbc008e307e3bc9c32cc72df884
+EBUILD libopenshot-0.1.0.ebuild 1775 SHA256 90b4050b2555e46f590d16ef144d5844bdcb5f42ba30973cb42ac558b76dee62 SHA512 50ae76ee62f20462c2cab649f10839e5692dc07fd4c9e8af37fd35bcdf40ba7d1716e007f00dc613bcbf82a75f25abebc694b69c94a44f1ad97675f1df455978 WHIRLPOOL 79b3cfda35eb6be739a25dffb271589e7fb3cc7af5192e3dea8a18b9dcfefac5b6171b8438b71f61545b7b228010f2f11a1a697ed0a3be840bacdea2fa046636
+EBUILD libopenshot-0.1.1.ebuild 1791 SHA256 68a2008fb6b7055e16430090e2dff98c19c10648f7832ebdb6a676ba02383709 SHA512 5240a196dfb8d9a6c385ac488c0db6a1376b7976eb3d8c5ccd7b116c79fe1b40ba674444b7cd9b4eb0d942ba55dc27cf81af1f1abb8925c5d5e2e4262626dc0b WHIRLPOOL bde341d59bf95b6384d5dd820ba1a542bf8b6e866adcfde8552b2558dfa80c17117ac30ea45af17be48d0b5fd4369adb8d633d343a88a0858d642d4a160a6a80
+MISC metadata.xml 719 SHA256 8c512fa58cf2f1687725a656c0a29289a68f16db3b0b49bb45f406b1685d8c75 SHA512 9e2750213aa6a93dd32a0798466ebf4ceeb0caece686a1b7b36df06cfc936ab37290d1fd0a38559633e469709db9d72a03e7a6a13a46ed1a115493548d955941 WHIRLPOOL 336cecde11de8c46940735ebfa98cac3972535a06cfcaba16e9cd4f043c429a754022d65b4267a05e11e353049a0b6fac1c69a700a61bd3dbe2b4e58a6b00be9
diff --git a/media-libs/libopenshot/libopenshot-0.1.1.ebuild b/media-libs/libopenshot/libopenshot-0.1.1.ebuild
new file mode 100644
index 000000000000..8253c49c0b0b
--- /dev/null
+++ b/media-libs/libopenshot/libopenshot-0.1.1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python3_{4,5} )
+
+inherit cmake-utils python-single-r1 versionator
+
+DESCRIPTION="Video editing library used by OpenShot"
+HOMEPAGE="http://www.openshotvideo.com/"
+SRC_URI="https://launchpad.net/${PN}/$(get_version_component_range 1-2)/${PV}/+download/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+imagemagick libav +python test"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtmultimedia:5[widgets]
+ media-libs/libopenshot-audio
+ imagemagick? ( media-gfx/imagemagick:0[cxx] )
+ libav? ( media-video/libav:=[encode,x264,xvid,vpx,mp3,theora] )
+ !libav? ( media-video/ffmpeg:0=[encode,x264,xvid,vpx,mp3,theora] )
+ python? ( ${PYTHON_DEPS} )
+"
+DEPEND="
+ ${RDEPEND}
+ python? ( dev-lang/swig )
+ test? ( dev-libs/unittest++ )
+"
+
+# https://github.com/OpenShot/libopenshot/pull/19
+PATCHES=( "${FILESDIR}/${PN}-0.1.0-fix-tests-exit-code.patch" )
+
+S="${WORKDIR}"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # https://github.com/OpenShot/libopenshot/issues/17
+ use test || cmake_comment_add_subdirectory tests
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_RUBY=OFF # TODO: add ruby support
+ -DENABLE_PYTHON=$(usex python)
+ -DCMAKE_DISABLE_FIND_PACKAGE_ImageMagick=$(usex !imagemagick)
+ )
+ if use python; then
+ mycmakeargs+=(
+ -DPYTHON_EXECUTABLE="${PYTHON}"
+ -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
+ -DPYTHON_LIBRARY="$(python_get_library_path)"
+ )
+ fi
+ cmake-utils_src_configure
+}
+
+src_test() {
+ pushd "${BUILD_DIR}/tests" > /dev/null || die
+ ./openshot-test || die "Tests failed"
+ popd > /dev/null || die
+}
diff --git a/media-libs/libopenshot/metadata.xml b/media-libs/libopenshot/metadata.xml
index ab0b2d810736..1c216c0849dd 100644
--- a/media-libs/libopenshot/metadata.xml
+++ b/media-libs/libopenshot/metadata.xml
@@ -13,6 +13,6 @@
<upstream>
<remote-id type="launchpad">libopenshot</remote-id>
<remote-id type="github">OpenShot/libopenshot</remote-id>
- <bugs-to>https://github.com/OpenShot/libopenshot/issues https://bugs.launchpad.net/libopenshot/+bugs</bugs-to>
+ <bugs-to>https://github.com/OpenShot/libopenshot/issues</bugs-to>
</upstream>
</pkgmetadata>