commit:     c53f603789652950aed6c6ae4cddeaf7da260d9b
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Mon Mar 25 01:38:53 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar 25 09:20:44 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c53f6037

media-plugins/cmt-plugins: update EAPI 7 -> 8

Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../cmt-plugins/cmt-plugins-1.17-r2.ebuild         | 61 ++++++++++++++++++++++
 1 file changed, 61 insertions(+)

diff --git a/media-plugins/cmt-plugins/cmt-plugins-1.17-r2.ebuild 
b/media-plugins/cmt-plugins/cmt-plugins-1.17-r2.ebuild
new file mode 100644
index 000000000000..333e77dcdb24
--- /dev/null
+++ b/media-plugins/cmt-plugins/cmt-plugins-1.17-r2.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic toolchain-funcs multilib-minimal
+
+MY_P="cmt_${PV}"
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="CMT (computer music toolkit) LADSPA library plugins"
+HOMEPAGE="https://www.ladspa.org/cmt/overview.html";
+SRC_URI="https://www.ladspa.org/download/${MY_P}.tgz";
+
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc 
~x86"
+LICENSE="LGPL-2.1"
+SLOT="0"
+
+DEPEND=">=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}]"
+
+PATCHES=(
+       "${FILESDIR}/${P}-makefile.patch"
+       "${FILESDIR}/${P}-clang.patch"
+)
+
+DOCS="../README"
+HTML_DOCS="../doc/*"
+
+src_prepare() {
+       default
+
+       use elibc_Darwin && eapply "${FILESDIR}/${P}-darwin.patch"
+
+       multilib_copy_sources
+}
+
+multilib_src_compile() {
+       # -Werror=odr
+       # https://bugs.gentoo.org/860120
+       # Upstream contact method is email. I have sent one describing the 
issue.
+       filter-lto
+
+       cd src
+       tc-export CXX
+       emake PLUGIN_LIB="cmt.so"
+}
+
+multilib_src_install() {
+       cd src
+       insopts -m755
+       insinto /usr/$(get_libdir)/ladspa
+       doins *.so
+}
+
+multilib_src_install_all() {
+       cd src
+       insinto /usr/share/ladspa/rdf/
+       doins "${FILESDIR}/cmt.rdf"
+
+       einstalldocs
+}

Reply via email to