summaryrefslogtreecommitdiff
path: root/media-sound/dcadec
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-11-25 22:39:15 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-11-25 22:39:15 +0000
commitd934827bf44b7cfcf6711964418148fa60877668 (patch)
tree0625f358789b5e015e49db139cc1dbc9be00428f /media-sound/dcadec
parent2e34d110f164bf74d55fced27fe0000201b3eec5 (diff)
gentoo resync : 25.11.2020
Diffstat (limited to 'media-sound/dcadec')
-rw-r--r--media-sound/dcadec/Manifest3
-rw-r--r--media-sound/dcadec/dcadec-0.2.0.ebuild44
-rw-r--r--media-sound/dcadec/files/dcadec-0.2.0-respect-CFLAGS.patch11
3 files changed, 31 insertions, 27 deletions
diff --git a/media-sound/dcadec/Manifest b/media-sound/dcadec/Manifest
index eec77bcde6e7..eaf18f8bbcac 100644
--- a/media-sound/dcadec/Manifest
+++ b/media-sound/dcadec/Manifest
@@ -1,3 +1,4 @@
+AUX dcadec-0.2.0-respect-CFLAGS.patch 318 BLAKE2B 120690767ace35da6611a6d32ae3e45728f2186268d6e3325aba9c15026e63ac46f7ba134466eae39ccf7d3f6b90a47f7812f444dd68c925cf00b5add2dc7a3d SHA512 12b1e5a2c582b6e026b6e5d6cc5e0faa0caba40f24074c67c7f05776db024ac7661387551e23d38e95a976136c4279547fbf1dd5acd90bb3584e044173264aad
DIST dcadec-0.2.0.tar.gz 225305 BLAKE2B c68e1931358e18f7a3f7214a3155296dfb58138143a43a801e8fce417d83094ad280caad7dbc1d2c9350f0965248ccedf8e0be10155ebb86d82282ac2f30b634 SHA512 94edcc0b4449882ebeb08f8b39fe44a5302731df2dad3a3e0b0f787fd7c2c3e3992fed95e6f594af516e982cec34b057aab30e6457c098df61f495a487125acb
-EBUILD dcadec-0.2.0.ebuild 1284 BLAKE2B e2bc93b928363d5f058ff64292ab418900918f58717102113ab9fc9df0ae109c2e005f4b24f5d77cdcbf729a201ae4d7921a2a154571541e00263478ca91194d SHA512 8deabca5a101e9f5bb80f6e55836c6642fd7209603f83c1dd216957cc00f7783bfabcf82751d29d61ba452c9cded763eaa90ed736fb51cc90f1023cadafd8742
+EBUILD dcadec-0.2.0.ebuild 1146 BLAKE2B 24853e5af3a05b625d9edbdc884b11f4661bee61053ad9eee23b4c46801841c248d667304e2d4e643ee3b40fe328796318da4b6bdf188423dcef0d2741d57c32 SHA512 96e8e4a761466cce92771b6c42853ab0d52b52c451ddade26f11c92e7e8f7173f90e9a7a51dd3a42531085f3c712a38c19dbb020f68168d04b1684dfa431132e
MISC metadata.xml 288 BLAKE2B ff78df85f41e86f31dca119cad241145cba4250d177e3bedbda11c2212546102b0d853b377781aefc4a6a7933224980e27bc0eaf273f94f6ef5776e350f5c8de SHA512 8fb0bfd20af44eddc2b9c9b94595a7237bb22f7ea33ac7c16056bce5b62e406ecf66eafbf1a664efad44cd8eb44fe207139d123c03d8d062f5c169fd296e4877
diff --git a/media-sound/dcadec/dcadec-0.2.0.ebuild b/media-sound/dcadec/dcadec-0.2.0.ebuild
index d49effdb57c4..68303aac6077 100644
--- a/media-sound/dcadec/dcadec-0.2.0.ebuild
+++ b/media-sound/dcadec/dcadec-0.2.0.ebuild
@@ -1,54 +1,46 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="5"
+EAPI=7
-inherit eutils toolchain-funcs multilib multilib-minimal
-
-if [[ ${PV} == "9999" ]] ; then
- EGIT_REPO_URI="https://github.com/foo86/${PN}.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
+inherit toolchain-funcs multilib-minimal
DESCRIPTION="DTS Coherent Acoustics decoder with support for HD extensions"
HOMEPAGE="https://github.com/foo86/dcadec"
+SRC_URI="https://github.com/foo86/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
-IUSE=""
-DOCS=( CHANGELOG.md README.md )
+KEYWORDS="amd64 ~arm ~arm64 ~mips x86"
-src_prepare() {
- sed -i \
- -e '/^CFLAGS/s:-O3::' \
- Makefile || die
-}
+PATCHES=( "${FILESDIR}"/${P}-respect-CFLAGS.patch )
+
+multilib_src_configure() {
+ tc-export AR CC
-multilib_src_compile() {
# Build shared libs
- echo 'CONFIG_SHARED=1' >> .config
+ echo 'CONFIG_SHARED=1' >> .config || die
+}
+multilib_src_compile() {
local target=all
multilib_is_native_abi || target=lib
- tc-export AR CC
- PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
- emake -f "${S}/Makefile" ${target}
+
+ PREFIX="${EPREFIX}"/usr LIBDIR="${EPREFIX}"/usr/$(get_libdir) \
+ emake -f "${S}"/Makefile ${target}
}
multilib_src_install() {
local target=install
multilib_is_native_abi || target=install-lib
- PREFIX="${EPREFIX}/usr" \
- LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
- emake -f "${S}/Makefile" DESTDIR="${D}" ${target}
+
+ PREFIX="${EPREFIX}"/usr LIBDIR="${EPREFIX}"/usr/$(get_libdir) \
+ emake -f "${S}"/Makefile DESTDIR="${D}" ${target}
}
multilib_src_install_all() {
# Rename the executable since it conflicts with libdca.
mv "${ED}"/usr/bin/dcadec{,-new} || die
- einstalldocs
+ dodoc CHANGELOG.md README.md
}
diff --git a/media-sound/dcadec/files/dcadec-0.2.0-respect-CFLAGS.patch b/media-sound/dcadec/files/dcadec-0.2.0-respect-CFLAGS.patch
new file mode 100644
index 000000000000..d232cd2ce78c
--- /dev/null
+++ b/media-sound/dcadec/files/dcadec-0.2.0-respect-CFLAGS.patch
@@ -0,0 +1,11 @@
+--- a/Makefile
++++ b/Makefile
+@@ -4,7 +4,7 @@
+ API_MINOR = 1
+ API_PATCH = 0
+
+-CFLAGS := -std=gnu99 -D_FILE_OFFSET_BITS=64 -Wall -Wextra -O3 -ffast-math -g -MMD $(CFLAGS)
++CFLAGS := -std=gnu99 -D_FILE_OFFSET_BITS=64 -Wall -Wextra -ffast-math -MMD $(CFLAGS) $(CPPFLAGS)
+
+ PREFIX ?= /usr/local
+ BINDIR ?= $(PREFIX)/bin