media-libs/libopenshot-audio: bump to 0.1.4, #618410
authorLouis Sautier <sautier.louis@gmail.com>
Sat, 10 Jun 2017 13:43:04 +0000 (15:43 +0200)
committerMichał Górny <mgorny@gentoo.org>
Wed, 26 Jul 2017 08:12:29 +0000 (10:12 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.2

media-libs/libopenshot-audio/Manifest
media-libs/libopenshot-audio/files/libopenshot-audio-0.1.4-fix-under-linking.patch [new file with mode: 0644]
media-libs/libopenshot-audio/libopenshot-audio-0.1.4.ebuild [new file with mode: 0644]

index 40e2a0dbd162348cb5d81f03f4a41a2ad0a30382..9569d6dc1722e50bdca0498c03a6d38958f9cef7 100644 (file)
@@ -1,2 +1,3 @@
 DIST libopenshot-audio-0.0.6.tar.gz 2963454 SHA256 29707bf7603fc08b2a152abff2599405f3499a2d674919b1a1749638cd91f42e SHA512 20ea1805134f899d845469dacca6bb86eaa6e6cb55cea22acca0ff5e4261782ecdedaa44454e2eb449183a985130861d305402f5cce37da4624650a786167993 WHIRLPOOL 1d9638ebc268190e2ef9c4ad93e1b4c86734940488660e65beef4f4362b2e9a1b5602f0717918ded89b8d588251d3fedff91cfd41c9425fb6d63c408b332478c
 DIST libopenshot-audio-0.1.2.tar.gz 2964758 SHA256 fc03a081feffa424c303a30720cece200222cb28c92e21c4b680d88cb42260d9 SHA512 955f9c20ebf06474702208845fe49d031e29b0614fd15c0e1784c52d1c406fb7a980940bba1f297543305a9611fefd6b9232328cd39c5edbc8908018c5b12f1c WHIRLPOOL 6a46b7fbda690becd28f166285d26fbf21aaca80c7b88fb28e69d9c3482f705ea40c256d8192f686878b5c3f1f0cf95e4b29bfd55c73b818122ab7f303a883cd
+DIST libopenshot-audio-0.1.4.tar.gz 2959997 SHA256 3aa8cff51913a65e266b49699858fd5139b63817bd207145cf5699fe75d2459e SHA512 5605164a8c66c33ac893cc2b42cdacffff03eb156a61740c1b2c00dd7e7602a802fa1dc3795c620810e3ee29a290aa6bae8b62bc17eab3f4dd2d8052e0481824 WHIRLPOOL 3022438a912ed17684e8946f70d315c58bd2b1a8f5897c795c837e2aaaf9426f87e31aded294b6eadb583c7108df7331cf76476b21847fa0a3d78a0803da70fe
diff --git a/media-libs/libopenshot-audio/files/libopenshot-audio-0.1.4-fix-under-linking.patch b/media-libs/libopenshot-audio/files/libopenshot-audio-0.1.4-fix-under-linking.patch
new file mode 100644 (file)
index 0000000..18571ab
--- /dev/null
@@ -0,0 +1,22 @@
+commit f489d3c4ab9dc3ff6fe443a0e8a31b46ed73371d
+Author: Louis Sautier <sautier.louis@gmail.com>
+Date:   Sun Jul 23 22:37:01 2017 +0200
+
+    Fix under-linking (pthread and dl), fixes #3
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index c6c8f54..e0e2433 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -168,7 +168,11 @@ set_target_properties(openshot-audio
+                       SOVERSION ${SO_VERSION}
+                       INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib")
++set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
++find_package(Threads REQUIRED)
+ TARGET_LINK_LIBRARIES(openshot-audio
++      ${CMAKE_DL_LIBS}
++      ${CMAKE_THREAD_LIBS_INIT}
+       ${JUCE_PLATFORM_SPECIFIC_LIBRARIES}
+ )
diff --git a/media-libs/libopenshot-audio/libopenshot-audio-0.1.4.ebuild b/media-libs/libopenshot-audio/libopenshot-audio-0.1.4.ebuild
new file mode 100644 (file)
index 0000000..ef9f64b
--- /dev/null
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="Audio library used by OpenShot"
+HOMEPAGE="http://www.openshot.org/ https://launchpad.net/libopenshot"
+SRC_URI="https://github.com/OpenShot/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+       media-libs/alsa-lib
+       media-libs/freetype
+       x11-libs/libX11
+       x11-libs/libXcursor
+       x11-libs/libXext
+       x11-libs/libXinerama
+       x11-libs/libXrandr
+"
+DEPEND="${RDEPEND}"
+
+# https://github.com/OpenShot/libopenshot-audio/pull/7
+PATCHES=( "${FILESDIR}/${P}-fix-under-linking.patch" )