Gentoo Archives: gentoo-commits

From: Daniel Johnson <ComputerDruid@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gamerlay:master commit in: games-arcade/jamestown/
Date: Mon, 27 Feb 2012 06:29:18
Message-Id: 1330323845.2002d8b8075fa4cccd01c00d5354f1afc54ab68f.ComputerDruid@gentoo
1 commit: 2002d8b8075fa4cccd01c00d5354f1afc54ab68f
2 Author: Dan Johnson <ComputerDruid <AT> gmail <DOT> com>
3 AuthorDate: Mon Feb 27 06:24:05 2012 +0000
4 Commit: Daniel Johnson <ComputerDruid <AT> gmail <DOT> com>
5 CommitDate: Mon Feb 27 06:24:05 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=2002d8b8
7
8 [games-arcade/jamestown] add Jamestown ebuild from HIB4
9
10 (Portage version: 2.1.10.49/git/Linux x86_64, RepoMan options: --force, unsigned Manifest commit)
11
12 ---
13 .../jamestown/jamestown-1.0.1.1324610248.ebuild | 68 ++++++++++++++++++++
14 games-arcade/jamestown/metadata.xml | 13 ++++
15 2 files changed, 81 insertions(+), 0 deletions(-)
16
17 diff --git a/games-arcade/jamestown/jamestown-1.0.1.1324610248.ebuild b/games-arcade/jamestown/jamestown-1.0.1.1324610248.ebuild
18 new file mode 100644
19 index 0000000..af68521
20 --- /dev/null
21 +++ b/games-arcade/jamestown/jamestown-1.0.1.1324610248.ebuild
22 @@ -0,0 +1,68 @@
23 +# Copyright 1999-2012 Gentoo Foundation
24 +# Distributed under the terms of the GNU General Public License v2
25 +# $Header: $
26 +
27 +EAPI=3
28 +
29 +inherit games
30 +inherit versionator
31 +inherit toolchain-funcs
32 +
33 +DESCRIPTION="A neo-classical top-down shooter for up to four players set on
34 +17th-century British Colonial Mars."
35 +HOMEPAGE="http://www.finalformgames.com/jamestown/"
36 +MY_PN="jtownlinux"
37 +MY_PV=$(replace_all_version_separators '_')
38 +MY_INSTALLER_PN="JamestownInstaller"
39 +MY_INSTALLER_PV=$(get_version_component_range 1-3 ${MY_PV})
40 +SRC_URI="${MY_PN}_${MY_PV}.zip"
41 +RESTRICT="fetch"
42 +
43 +LICENSE="Jamestown"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~x86"
46 +IUSE=""
47 +
48 +DEPEND=""
49 +RDEPEND="${DEPEND}
50 + media-libs/libsdl[opengl]
51 + >=sys-devel/gcc-4.6"
52 +
53 +pkg_nofetch() {
54 + ewarn
55 + ewarn "Place ${A} to ${DISTDIR}"
56 + ewarn
57 +}
58 +
59 +src_unpack() {
60 + default
61 + pwd
62 + unzip "${MY_INSTALLER_PN}_${MY_INSTALLER_PV}-bin"
63 +}
64 +
65 +S="${WORKDIR}/data"
66 +
67 +src_install() {
68 + local dir="${GAMES_PREFIX_OPT}/${PN}"
69 + insinto ${dir}
70 + doins -r Archives Distribution.txt
71 + exeinto ${dir}
72 + if use amd64; then
73 + EXESUFFIX="-amd64"
74 + else
75 + EXESUFFIX="-x86"
76 + fi
77 + EXENAME="Jamestown${EXESUFFIX}"
78 + doexe ${EXENAME}
79 + doicon ${PN}.png
80 + make_desktop_entry ${PN} Jamestown ${PN}
81 + games_make_wrapper ${PN} ./${EXENAME} ${dir} ${dir}
82 + dodoc Jamestown_EULA.txt LICENSES.TXT README-linux-generic.txt README-linux.txt
83 + prepgamesdirs
84 +}
85 +
86 +pkg_postinst() {
87 + version_is_at_least 4.6 $(gcc-version) ||
88 + ewarn "${PN} needs gcc version 4.6 or higher activated with gcc-config to
89 + work properly. Please make sure to use gcc-config to set this."
90 +}
91
92 diff --git a/games-arcade/jamestown/metadata.xml b/games-arcade/jamestown/metadata.xml
93 new file mode 100644
94 index 0000000..1fd14d8
95 --- /dev/null
96 +++ b/games-arcade/jamestown/metadata.xml
97 @@ -0,0 +1,13 @@
98 +<?xml version="1.0" encoding="UTF-8"?>
99 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
100 +<pkgmetadata>
101 +<herd>no-herd</herd>
102 +<maintainer>
103 +<email>ComputerDruid@×××××.com</email>
104 +<name>Dan Johnson</name>
105 +</maintainer>
106 +<longdescription lang="en">
107 +Jamestown is a neo-classical top-down shooter for up to four players set on 17th-century British Colonial Mars.
108 +</longdescription>
109 +</pkgmetadata>
110 +