summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-02-23 13:22:54 -0500
committerMike Frysinger <vapier@gentoo.org>2016-02-23 14:31:11 -0500
commitca7d810eb017cddfe3fa80d97e2a5faf43a479ed (patch)
tree319879a89fae4b34f6aed9203caaed892b617bae /media-sound/dcadec/dcadec-0.2.0.ebuild
parentprofiles/updates: rename xbmc to kodi for transparent upgrades (diff)
downloadgentoo-ca7d810eb017cddfe3fa80d97e2a5faf43a479ed.tar.gz
gentoo-ca7d810eb017cddfe3fa80d97e2a5faf43a479ed.tar.bz2
gentoo-ca7d810eb017cddfe3fa80d97e2a5faf43a479ed.zip
media-sound/dcadec: new package #559348
Diffstat (limited to 'media-sound/dcadec/dcadec-0.2.0.ebuild')
-rw-r--r--media-sound/dcadec/dcadec-0.2.0.ebuild37
1 files changed, 37 insertions, 0 deletions
diff --git a/media-sound/dcadec/dcadec-0.2.0.ebuild b/media-sound/dcadec/dcadec-0.2.0.ebuild
new file mode 100644
index 00000000000..d93dc26aa6d
--- /dev/null
+++ b/media-sound/dcadec/dcadec-0.2.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit toolchain-funcs multilib
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="git://github.com/foo86/dcadec.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/foo86/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
+fi
+
+DESCRIPTION="DTS Coherent Acoustics decoder with support for HD extensions"
+HOMEPAGE="https://github.com/foo86/dcadec"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+IUSE=""
+
+src_configure() {
+ tc-export AR CC
+ sed -i \
+ -e "/^PREFIX /s:=.*:= ${EPREFIX}/usr:" \
+ -e "/^LIBDIR /s:/lib:/$(get_libdir):" \
+ -e '/^CFLAGS/s:-O3::' \
+ Makefile || die
+}
+
+src_install() {
+ default
+ # Rename the executable since it conflicts with libdca.
+ mv "${ED}"/usr/bin/dcadec{,-new} || die
+}