summaryrefslogtreecommitdiff
path: root/media-libs/libebur128
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-libs/libebur128
reinit the tree, so we can have metadata
Diffstat (limited to 'media-libs/libebur128')
-rw-r--r--media-libs/libebur128/Manifest17
-rw-r--r--media-libs/libebur128/files/libebur128-1.0.3_fix-tests.patch23
-rw-r--r--media-libs/libebur128/files/libebur128-1.2.2-cmake.patch52
-rw-r--r--media-libs/libebur128/files/libebur128-1.2.2-pkgconfig.patch43
-rw-r--r--media-libs/libebur128/libebur128-1.0.2.ebuild36
-rw-r--r--media-libs/libebur128/libebur128-1.0.3.ebuild40
-rw-r--r--media-libs/libebur128/libebur128-1.1.0.ebuild37
-rw-r--r--media-libs/libebur128/libebur128-1.2.0-r1.ebuild34
-rw-r--r--media-libs/libebur128/libebur128-1.2.2.ebuild39
-rw-r--r--media-libs/libebur128/metadata.xml23
10 files changed, 344 insertions, 0 deletions
diff --git a/media-libs/libebur128/Manifest b/media-libs/libebur128/Manifest
new file mode 100644
index 000000000000..42fbd154ca7b
--- /dev/null
+++ b/media-libs/libebur128/Manifest
@@ -0,0 +1,17 @@
+AUX libebur128-1.0.3_fix-tests.patch 783 SHA256 3208ff9cd80f3f943c8e92709aedc8f63255a357ca30580ffc0f26f6ead80487 SHA512 0a65d0a635cadbb15f3153dd84f367258d7dea2100777b16a3ad954cb2a08ba1032290d4060e7b2424956a9f8792684bd82710af68e902f00e4a92d5283a3f20 WHIRLPOOL 7d3495a7da3c92f24cd56decb97b9c42e780deb1b5d6e9e4cc8a84761506a1f27c25600fa7c0083f0926952f2e1bef61bc738f59b0aa207c2d17aeef7548674b
+AUX libebur128-1.2.2-cmake.patch 1919 SHA256 d17afcc1bf97d44645984483d5f82b6b96232dfcd32d0917a33f75036a4abc7d SHA512 a0e2b257a860d88436de1c3a55f416dc17486142b8202a79f314d17254366e502985a662b789d6fea08c54722df466ca8576bf5753832832a3a747aa1fd46362 WHIRLPOOL 1cd6fd6e50044c886c3cd31f36b21876d04bef30ed3f9fccafb74aa188f0d8a3df62450cac3b121ff96899fcbe1d898392a6f9d8a1c0299360df4a1ac5947d9a
+AUX libebur128-1.2.2-pkgconfig.patch 1480 SHA256 acd02537a6e08140ac9fcf226b8aeacf2b44ce85be0e41c3760e659101777cde SHA512 abe467351baf73cc159ebccbd9497cbebb6506d09192801d9b9711df4c2f354a0753a84f9af39a182bfbf76b9169ac29cfb3822dc41ba7471c6140b4a8bd202d WHIRLPOOL e12535d5d0c6ad143b60847d571fe6d8d5f5d8d24c11dfaa273fb20f63ed63c97d4c696986f50317bc970328f419bae31692b54d1c77bbcc69c30c8b3f67e28b
+DIST ebu-loudness-test-setv03.zip 80837115 SHA256 c97e8e1f962ee0a97dca37d205418b3469dd0d1e2a627fa9f505f2f1c01f54ec SHA512 ffa60e3f17370a7436614269ce33b2e3c8ec84c2477f05bd42b436bbd07b7018ae9ef935c9fd75ccff731bdf24b8231397ccc95fd003cdf6e04578ee62a663d5 WHIRLPOOL d4d128c90759c6462c1d76183960d46eae8f434a47059c1e448d8550e9ba04daef3452d9a7bd2b38f1a85ac5551ae2983bd5fa6bcd66f7df6a88dcbc38bf3bd3
+DIST ebu-loudness-test-setv05.zip 91631421 SHA256 9cc500b4df83f7c21855c74dce795ef5209a752bf884253ae57d0ce512efb062 SHA512 60d022fdac47ad0be2688411be9daecbff85da994d6fa4921bba6cffab841b081d8b15d9ce284ad2253efb686463450a84a0d19cb0bad7a934546cc52dd73771 WHIRLPOOL bc167598f13c12633e019cdbf315ee69a68c508ed86bbeb1831911540e16b02f5d79c8a911dc8d89a10318137ef5c12ab89f0447f2a9321d1515c64f454ab0e5
+DIST libebur128-1.0.2.tar.gz 29794 SHA256 9b334d31a26b47ba6740bb7bbee7a24461d535f426b1ed42368c187e27c08323 SHA512 10f0248db9ebae48c0b3a62f5bab668d77bf10cd004267593b0cec1c5fcd5b1223fff2ae82d6753db7329210a0d7feb5a65a1c030e92607805d05c1b9885416a WHIRLPOOL 4656d8e05d98d2a1b8d286602b2671d2016ec0b8e35f66689d97ad700c61fcb1234e85308ab00f01a6ac51d741232054b251da04594f646138eb5d0103564585
+DIST libebur128-1.0.3.tar.gz 19804 SHA256 dd90d0e44bd4db1e038d990b4538a7317b2f44f29eaf2e206c247663234d9d52 SHA512 586ae80c31b9ef1d315821cef6901edd3f3d5309299411e969cce18cdc1911639971ad249b3b49edae9195b428557dbfa3281a5dc22da20a245e66c497eb0422 WHIRLPOOL c5d62232ed6bc05bf909a809fc38c15d79d1278ecc708ca94d4b41e37d38985d50764eeff9a6c5a4582baf3963864d512ba90d6b7a90c363b3bb334ebb860fda
+DIST libebur128-1.1.0.tar.gz 19318 SHA256 c60e78f4bfda387a0895c64a4fc9850445e3a4425cc98f9140885966ce17c1d1 SHA512 13a0d92eae8d991a15cb090e5f3ca34fbe285bf7e8e01e10b5ccc8be4f066e8bbff6920370d4506284f02dbfca3a5189ddfe9135f195179d356257055768c08a WHIRLPOOL 0775f4b220a690310f736dccd1748fe48c643cf0889378b4238b7aa4cc57967fb77c81f28cd4bdd4de220e832c220d45524fd63834e6e5ce37cfe381118cc0eb
+DIST libebur128-1.2.0.tar.gz 21690 SHA256 f4c4ce732ae085214bcc47349f89b61ed53c13721c097e01cb966533ee6b1e5b SHA512 70bae021e4a9c60e1eee5dd2ffb357bda007b9f29cda0a25b9ae453cf389661a238e6300a2bbfb323afe9b0955d2b8468fff91eb1bf2a3d665c9e32c5e80631d WHIRLPOOL 50a861a61bcb7028d6cf94ac669d3876199680f696eff09a699713cbc5047d863f337cebd54988e3061daa420f92454148f642c16fa4abe4e50da6ad1ff76c17
+DIST libebur128-1.2.2.tar.gz 21738 SHA256 1d0d7e855da04010a2432e11fbc596502caf11b61c3b571ccbcb10095fe44b43 SHA512 76cf92824498cc0f73676ce4bf8e58156a0b2d5c686c6a483bbbdba95f879d651a2a3bb3b836e6409e0821aa165dc3c71827f47fd952407fb3e421a0c2c7ebf6 WHIRLPOOL 3ff598a6c1c47bef493770fc139274e02e36b976785d5865df8556df0c3b782a6d9aebfebf6a5ef1e291f5db6c89156cc214e775885f24b0293653003e7fb3cf
+EBUILD libebur128-1.0.2.ebuild 942 SHA256 df5d2a1603e30085956b7433f72a0267525c8be45fc13a42b349a41463242c1e SHA512 4e38695dc1b4b8cf086040859b6b41b5de35a329076571d1a9eda10d6d05fca74cb56c2b1d0d0389972217162612233c3b97573670a54068d2581c0b8212371f WHIRLPOOL 7b2eba34049a0c3099524299611cc39a64bf49840823ed2e7cef16a704901596250aed0509169b6965f39726f8dd1a31f6acf5447e93c7783704ad29e23c3b5c
+EBUILD libebur128-1.0.3.ebuild 1159 SHA256 09cfcdb3f159f043d1d8df74c584adaa0cdc09aff48b013f9566bf524411915d SHA512 b7e0d59cb4098dc49eb8b6c72c8a8e8bd49a85e28fda52c5c5dc64bcf155e57eff822b20d9512a7a3463d7d2ec0e942a652637e7cdb4d63bd1cb98b66e4df5c0 WHIRLPOOL 5dade6d0fbe97df1374f92116760033d719c734f824a05a70bbb12a76386ebdc9d63df60437ef0fdc6879633037a5d8860e17f632c003e847fc5f36cf63e7ecc
+EBUILD libebur128-1.1.0.ebuild 1069 SHA256 a23e20a8838c22fee8f0a3ea618c1d0303029bce137ce4116aa8a72d3c2768aa SHA512 897b218e80356300bcf6494816db7dc487591a21ca35764b34ee7237377b4f9c37b4e3c2eef522ac4469061fc2429db07a016e30ca498b3ffe92763ee85cf5d0 WHIRLPOOL 7bff4d6e031351fe0881d773c0677e0b297bafb169410bf35e3ab8d4837c1a091bc09ea58afb31113d6950a30c6ea0ca7edf4b817766d543679d0a034eebe322
+EBUILD libebur128-1.2.0-r1.ebuild 953 SHA256 99bbd7ad2a0098059500cbc49eeb92826083b80ed93436695e0dc302457a5cd4 SHA512 a7b1ae3173dd6ce3ced5f947750b4fe223f4d468746f77df471a20753439534269ec3b8b6fc9288cffb80f60d15e84debe165a9a3f8fb7d631d3ce4e7e73889b WHIRLPOOL 749c605320f2b0b382cd5121d7104e7b4bffac78fb4c193c60c52e8a65012fc37202a32f4336dd44a44a02043938a24b5bddd285a40224a0e64ec2355eae0cf7
+EBUILD libebur128-1.2.2.ebuild 1042 SHA256 138382d73aff571578b587fe6b496bb01accd70d3830dea742823209fe104792 SHA512 306c3e3fc377c252b347a9acc2a3376bc1e7ad152272863dba45b508fb32a1dcb9faf9cbbe3e482cfd174ed4e71cf990499d8b277321d53287be9bdbb74c4d57 WHIRLPOOL 689600fa17ea371563530299f146a4c40977af0c684c204e5c68fbbe0e6ab565577558b9dd3a1f75f7f34bf378f9ede0a859e655ece67558ff6220bf36c6acda
+MISC ChangeLog 2255 SHA256 762ec46b4b23c8f600d0999ae7ec95930a0fd600fd7725c6655e4b050231e111 SHA512 ee8a165a058c3bb268d7dbf50a8d960e5641d88466b92a2288c986bbf357f4d264026851936b616eee4df05ac046ba98a9b2ae1c123470913b53efcbbe8b0d0d WHIRLPOOL 8c39daddb87b6cd0e809880d666f6efa08a84f3868aa639bb00cd8f90e93dd850e6592d46fddcec8e9890cca320198929d9294d73162a0e06aabf11c271431e7
+MISC metadata.xml 752 SHA256 597cff2b00a6181949c6de5c7ff0a72f508182399cea89037c18fa4601e7f943 SHA512 d0117447e87d367f45438b1b2ebd3f238b8ddf97491d8d742bb0f6609e6da4cb155249f86f95a330545c89b6433badd93ff2d26b55a3417990d63612e26b6218 WHIRLPOOL 5c3eafc521504d640bba37edb3b563c66feb50713486a880c741c9c2e38420673465954f3dce4a7432709a6115e8b7700c329696a82cdd9a89d813f825f53c62
diff --git a/media-libs/libebur128/files/libebur128-1.0.3_fix-tests.patch b/media-libs/libebur128/files/libebur128-1.0.3_fix-tests.patch
new file mode 100644
index 000000000000..34a49cbea35e
--- /dev/null
+++ b/media-libs/libebur128/files/libebur128-1.0.3_fix-tests.patch
@@ -0,0 +1,23 @@
+From d5a443afaf8bb16188d4069891c63ceab67bdb80 Mon Sep 17 00:00:00 2001
+From: Diogo Pereira <sir.suriv@gmail.com>
+Date: Mon, 7 Sep 2015 18:46:20 +0100
+Subject: [PATCH] Fix tests build
+
+---
+ test/CMakeLists.txt | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
+index 28716f0..9bc67d4 100644
+--- a/test/CMakeLists.txt
++++ b/test/CMakeLists.txt
+@@ -3,7 +3,8 @@ cmake_minimum_required(VERSION 2.8.9)
+ set(ENABLE_TESTS OFF CACHE BOOL "Build test binaries, needs libsndfile")
+
+ if(ENABLE_TESTS)
+- find_pkg_config(SNDFILE sndfile REQUIRED)
++ find_package(PkgConfig REQUIRED)
++ pkg_check_modules(SNDFILE REQUIRED sndfile)
+
+ include_directories(${EBUR128_INCLUDE_DIR})
+ include_directories(SYSTEM ${SNDFILE_INCLUDE_DIRS})
diff --git a/media-libs/libebur128/files/libebur128-1.2.2-cmake.patch b/media-libs/libebur128/files/libebur128-1.2.2-cmake.patch
new file mode 100644
index 000000000000..9563ed15319f
--- /dev/null
+++ b/media-libs/libebur128/files/libebur128-1.2.2-cmake.patch
@@ -0,0 +1,52 @@
+From d374f1983966fc3ff65bcd73e5f12d358c4f1273 Mon Sep 17 00:00:00 2001
+From: "Yann E. MORIN" <yann.morin.1998@free.fr>
+Date: Sat, 4 Mar 2017 14:33:07 +0100
+Subject: [PATCH] CMakeList: do not overwrite module path
+
+Currently, the CMakeList.txt completely overwrites the CMAKE_MODULE_PATH
+variable.
+
+This is problematic when an upper-layer buildsystem wants to set its own
+module path to use custom modules.
+
+For example, Buildroot [0] provides a custom platform description [1] to
+fix cross-compilation issue. Overwriting the module path means that this
+custom platform description is not found:
+
+ System is unknown to cmake, create:
+ Platform/Buildroot to use this system, please send your config file
+ to cmake@www.cmake.org so it can be added to cmake
+
+Providing such a custom platform description is what the upstream cmake
+devs suggest [2], quoting:
+
+ If a toolchain file specifies CMAKE_SYSTEM_NAME such that a custom
+ `Platform/MySystem.cmake` file is loaded then the latter can set
+ them [*] as needed for the target platform.
+
+[*] offending settings causing RPATH issues during cross-compilation.
+
+So we need to append to the module path, rather than replace it blindly.
+
+[0] https://buildroot.org/
+[1] https://git.buildroot.org/buildroot/tree/support/misc/Buildroot.cmake
+[2] http://public.kitware.com/pipermail/cmake/2017-February/065063.html
+
+Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index eea18a6..ff352eb 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,7 +1,7 @@
+ cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
+ project(libebur128 C)
+
+-set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
++list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
+ set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
+ set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR})
+
diff --git a/media-libs/libebur128/files/libebur128-1.2.2-pkgconfig.patch b/media-libs/libebur128/files/libebur128-1.2.2-pkgconfig.patch
new file mode 100644
index 000000000000..7382960711f1
--- /dev/null
+++ b/media-libs/libebur128/files/libebur128-1.2.2-pkgconfig.patch
@@ -0,0 +1,43 @@
+From 13d70019c6d0e94b1ab71d0d2cf80023cc793071 Mon Sep 17 00:00:00 2001
+From: Sebastian Ramacher <sramacher@debian.org>
+Date: Sat, 18 Feb 2017 01:13:03 +0100
+Subject: [PATCH] Add a pkg-config file (fixes #61)
+
+Signed-off-by: Sebastian Ramacher <sramacher@debian.org>
+---
+ ebur128/CMakeLists.txt | 6 ++++++
+ ebur128/libebur128.pc.cmake | 11 +++++++++++
+ 2 files changed, 17 insertions(+)
+ create mode 100644 ebur128/libebur128.pc.cmake
+
+diff --git a/ebur128/CMakeLists.txt b/ebur128/CMakeLists.txt
+index af09ebb..f9a8017 100644
+--- a/ebur128/CMakeLists.txt
++++ b/ebur128/CMakeLists.txt
+@@ -59,3 +59,9 @@ if(BUILD_STATIC_LIBS)
+ else()
+ install(TARGETS ebur128 DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ endif()
++
++#### pkg-config
++configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libebur128.pc.cmake
++ ${CMAKE_CURRENT_BINARY_DIR}/libebur128.pc @ONLY)
++install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libebur128.pc"
++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
+diff --git a/ebur128/libebur128.pc.cmake b/ebur128/libebur128.pc.cmake
+new file mode 100644
+index 0000000..017fdeb
+--- /dev/null
++++ b/ebur128/libebur128.pc.cmake
+@@ -0,0 +1,11 @@
++prefix=@CMAKE_INSTALL_PREFIX@
++includedir=${prefix}/include
++libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
++
++Name: libebur128
++Description: EBU R 128 standard for loudness normalisation
++Version: @EBUR128_VERSION@
++URL: https://github.com/jiixyj/libebur128
++Libs: -L${libdir} -lebur128
++Libs.private: -lm
++Cflags: -I${includedir}
diff --git a/media-libs/libebur128/libebur128-1.0.2.ebuild b/media-libs/libebur128/libebur128-1.0.2.ebuild
new file mode 100644
index 000000000000..2994e6026ef5
--- /dev/null
+++ b/media-libs/libebur128/libebur128-1.0.2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="A library implementing the EBU R128 loudness standard."
+HOMEPAGE="https://github.com/jiixyj/libebur128"
+SRC_URI="https://github.com/jiixyj/libebur128/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ test? ( https://tech.ebu.ch/files/live/sites/tech/files/shared/testmaterial/ebu-loudness-test-setv03.zip )"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+speex test"
+
+RDEPEND="speex? ( media-libs/speex )"
+DEPEND="${RDEPEND}
+ test? ( media-libs/libsndfile
+ app-arch/unzip )"
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_disable speex SPEEXDSP)
+ $(cmake-utils_use_enable test TESTS)
+ )
+ cmake-utils_src_configure
+}
+
+src_test() {
+ cd "${WORKDIR}"
+ "${P}_build"/r128-test-library | tee test-results
+ grep -c "^FAILED" test-results > /dev/null \
+ && die "At least one test failed"
+}
diff --git a/media-libs/libebur128/libebur128-1.0.3.ebuild b/media-libs/libebur128/libebur128-1.0.3.ebuild
new file mode 100644
index 000000000000..4f58da06c7f5
--- /dev/null
+++ b/media-libs/libebur128/libebur128-1.0.3.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-multilib
+
+DESCRIPTION="A library implementing the EBU R128 loudness standard"
+HOMEPAGE="https://github.com/jiixyj/libebur128"
+SRC_URI="https://github.com/jiixyj/libebur128/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ test? ( https://tech.ebu.ch/files/live/sites/tech/files/shared/testmaterial/ebu-loudness-test-setv03.zip )"
+
+LICENSE="MIT"
+SLOT="0/1"
+KEYWORDS="~amd64 ~x86"
+IUSE="+speex static-libs test"
+
+RDEPEND="speex? ( media-libs/speex[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+ test? ( media-libs/libsndfile[${MULTILIB_USEDEP}]
+ app-arch/unzip )"
+
+# Fix tests build. Merged upstream (#39).
+PATCHES=( "${FILESDIR}/${P}_fix-tests.patch" )
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_disable speex SPEEXDSP)
+ $(cmake-utils_use_build static-libs STATIC_LIBS)
+ $(cmake-utils_use_enable test TESTS)
+ )
+ cmake-utils_src_configure
+}
+
+multilib_src_test() {
+ cd "${WORKDIR}"
+ "${BUILD_DIR}"/r128-test-library | tee test-results
+ grep -c "^FAILED" test-results > /dev/null \
+ && die "At least one test failed"
+}
diff --git a/media-libs/libebur128/libebur128-1.1.0.ebuild b/media-libs/libebur128/libebur128-1.1.0.ebuild
new file mode 100644
index 000000000000..f8a6bf6fa1eb
--- /dev/null
+++ b/media-libs/libebur128/libebur128-1.1.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-multilib
+
+DESCRIPTION="A library implementing the EBU R128 loudness standard"
+HOMEPAGE="https://github.com/jiixyj/libebur128"
+SRC_URI="https://github.com/jiixyj/libebur128/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ test? ( https://tech.ebu.ch/files/live/sites/tech/files/shared/testmaterial/ebu-loudness-test-setv03.zip )"
+
+LICENSE="MIT"
+SLOT="0/1"
+KEYWORDS="~amd64 ~x86"
+IUSE="+speex static-libs test"
+
+RDEPEND="speex? ( media-libs/speex[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+ test? ( media-libs/libsndfile[${MULTILIB_USEDEP}]
+ app-arch/unzip )"
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_disable speex SPEEXDSP)
+ $(cmake-utils_use_build static-libs STATIC_LIBS)
+ $(cmake-utils_use_enable test TESTS)
+ )
+ cmake-utils_src_configure
+}
+
+multilib_src_test() {
+ cd "${WORKDIR}"
+ "${BUILD_DIR}"/r128-test-library | tee test-results
+ grep -c "^FAILED" test-results > /dev/null \
+ && die "At least one test failed"
+}
diff --git a/media-libs/libebur128/libebur128-1.2.0-r1.ebuild b/media-libs/libebur128/libebur128-1.2.0-r1.ebuild
new file mode 100644
index 000000000000..8ddaa34fcd8d
--- /dev/null
+++ b/media-libs/libebur128/libebur128-1.2.0-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-multilib
+
+DESCRIPTION="A library implementing the EBU R128 loudness standard"
+HOMEPAGE="https://github.com/jiixyj/libebur128"
+SRC_URI="https://github.com/jiixyj/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ test? ( https://tech.ebu.ch/files/live/sites/tech/files/shared/testmaterial/ebu-loudness-test-setv05.zip )"
+
+LICENSE="MIT"
+SLOT="0/1"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 x86"
+IUSE="static-libs test"
+
+DEPEND="test? ( app-arch/unzip
+ media-libs/libsndfile[${MULTILIB_USEDEP}] )"
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DBUILD_STATIC_LIBS=$(usex static-libs)
+ -DENABLE_TESTS=$(usex test)
+ )
+ cmake-utils_src_configure
+}
+
+multilib_src_test() {
+ cd "${WORKDIR}"
+ "${BUILD_DIR}"/r128-test-library | tee test-results
+ grep -c "^FAILED" test-results > /dev/null \
+ && die "At least one test failed"
+}
diff --git a/media-libs/libebur128/libebur128-1.2.2.ebuild b/media-libs/libebur128/libebur128-1.2.2.ebuild
new file mode 100644
index 000000000000..d1e90f816a22
--- /dev/null
+++ b/media-libs/libebur128/libebur128-1.2.2.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-multilib
+
+DESCRIPTION="A library implementing the EBU R128 loudness standard"
+HOMEPAGE="https://github.com/jiixyj/libebur128"
+SRC_URI="https://github.com/jiixyj/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ test? ( https://tech.ebu.ch/files/live/sites/tech/files/shared/testmaterial/ebu-loudness-test-setv05.zip )"
+
+LICENSE="MIT"
+SLOT="0/1"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86"
+IUSE="static-libs test"
+
+DEPEND="test? ( app-arch/unzip
+ media-libs/libsndfile[${MULTILIB_USEDEP}] )"
+
+PATCHES=(
+ "${FILESDIR}/${P}-pkgconfig.patch"
+ "${FILESDIR}/${P}-cmake.patch"
+)
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DBUILD_STATIC_LIBS=$(usex static-libs)
+ -DENABLE_TESTS=$(usex test)
+ )
+ cmake-utils_src_configure
+}
+
+multilib_src_test() {
+ cd "${WORKDIR}"
+ "${BUILD_DIR}"/r128-test-library | tee test-results
+ grep -c "^FAILED" test-results > /dev/null \
+ && die "At least one test failed"
+}
diff --git a/media-libs/libebur128/metadata.xml b/media-libs/libebur128/metadata.xml
new file mode 100644
index 000000000000..7fa242904d1d
--- /dev/null
+++ b/media-libs/libebur128/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>amynka@gentoo.org</email>
+ <name>Amy Winston</name>
+</maintainer>
+<longdescription lang="en">
+ libebur128 is a library that implements the EBU R128 standard for loudness normalisation.
+</longdescription>
+<upstream>
+ <maintainer status="active">
+ <email>jan.kokemueller@gmail.com</email>
+ <name>Jan Kokemüller</name>
+ </maintainer>
+ <maintainer status="active">
+ <email>superjoe30@gmail.com</email>
+ <name>Andrew Kelley</name>
+ </maintainer>
+ <remote-id type="github">jiixyj/libebur128</remote-id>
+ <bugs-to>https://github.com/jiixyj/libebur128/issues</bugs-to>
+</upstream>
+</pkgmetadata>