Gentoo Archives: gentoo-commits

From: Locke Shinseiko <wizzleby@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gamerlay:master commit in: games-arcade/aquaria/
Date: Mon, 02 May 2011 20:49:45
Message-Id: cfc25045ce2b45c41740c1ebce57a2d2b2a1753d.wizzleby@gentoo
1 commit: cfc25045ce2b45c41740c1ebce57a2d2b2a1753d
2 Author: Locke Shinseiko <wizzleby <AT> gmail <DOT> com>
3 AuthorDate: Mon May 2 20:49:23 2011 +0000
4 Commit: Locke Shinseiko <wizzleby <AT> gmail <DOT> com>
5 CommitDate: Mon May 2 20:49:23 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=cfc25045
7
8 [games-arcade/aquaria-9999] Update ebuild from bugzilla (bug 323499)
9
10 (Portage version: 2.2.0_alpha30/git/Linux x86_64, signed Manifest commit with key CE482794)
11
12 ---
13 games-arcade/aquaria/aquaria-9999.ebuild | 40 ++++++++++-------------------
14 games-arcade/aquaria/metadata.xml | 9 ++++++
15 2 files changed, 23 insertions(+), 26 deletions(-)
16
17 diff --git a/games-arcade/aquaria/aquaria-9999.ebuild b/games-arcade/aquaria/aquaria-9999.ebuild
18 index 2b2a8b7..7cbdc7d 100644
19 --- a/games-arcade/aquaria/aquaria-9999.ebuild
20 +++ b/games-arcade/aquaria/aquaria-9999.ebuild
21 @@ -1,4 +1,4 @@
22 -# Copyright 1999-2010 Gentoo Foundation
23 +# Copyright 1999-2011 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 # $Header: $
26
27 @@ -18,7 +18,7 @@ IUSE=""
28 RESTRICT="fetch"
29
30 RDEPEND="dev-lang/lua
31 - >=dev-libs/tinyxml-2.6
32 + >=dev-libs/tinyxml-2.6.1-r1[stl]
33 games-engines/bbge
34 media-libs/glpng
35 media-libs/libsdl"
36 @@ -45,22 +45,20 @@ src_unpack() {
37 }
38
39 src_prepare() {
40 - # Remove bundled stuff to ensure it's not used.
41 - rm -r Aquaria/lua-* BBGE/ || die
42 -
43 - # Fix BBGE include paths.
44 + # Fix include paths.
45 sed -i \
46 - -e "s:\.\./BBGE/glpng:GL/glpng:" \
47 - -e "s:\.\./BBGE/tinyxml:tinyxml:" \
48 + -e "s:\.\./ExternalLibs/glpng:GL/glpng:" \
49 + -e "s:\.\./ExternalLibs/::" \
50 -e "s:\.\./BBGE/:BBGE/:" \
51 Aquaria/*.{cpp,h} || die
52
53 - sed -i \
54 - -e "/TARGET_LINK_LIBRARIES/d" \
55 - -e "/ADD_EXECUTABLE[(]/,/[)]/d" \
56 - CMakeLists.txt || die
57 -
58 + # Only build game sources.
59 + rm -r BBGE/ || die
60 + sed -i "/ADD_EXECUTABLE[(]/,/[)]/d" CMakeLists.txt || die
61 echo 'ADD_EXECUTABLE(aquaria ${AQUARIA_SRCS})' >> CMakeLists.txt || die
62 +
63 + # Redefine libraries to link against.
64 + sed -i "/TARGET_LINK_LIBRARIES/d" CMakeLists.txt || die
65 echo "TARGET_LINK_LIBRARIES(aquaria BBGE glpng lua pthread SDL tinyxml)" >> CMakeLists.txt || die
66 }
67
68 @@ -73,25 +71,15 @@ src_install() {
69 dogamesbin "${CMAKE_BUILD_DIR}/${PN}" || die
70
71 cd ../data || die
72 - local dir="${GAMES_DATADIR}/Aquaria"
73 -
74 - insinto "${dir}"
75 + insinto "${GAMES_DATADIR}/Aquaria"
76 doins -r *.xml */ || die
77 + doins -r "${S}"/game_scripts/* || die
78
79 dodoc README-linux.txt || die
80 - mv "${D}/${dir}"/docs "${D}/usr/share/doc/${PF}/html" || die
81 - dosym /usr/share/doc/${PF}/html "${dir}"/docs || die
82 + dohtml -r docs/* || die
83
84 doicon "${PN}.png" || die
85 make_desktop_entry "${PN}" "Aquaria" || die
86
87 prepgamesdirs
88 }
89 -
90 -pkg_postinst() {
91 - elog
92 - elog "If you are using a joystick with rumble capability, and wish to use it"
93 - elog "export the variable AQUARIA_EVENT_JOYSTICK0 defined as the path to the"
94 - elog "device. Example: export AQUARIA_EVENT_JOYSTICK0=/dev/input/event6"
95 - elog
96 -}
97 \ No newline at end of file
98
99 diff --git a/games-arcade/aquaria/metadata.xml b/games-arcade/aquaria/metadata.xml
100 new file mode 100644
101 index 0000000..e6263c7
102 --- /dev/null
103 +++ b/games-arcade/aquaria/metadata.xml
104 @@ -0,0 +1,9 @@
105 +<?xml version="1.0" encoding="UTF-8"?>
106 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
107 +<pkgmetadata>
108 + <herd>no-herd</herd>
109 + <maintainer>
110 + <email>wizzleby@×××××.com</email>
111 + <name>Locke Shinseiko</name>
112 + </maintainer>
113 +</pkgmetadata>