media-sound/dcadec: new package #559348
authorMike Frysinger <vapier@gentoo.org>
Tue, 23 Feb 2016 18:22:54 +0000 (13:22 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 23 Feb 2016 19:31:11 +0000 (14:31 -0500)
media-sound/dcadec/Manifest [new file with mode: 0644]
media-sound/dcadec/dcadec-0.2.0.ebuild [new file with mode: 0644]
media-sound/dcadec/metadata.xml [new file with mode: 0644]

diff --git a/media-sound/dcadec/Manifest b/media-sound/dcadec/Manifest
new file mode 100644 (file)
index 0000000..d1c9fdd
--- /dev/null
@@ -0,0 +1 @@
+DIST dcadec-0.2.0.tar.gz 225305 SHA256 ed9d207fde3e8d576f3af8b0d1235b3371e315175757173689104efcaebf0d44 SHA512 94edcc0b4449882ebeb08f8b39fe44a5302731df2dad3a3e0b0f787fd7c2c3e3992fed95e6f594af516e982cec34b057aab30e6457c098df61f495a487125acb WHIRLPOOL 33aa735fed95dcb5cb97fec767971bc151c7925f40589beb9c10fca57e0871da66b800fc9a23613a14e8ffbec2758a5e516debf3bb600e2c2c9f1fcad14b66e4
diff --git a/media-sound/dcadec/dcadec-0.2.0.ebuild b/media-sound/dcadec/dcadec-0.2.0.ebuild
new file mode 100644 (file)
index 0000000..d93dc26
--- /dev/null
@@ -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
+}
diff --git a/media-sound/dcadec/metadata.xml b/media-sound/dcadec/metadata.xml
new file mode 100644 (file)
index 0000000..7294e2a
--- /dev/null
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+       <email>sound@gentoo.org</email>
+</maintainer>
+<upstream>
+       <remote-id type="github">foo86/dcadec</remote-id>
+</upstream>
+</pkgmetadata>