/[gentoo-x86]/games-arcade/jardinains/jardinains-2.0.ebuild
Gentoo

Contents of /games-arcade/jardinains/jardinains-2.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sat Feb 27 17:59:50 2010 UTC (4 years, 5 months ago) by phajdan.jr
Branch: MAIN
Changes since 1.8: +2 -2 lines
x86 stable wrt bug #303607
(Portage version: 2.1.7.16/cvs/Linux i686)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-arcade/jardinains/jardinains-2.0.ebuild,v 1.8 2010/01/05 19:56:50 mr_bones_ Exp $
4
5 EAPI=2
6 inherit eutils games
7
8 DESCRIPTION="Arkanoid with Gnomes"
9 HOMEPAGE="http://www.jardinains2.com"
10 SRC_URI="mirror://gentoo/JN2_1_FREE_LIN.tar.gz"
11
12 LICENSE="jardinains"
13 SLOT="0"
14 KEYWORDS="~amd64 x86"
15 IUSE=""
16 RESTRICT="strip"
17 QA_EXECSTACK="${GAMES_PREFIX_OPT:1}/jardinains/jardinains"
18
19 DEPEND=""
20 RDEPEND="virtual/opengl
21 virtual/glu
22 virtual/libstdc++
23 amd64? ( >=app-emulation/emul-linux-x86-xlibs-1.0-r1 )"
24
25 PATCHES=( "${FILESDIR}"/strings-pt.patch )
26
27 src_unpack() {
28 unpack JN2_1_FREE_LIN.tar.gz
29 cd "${WORKDIR}"
30 mv "Jardinains 2!" ${P}
31 }
32
33 src_prepare() {
34 # clean Mac fork files (bug #295782)
35 find . -type f -name "._*" -exec rm -f '{}' +
36 }
37
38 src_install() {
39 local dir=${GAMES_PREFIX_OPT}/${PN}
40
41 exeinto "${dir}"
42 doexe jardinains || die
43 insinto "${dir}"
44 doins -r LICENSE.txt data help || die "doins failed"
45
46 games_make_wrapper jardinains ./jardinains "${dir}" "${dir}"
47
48 make_desktop_entry jardinains "Jardinains 2"
49 touch "${D}${dir}/data/prefs.xml"
50 prepgamesdirs
51 chmod g+rw "${D}${dir}/data/prefs.xml"
52 chmod -R g+rw "${D}${dir}/data/players"
53 }
54
55 pkg_postinst() {
56 games_pkg_postinst
57 elog "Due to the way this software is designed all user preferences for"
58 elog "graphics, audio and other in game data are shared among all users"
59 elog "of the computer. For that reason some files in the instalation "
60 elog "folder are writable by any user in the games group."
61 }

  ViewVC Help
Powered by ViewVC 1.1.20