blob: c9cba69733cba9547f7acbe17d22e6dea4bc9aa4 (
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
55
56
57
58
59
60
61
62
63
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
PYTHON_COMPAT=( python2_7 )
inherit eutils python-r1
DESCRIPTION="The tree notes organizer"
HOMEPAGE="http://jenyay.net/Outwiker/English"
SRC_URI="https://github.com/Jenyay/${PN}/archive/release_${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}
dev-python/pyenchant[${PYTHON_USEDEP}]
dev-python/pillow[${PYTHON_USEDEP}]
dev-python/pywebkitgtk[${PYTHON_USEDEP}]
dev-python/wxpython:2.8[${PYTHON_USEDEP}]
x11-misc/xdg-utils
x11-themes/hicolor-icon-theme
"
S="${WORKDIR}/${PN}-release_${PV}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
src_prepare() {
# fix desktop file
sed -i -e 's/Application;//' outwiker.desktop || die 'sed on outwiker.desktop failed'
eapply_user
}
src_compile() { :; }
src_install() {
# Do not install tests
rm -r src/test*
insinto "/usr/share/${PN}"
doins -r src/*
dobin "${PN}"
domenu "${PN}.desktop"
dodoc README README.md
# Install mans
doman man/man1/${PN}.1
insinto /usr/share/man/ru/man1
doins man/ru/man1/${PN}.1
# Install icons
doicon "images/${PN}.xpm"
newicon -s scalable "images/${PN}.svg" "${PN}.svg"
for i in 16 22 24 32 48 64 128 256; do
newicon -s $i "images/${PN}_$i.png" "${PN}.png"
done
}
|