Gentoo Archives: gentoo-commits

From: Bernard Cafarelli <voyageur@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/zim/
Date: Thu, 23 Sep 2021 16:15:13
Message-Id: 1632413702.97da273080581bb3afcdae0e1fe768ae8d6471ec.voyageur@gentoo
1 commit: 97da273080581bb3afcdae0e1fe768ae8d6471ec
2 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 23 16:15:02 2021 +0000
4 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 23 16:15:02 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97da2730
7
8 x11-misc/zim: 0.74.0 bump
9
10 Package-Manager: Portage-3.0.23, Repoman-3.0.3
11 Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>
12
13 x11-misc/zim/Manifest | 1 +
14 x11-misc/zim/zim-0.74.0.ebuild | 73 ++++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 74 insertions(+)
16
17 diff --git a/x11-misc/zim/Manifest b/x11-misc/zim/Manifest
18 index ee96e7f753f..ad0b51fbcd4 100644
19 --- a/x11-misc/zim/Manifest
20 +++ b/x11-misc/zim/Manifest
21 @@ -1 +1,2 @@
22 DIST zim-0.73.5.tar.gz 2702734 BLAKE2B 494dbe8ac0cbb46c15655cdf56bc25010591bd00faec94608ccd9fa7cec01385c6756480e5a3f37b50f44984ed69d30f33570ca913dab7ede2b89a4bf0cc4016 SHA512 f2c335d4697e7d0535b2abb200af45b7d753f2964e94a35c2ec8d4fb8deae0842aef086e09430a50d4ff5ecee89eb1f6f881a0b430877209e4a8d83ee046c4f9
23 +DIST zim-0.74.0.tar.gz 2917916 BLAKE2B 32b1086395142d07b46425264e3ee6d6782d62f138fb661c0bc392b09054f0664e7a2d8b75f409a843b1e85c93a11e41e041019f69ef657e11d311253ba804ae SHA512 39e3849c14bc474b90583a708c8ead287b27a8eb5f714ad63f168f205fb6584c4ff2f9df45755aa3e3b012639891587c7153ae4e0fef71276241ddce6e32c01f
24
25 diff --git a/x11-misc/zim/zim-0.74.0.ebuild b/x11-misc/zim/zim-0.74.0.ebuild
26 new file mode 100644
27 index 00000000000..131369dc028
28 --- /dev/null
29 +++ b/x11-misc/zim/zim-0.74.0.ebuild
30 @@ -0,0 +1,73 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +PYTHON_COMPAT=( python3_{8,9} )
36 +PYTHON_REQ_USE="sqlite"
37 +DISTUTILS_SINGLE_IMPL=1
38 +DISTUTILS_USE_SETUPTOOLS=no
39 +inherit distutils-r1 virtualx xdg
40 +
41 +DESCRIPTION="A desktop wiki"
42 +HOMEPAGE="
43 + https://zim-wiki.org/
44 + https://github.com/zim-desktop-wiki/zim-desktop-wiki
45 +"
46 +SRC_URI="https://github.com/${PN}-desktop-wiki/${PN}-desktop-wiki/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz"
47 +
48 +LICENSE="BSD GPL-2+"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~arm ~x86"
51 +RESTRICT="test"
52 +
53 +RDEPEND="
54 + $(python_gen_cond_dep '
55 + dev-python/pygobject:3[${PYTHON_USEDEP}]
56 + dev-python/pyxdg[${PYTHON_USEDEP}]
57 + ')
58 + x11-libs/gtk+:3[introspection]
59 + x11-misc/xdg-utils
60 +"
61 +DEPEND="
62 + ${RDEPEND}
63 +"
64 +DOCS=( CHANGELOG.md CONTRIBUTING.md PLUGIN_WRITING.md README.md )
65 +PATCHES=( "${FILESDIR}"/${PN}-0.60-remove-ubuntu-theme.patch )
66 +S=${WORKDIR}/${PN}-desktop-wiki-${PV/_/-}
67 +
68 +python_prepare_all() {
69 + sed -i -e "s/'USER'/'LOGNAME'/g" zim/__init__.py zim/fs.py || die
70 +
71 + if [[ ${LINGUAS} ]]; then
72 + local lingua
73 + for lingua in translations/*.po; do
74 + lingua=${lingua/.po}
75 + lingua=${lingua/translations\/}
76 + has ${lingua} ${LINGUAS} || \
77 + { rm translations/${lingua}.po || die; }
78 + done
79 + fi
80 +
81 + distutils-r1_python_prepare_all
82 + export XDG_RUNTIME_DIR=fakethis
83 +}
84 +
85 +python_install() {
86 + distutils-r1_python_install
87 +}
88 +
89 +pkg_postinst() {
90 + xdg_pkg_postinst
91 + if ! has_version ${CATEGORY}/${PN}; then
92 + elog "Please install these packages for additional functionality"
93 + elog " dev-lang/R"
94 + elog " dev-python/gtkspell-python"
95 + elog " dev-vcs/bzr"
96 + elog " media-gfx/graphviz"
97 + elog " media-gfx/imagemagick"
98 + elog " media-gfx/scrot"
99 + elog " media-sound/lilypond"
100 + elog " sci-visualization/gnuplot"
101 + elog " virtual/latex-base app-text/dvipng"
102 + fi
103 +}