media-sound/dcadec: new package #559348

This commit is contained in:
Mike Frysinger
2016-02-23 14:31:11 -05:00
parent 4047505fc2
commit ca7d810eb0
3 changed files with 48 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
DIST dcadec-0.2.0.tar.gz 225305 SHA256 ed9d207fde3e8d576f3af8b0d1235b3371e315175757173689104efcaebf0d44 SHA512 94edcc0b4449882ebeb08f8b39fe44a5302731df2dad3a3e0b0f787fd7c2c3e3992fed95e6f594af516e982cec34b057aab30e6457c098df61f495a487125acb WHIRLPOOL 33aa735fed95dcb5cb97fec767971bc151c7925f40589beb9c10fca57e0871da66b800fc9a23613a14e8ffbec2758a5e516debf3bb600e2c2c9f1fcad14b66e4
+37
View File
@@ -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
}
+10
View File
@@ -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>