hasufell-repository/packages/x11-misc/zim/zim-0.72.0.exheres-0

63 lines
1.3 KiB
Bash
Raw Normal View History

2018-02-01 22:33:48 +00:00
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
# Distributed under the terms of the GNU General Public License v2
require gtk-icon-cache freedesktop-desktop
2019-05-08 10:00:16 +00:00
require setup-py [ import=distutils blacklist="2" multibuild=false python_opts="[sqlite]" ]
2018-02-01 22:33:48 +00:00
SUMMARY="A desktop wiki"
HOMEPAGE="http://zim-wiki.org/"
DOWNLOADS="http://zim-wiki.org/downloads/${PNV/_rc/-rc}.tar.gz"
LICENCES="
BSD-3
|| ( GPL-2 GPL-3 )
"
SLOT="0"
PLATFORMS="~amd64 ~x86"
MYOPTIONS=""
DEPENDENCIES="
build:
x11-apps/xdg-utils
build+run:
2019-05-08 10:00:16 +00:00
gnome-bindings/pygobject:3[python_abis:*(-)?]
x11-libs/gtk+:3[>=3.18]
recommendation:
dev-python/pyxdg[python_abis:*(-)?]
2018-02-01 22:33:48 +00:00
suggestion:
app-text/dvipng
app-text/texlive-core
2019-08-31 20:26:30 +00:00
dev-libs/zeitgeist:2.0
2018-02-01 22:33:48 +00:00
dev-scm/bzr
media-gfx/ImageMagick
media-gfx/graphviz
media-gfx/scrot
media-sound/lilypond
sci-apps/gnuplot
"
2019-08-31 20:26:30 +00:00
# Requires X server
RESTRICT="test"
2018-02-01 22:33:48 +00:00
WORK=${WORKBASE}/${PNV/_rc/-rc}
2019-05-08 10:00:16 +00:00
pkg_setup() {
unset DISPLAY # tries to access X socket
}
2018-02-01 22:33:48 +00:00
2019-08-31 20:26:30 +00:00
src_test() {
PYTHONPATH="${PWD}/build/lib" \
edo ${PYTHON} test.py
}
2018-02-01 22:33:48 +00:00
pkg_postinst() {
freedesktop-desktop_pkg_postinst
gtk-icon-cache_pkg_postinst
}
pkg_postrm() {
freedesktop-desktop_pkg_postrm
gtk-icon-cache_pkg_postrm
}