# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 inherit xdg-utils 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 IUSE="alsa +aubio coverage debug +evince doc jack +fluidsynth gtk3 guile2 \ nls +portaudio +portmidi +rubberband static test" RDEPEND="guile2? ( >=dev-scheme/guile-2:12 >=media-sound/lilypond-2.19.54[guile2=] ) !guile2? ( >=dev-scheme/guile-1.8:12 =media-sound/lilypond-2.18.2-r3[-guile2] ) dev-libs/libxml2:2 gnome-base/librsvg:2 media-libs/fontconfig:1.0 >=media-libs/libsndfile-1.0.28-r1 >=media-libs/libsmf-1.3 jack? ( virtual/jack ) evince? ( >=app-text/evince-3.22.1-r1 ) aubio? ( >=media-libs/aubio-0.4.1-r1 ) gtk3? ( x11-libs/gtk+:3 x11-libs/gtksourceview:3.0 ) !gtk3? ( x11-libs/gtk+:2 x11-libs/gtksourceview:2.0 ) alsa? ( >=media-libs/alsa-lib-1.1.2 ) fluidsynth? ( >=media-sound/fluidsynth-1.1.6-r1 ) rubberband? ( >=media-libs/rubberband-1.8.1-r1 ) portaudio? ( >=media-libs/portaudio-19_pre20140130 sci-libs/fftw:3.0 ) portmidi? ( >=media-libs/portmidi-217-r1 )" DEPEND="${RDEPEND} >=sys-devel/flex-2.6.1 >=dev-util/intltool-0.51.0-r1 virtual/pkgconfig virtual/yacc doc? ( >=dev-util/gtk-doc-1.25-r1 ) nls? ( >=sys-devel/gettext-0.19.8.1 )" DOCS=( AUTHORS ChangeLog docs/{DESIGN{,.lilypond},GOALS,TODO} NEWS ) HTML_DOCS=( docs/denemo-manual.html docs/denemo.css ) # --enable-doc does nothing for itself src_configure() { myeconfargs=() if use doc; then myeconfargs+=( --enable-doc --enable-gtk-doc --enable-gtk-doc-html --disable-gtk-doc-pdf ) else myeconfargs+=( --disable-doc --disable-gtk-doc --disable-gtk-doc-html --disable-gtk-doc-pdf ) fi econf \ --disable-rpath \ $(use_enable static) \ $(usex gtk3 --enable-gtk3 --enable-gtk2) \ $(use_enable alsa) \ $(use_enable aubio) \ $(use_enable evince) \ $(use_enable fluidsynth) \ $(usex guile2 --enable-guile_2_0 --enable-guile_1_8) \ $(use_enable jack) \ $(use_enable nls) \ $(use_enable portaudio) \ $(use_enable portmidi) \ $(use_enable rubberband) \ --enable-x11 \ --disable-mem \ $(use_enable test always-build-tests) \ --disable-installed-tests \ $(use_enable coverage gcov) \ ${myeconfargs[@]} } src_test() { # make check fails if used with parallel builds emake -j1 check || die } pkg_postinst() { xdg_desktop_database_update; } pkg_postrm() { xdg_desktop_database_update; }