From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 30928138239 for ; Mon, 3 May 2021 19:59:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 60CD8E0845; Mon, 3 May 2021 19:59:46 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3D3AEE0845 for ; Mon, 3 May 2021 19:59:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D3745335C76 for ; Mon, 3 May 2021 19:59:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 35D3947 for ; Mon, 3 May 2021 19:59:43 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1620071979.4707f66ad0c079c17adee13826193ac2430ed9ab.whissi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libopenaptx/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/libopenaptx/Manifest media-libs/libopenaptx/libopenaptx-0.2.1.ebuild X-VCS-Directories: media-libs/libopenaptx/ X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 4707f66ad0c079c17adee13826193ac2430ed9ab X-VCS-Branch: master Date: Mon, 3 May 2021 19:59:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5f5c8a37-f1ca-44ac-bcf7-2800614c7fb5 X-Archives-Hash: 8bf7e619e2436f2cf35f32012269c68d commit: 4707f66ad0c079c17adee13826193ac2430ed9ab Author: Thomas Deutschmann gentoo org> AuthorDate: Mon May 3 19:59:21 2021 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Mon May 3 19:59:39 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4707f66a media-libs/libopenaptx: bump to v0.2.1 License changed to GPL 3+ [Link 1]. Link 1: https://github.com/pali/libopenaptx/commit/811bc18586d634042618d633727ac0281d4170b8 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Thomas Deutschmann gentoo.org> media-libs/libopenaptx/Manifest | 1 + media-libs/libopenaptx/libopenaptx-0.2.1.ebuild | 49 +++++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/media-libs/libopenaptx/Manifest b/media-libs/libopenaptx/Manifest index 7271834f99f..c1a88d38acb 100644 --- a/media-libs/libopenaptx/Manifest +++ b/media-libs/libopenaptx/Manifest @@ -1 +1,2 @@ DIST libopenaptx-0.2.0.tar.gz 27797 BLAKE2B b178a9aaf78796c9219d9e7066ff985ce9f5dd86a6926ae22e373f2822090ad313efe04d5cf607940f1042bd27ddf5484d7e8298dfff91a8ae5596cec7ad5fa9 SHA512 d57e5084b398eec2ad49c9893baa496651c139abfb95692c834a4691bc4bb951d0b1afdd499a8b67c84b873407b584965d3a045d8ef3d9e62b3ccf45de22809a +DIST libopenaptx-0.2.1.tar.gz 31575 BLAKE2B 531a1b4e8f4a711bf1b36dfea2424b23821dd4f0b50cc367e1298fc7a41f32ec494fdb25907173d1e2685bd0af74d3ebe5a7a3f221f2e57e92bd6d6e2b8b80c8 SHA512 7c7f515585ed41cd276cd3141037ce21e3ebdb713dc932bcdb33320d9910c734bc81e581e2c09b3399b3516c789e5da7128fdab5ab6b5e4f42a86b6ac6d3f28c diff --git a/media-libs/libopenaptx/libopenaptx-0.2.1.ebuild b/media-libs/libopenaptx/libopenaptx-0.2.1.ebuild new file mode 100644 index 00000000000..534df52cba0 --- /dev/null +++ b/media-libs/libopenaptx/libopenaptx-0.2.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="Reverse-engineered aptX and aptX HD library" +HOMEPAGE="https://github.com/pali/libopenaptx" + +if [[ ${PV} == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/pali/${PN}" +else + SRC_URI="https://github.com/pali/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +fi + +LICENSE="GPL-3+" +SLOT="0" + +IUSE="cpu_flags_x86_avx2" + +src_compile() { + tc-export CC AR + + use cpu_flags_x86_avx2 && append-cflags "-mavx2" + + emake \ + PREFIX="${EPREFIX}"/usr \ + LIBDIR=$(get_libdir) \ + CFLAGS="${CFLAGS}" \ + LDFLAGS="${LDFLAGS}" \ + ARFLAGS="${ARFLAGS} -rcs" \ + all +} + +src_install() { + emake \ + PREFIX="${EPREFIX}"/usr \ + DESTDIR="${D}" \ + LIBDIR="$(get_libdir)" \ + CFLAGS="${CFLAGS}" \ + LDFLAGS="${LDFLAGS}" \ + ARFLAGS="${ARFLAGS} -rcs" \ + install + + find "${ED}" -name '*.a' -delete || die +}