diff options
author | Michael Weber <xmw@gentoo.org> | 2011-11-17 13:04:40 +0000 |
---|---|---|
committer | Michael Weber <xmw@gentoo.org> | 2011-11-17 13:04:40 +0000 |
commit | be58f8bc42ff778fd6625a46c88e294ec696ac45 (patch) | |
tree | bfdc47c5765d5ed68fc638ebdc724a869ec0e00f /x11-misc/zim/zim-0.53.ebuild | |
parent | Version bump wrt #390811 by Tolga Dalman, fixes bug #383843 by Cedric (diff) | |
download | gentoo-2-be58f8bc42ff778fd6625a46c88e294ec696ac45.tar.gz gentoo-2-be58f8bc42ff778fd6625a46c88e294ec696ac45.tar.bz2 gentoo-2-be58f8bc42ff778fd6625a46c88e294ec696ac45.zip |
Version bump (thanks to Alastair Murray for the report bug 390773), drop use flags, remove old versions.
(Portage version: 2.1.10.11/cvs/Linux x86_64)
Diffstat (limited to 'x11-misc/zim/zim-0.53.ebuild')
-rw-r--r-- | x11-misc/zim/zim-0.53.ebuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/x11-misc/zim/zim-0.53.ebuild b/x11-misc/zim/zim-0.53.ebuild new file mode 100644 index 000000000000..c2e18f27cc48 --- /dev/null +++ b/x11-misc/zim/zim-0.53.ebuild @@ -0,0 +1,67 @@ +# 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.53.ebuild,v 1.1 2011/11/17 13:04:40 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="test" + +RDEPEND="|| ( >=dev-lang/python-2.6 dev-python/simplejson ) + dev-python/pygtk" +DEPEND="${RDEPEND} + x11-misc/xdg-utils + test? ( dev-vcs/bzr )" + +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" + ewarn "Please emerge these packages for additional functionality" + ewarn " dev-lang/R" + ewarn " dev-python/gtkspell-python" + ewarn " dev-vcs/bzr" + ewarn " media-gfx/graphviz" + ewarn " media-gfx/imagemagick" + ewarn " media-gfx/scrot" + ewarn " sci-visualization/gnuplot" + ewarn " virtual/latex-base app-text/dvipng" +} + +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" +} |