summaryrefslogtreecommitdiff
blob: b37dbb1d85d8357bf3c27950a1a48f6475c3d672 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5

PYTHON_COMPAT=( python2_7 )

inherit eutils python-single-r1 multilib

DESCRIPTION="A simple image, PDF and postscript file annotator"
HOMEPAGE="http://whyteboard.org/"
SRC_URI="
	mirror://sourceforge/${PN}/${P}.tar.gz
	https://dev.gentoo.org/~lxnay/${PN}/${PN}.png"

LICENSE="ISC"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}
	dev-python/wxpython:*[${PYTHON_USEDEP}]
	media-gfx/imagemagick"

src_install() {
	doicon "${DISTDIR}"/${PN}.png
	domenu "${FILESDIR}"/${PN}.desktop

	dodoc CHANGELOG.txt DEVELOPING.txt README.txt TODO.txt

	python_domodule images locale ${PN} ${PN}-help ${PN}.py

	cat >> "${T}/${PN}" <<- EOF
	#!/bin/sh
	exec ${PYTHON} -O "$(python_get_sitedir)/${PN}/${PN}.py"
	EOF
	dobin "${T}/${PN}"

	python_optimize
}

pkg_preinst() {
	echo
	elog "This application is very experimental and some features"
	elog "are not yet implemented, however you can live with it"
	echo
}