blob: 114de8e7f541922a340b9854fbf0c3405475dea3 (
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
64
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit eutils gnome2-utils qmake-utils
DESCRIPTION="Monopd compatible boardgame for Monopoly-like games, previously named capitalism"
HOMEPAGE="http://linux-ecke.de/CapiCity/"
SRC_URI="dedicated? ( mirror://sourceforge/project/capitalism/Capi%20City/${PV}/Capid_${PV}.tar.gz )
!dedicated? ( mirror://sourceforge/project/capitalism/Capi%20City/${PV}/CapiCity_${PV}.tar.gz )"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="dedicated"
RDEPEND="
dev-qt/qtcore:4
dev-qt/qtscript:4
!dedicated? ( dev-qt/qtgui:4 )"
DEPEND="${RDEPEND}"
src_unpack() {
default
S=${WORKDIR}/$(usex dedicated Capid CapiCity)_${PV}
}
src_configure() {
if use dedicated ; then
eqmake4 Capid.pro
else
eqmake4 CapiCity.pro
fi
}
src_install() {
local res
if use dedicated ; then
dobin Capid
dodoc doc/*
else
dobin CapiCity
dodoc changelog README
for res in 16 22 24 32 48 64; do
newicon -s ${res} icons/${res}x${res}.png ${PN}.png
done
make_desktop_entry CapiCity "Capi City"
fi
}
pkg_preinst() {
use dedicated || gnome2_icon_savelist
}
pkg_postinst() {
use dedicated || gnome2_icon_cache_update
}
pkg_postrm() {
use dedicated || gnome2_icon_cache_update
}
|