summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2018-09-24 17:45:56 +0200
committerLars Wendler <polynomial-c@gentoo.org>2018-09-24 17:51:29 +0200
commitda56dcb5f51914e8fdc0b1a3ea861f05fe4aa974 (patch)
tree996c479ece6e01c3995c3cc7a2688d411b0ec8dd /media-sound
parentmedia-libs/libopusenc: Initial commit (diff)
downloadgentoo-da56dcb5f51914e8fdc0b1a3ea861f05fe4aa974.tar.gz
gentoo-da56dcb5f51914e8fdc0b1a3ea861f05fe4aa974.tar.bz2
gentoo-da56dcb5f51914e8fdc0b1a3ea861f05fe4aa974.zip
media-sound/opus-tools: Bump to version 0.2
Package-Manager: Portage-2.3.49, Repoman-2.3.11
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/opus-tools/Manifest1
-rw-r--r--media-sound/opus-tools/opus-tools-0.2.ebuild46
2 files changed, 47 insertions, 0 deletions
diff --git a/media-sound/opus-tools/Manifest b/media-sound/opus-tools/Manifest
index cbd7ce525108..64016e994d11 100644
--- a/media-sound/opus-tools/Manifest
+++ b/media-sound/opus-tools/Manifest
@@ -1 +1,2 @@
DIST opus-tools-0.1.10.tar.gz 312093 BLAKE2B d96377f3c56990bafef58f0eacdf8795302400eb986e6408b2eb1af67eae59194709b9e1ef86b420b4adab767be329278cc60c1fcc7da4b3f461b532ebf8bdb1 SHA512 4ead97b9fe4658968a4b5cbe4bde5e2d8cbfaaea18dd0d817597cc6b6b11f26937b9eee7358ade63568f0213131aa80ecbed169d1b3885980a556871a4a7fe98
+DIST opus-tools-0.2.tar.gz 457680 BLAKE2B c5896a6303aa1e1626097622e671bc96fd292a0f0c40a56410ef1f7699f8d18540d71e70f1cace6a91bb430886f1ddb07ba08503bdf82aa81758793bcea5b530 SHA512 6fdde8d938e8fadc9391b5d188883dab0aecf8b27d40d00b5d67d8fac9cfd9d5107b1934bfe6310587400f277c99d1db5cabf3d26f340ce2141873dec238e5ce
diff --git a/media-sound/opus-tools/opus-tools-0.2.ebuild b/media-sound/opus-tools/opus-tools-0.2.ebuild
new file mode 100644
index 000000000000..7d1df1f9f0b4
--- /dev/null
+++ b/media-sound/opus-tools/opus-tools-0.2.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit autotools
+
+DESCRIPTION="Royalty-free, highly versatile audio codec"
+HOMEPAGE="https://opus-codec.org/"
+
+if [[ ${PV} == *9999 ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://git.xiph.org/opus-tools.git"
+elif [[ ${PV%_p*} != ${PV} ]] ; then # Gentoo snapshot
+ SRC_URI="https://dev.gentoo.org/~lu_zero/${PN}/${P}.tar.xz"
+else # Official release
+ SRC_URI="https://downloads.xiph.org/releases/opus/${P}.tar.gz"
+fi
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="flac"
+
+RDEPEND="
+ >=media-libs/libogg-1.3.0
+ >=media-libs/libopusenc-0.2
+ >=media-libs/opus-1.1
+ >=media-libs/opusfile-0.5
+ flac? ( >=media-libs/flac-1.1.3 )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_prepare() {
+ default
+ [[ ${PV} == *9999 ]] && eautoreconf
+}
+
+src_configure() {
+ econf $(use_with flac)
+}
+
+src_install() {
+ default
+ find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die
+}