1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7,8} )
7 PYTHON_REQ_USE="sqlite"
8 inherit autotools python-single-r1
10 DESCRIPTION="GNU program to help practicing ear training"
11 HOMEPAGE="https://www.gnu.org/software/solfege/"
12 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
16 KEYWORDS="~amd64 ~ppc ~x86"
19 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
21 BDEPEND="${PYTHON_DEPS}
22 >=app-text/docbook-xsl-stylesheets-1.60
31 RDEPEND="${PYTHON_DEPS}
32 $(python_gen_cond_dep '
33 dev-python/pycairo[${PYTHON_MULTI_USEDEP}]
34 dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}]
37 alsa? ( dev-python/pyalsa )
38 !oss? ( media-sound/timidity++ )
45 "${FILESDIR}/${P}-no-xmllint.patch"
46 "${FILESDIR}/${P}-fix-menubar.patch"
47 "${FILESDIR}/${P}-itstool.patch"
48 "${FILESDIR}/${P}-topdocs-encodings.patch"
49 "${FILESDIR}/${P}-fix-webbrowser-module.patch"
55 # fix encoding of the Hungarian translation, thanks to Arch Linux
56 iconv -f ISO-8859-2 -t UTF-8 po/hu.po -o po/hu.po.new || die
57 sed -i 's/charset=iso-8859-2/charset=utf-8/' po/hu.po.new || die
58 mv po/hu.po.new po/hu.po || die
60 sed -E 's|(PYTHON_INCLUDES=).+|\1"$(pkg-config --cflags-only-I python3)"|g' \
61 -i acinclude.m4 || die
67 econf $(use_enable oss oss-sound)
75 emake DESTDIR="${ED}" nopycompile=YES skipmanual=yes install
76 dodoc AUTHORS changelog FAQ README