Gentoo Archives: gentoo-commits

From: "Michael Weber (xmw)" <xmw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-misc/zim: ChangeLog zim-0.52.ebuild
Date: Mon, 30 May 2011 21:41:51
Message-Id: 20110530214141.9E1C220054@flycatcher.gentoo.org
1 xmw 11/05/30 21:41:41
2
3 Modified: ChangeLog
4 Added: zim-0.52.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.1.9.42/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.13 x11-misc/zim/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/zim/ChangeLog?rev=1.13&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/zim/ChangeLog?rev=1.13&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/zim/ChangeLog?r1=1.12&r2=1.13
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/x11-misc/zim/ChangeLog,v
20 retrieving revision 1.12
21 retrieving revision 1.13
22 diff -u -r1.12 -r1.13
23 --- ChangeLog 2 Mar 2011 19:22:25 -0000 1.12
24 +++ ChangeLog 30 May 2011 21:41:41 -0000 1.13
25 @@ -1,6 +1,11 @@
26 # ChangeLog for x11-misc/zim
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/zim/ChangeLog,v 1.12 2011/03/02 19:22:25 signals Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/zim/ChangeLog,v 1.13 2011/05/30 21:41:41 xmw Exp $
30 +
31 +*zim-0.52 (30 May 2011)
32 +
33 + 30 May 2011; Michael Weber <xmw@g.o> +zim-0.52.ebuild:
34 + Version bump, thanks to Alastair Murray for his report on bug 368971
35
36 02 Mar 2011; Kevin McCarthy <signals@g.o> zim-0.28.ebuild,
37 zim-0.46.ebuild:
38
39
40
41 1.1 x11-misc/zim/zim-0.52.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/zim/zim-0.52.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/zim/zim-0.52.ebuild?rev=1.1&content-type=text/plain
45
46 Index: zim-0.52.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/x11-misc/zim/zim-0.52.ebuild,v 1.1 2011/05/30 21:41:41 xmw Exp $
51
52 PYTHON_USE_WITH="sqlite"
53 PYTHON_DEPEND="2:2.5"
54
55 EAPI=3
56
57 inherit distutils eutils fdo-mime virtualx
58
59 DESCRIPTION="A desktop wiki"
60 HOMEPAGE="http://zim-wiki.org/"
61 SRC_URI="http://zim-wiki.org/downloads/${P}.tar.gz"
62
63 LICENSE="GPL-2"
64 SLOT="0"
65 KEYWORDS="~amd64 ~x86"
66 IUSE="graphviz latex screenshot spell test"
67
68 RDEPEND="${DEPEND}
69 graphviz? ( media-gfx/graphviz )
70 latex? ( virtual/latex-base app-text/dvipng )
71 screenshot? ( media-gfx/scrot )
72 spell? ( dev-python/gtkspell-python )"
73 DEPEND="|| ( >=dev-lang/python-2.6 dev-python/simplejson )
74 dev-python/pygtk
75 x11-misc/xdg-utils"
76
77 pkg_setup() {
78 python_set_active_version 2
79 python_pkg_setup
80 }
81
82 src_prepare() {
83 sed -i -e "s/'USER'/'LOGNAME'/g" zim/__init__.py zim/fs.py || die
84 }
85
86 src_test() {
87 VIRTUALX_COMMAND="$(PYTHON)" virtualmake test.py || die
88 }
89
90 src_install () {
91 doicon data/${PN}.png || die "doicon failed"
92 distutils_src_install --skip-xdg-cmd
93 }
94
95 pkg_postinst() {
96 distutils_pkg_postinst
97 fdo-mime_desktop_database_update
98 xdg-icon-resource install --context mimetypes --size 64 \
99 "${ROOT}/usr/share/pixmaps/zim.png" \
100 application-x-zim-notebook || die "xdg-icon-resource install failed"
101 }
102
103 pkg_postrm() {
104 distutils_pkg_postrm
105 fdo-mime_desktop_database_update
106 xdg-icon-resource uninstall --context mimetypes --size 64 \
107 application-x-zim-notebook || die "xdg-icon-resource uninstall failed"
108 }