Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/declick/
Date: Wed, 15 Aug 2018 19:53:53
Message-Id: 1534362809.9521a10c5eac144e8049ac5a016af10a87431c69.asturm@gentoo
1 commit: 9521a10c5eac144e8049ac5a016af10a87431c69
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Wed Aug 1 16:21:48 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 15 19:53:29 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9521a10c
7
8 media-sound/declick: EAPI7, improve ebuild
9
10 media-sound/declick/declick-0.6.5-r1.ebuild | 36 +++++++++++++++++++++++++++++
11 1 file changed, 36 insertions(+)
12
13 diff --git a/media-sound/declick/declick-0.6.5-r1.ebuild b/media-sound/declick/declick-0.6.5-r1.ebuild
14 new file mode 100644
15 index 00000000000..c6d6cd7a99c
16 --- /dev/null
17 +++ b/media-sound/declick/declick-0.6.5-r1.ebuild
18 @@ -0,0 +1,36 @@
19 +# Copyright 1999-2018 Gentoo Foundation
20 +# Distributed under the terms of the GNU General Public License v2
21 +
22 +EAPI=7
23 +
24 +inherit toolchain-funcs
25 +
26 +DESCRIPTION="Dynamic digital declicker for audio sample files"
27 +HOMEPAGE="http://home.snafu.de/wahlm/dl8hbs/declick.html"
28 +SRC_URI="http://home.snafu.de/wahlm/dl8hbs/${P}.tar.gz"
29 +
30 +LICENSE="GPL-2"
31 +SLOT="0"
32 +KEYWORDS="~amd64 ~x86"
33 +
34 +src_prepare() {
35 + default
36 + # add $LDFLAGS to link command
37 + sed -i -e "s:\(-o declick\):\$(LDFLAGS) \1:g" Makefile || die
38 +
39 + # convert docs to utf-8
40 + if [ -x "$(type -p iconv)" ]; then
41 + for X in README; do
42 + iconv -f LATIN1 -t UTF8 -o "${X}~" "${X}" && mv -f "${X}~" "${X}" || rm -f "${X}~" || die
43 + done
44 + fi
45 +}
46 +
47 +src_compile() {
48 + emake CC="$(tc-getCC)" COPTS="${CFLAGS}" LDFLAGS="${LDFLAGS}" declick
49 +}
50 +
51 +src_install() {
52 + dobin declick
53 + dodoc README
54 +}