Gentoo Archives: gentoo-commits

From: "Markos Chandras (hwoarang)" <hwoarang@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-misc/zim: ChangeLog zim-0.46.ebuild
Date: Fri, 28 May 2010 20:42:18
Message-Id: 20100528204214.EFAFC2CF3A@corvid.gentoo.org
1 hwoarang 10/05/28 20:42:14
2
3 Modified: ChangeLog
4 Added: zim-0.46.ebuild
5 Log:
6 Version bump. Fixes bug #304419
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.9 x11-misc/zim/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/zim/ChangeLog?rev=1.9&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/zim/ChangeLog?rev=1.9&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/zim/ChangeLog?r1=1.8&r2=1.9
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/x11-misc/zim/ChangeLog,v
19 retrieving revision 1.8
20 retrieving revision 1.9
21 diff -u -r1.8 -r1.9
22 --- ChangeLog 10 Aug 2009 17:54:54 -0000 1.8
23 +++ ChangeLog 28 May 2010 20:42:14 -0000 1.9
24 @@ -1,6 +1,13 @@
25 # ChangeLog for x11-misc/zim
26 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/zim/ChangeLog,v 1.8 2009/08/10 17:54:54 tove Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/zim/ChangeLog,v 1.9 2010/05/28 20:42:14 hwoarang Exp $
30 +
31 +*zim-0.46 (28 May 2010)
32 +
33 + 28 May 2010; Markos Chandras <hwoarang@g.o> +zim-0.46.ebuild,
34 + +files/zim-0.46-disable-updates.patch:
35 + Version bump. Fixes bug #304419. Thanks to Mat <jackdachef@×××××.com> for
36 + the ebuild and to Arfrever for the ebuild review
37
38 10 Aug 2009; Torsten Veller <tove@g.o> zim-0.28.ebuild:
39 Depend on the virtual of Test-Harness
40
41
42
43 1.1 x11-misc/zim/zim-0.46.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/zim/zim-0.46.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/zim/zim-0.46.ebuild?rev=1.1&content-type=text/plain
47
48 Index: zim-0.46.ebuild
49 ===================================================================
50 # Copyright 1999-2010 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/x11-misc/zim/zim-0.46.ebuild,v 1.1 2010/05/28 20:42:14 hwoarang Exp $
53
54 PYTHON_USE_WITH="sqlite"
55 PYTHON_DEPEND="2:2.5"
56
57 EAPI="3"
58
59 inherit eutils fdo-mime distutils
60
61 DESCRIPTION="A desktop wiki"
62 HOMEPAGE="http://zim-wiki.org/"
63 SRC_URI="http://zim-wiki.org/downloads/${P}.tar.gz"
64
65 LICENSE="GPL-2"
66 SLOT="0"
67 KEYWORDS="~amd64 ~x86"
68 IUSE="graphviz latex screenshot spell test"
69
70 RDEPEND="|| ( >=dev-lang/python-2.6 dev-python/simplejson )
71 dev-python/pygobject
72 dev-python/pygtk
73 >=x11-libs/gtk+-2.10
74 x11-misc/xdg-utils
75 graphviz? ( media-gfx/graphviz )
76 latex? ( virtual/latex-base app-text/dvipng )
77 screenshot? ( media-gfx/scrot )
78 spell? ( dev-python/gtkspell-python )"
79
80 DEPEND="${RDEPEND}"
81
82 pkg_setup() {
83 python_set_active_version 2
84 python_pkg_setup
85 }
86
87 src_prepare() {
88 epatch "${FILESDIR}/${P}-disable-updates.patch"
89 # remove unneeded variables
90 sed -i "/^assert/s:^:#:g" "${S}"/zim/__init__.py
91 }
92
93 src_test() {
94 $(PYTHON) test.py || die "src_test failed"
95 }
96
97 src_install () {
98 doicon data/${PN}.png || die "doicon failed"
99 distutils_src_install
100 }
101
102 pkg_postinst() {
103 distutils_pkg_postinst
104 fdo-mime_desktop_database_update
105 xdg-icon-resource install --context mimetypes --size 64 \
106 "${ROOT}/usr/share/pixmaps/zim.png" \
107 application-x-zim-notebook || die "xdg-icon-resource install failed"
108 }
109
110 pkg_postrm() {
111 distutils_pkg_postrm
112 fdo-mime_desktop_database_update
113 xdg-icon-resource uninstall --context mimetypes --size 64 \
114 application-x-zim-notebook || die "xdg-icon-resource uninstall failed"
115 }