summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2011-05-30 21:41:41 +0000
committerMichael Weber <xmw@gentoo.org>2011-05-30 21:41:41 +0000
commit24d63c9f21fc1d903fb8298ab3f12fad7b93a9cc (patch)
tree35c576953997d1230198a2afd93cfffacad73501 /x11-misc/zim
parentSilence deprecation warning. (diff)
downloadgentoo-2-24d63c9f21fc1d903fb8298ab3f12fad7b93a9cc.tar.gz
gentoo-2-24d63c9f21fc1d903fb8298ab3f12fad7b93a9cc.tar.bz2
gentoo-2-24d63c9f21fc1d903fb8298ab3f12fad7b93a9cc.zip
Version bump
(Portage version: 2.1.9.42/cvs/Linux x86_64)
Diffstat (limited to 'x11-misc/zim')
-rw-r--r--x11-misc/zim/ChangeLog7
-rw-r--r--x11-misc/zim/zim-0.52.ebuild61
2 files changed, 67 insertions, 1 deletions
diff --git a/x11-misc/zim/ChangeLog b/x11-misc/zim/ChangeLog
index 3ce52360093e..ba780a1b8267 100644
--- a/x11-misc/zim/ChangeLog
+++ b/x11-misc/zim/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for x11-misc/zim
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/zim/ChangeLog,v 1.12 2011/03/02 19:22:25 signals Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/zim/ChangeLog,v 1.13 2011/05/30 21:41:41 xmw Exp $
+
+*zim-0.52 (30 May 2011)
+
+ 30 May 2011; Michael Weber <xmw@gentoo.org> +zim-0.52.ebuild:
+ Version bump, thanks to Alastair Murray for his report on bug 368971
02 Mar 2011; Kevin McCarthy <signals@gentoo.org> zim-0.28.ebuild,
zim-0.46.ebuild:
diff --git a/x11-misc/zim/zim-0.52.ebuild b/x11-misc/zim/zim-0.52.ebuild
new file mode 100644
index 000000000000..f8c39db65797
--- /dev/null
+++ b/x11-misc/zim/zim-0.52.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/zim/zim-0.52.ebuild,v 1.1 2011/05/30 21:41:41 xmw Exp $
+
+PYTHON_USE_WITH="sqlite"
+PYTHON_DEPEND="2:2.5"
+
+EAPI=3
+
+inherit distutils eutils fdo-mime virtualx
+
+DESCRIPTION="A desktop wiki"
+HOMEPAGE="http://zim-wiki.org/"
+SRC_URI="http://zim-wiki.org/downloads/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="graphviz latex screenshot spell test"
+
+RDEPEND="${DEPEND}
+ graphviz? ( media-gfx/graphviz )
+ latex? ( virtual/latex-base app-text/dvipng )
+ screenshot? ( media-gfx/scrot )
+ spell? ( dev-python/gtkspell-python )"
+DEPEND="|| ( >=dev-lang/python-2.6 dev-python/simplejson )
+ dev-python/pygtk
+ x11-misc/xdg-utils"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ sed -i -e "s/'USER'/'LOGNAME'/g" zim/__init__.py zim/fs.py || die
+}
+
+src_test() {
+ VIRTUALX_COMMAND="$(PYTHON)" virtualmake test.py || die
+}
+
+src_install () {
+ doicon data/${PN}.png || die "doicon failed"
+ distutils_src_install --skip-xdg-cmd
+}
+
+pkg_postinst() {
+ distutils_pkg_postinst
+ fdo-mime_desktop_database_update
+ xdg-icon-resource install --context mimetypes --size 64 \
+ "${ROOT}/usr/share/pixmaps/zim.png" \
+ application-x-zim-notebook || die "xdg-icon-resource install failed"
+}
+
+pkg_postrm() {
+ distutils_pkg_postrm
+ fdo-mime_desktop_database_update
+ xdg-icon-resource uninstall --context mimetypes --size 64 \
+ application-x-zim-notebook || die "xdg-icon-resource uninstall failed"
+}