Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libopenaptx/
Date: Mon, 03 May 2021 19:59:47
Message-Id: 1620071979.4707f66ad0c079c17adee13826193ac2430ed9ab.whissi@gentoo
1 commit: 4707f66ad0c079c17adee13826193ac2430ed9ab
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 3 19:59:21 2021 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon May 3 19:59:39 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4707f66a
7
8 media-libs/libopenaptx: bump to v0.2.1
9
10 License changed to GPL 3+ [Link 1].
11
12 Link 1: https://github.com/pali/libopenaptx/commit/811bc18586d634042618d633727ac0281d4170b8
13 Package-Manager: Portage-3.0.18, Repoman-3.0.3
14 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
15
16 media-libs/libopenaptx/Manifest | 1 +
17 media-libs/libopenaptx/libopenaptx-0.2.1.ebuild | 49 +++++++++++++++++++++++++
18 2 files changed, 50 insertions(+)
19
20 diff --git a/media-libs/libopenaptx/Manifest b/media-libs/libopenaptx/Manifest
21 index 7271834f99f..c1a88d38acb 100644
22 --- a/media-libs/libopenaptx/Manifest
23 +++ b/media-libs/libopenaptx/Manifest
24 @@ -1 +1,2 @@
25 DIST libopenaptx-0.2.0.tar.gz 27797 BLAKE2B b178a9aaf78796c9219d9e7066ff985ce9f5dd86a6926ae22e373f2822090ad313efe04d5cf607940f1042bd27ddf5484d7e8298dfff91a8ae5596cec7ad5fa9 SHA512 d57e5084b398eec2ad49c9893baa496651c139abfb95692c834a4691bc4bb951d0b1afdd499a8b67c84b873407b584965d3a045d8ef3d9e62b3ccf45de22809a
26 +DIST libopenaptx-0.2.1.tar.gz 31575 BLAKE2B 531a1b4e8f4a711bf1b36dfea2424b23821dd4f0b50cc367e1298fc7a41f32ec494fdb25907173d1e2685bd0af74d3ebe5a7a3f221f2e57e92bd6d6e2b8b80c8 SHA512 7c7f515585ed41cd276cd3141037ce21e3ebdb713dc932bcdb33320d9910c734bc81e581e2c09b3399b3516c789e5da7128fdab5ab6b5e4f42a86b6ac6d3f28c
27
28 diff --git a/media-libs/libopenaptx/libopenaptx-0.2.1.ebuild b/media-libs/libopenaptx/libopenaptx-0.2.1.ebuild
29 new file mode 100644
30 index 00000000000..534df52cba0
31 --- /dev/null
32 +++ b/media-libs/libopenaptx/libopenaptx-0.2.1.ebuild
33 @@ -0,0 +1,49 @@
34 +# Copyright 1999-2021 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +inherit flag-o-matic toolchain-funcs
40 +
41 +DESCRIPTION="Reverse-engineered aptX and aptX HD library"
42 +HOMEPAGE="https://github.com/pali/libopenaptx"
43 +
44 +if [[ ${PV} == "9999" ]] ; then
45 + inherit git-r3
46 + EGIT_REPO_URI="https://github.com/pali/${PN}"
47 +else
48 + SRC_URI="https://github.com/pali/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
49 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
50 +fi
51 +
52 +LICENSE="GPL-3+"
53 +SLOT="0"
54 +
55 +IUSE="cpu_flags_x86_avx2"
56 +
57 +src_compile() {
58 + tc-export CC AR
59 +
60 + use cpu_flags_x86_avx2 && append-cflags "-mavx2"
61 +
62 + emake \
63 + PREFIX="${EPREFIX}"/usr \
64 + LIBDIR=$(get_libdir) \
65 + CFLAGS="${CFLAGS}" \
66 + LDFLAGS="${LDFLAGS}" \
67 + ARFLAGS="${ARFLAGS} -rcs" \
68 + all
69 +}
70 +
71 +src_install() {
72 + emake \
73 + PREFIX="${EPREFIX}"/usr \
74 + DESTDIR="${D}" \
75 + LIBDIR="$(get_libdir)" \
76 + CFLAGS="${CFLAGS}" \
77 + LDFLAGS="${LDFLAGS}" \
78 + ARFLAGS="${ARFLAGS} -rcs" \
79 + install
80 +
81 + find "${ED}" -name '*.a' -delete || die
82 +}