blob: 8b7f95310eccb387415c229c9ac5ad35d533c190 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
inherit eutils
MY_PN="WritersCafe"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="A toolkit for fiction writers"
HOMEPAGE="http://www.writerscafe.co.uk"
SRC_URI="amd64? ( http://www.writerscafe.co.uk/${MY_P}-x86_64.tar.gz )
x86? ( http://www.writerscafe.co.uk/${MY_P}-i386.tar.gz )"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~amd64 ~x86 -*"
IUSE=""
RDEPEND="x11-libs/gdk-pixbuf[tiff,jpeg]
x11-libs/gtk+:2
x11-libs/libXinerama
x11-libs/pango"
src_unpack() {
default
mkdir ${P} ; cd ${P} || die
unpack ./../"${MY_PN}Data.tar.gz"
}
src_prepare() {
# fix desktop-file paths
sed -i "s:/usr/share/${PN}2/${PN}:/usr/bin/${PN}:" \
${PN}2.desktop || die
}
src_install() {
local dir="/opt/${MY_PN}"
# install program files
insinto "${dir}"
doins -r .
fperms 0755 "${dir}"/${PN}
# install icon
newicon appicons/${PN}48x48.png ${PN}2.png
# install desktop-file
domenu ${PN}2.desktop
# install startscript
make_wrapper ${PN} ./${PN} "${dir}"
}
|