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, 03 Nov 2022 23:41:02
Message-Id: 1667518856.1b23b1ee07bd86ed8b861d35e29175b8fe866483.voyageur@gentoo
1 commit: 1b23b1ee07bd86ed8b861d35e29175b8fe866483
2 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 3 23:39:08 2022 +0000
4 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 3 23:40:56 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b23b1ee
7
8 x11-misc/zim: add 0.75.1
9
10 Add icons install step as PEP 517 mode skips them
11
12 Closes: https://bugs.gentoo.org/878741
13 Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>
14
15 x11-misc/zim/Manifest | 1 +
16 x11-misc/zim/zim-0.75.1.ebuild | 80 ++++++++++++++++++++++++++++++++++++++++++
17 2 files changed, 81 insertions(+)
18
19 diff --git a/x11-misc/zim/Manifest b/x11-misc/zim/Manifest
20 index 033ff52dae49..4f757a329ec8 100644
21 --- a/x11-misc/zim/Manifest
22 +++ b/x11-misc/zim/Manifest
23 @@ -1,2 +1,3 @@
24 DIST zim-0.74.3.tar.gz 3108228 BLAKE2B fbaaddbd5522ccffcba87da2f4080e93e46dfcdc22771a414daa813cdbc2982738c2bf6f068f4bddf788965b4cf45594f2720a697c04d71194f513d1d9b43875 SHA512 9f885571800e3aba327a46b3bc8677ca596fb2d0a58e2f65190d9e2bc90f013655947d86c1fc869e2d79a5c0ba8a7a4d907a00f8d7563116291df47d8c2c677d
25 DIST zim-0.75.0.tar.gz 3178872 BLAKE2B 71fcd9363fc238be6ca48f44e826d0ca1ac62fdb609f2397f2dbd6acf3601980b861bc1424e1834728179f1a9c29332bf4709010643b77c8daec6299688cbb0c SHA512 9b8c5be64b2d45de2b02770e91f1950928d8f2214fc0c6099cd57bf61e3749911f46c4ec7815c9e322559ce155db2475e3b1347a81d2b76a82cd848dd4af3864
26 +DIST zim-0.75.1.tar.gz 3212424 BLAKE2B 8db33315a8852b4efc5506cf94576f9b7cfa8574e77798d4e8bb61930a0d9ede5ea0bd2fc8c1ae479f49caee265981d70902b149e151e5f295cdcc5bbe98b131 SHA512 207d40af2342f16ba713a3809b06ddc6656bce22386fcaace65b0e04894218590d4c03b9c65d6eeb3c4edc46e85e103cfcf112e4298be07ba1f126d7732333c5
27
28 diff --git a/x11-misc/zim/zim-0.75.1.ebuild b/x11-misc/zim/zim-0.75.1.ebuild
29 new file mode 100644
30 index 000000000000..a7fb11f78c96
31 --- /dev/null
32 +++ b/x11-misc/zim/zim-0.75.1.ebuild
33 @@ -0,0 +1,80 @@
34 +# Copyright 1999-2022 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=8
38 +
39 +PYTHON_COMPAT=( python3_{8..11} )
40 +PYTHON_REQ_USE="sqlite"
41 +DISTUTILS_USE_PEP517=setuptools
42 +DISTUTILS_SINGLE_IMPL=1
43 +VIRTUALX_REQUIRED=test
44 +inherit distutils-r1 optfeature virtualx xdg
45 +
46 +DESCRIPTION="A desktop wiki"
47 +HOMEPAGE="
48 + https://zim-wiki.org/
49 + https://github.com/zim-desktop-wiki/zim-desktop-wiki
50 +"
51 +SRC_URI="https://github.com/${PN}-desktop-wiki/${PN}-desktop-wiki/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz"
52 +
53 +LICENSE="BSD GPL-2+"
54 +SLOT="0"
55 +KEYWORDS="~amd64 ~arm ~x86"
56 +
57 +RDEPEND="
58 + $(python_gen_cond_dep '
59 + dev-python/pygobject:3[${PYTHON_USEDEP}]
60 + dev-python/pyxdg[${PYTHON_USEDEP}]
61 + ')
62 + x11-libs/gtk+:3[introspection]
63 + x11-misc/xdg-utils
64 +"
65 +DEPEND="${RDEPEND}"
66 +
67 +DOCS=( CHANGELOG.md CONTRIBUTING.md PLUGIN_WRITING.md README.md )
68 +PATCHES=( "${FILESDIR}"/${PN}-0.60-remove-ubuntu-theme.patch )
69 +S=${WORKDIR}/${PN}-desktop-wiki-${PV/_/-}
70 +
71 +python_prepare_all() {
72 + if [[ ${LINGUAS} ]]; then
73 + local lingua
74 + for lingua in translations/*.po; do
75 + lingua=${lingua/.po}
76 + lingua=${lingua/translations\/}
77 + has ${lingua} ${LINGUAS} || \
78 + { rm translations/${lingua}.po || die; }
79 + done
80 + fi
81 +
82 + distutils-r1_python_prepare_all
83 + export XDG_RUNTIME_DIR=fakethis
84 +}
85 +
86 +python_test() {
87 + if has_version dev-vcs/git; then
88 + git config --global user.email "git@×××××××.com" || die
89 + git config --global user.name "GitExample" || die
90 + fi
91 +
92 + virtx ./test.py
93 +}
94 +
95 +src_install() {
96 + distutils-r1_src_install
97 +
98 + insinto /usr/share/icons
99 + doins -r xdg/hicolor
100 +}
101 +
102 +pkg_postinst() {
103 + xdg_pkg_postinst
104 +
105 + optfeature "GNU R Plot Editor" dev-lang/R
106 + optfeature "Spell checker" dev-python/gtkspell-python
107 + optfeature "Version control Bazaar support" dev-vcs/bzr
108 + optfeature "Diagram Editor" media-gfx/graphviz
109 + optfeature "Insert Screenshot" "media-gfx/imagemagick media-gfx/scrot"
110 + optfeature "Score Editor" media-sound/lilypond
111 + optfeature "Gnuplot Editor" sci-visualization/gnuplot
112 + optfeature "Equation Editor" virtual/latex-base app-text/dvipng
113 +}