blob: d62c108ea523599cdf80692d2e7addc19262cdb4 (
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
50
51
52
53
54
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-apps/whyteboard/whyteboard-0.41.1.ebuild,v 1.1 2011/01/20 18:07:22 lxnay Exp $
EAPI="3"
PYTHON_DEPEND="2" # Upstream doesn't support Python 3.x
inherit eutils python multilib
DESCRIPTION="A simple image, PDF and postscript file annotator."
LICENSE="ISC"
SLOT="0"
IUSE=""
HOMEPAGE="http://code.google.com/p/whyteboard"
SRC_URI="http://whyteboard.googlecode.com/files/${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
RDEPEND="${DEPEND}
dev-python/wxpython
media-gfx/imagemagick"
src_install() {
dodir /usr/bin
dodir /usr/share/applications
dodir /usr/share/pixmaps
insinto /usr/share/pixmaps
doins "${FILESDIR}/${PN}.png" || die
insinto /usr/share/applications
doins "${FILESDIR}/${PN}.desktop" || die
dodoc CHANGELOG.txt DEVELOPING.txt README.txt TODO.txt || die
local appdir="$(python_get_sitedir)/${PN}"
dodir "${appdir}"
insinto "${appdir}"
doins -r images 'locale' "${PN}" "${PN}-help" "${PN}.py" || die
cat >> "${T}/${PN}" <<- EOF
#!/bin/sh
exec $(PYTHON) -O "$(python_get_sitedir)/${PN}/${PN}.py"
EOF
exeinto /usr/bin
doexe "${T}/${PN}" || die
}
pkg_preinst() {
echo
elog "This application is very experimental and some features"
elog "are not yet implemented, however you can live with it"
echo
}
|