From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1541473-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id CC40015800A
	for <garchives@archives.gentoo.org>; Thu, 27 Jul 2023 08:20:06 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id BEA74E0968;
	Thu, 27 Jul 2023 08:20:05 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id A75B6E0968
	for <gentoo-commits@lists.gentoo.org>; Thu, 27 Jul 2023 08:20:05 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id CC1DC34133A
	for <gentoo-commits@lists.gentoo.org>; Thu, 27 Jul 2023 08:20:04 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 02A2BDC7
	for <gentoo-commits@lists.gentoo.org>; Thu, 27 Jul 2023 08:20:02 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
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" <sam@gentoo.org>
Message-ID: <1690445972.eff07f5a525f6e0e18ddfe72aba9790455e6067d.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/ladspa-sdk/
X-VCS-Repository: repo/gentoo
X-VCS-Files: media-libs/ladspa-sdk/ladspa-sdk-1.17-r2.ebuild
X-VCS-Directories: media-libs/ladspa-sdk/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: eff07f5a525f6e0e18ddfe72aba9790455e6067d
X-VCS-Branch: master
Date: Thu, 27 Jul 2023 08:20:02 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: b1cea1e1-ba99-4d85-b609-2f8fef7742cb
X-Archives-Hash: 79521c2095aae5bbc4d6c9d89efbdd3c

commit:     eff07f5a525f6e0e18ddfe72aba9790455e6067d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 27 07:38:14 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jul 27 08:19:32 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eff07f5a

media-libs/ladspa-sdk: build with LFS

Closes: https://bugs.gentoo.org/911262
Thanks-to: Allen Webb <allenwebb <AT> google.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/ladspa-sdk/ladspa-sdk-1.17-r2.ebuild | 65 +++++++++++++++++++++++++
 1 file changed, 65 insertions(+)

diff --git a/media-libs/ladspa-sdk/ladspa-sdk-1.17-r2.ebuild b/media-libs/ladspa-sdk/ladspa-sdk-1.17-r2.ebuild
new file mode 100644
index 000000000000..d7af263402c3
--- /dev/null
+++ b/media-libs/ladspa-sdk/ladspa-sdk-1.17-r2.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic toolchain-funcs portability multilib-minimal
+
+MY_PN=${PN/-/_}
+MY_P=${MY_PN}_${PV}
+
+DESCRIPTION="The Linux Audio Developer's Simple Plugin API"
+HOMEPAGE="https://www.ladspa.org/"
+SRC_URI="https://www.ladspa.org/download/${MY_P}.tgz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="media-libs/libsndfile[${MULTILIB_USEDEP}]"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+	"${FILESDIR}/${P}-properbuild.patch"
+)
+
+HTML_DOCS="doc/*.html"
+
+src_prepare() {
+	default
+
+	multilib_copy_sources
+}
+
+multilib_src_configure() {
+	# bug #911262
+	append-lfs-flags
+}
+
+multilib_src_compile() {
+	emake -C src CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
+		DYNAMIC_LD_LIBS="$(dlopen_lib)" \
+		CC="$(tc-getCC)" CXX="$(tc-getCXX)" \
+		targets
+}
+
+multilib_src_test() {
+	emake -C src test
+}
+
+multilib_src_install() {
+	emake -C src INSTALL_PLUGINS_DIR="/usr/$(get_libdir)/ladspa" \
+		DESTDIR="${ED}" \
+		MKDIR_P="mkdir -p" \
+		install
+}
+
+multilib_src_install_all() {
+	einstalldocs
+
+	# Needed for apps like rezound
+	dodir /etc/env.d
+	echo "LADSPA_PATH=${EPREFIX}/usr/$(get_libdir)/ladspa" > "${ED}/etc/env.d/60ladspa"
+}