/[gentoo-x86]/games-puzzle/jag/jag-0.3.2.ebuild
Gentoo

Contents of /games-puzzle/jag/jag-0.3.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sun Feb 22 09:20:25 2015 UTC (4 years, 10 months ago) by tupone
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +3 -3 lines
EAPI 5

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0145142D)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-puzzle/jag/jag-0.3.2.ebuild,v 1.7 2014/05/15 16:52:09 ulm Exp $
4
5 EAPI=5
6 inherit eutils qt4-r2 games
7
8 DESCRIPTION="Arcade 2D Puzzle Game"
9 HOMEPAGE="http://jag.xlabsoft.com/"
10 SRC_URI="http://jag.xlabsoft.com/files/${P}-src.zip
11 http://jag.xlabsoft.com/files/${P}-data.zip"
12
13 LICENSE="GPL-3"
14 SLOT="0"
15 KEYWORDS="amd64 ppc x86"
16 IUSE="editor"
17
18 RDEPEND="dev-qt/qtcore:4
19 dev-qt/qtgui:4
20 dev-qt/qtopengl:4
21 x11-libs/libXrandr
22 media-libs/libsdl[sound,video]
23 media-libs/sdl-mixer"
24 DEPEND="${RDEPEND}
25 app-arch/unzip"
26
27 S=${WORKDIR}/${P}-src
28
29 src_prepare() {
30 mv "${WORKDIR}"/${P}-data/data "${WORKDIR}"/${P}-src/
31 sed -i \
32 -e "s:/usr/local/bin:${GAMES_BINDIR}:g" \
33 -e "s:/usr/local/games:${GAMES_DATADIR}:g" \
34 -e "s:LIBS += -lSDLmain:LIBS += -lSDL -lX11:" \
35 Game.pro main.cpp editor/editor.pro \
36 || die "sed failed"
37 }
38
39 src_configure() {
40 qt4-r2_src_configure
41 if use editor; then
42 cd editor
43 eqmake4 editor.pro
44 fi
45 }
46
47 src_compile() {
48 qt4-r2_src_compile
49 if use editor; then
50 cd editor
51 qt4-r2_src_compile
52 fi
53 }
54
55 src_install() {
56 qt4-r2_src_install
57 newicon images/logo.png ${PN}.png
58 make_desktop_entry jag Jag
59
60 if use editor; then
61 cd editor
62 qt4-r2_src_install
63 make_desktop_entry jag-editor "Jag Level editor" ${PN}
64 fi
65
66 prepgamesdirs
67 }

  ViewVC Help
Powered by ViewVC 1.1.20