commit: 7f48feed4fd344f5258f8a85fa6b21b01e7aed55 Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net> AuthorDate: Mon Mar 27 18:08:15 2023 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> CommitDate: Mon Apr 10 07:37:21 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f48feed
media-sound/denemo: update EAPI 7 -> 8 add patch to respect CFLAGS with USE=debug Closes: https://bugs.gentoo.org/889464 Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net> Closes: https://github.com/gentoo/gentoo/pull/30369 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> media-sound/denemo/denemo-2.6.0-r1.ebuild | 129 +++++++++++++++++++++ .../files/denemo-2.6.0-respect-user-CFLAGS.patch | 22 ++++ 2 files changed, 151 insertions(+) diff --git a/media-sound/denemo/denemo-2.6.0-r1.ebuild b/media-sound/denemo/denemo-2.6.0-r1.ebuild new file mode 100644 index 000000000000..b7bca75ec19e --- /dev/null +++ b/media-sound/denemo/denemo-2.6.0-r1.ebuild @@ -0,0 +1,129 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools font xdg + +DESCRIPTION="A music notation editor" +HOMEPAGE="http://www.denemo.org/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" + +LICENSE="GPL-3+ OFL-1.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +# configure options currently not used: +# --enable-mem(no) memory debugging: needs Electric fence (efence), which +# is not available in portage. See https://github.com/boundarydevices/efence +# --enable-gtk-doc-pdf(no) doesn't work +# fluidsynth currently broken. See https://savannah.gnu.org/bugs/index.php?62202 +IUSE="alsa +aubio debug jack gtk-doc nls +portaudio +portmidi + +rubberband test" + +RESTRICT="!test? ( test )" + +RDEPEND=" + >=app-text/evince-3.22.1-r1:= + dev-libs/glib:2 + dev-libs/libxml2:2 + >=dev-scheme/guile-2:12= + gnome-base/librsvg:2 + media-libs/fontconfig:1.0 + >=media-libs/libsmf-1.3 + >=media-libs/libsndfile-1.0.28-r1 + >=media-sound/fluidsynth-1.1.6-r1:= + >=media-sound/lilypond-2.19.54 + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:3 + x11-libs/gtksourceview:3.0= + x11-libs/pango + alsa? ( >=media-libs/alsa-lib-1.1.2 ) + aubio? ( >=media-libs/aubio-0.4.1-r1:= ) + jack? ( virtual/jack ) + portaudio? ( + >=media-libs/portaudio-19_pre20140130 + sci-libs/fftw:3.0= + ) + portmidi? ( >=media-libs/portmidi-217-r1 ) + rubberband? ( >=media-libs/rubberband-1.8.1-r1 ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + >=dev-util/gtk-doc-am-1.25-r1 + >=dev-util/intltool-0.51.0-r1 + >=sys-devel/flex-2.6.1 + virtual/pkgconfig + app-alternatives/yacc + gtk-doc? ( >=dev-util/gtk-doc-1.25-r1 ) + nls? ( >=sys-devel/gettext-0.19.8.1 ) +" + +PATCHES=( "${FILESDIR}"/${PN}-2.6.0-respect-user-CFLAGS.patch ) +DOCS=( AUTHORS ChangeLog docs/{DESIGN{,.lilypond},GOALS,TODO} NEWS ) + +src_prepare() { + sed -e '/^Categories=/s/GNOME\;/GNOME\;GTK\;/' -i pixmaps/org.denemo.Denemo.desktop || die + sed -e 's|appdatadir = \$(datarootdir)/appdata|appdatadir = \$(datarootdir)/metainfo|' \ + -i Makefile.am || die + default + eautoreconf +} + +src_configure() { + myeconfargs=( + --disable-gtk-doc-pdf + --disable-gtk2 + --disable-installed-tests + --disable-mem + --disable-rpath + --disable-static + --enable-evince + --enable-fluidsynth + --enable-gtk3 + --enable-x11 + $(use_enable alsa) + $(use_enable aubio) + $(use_enable debug) + # --enable-doc does nothing for itself + # basic html documentation is always being installed in the + # /usr/share/denemo/manual directory + $(use_enable gtk-doc doc) + $(use_enable gtk-doc gtk-doc) + $(use_enable gtk-doc gtk-doc-html) + $(use_enable jack) + $(use_enable nls) + $(use_enable portaudio) + $(use_enable portmidi) + $(use_enable rubberband) + $(use_enable test always-build-tests) + ) + econf "${myeconfargs[@]}" +} + +src_test() { + # make check fails if used with parallel builds + emake -j1 check +} + +src_install() { + default + + # link html documentation installed in /usr/share/denemo/manual + dodir /usr/share/doc/${PF}/html + local f + for f in denemo-manual.html denemo.css images; do + dosym -r /usr/share/denemo/manual/"${f}" /usr/share/doc/${PF}/html/"${f}" + done +} + +pkg_postinst() { + font_pkg_postinst + xdg_desktop_database_update +} + +pkg_postrm() { + font_pkg_postrm + xdg_desktop_database_update +} diff --git a/media-sound/denemo/files/denemo-2.6.0-respect-user-CFLAGS.patch b/media-sound/denemo/files/denemo-2.6.0-respect-user-CFLAGS.patch new file mode 100644 index 000000000000..e57be9c57bee --- /dev/null +++ b/media-sound/denemo/files/denemo-2.6.0-respect-user-CFLAGS.patch @@ -0,0 +1,22 @@ +From c4eff03fb11d7085035892a688ed5d29e2faefe9 Mon Sep 17 00:00:00 2001 +From: Bernd Waibel <[email protected]> +Date: Mon, 27 Mar 2023 19:44:28 +0200 +Subject: [PATCH] respect user CFLAGS + +Signed-off-by: Bernd Waibel <[email protected]> +--- a/configure.ac ++++ b/configure.ac +@@ -42,8 +42,8 @@ AC_ARG_ENABLE( + [ + if test "x$enableval" != "xno"; then + build_debug=yes +- CFLAGS="-O0 -DDEBUG -g -Wall -Wextra -Wno-deprecated-declarations -Wno-sign-compare" +- CXXFLAGS="-O0 -DDEBUG -g -Wall -Wextra -Wno-deprecated-declarations -Wno-sign-compare" ++ CFLAGS="$CFLAGS -DDEBUG -g -Wall -Wextra -Wno-deprecated-declarations -Wno-sign-compare" ++ CXXFLAGS="$CFLAGS -DDEBUG -g -Wall -Wextra -Wno-deprecated-declarations -Wno-sign-compare" + fi + ]) + +-- +2.40.0 +
