public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/flac-compat/
Date: Sun, 11 Sep 2022 20:12:34 +0000 (UTC)	[thread overview]
Message-ID: <1662927140.a8e3d79c8d43c919bf78b3b459b4ae13e2e02e23.sam@gentoo> (raw)

commit:     a8e3d79c8d43c919bf78b3b459b4ae13e2e02e23
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 10 09:00:35 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Sep 11 20:12:20 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8e3d79c

media-libs/flac-compat: new package, add 1.3.4

Closes: https://github.com/gentoo/gentoo/pull/27197
Co-authored-by: David Seifert <soap <AT> gentoo.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/flac-compat/Manifest                 |  1 +
 media-libs/flac-compat/flac-compat-1.3.4.ebuild | 63 +++++++++++++++++++++++++
 media-libs/flac-compat/metadata.xml             | 11 +++++
 3 files changed, 75 insertions(+)

diff --git a/media-libs/flac-compat/Manifest b/media-libs/flac-compat/Manifest
new file mode 100644
index 000000000000..b8a23c4d2cbe
--- /dev/null
+++ b/media-libs/flac-compat/Manifest
@@ -0,0 +1 @@
+DIST flac-1.3.4.tar.xz 1038356 BLAKE2B 0553cd42705f31d6a98d10e8b73953265e97c6b1e46bb59c7d97d12ec1b4aae4c3d6f5e85b9e5d1513f7efac82a65ea9dc59d89d8df0254ff3ab1188039c55c5 SHA512 4a626e8a1bd126e234c0e5061e3b46f3a27c2065fdfa228fd8cf00d3c7fa2c05fafb5cec36acce7bfce4914bfd7db0b2a27ee15decf2d8c4caad630f62d44ec9

diff --git a/media-libs/flac-compat/flac-compat-1.3.4.ebuild b/media-libs/flac-compat/flac-compat-1.3.4.ebuild
new file mode 100644
index 000000000000..90107a61cc6d
--- /dev/null
+++ b/media-libs/flac-compat/flac-compat-1.3.4.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit multilib-minimal
+
+DESCRIPTION="Free lossless audio encoder and decoder"
+HOMEPAGE="https://xiph.org/flac/"
+SRC_URI="https://downloads.xiph.org/releases/${PN/-compat}/${P/-compat}.tar.xz"
+S="${WORKDIR}/${P/-compat}"
+
+LICENSE="BSD FDL-1.2 GPL-2 LGPL-2.1"
+SLOT="8.3.0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+cxx ogg cpu_flags_x86_sse"
+
+RDEPEND="
+	!media-libs/flac:0/0
+	ogg? ( media-libs/libogg[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}"
+BDEPEND="
+	app-arch/xz-utils
+	sys-devel/gettext
+	virtual/pkgconfig
+	abi_x86_32? ( dev-lang/nasm )"
+
+multilib_src_configure() {
+	local myeconfargs=(
+		--disable-debug
+		--disable-altivec
+		--disable-vsx
+		--disable-doxygen-docs
+		--disable-examples
+		--disable-xmms-plugin
+		$(use_enable cpu_flags_x86_sse sse)
+		$(use_enable cxx cpplibs)
+		$(use_enable ogg)
+
+		# cross-compile fix (bug #521446)
+		# no effect if ogg support is disabled
+		--with-ogg
+	)
+	ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
+}
+
+multilib_src_test() {
+	if [[ ${UID} != 0 ]]; then
+		emake -j1 check
+	else
+		ewarn "Tests will fail if ran as root, skipping."
+	fi
+}
+
+multilib_src_install_all() {
+	rm -r "${ED}"/usr/bin || die
+	rm -r "${ED}"/usr/include || die
+	rm -r "${ED}"/usr/share || die
+	rm -r "${ED}"/usr/lib*/pkgconfig || die
+	rm -r "${ED}"/usr/lib*/*.so || die
+
+	find "${ED}" -type f -name '*.la' -delete || die
+}

diff --git a/media-libs/flac-compat/metadata.xml b/media-libs/flac-compat/metadata.xml
new file mode 100644
index 000000000000..e2a8eda2922f
--- /dev/null
+++ b/media-libs/flac-compat/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="project">
+		<email>sound@gentoo.org</email>
+		<name>Gentoo Sound project</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="sourceforge">flac</remote-id>
+	</upstream>
+</pkgmetadata>


             reply	other threads:[~2022-09-11 20:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-11 20:12 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-10-07  4:44 [gentoo-commits] repo/gentoo:master commit in: media-libs/flac-compat/ Arthur Zamarin
2022-10-07  9:36 Agostino Sarubbo
2022-10-07 20:19 Sam James
2022-10-08 12:58 Sam James
2025-04-28 20:42 Sam James
2025-04-28 21:40 Sam James

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1662927140.a8e3d79c8d43c919bf78b3b459b4ae13e2e02e23.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox