annotate x11-misc/zim/zim-0.67.ebuild @ 483:ff058a98328c

Remove 1.36.1 ebuild, update for 1.38.0 ebuild
author Dirk Olmes <dirk@xanthippe.ping.de>
date Thu, 05 Sep 2019 11:56:25 +0200
parents ed034f9928b8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
446
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
1 # Copyright 1999-2017 Gentoo Foundation
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
3
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
4 EAPI=5
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
5
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
6 PYTHON_COMPAT=( python2_7 )
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
7 PYTHON_REQ_USE="sqlite"
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
8 DISTUTILS_SINGLE_IMPL=1
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
9
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
10 inherit distutils-r1 gnome2-utils fdo-mime virtualx
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
11
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
12 DESCRIPTION="A desktop wiki"
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
13 HOMEPAGE="http://zim-wiki.org/"
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
14 SRC_URI="http://zim-wiki.org/downloads/${P}.tar.gz"
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
15
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
16 LICENSE="BSD GPL-2+"
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
17 SLOT="0"
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
18 KEYWORDS="~amd64 ~x86"
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
19 IUSE="test"
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
20
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
21 RDEPEND="dev-python/pygtk[${PYTHON_USEDEP}]
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
22 dev-python/pygobject:2[${PYTHON_USEDEP}]"
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
23 DEPEND="${RDEPEND}
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
24 x11-misc/xdg-utils
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
25 test? (
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
26 dev-vcs/bzr
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
27 dev-vcs/git
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
28 dev-vcs/mercurial )"
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
29
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
30 PATCHES=(
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
31 "${FILESDIR}"/${PN}-0.60-remove-ubuntu-theme.patch
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
32 )
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
33
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
34 python_prepare() {
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
35 sed -i -e "s/'USER'/'LOGNAME'/g" zim/__init__.py zim/fs.py || die
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
36
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
37 if [[ ${LINGUAS} ]]; then
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
38 local lingua
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
39 for lingua in translations/*.po; do
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
40 lingua=${lingua/.po}
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
41 lingua=${lingua/translations\/}
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
42 has ${lingua} ${LINGUAS} || \
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
43 { rm translations/${lingua}.po || die; }
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
44 done
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
45 fi
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
46
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
47 distutils-r1_python_prepare
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
48 }
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
49
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
50 python_test() {
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
51 VIRTUALX_COMMAND="${PYTHON}" virtualmake test.py
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
52 }
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
53
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
54 python_install() {
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
55 distutils-r1_python_install --skip-xdg-cmd
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
56 }
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
57
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
58 pkg_preinst() {
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
59 gnome2_icon_savelist
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
60 }
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
61
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
62 pkg_postinst() {
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
63 fdo-mime_desktop_database_update
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
64 gnome2_icon_cache_update
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
65 if ! has_version ${CATEGORY}/${PN}; then
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
66 einfo "Please emerge these packages for additional functionality"
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
67 einfo " dev-lang/R"
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
68 einfo " dev-python/gtkspell-python"
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
69 einfo " dev-vcs/bzr"
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
70 einfo " gnome-extra/zeitgeist"
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
71 einfo " media-gfx/graphviz"
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
72 einfo " media-gfx/imagemagick"
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
73 einfo " media-gfx/scrot"
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
74 einfo " media-sound/lilypond"
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
75 einfo " sci-visualization/gnuplot"
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
76 einfo " virtual/latex-base app-text/dvipng"
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
77 fi
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
78 }
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
79
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
80 pkg_postrm() {
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
81 fdo-mime_desktop_database_update
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
82 gnome2_icon_cache_update
ed034f9928b8 add ebuild for zim
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
83 }