diff options
author | Jeroen Roovers <jer@gentoo.org> | 2020-06-21 13:38:25 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2020-06-21 13:42:45 +0200 |
commit | 56228a85ea4762fcc7c0283e7c93a80addd8aab0 (patch) | |
tree | 6ec8b11a93ce9fc4a129d67a49f623bf9f5e1151 /x11-misc/zim | |
parent | dev-libs/libnl: Set BDEPEND (diff) | |
download | gentoo-56228a85ea4762fcc7c0283e7c93a80addd8aab0.tar.gz gentoo-56228a85ea4762fcc7c0283e7c93a80addd8aab0.tar.bz2 gentoo-56228a85ea4762fcc7c0283e7c93a80addd8aab0.zip |
x11-misc/zim: Version 0.73.1
Package-Manager: Portage-2.3.101, Repoman-2.3.22
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'x11-misc/zim')
-rw-r--r-- | x11-misc/zim/Manifest | 1 | ||||
-rw-r--r-- | x11-misc/zim/zim-0.73.1.ebuild | 81 |
2 files changed, 82 insertions, 0 deletions
diff --git a/x11-misc/zim/Manifest b/x11-misc/zim/Manifest index b1838969441d..bbe26c930acf 100644 --- a/x11-misc/zim/Manifest +++ b/x11-misc/zim/Manifest @@ -1,2 +1,3 @@ DIST zim-0.72.1.tar.gz 2596910 BLAKE2B cdc6c875ed316dcd5655d75c280b46189d9b7068922ea0cc05606bce8f5bd0ef7d92b7965ee0af067add28ef75f53363e864b3ca43d216dbf99fe2cac6e19a73 SHA512 3b74388eb9272e6c5c89e752d784428b18ffc6cbc76311162aa8f42f2de434ad8e9f9c6932b8aaa62e2a3abdb879a31c982cc3103e7eaa3a5407a02cb6750bfc DIST zim-0.73.0.tar.gz 2615116 BLAKE2B 0d7c3910dfaa49f5260b4f7d23f812aa4cd9288bb19ffca0ca7297c49a508b89d4815ee7f2e98883f43c5cad92c6084939b827ccc4cb4e976edbf1cbc910eafa SHA512 0c01c63f68fe661263e25eef80e9b5872f2e5315d1e6a378de6b2486c081d39e5970435feee879a444f16f67ff2eda1a1e790630a3829a630c0ea95e59a505fa +DIST zim-0.73.1.tar.gz 2615382 BLAKE2B 055857b20dbdebc1e5d8d6b13c344fcf665d9889f392f9c58fd3cfef1f80865a78c48e5138d2443f67bb29b8cd915b8d0d6bc0ac4807de20344dfe6673f1350e SHA512 ba67b396a6c06921e5e67ab5ccf0559e54b29a719262411b24f178c350bd0ac7c8239f8d5d4396b9dc291aadc36b59869d81dc04d457ce4a36eade67cdd53dd2 diff --git a/x11-misc/zim/zim-0.73.1.ebuild b/x11-misc/zim/zim-0.73.1.ebuild new file mode 100644 index 000000000000..44944193205d --- /dev/null +++ b/x11-misc/zim/zim-0.73.1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8} ) +PYTHON_REQ_USE="sqlite" +DISTUTILS_SINGLE_IMPL=1 +DISTUTILS_USE_SETUPTOOLS=no +inherit xdg-utils virtualx distutils-r1 + +DESCRIPTION="A desktop wiki" +HOMEPAGE=" + https://zim-wiki.org/ + https://github.com/zim-desktop-wiki/zim-desktop-wiki +" +SRC_URI="https://github.com/${PN}-desktop-wiki/${PN}-desktop-wiki/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +RESTRICT="test" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}] + dev-python/pyxdg[${PYTHON_MULTI_USEDEP}] + ') + x11-libs/gtk+:3[introspection] + x11-misc/xdg-utils +" +DEPEND=" + ${RDEPEND} +" +DOCS=( CHANGELOG.md CONTRIBUTING.md PLUGIN_WRITING.md README.md ) +PATCHES=( "${FILESDIR}"/${PN}-0.60-remove-ubuntu-theme.patch ) +S=${WORKDIR}/${PN}-desktop-wiki-${PV/_/-} + +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 + export XDG_RUNTIME_DIR=fakethis +} + +python_install() { + distutils-r1_python_install +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_icon_cache_update + xdg_mimeinfo_database_update + if ! has_version ${CATEGORY}/${PN}; then + elog "Please install these packages for additional functionality" + elog " dev-lang/R" + elog " dev-python/gtkspell-python" + elog " dev-vcs/bzr" + elog " media-gfx/graphviz" + elog " media-gfx/imagemagick" + elog " media-gfx/scrot" + elog " media-sound/lilypond" + elog " sci-visualization/gnuplot" + elog " virtual/latex-base app-text/dvipng" + fi +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update + xdg_mimeinfo_database_update +} |