From: "Miroslav Šulc" <fordfrog@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-plugins/calf/files/, media-plugins/calf/
Date: Fri, 11 Apr 2025 08:29:47 +0000 (UTC) [thread overview]
Message-ID: <1744360185.51b55e9094f901b0d075627d9f79da2c64b35fcb.fordfrog@gentoo> (raw)
commit: 51b55e9094f901b0d075627d9f79da2c64b35fcb
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 11 08:29:24 2025 +0000
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Fri Apr 11 08:29:45 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51b55e90
media-plugins/calf: updated live ebuild
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
media-plugins/calf/calf-9999.ebuild | 49 +++++++++--------------
media-plugins/calf/files/calf-0.90.6-docdir.patch | 31 ++++++++++++++
2 files changed, 51 insertions(+), 29 deletions(-)
diff --git a/media-plugins/calf/calf-9999.ebuild b/media-plugins/calf/calf-9999.ebuild
index 7afb6c757c68..3594dd730429 100644
--- a/media-plugins/calf/calf-9999.ebuild
+++ b/media-plugins/calf/calf-9999.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-inherit autotools flag-o-matic toolchain-funcs xdg
+inherit cmake flag-o-matic toolchain-funcs xdg
DESCRIPTION="A set of open source instruments and effects for digital audio workstations"
HOMEPAGE="https://calf-studio-gear.org/"
@@ -18,10 +18,14 @@ fi
LICENSE="LGPL-2.1"
SLOT="0"
-IUSE="cpu_flags_x86_sse experimental gtk jack lash lv2 static-libs"
+IUSE="cpu_flags_x86_sse experimental gtk jack lash lv2"
REQUIRED_USE="jack? ( gtk )"
+PATCHES=(
+ "${FILESDIR}/calf-0.90.6-docdir.patch"
+)
+
BDEPEND="
virtual/pkgconfig
"
@@ -42,41 +46,28 @@ DEPEND="
"
RDEPEND="${DEPEND}"
-PATCHES=(
- "${FILESDIR}/${PN}-0.90.4-no-automagic.patch"
- "${FILESDIR}/${PN}-0.90.4-htmldir.patch"
- "${FILESDIR}/${PN}-0.90.4-desktop.patch"
-)
-
-src_prepare() {
- default
- eautoreconf
-}
-
-src_configure() {
+src_configure() {
# Upstream append -ffast-math by default, however since libtool links C++
# shared libs with -nostdlib, this causes symbol resolution error for
# __powidn2 when using compiler-rt. Disable fast math on compiler-rt until
# a better fix is found.
[[ $(tc-get-c-rtlib) = "compiler-rt" ]] && append-cxxflags "-fno-fast-math"
- local myeconfargs=(
- --prefix="${EPREFIX}"/usr
- --without-obsolete-check
- $(use_enable experimental)
- $(use_enable gtk gui)
- $(use_enable jack)
- $(use_with lash)
- $(use_with lv2 lv2)
- $(usex lv2 "--with-lv2-dir=${EPREFIX}/usr/$(get_libdir)/lv2" "")
- $(use_enable static-libs static)
- $(use_enable cpu_flags_x86_sse sse)
+ local mycmakeargs=(
+ -DDOCDIR="${EPREFIX}"/usr/share/doc/${PF}/
+ -DWANT_GUI=$(usex gtk)
+ -DWANT_JACK=$(usex jack)
+ -DWANT_LASH=$(usex lash)
+ -DWANT_LV2=$(usex lv2)
+ -DWANT_LV2_GUI=$(usex lv2)
+ -DWANT_SORDI=ON
+ -DWANT_EXPERIMENTAL=$(usex experimental)
)
- econf "${myeconfargs[@]}"
+ cmake_src_configure
}
src_install() {
- default
+ cmake_src_install
mv "${ED}"/usr/share/bash-completion/completions/calf \
- "${ED}"/usr/share/bash-completion/completions/calfjackhost
+ "${ED}"/usr/share/bash-completion/completions/calfjackhost || die "Failed to install bash completion"
}
diff --git a/media-plugins/calf/files/calf-0.90.6-docdir.patch b/media-plugins/calf/files/calf-0.90.6-docdir.patch
new file mode 100644
index 000000000000..6ffc4e59bf2d
--- /dev/null
+++ b/media-plugins/calf/files/calf-0.90.6-docdir.patch
@@ -0,0 +1,31 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index df2fde63..95525397 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -210,19 +210,19 @@ add_subdirectory(icons)
+
+ include(GNUInstallDirs)
+ install(DIRECTORY ${CMAKE_SOURCE_DIR}/doc/manuals/
+- DESTINATION share/doc/${PROJECT_NAME} FILES_MATCHING PATTERN "*.html")
++ DESTINATION ${DOCDIR} FILES_MATCHING PATTERN "*.html")
+ install(DIRECTORY ${CMAKE_SOURCE_DIR}/doc/manuals/images/
+- DESTINATION share/doc/${PROJECT_NAME}/images FILES_MATCHING PATTERN "*.png")
++ DESTINATION ${DOCDIR}/images FILES_MATCHING PATTERN "*.png")
+ install(DIRECTORY ${CMAKE_SOURCE_DIR}/doc/manuals/images/
+- DESTINATION share/doc/${PROJECT_NAME}/images FILES_MATCHING PATTERN "*.jpg")
++ DESTINATION ${DOCDIR}/images FILES_MATCHING PATTERN "*.jpg")
+ install(DIRECTORY ${CMAKE_SOURCE_DIR}/doc/manuals/images/prettyPhoto/dark_rounded/
+- DESTINATION share/doc/${PROJECT_NAME}/images/prettyPhoto/dark_rounded)
++ DESTINATION ${DOCDIR}/images/prettyPhoto/dark_rounded)
+ install(DIRECTORY ${CMAKE_SOURCE_DIR}/doc/manuals/images/icons/
+- DESTINATION share/doc/${PROJECT_NAME}/images/icons)
++ DESTINATION ${DOCDIR}/images/icons)
+ install(DIRECTORY ${CMAKE_SOURCE_DIR}/doc/manuals/scripts
+- DESTINATION share/doc/${PROJECT_NAME} FILES_MATCHING PATTERN "*.css")
++ DESTINATION ${DOCDIR} FILES_MATCHING PATTERN "*.css")
+ install(DIRECTORY ${CMAKE_SOURCE_DIR}/doc/manuals/scripts/
+- DESTINATION share/doc/${PROJECT_NAME}/scripts FILES_MATCHING PATTERN "*.js")
++ DESTINATION ${DOCDIR}/scripts FILES_MATCHING PATTERN "*.js")
+ install(DIRECTORY ${CMAKE_SOURCE_DIR}/sf2/
+ DESTINATION share/${PROJECT_NAME}/sf2 FILES_MATCHING PATTERN "*.sf2")
+ install(FILES ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.desktop
next reply other threads:[~2025-04-11 8:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-11 8:29 Miroslav Šulc [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-06-23 10:23 [gentoo-commits] repo/gentoo:master commit in: media-plugins/calf/files/, media-plugins/calf/ Miroslav Šulc
2024-03-16 10:41 Miroslav Šulc
2023-10-20 7:50 Miroslav Šulc
2023-09-22 15:44 Sam James
2020-01-17 11:00 Miroslav Šulc
2019-03-11 15:29 Andreas Sturmlechner
2019-03-10 22:46 Andreas Sturmlechner
2016-09-18 13:29 David Seifert
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=1744360185.51b55e9094f901b0d075627d9f79da2c64b35fcb.fordfrog@gentoo \
--to=fordfrog@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