diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-01-16 17:34:21 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-01-16 17:34:21 +0000 |
commit | 02e2208f46f4e2c00fb9743cbc47350bdd233bfa (patch) | |
tree | 132dd60828854db4f65f30f9230f43d9602507ff /x11-misc/zim/zim-0.68_rc1.ebuild | |
parent | 8be70107efbb417f839292165ee39d07a062046f (diff) |
gentoo resync : 16.01.2018
Diffstat (limited to 'x11-misc/zim/zim-0.68_rc1.ebuild')
-rw-r--r-- | x11-misc/zim/zim-0.68_rc1.ebuild | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/x11-misc/zim/zim-0.68_rc1.ebuild b/x11-misc/zim/zim-0.68_rc1.ebuild new file mode 100644 index 000000000000..be1a907e7ced --- /dev/null +++ b/x11-misc/zim/zim-0.68_rc1.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="sqlite" +DISTUTILS_SINGLE_IMPL=1 + +inherit xdg-utils distutils-r1 gnome2-utils virtualx + +MY_P=${P/_/-} +DESCRIPTION="A desktop wiki" +HOMEPAGE="http://zim-wiki.org/" +SRC_URI="http://zim-wiki.org/downloads/${MY_P}.tar.gz" + +LICENSE="BSD GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND="dev-python/pygtk[${PYTHON_USEDEP}] + dev-python/pygobject:2[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + x11-misc/xdg-utils + test? ( + dev-vcs/bzr + dev-vcs/git + dev-vcs/mercurial )" + +DOCS=( CHANGELOG.txt README.txt HACKING ) +PATCHES=( "${FILESDIR}"/${PN}-0.60-remove-ubuntu-theme.patch ) + +S="${WORKDIR}"/${MY_P} + +python_prepare_all() { + sed -i -e "s/'USER'/'LOGNAME'/g" zim/__init__.py zim/fs.py || die + + if [[ ${LINGUAS} ]]; then + local lingua + for lingua in translations/*.po; do + lingua=${lingua/.po} + lingua=${lingua/translations\/} + has ${lingua} ${LINGUAS} || \ + { rm translations/${lingua}.po || die; } + done + fi + + distutils-r1_python_prepare_all +} + +python_test() { + VIRTUALX_COMMAND="${PYTHON}" virtualmake test.py +} + +python_install() { + distutils-r1_python_install --skip-xdg-cmd +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + xdg_mimeinfo_database_update + gnome2_icon_cache_update + if ! has_version ${CATEGORY}/${PN}; then + einfo "Please emerge these packages for additional functionality" + einfo " dev-lang/R" + einfo " dev-python/gtkspell-python" + einfo " dev-vcs/bzr" + einfo " gnome-extra/zeitgeist" + einfo " media-gfx/graphviz" + einfo " media-gfx/imagemagick" + einfo " media-gfx/scrot" + einfo " media-sound/lilypond" + einfo " sci-visualization/gnuplot" + einfo " virtual/latex-base app-text/dvipng" + fi +} + +pkg_postrm() { + xdg_mimeinfo_database_update + gnome2_icon_cache_update +} |