/[gentoo-x86]/games-board/CapiCity/CapiCity-1.0.ebuild
Gentoo

Contents of /games-board/CapiCity/CapiCity-1.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Jan 23 19:50:22 2014 UTC (6 months, 4 weeks ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
QA: Moving games-board/CapiCity to games-board/capicity.

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-board/CapiCity/CapiCity-1.0.ebuild,v 1.1 2014/01/23 14:39:55 hasufell Exp $
4
5 EAPI=5
6 inherit eutils gnome2-utils qmake-utils games
7
8 MY_P=${PN}_${PV}
9
10 DESCRIPTION="A monopd compatible boardgame to play Monopoly-like games (previously named capitalism)"
11 HOMEPAGE="http://linux-ecke.de/CapiCity/"
12 SRC_URI="dedicated? ( mirror://sourceforge/project/capitalism/Capi%20City/${PV}/Capid_${PV}.tar.gz )
13 !dedicated? ( mirror://sourceforge/project/capitalism/Capi%20City/${PV}/${MY_P}.tar.gz )"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~amd64 ~x86"
18 IUSE="dedicated"
19
20 RDEPEND="
21 dev-qt/qtcore:4
22 dev-qt/qtscript:4
23 !dedicated? ( dev-qt/qtgui:4 )"
24 DEPEND="${RDEPEND}"
25
26 src_unpack() {
27 default
28 if use dedicated ; then
29 S=${WORKDIR}/Capid_${PV}
30 else
31 S=${WORKDIR}/${MY_P}
32 fi
33 }
34
35 src_configure() {
36 if use dedicated ; then
37 eqmake4 Capid.pro
38 else
39 eqmake4 ${PN}.pro
40 fi
41 }
42
43 src_install() {
44 local res
45
46 if use dedicated ; then
47 dogamesbin Capid
48 dodoc doc/*
49 else
50 dogamesbin ${PN}
51 dodoc changelog README
52
53 for res in 16 22 24 32 48 64; do
54 newicon -s ${res} icons/${res}x${res}.png ${PN}.png
55 done
56
57 make_desktop_entry ${PN}
58 fi
59 prepgamesdirs
60 }
61
62 pkg_preinst() {
63 games_pkg_preinst
64 use dedicated || gnome2_icon_savelist
65 }
66
67 pkg_postinst() {
68 games_pkg_postinst
69 use dedicated || gnome2_icon_cache_update
70 }
71
72 pkg_postrm() {
73 use dedicated || gnome2_icon_cache_update
74 }

  ViewVC Help
Powered by ViewVC 1.1.20