media-sound/frescobaldi: add 4.0.0

Hardly know this so not really tested beyond checking if it starts
and seems normal, please report if find any downstream packaging
issues, or major issues that we should backport fixes for before
potential stable (after reporting upstream if not already).

Please also CC me for downstream bugs for now, haven't added myself as
maintainer given may not handle this package long term (just trying to
get it in a good state to be easier to handle for other maintainers).

If no major issues, hoping to stabilize before the py3.13 target switch
in May (3.13 is not on 3.3.0, untested) and soon follow that by 3.3.0
removal to allow pyqtwebengine (Qt5) cleanup.

Closes: https://bugs.gentoo.org/905637
Closes: https://bugs.gentoo.org/926681
Closes: https://bugs.gentoo.org/943686
Closes: https://bugs.gentoo.org/952546
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens
2025-03-29 21:54:10 -04:00
parent b430b6aa7a
commit 5206c2b51e
2 changed files with 69 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST frescobaldi-3.3.0.tar.gz 9196964 BLAKE2B 52e0c39e3a9fd70f5e450dd45cd0c0c0683b8c0af243d568e765f351500da138c0e527a579245c3d72e628d6a940003c62e1d70b6cff8ecb55d7214b7def8093 SHA512 0dc851cb2ab001f366d20d3c27159087a643cbb5661cc7388b9ec5209c03d4d47dc9114f378dab0562a1a4cb84c2a67eddd8b1981ceaa057e5ac79f8c277ad05
DIST frescobaldi-4.0.0.tar.gz 8647722 BLAKE2B d37fc55e7519cfbe2235736f0411461261936df34a454f318a9c26917546b6c39bfddf81c4fe521b1891192257ba14f7f7f159641e19993a056ea09121464739 SHA512 551d3681f0b80ef10cbc5ef33fcf61152a7063eb0bed46386711fcc424d9ecce28d6c11dd0a368d5a479bd4b92fb5e93d8de49545063a5d7175625fc37bcbf01

View File

@@ -0,0 +1,68 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_SINGLE_IMPL=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..13} )
inherit desktop distutils-r1 xdg
DESCRIPTION="A LilyPond sheet music text editor"
HOMEPAGE="https://frescobaldi.org/"
SRC_URI="
https://github.com/frescobaldi/frescobaldi/archive/refs/tags/v${PV}.tar.gz
-> ${P}.tar.gz
"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
$(python_gen_cond_dep '
dev-python/pyqt6-webengine[widgets,${PYTHON_USEDEP}]
dev-python/pyqt6[gui,network,printsupport,svg,webchannel,widgets,${PYTHON_USEDEP}]
dev-python/python-ly[${PYTHON_USEDEP}]
>=dev-python/qpageview-1.0.0[${PYTHON_USEDEP}]
')
media-libs/portmidi
media-sound/lilypond
x11-themes/tango-icon-theme
"
BDEPEND="
sys-devel/gettext
"
src_prepare() {
distutils-r1_src_prepare
# INSTALL.md suggests that we can do this to use tango-icon-theme
rm -r frescobaldi/icons/Tango || die
# formerly these commands used a Makefile, but they've been moved to
# tox.ini and do not really want to depend on tox just for this
"${EPYTHON}" i18n/mo-gen.py || die
msgfmt --desktop -d i18n/frescobaldi \
--template linux/org.frescobaldi.Frescobaldi.desktop.in \
-o linux/org.frescobaldi.Frescobaldi.desktop || die
msgfmt --xml -d i18n/frescobaldi \
--template linux/org.frescobaldi.Frescobaldi.metainfo.xml.in \
-o linux/org.frescobaldi.Frescobaldi.metainfo.xml || die
}
src_install() {
# messy workaround for https://github.com/frescobaldi/frescobaldi/issues/1898
python_domodule frescobaldi
distutils-r1_src_install
dodoc CHANGELOG.md
doman frescobaldi.1
domenu linux/org.frescobaldi.Frescobaldi.desktop
doicon frescobaldi/icons/org.frescobaldi.Frescobaldi.svg
insinto /usr/share/metainfo
doins linux/org.frescobaldi.Frescobaldi.metainfo.xml
}