commit: aa79514f1ad7b046b5a0b03c51841335b1664598 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> AuthorDate: Thu Apr 10 13:55:28 2025 +0000 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> CommitDate: Thu Apr 10 13:57:13 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa79514f
x11-misc/zim: add 0.76.3 Closes: https://bugs.gentoo.org/952054 Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org> x11-misc/zim/Manifest | 1 + x11-misc/zim/metadata.xml | 3 ++ x11-misc/zim/zim-0.76.3.ebuild | 90 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 94 insertions(+) diff --git a/x11-misc/zim/Manifest b/x11-misc/zim/Manifest index 8720dd6af677..1332e6865b6a 100644 --- a/x11-misc/zim/Manifest +++ b/x11-misc/zim/Manifest @@ -1 +1,2 @@ DIST zim-0.76.2.tar.gz 3373891 BLAKE2B 2faca4a632004f05516c1349682caa00a8e2a3858593f44266afa80fd1d1eee216af5bed6828a7d58148a264e3f7238cda0466e92c132a37dd0c362d4ab1a69e SHA512 7d834e2dd65faa31b9a9d6353e2462993114949f44387a90c8f7fab4a16fafca56886f41391d258118a6cd01e6394261628cdf3b9b3d76d9c85873924836edbb +DIST zim-0.76.3.tar.gz 3408993 BLAKE2B 30c88a522dfaa4336d30ce0fede279817d71dd0a85081b9832ddd16b5fdb0def771d1bada02a66c4c639b8950723ac6894856b7ba6ba8184101d2e52c54540a3 SHA512 10386d9c37d32c2ec9bcfa58fd35779f251bb3f3dd0d0512b63779d66ecb4d1722d800bf9f5b5301d30781ae31bf7534e8e5131bd7ec74d92046b94dcff4289b diff --git a/x11-misc/zim/metadata.xml b/x11-misc/zim/metadata.xml index 00af9242199a..e0ad37dac6b0 100644 --- a/x11-misc/zim/metadata.xml +++ b/x11-misc/zim/metadata.xml @@ -14,6 +14,9 @@ provide additional functionality, like a task list manager, an equation editor, a tray icon, and support for version control. </longdescription> + <use> + <flag name="ubuntu-mono">Install mono icons for Unity</flag> + </use> <upstream> <remote-id type="github">zim-desktop-wiki/zim-desktop-wiki</remote-id> </upstream> diff --git a/x11-misc/zim/zim-0.76.3.ebuild b/x11-misc/zim/zim-0.76.3.ebuild new file mode 100644 index 000000000000..1e45d3a89f93 --- /dev/null +++ b/x11-misc/zim/zim-0.76.3.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..13} ) +PYTHON_REQ_USE="sqlite" +DISTUTILS_USE_PEP517=setuptools +DISTUTILS_SINGLE_IMPL=1 +VIRTUALX_REQUIRED=test +inherit distutils-r1 optfeature virtualx xdg + +DESCRIPTION="A desktop wiki" +HOMEPAGE=" + https://zim-wiki.org/ + https://github.com/zim-desktop-wiki/zim-desktop-wiki +" +SRC_URI="https://github.com/${PN}-desktop-wiki/${PN}-desktop-wiki/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz" +S=${WORKDIR}/${PN}-desktop-wiki-${PV/_/-} + +LICENSE="BSD GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~riscv ~x86" +IUSE="ubuntu-mono" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/pygobject:3[${PYTHON_USEDEP}] + dev-python/pyxdg[${PYTHON_USEDEP}] + ') + x11-libs/gtk+:3[introspection] + x11-misc/xdg-utils +" +DEPEND="${RDEPEND}" + +DOCS=( CHANGELOG.md CONTRIBUTING.md PLUGIN_WRITING.md README.md ) + +python_prepare_all() { + if ! use ubuntu-mono; then + PATCHES+=( "${FILESDIR}"/${PN}-0.60-remove-ubuntu-theme.patch ) + fi + + if [[ ${LINGUAS} ]]; then + local lingua + for lingua in translations/*.po; do + lingua=${lingua/.po} + lingua=${lingua/translations\/} + has ${lingua} ${LINGUAS} || \ + { rm translations/${lingua}.po || die; } + done + fi + + distutils-r1_python_prepare_all + export XDG_RUNTIME_DIR=fakethis +} + +python_compile() { + sed -e "s#./build#${BUILD_DIR}/build*#" -i setup.py || die + + distutils-r1_python_compile +} + +python_test() { + if has_version dev-vcs/git; then + git config --global user.email "[email protected]" || die + git config --global user.name "GitExample" || die + fi + + virtx ./test.py +} + +src_install() { + distutils-r1_src_install + + insinto /usr/share/icons + doins -r xdg/hicolor +} + +pkg_postinst() { + xdg_pkg_postinst + + optfeature "Spell checker" app-text/gtkspell[introspection] + optfeature "GNU R Plot Editor" dev-lang/R + optfeature "Version control Bazaar support" dev-vcs/breezy + optfeature "Diagram Editor" media-gfx/graphviz + optfeature "Insert Screenshot" "media-gfx/imagemagick media-gfx/scrot" + optfeature "Score Editor" media-sound/lilypond + optfeature "Gnuplot Editor" sci-visualization/gnuplot + optfeature "Equation Editor" virtual/latex-base app-text/dvipng +}
