Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/zim/
Date: Tue, 28 May 2019 12:08:56
Message-Id: 1559045303.eb3f917b88f81df16895594fe9f8240e7c20531e.jer@gentoo
1 commit: eb3f917b88f81df16895594fe9f8240e7c20531e
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 28 11:51:50 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Tue May 28 12:08:23 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb3f917b
7
8 x11-misc/zim: Version 0.71.1
9
10 Package-Manager: Portage-2.3.67, Repoman-2.3.13
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 x11-misc/zim/Manifest | 1 +
14 x11-misc/zim/zim-0.71.1.ebuild | 77 ++++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 78 insertions(+)
16
17 diff --git a/x11-misc/zim/Manifest b/x11-misc/zim/Manifest
18 index c7aa5957bb4..d31a1828cdd 100644
19 --- a/x11-misc/zim/Manifest
20 +++ b/x11-misc/zim/Manifest
21 @@ -1,3 +1,4 @@
22 DIST zim-0.65.tar.gz 1899614 BLAKE2B e7989d91120f2ffe0668c996b5abd61cc1cb12b2a5acf9023dfd87819b4c8834bba09f2211c901512d9fe186eee7939e44a5f098c09ef65f1d28cc55eb97e9b7 SHA512 dee652087d3d986b80353e9087abe363392354f40db11f8819d0b3f3c6f133c08c66c651a92ed77c1656f1135998ac02622eca08ac2e28c8fb3149a724a0f7fb
23 DIST zim-0.69.tar.gz 2044631 BLAKE2B 447fa4fb2d11b1399668ec6b627e23150577b574afb1e5c33738cb690779f49adb2d60e0b01eb82d2cf0dfd4a430099c1ae4b52186b60a2564c501b93aa01822 SHA512 452b2119d63927765c3807dbbdfadea94be31ee7fd3eb9b8cf79e8699c57478ec9cd392299a6e1dc3690dbe520925cddf5fca4596db809a2cc296bb6669d12af
24 DIST zim-0.71.0.tar.gz 2882942 BLAKE2B f1701baf547d43d7a9687e6a1d72313649064f1d3927e14bffd5c8e348fa7a311e307f9b1704c19058bfad07d6715c79399acfdc5701efa9291db3e68065175a SHA512 7c82e19d547795f57c563383aca04a51da02463df71cfe18c4cab0307f46fb425ff0f348b43ae0ab26cb29037bc9d99aed63dbf721a542d071f9674f17f0a64a
25 +DIST zim-0.71.1.tar.gz 2883082 BLAKE2B 66d1c571a67e12d8d38cbc6d8bd32918f98f47bff0aa34971986896b3aeec91170cd1f2a87a411a8fccda502addd3de8176cc70ebfbafedc87c462a751e87036 SHA512 0da59955f730cc0bbee033a292c7e531b1a302c950773aed68bd8a18bf1485826086522c4144f24f500e9240ebcb9b592b33dda390923ca0eba6ab57273c0896
26
27 diff --git a/x11-misc/zim/zim-0.71.1.ebuild b/x11-misc/zim/zim-0.71.1.ebuild
28 new file mode 100644
29 index 00000000000..e9579e77339
30 --- /dev/null
31 +++ b/x11-misc/zim/zim-0.71.1.ebuild
32 @@ -0,0 +1,77 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +PYTHON_COMPAT=( python3_{5,6} )
38 +PYTHON_REQ_USE="sqlite"
39 +DISTUTILS_SINGLE_IMPL=1
40 +inherit xdg-utils distutils-r1 gnome2-utils virtualx
41 +
42 +DESCRIPTION="A desktop wiki"
43 +HOMEPAGE="
44 + http://zim-wiki.org/
45 + https://github.com/zim-desktop-wiki/
46 +"
47 +SRC_URI="https://github.com/${PN}-desktop-wiki/${PN}-desktop-wiki/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz"
48 +
49 +LICENSE="BSD GPL-2+"
50 +SLOT="0"
51 +KEYWORDS="~amd64 ~x86"
52 +RESTRICT="test"
53 +
54 +RDEPEND="
55 + dev-python/pygobject:3[${PYTHON_USEDEP}]
56 + dev-python/pyxdg[${PYTHON_USEDEP}]
57 + x11-libs/gtk+:3[introspection]
58 + x11-misc/xdg-utils
59 +"
60 +DEPEND="
61 + ${RDEPEND}
62 +"
63 +DOCS=( CHANGELOG.md CONTRIBUTING.md PLUGIN_WRITING.md README.md )
64 +PATCHES=( "${FILESDIR}"/${PN}-0.60-remove-ubuntu-theme.patch )
65 +S=${WORKDIR}/${PN}-desktop-wiki-${PV/_/-}
66 +
67 +python_prepare_all() {
68 + sed -i -e "s/'USER'/'LOGNAME'/g" zim/__init__.py zim/fs.py || die
69 +
70 + if [[ ${LINGUAS} ]]; then
71 + local lingua
72 + for lingua in translations/*.po; do
73 + lingua=${lingua/.po}
74 + lingua=${lingua/translations\/}
75 + has ${lingua} ${LINGUAS} || \
76 + { rm translations/${lingua}.po || die; }
77 + done
78 + fi
79 +
80 + distutils-r1_python_prepare_all
81 +}
82 +
83 +python_install() {
84 + distutils-r1_python_install
85 +}
86 +
87 +pkg_postinst() {
88 + gnome2_icon_cache_update
89 + xdg_desktop_database_update
90 + xdg_mimeinfo_database_update
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 +}
104 +
105 +pkg_postrm() {
106 + gnome2_icon_cache_update
107 + xdg_desktop_database_update
108 + xdg_mimeinfo_database_update
109 +}