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 E47301382C5 for ; Wed, 17 Mar 2021 01:22:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1AEDDE07F9; Wed, 17 Mar 2021 01:22:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 E71EFE07F9 for ; Wed, 17 Mar 2021 01:22:50 +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 75625340EC7 for ; Wed, 17 Mar 2021 01:22:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AD7F5590 for ; Wed, 17 Mar 2021 01:22:47 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1615943763.f411b6a48680122d54db515b256edcfe706973a2.sam@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.0.ebuild media-libs/libopenaptx/libopenaptx-9999.ebuild media-libs/libopenaptx/metadata.xml X-VCS-Directories: media-libs/libopenaptx/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: f411b6a48680122d54db515b256edcfe706973a2 X-VCS-Branch: master Date: Wed, 17 Mar 2021 01:22:47 +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: 93fdf08d-1e1f-4770-939e-fd09cb6751bc X-Archives-Hash: 05db398d44da81afdb1912b340c9fac5 commit: f411b6a48680122d54db515b256edcfe706973a2 Author: Joakim Tjernlund infinera com> AuthorDate: Tue Mar 16 23:54:12 2021 +0000 Commit: Sam James gentoo org> CommitDate: Wed Mar 17 01:16:03 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f411b6a4 media-libs/libopenaptx: new package * Add libopenaptx-0.2.0/9999 ebuilds Closes: https://bugs.gentoo.org/758377 Signed-off-by: Joakim Tjernlund infinera.com> Signed-off-by: Sam James gentoo.org> media-libs/libopenaptx/Manifest | 1 + media-libs/libopenaptx/libopenaptx-0.2.0.ebuild | 39 +++++++++++++++++++++++++ media-libs/libopenaptx/libopenaptx-9999.ebuild | 39 +++++++++++++++++++++++++ media-libs/libopenaptx/metadata.xml | 8 +++++ 4 files changed, 87 insertions(+) diff --git a/media-libs/libopenaptx/Manifest b/media-libs/libopenaptx/Manifest new file mode 100644 index 00000000000..7271834f99f --- /dev/null +++ b/media-libs/libopenaptx/Manifest @@ -0,0 +1 @@ +DIST libopenaptx-0.2.0.tar.gz 27797 BLAKE2B b178a9aaf78796c9219d9e7066ff985ce9f5dd86a6926ae22e373f2822090ad313efe04d5cf607940f1042bd27ddf5484d7e8298dfff91a8ae5596cec7ad5fa9 SHA512 d57e5084b398eec2ad49c9893baa496651c139abfb95692c834a4691bc4bb951d0b1afdd499a8b67c84b873407b584965d3a045d8ef3d9e62b3ccf45de22809a diff --git a/media-libs/libopenaptx/libopenaptx-0.2.0.ebuild b/media-libs/libopenaptx/libopenaptx-0.2.0.ebuild new file mode 100644 index 00000000000..7ebf9df7051 --- /dev/null +++ b/media-libs/libopenaptx/libopenaptx-0.2.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic + +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 ~x86" +fi +IUSE="cpu_flags_x86_avx2" + +LICENSE="LGPL-2.1" +SLOT="0" + +RDEPEND="" +DEPEND="${RDEPEND}" + +src_compile() { + use cpu_flags_x86_avx2 && append-cflags "-mavx2" + + emake PREFIX="${EPREFIX}"/usr DESTDIR="${D}" 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 + + #rm static lib + rm -f "${D}/usr/$(get_libdir)"/libopenaptx.a || die "rm libopenaptx.a" +} diff --git a/media-libs/libopenaptx/libopenaptx-9999.ebuild b/media-libs/libopenaptx/libopenaptx-9999.ebuild new file mode 100644 index 00000000000..7ebf9df7051 --- /dev/null +++ b/media-libs/libopenaptx/libopenaptx-9999.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic + +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 ~x86" +fi +IUSE="cpu_flags_x86_avx2" + +LICENSE="LGPL-2.1" +SLOT="0" + +RDEPEND="" +DEPEND="${RDEPEND}" + +src_compile() { + use cpu_flags_x86_avx2 && append-cflags "-mavx2" + + emake PREFIX="${EPREFIX}"/usr DESTDIR="${D}" 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 + + #rm static lib + rm -f "${D}/usr/$(get_libdir)"/libopenaptx.a || die "rm libopenaptx.a" +} diff --git a/media-libs/libopenaptx/metadata.xml b/media-libs/libopenaptx/metadata.xml new file mode 100644 index 00000000000..733f9c60ae6 --- /dev/null +++ b/media-libs/libopenaptx/metadata.xml @@ -0,0 +1,8 @@ + + + + + codec@gentoo.org + Gentoo Codec Project + +