Gentoo Archives: gentoo-commits

From: "Azamat H. Hackimov" <winterheart@××××××.ru>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gamerlay:master commit in: games-arcade/jamestown/
Date: Sat, 29 Feb 2020 01:15:46
Message-Id: 1582936908.8dbbe0dd8748d497155498f1b213db46c525cd9d.winterheart@gentoo
1 commit: 8dbbe0dd8748d497155498f1b213db46c525cd9d
2 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
3 AuthorDate: Sat Feb 29 00:41:48 2020 +0000
4 Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
5 CommitDate: Sat Feb 29 00:41:48 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=8dbbe0dd
7
8 games-arcade/jamestown: update package
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
12
13 .../jamestown/jamestown-1.0.1.1324610248.ebuild | 68 ----------------------
14 games-arcade/jamestown/jamestown-1.0.1.ebuild | 50 ++++++++++++++++
15 2 files changed, 50 insertions(+), 68 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 deleted file mode 100644
19 index af68521..0000000
20 --- a/games-arcade/jamestown/jamestown-1.0.1.1324610248.ebuild
21 +++ /dev/null
22 @@ -1,68 +0,0 @@
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/jamestown-1.0.1.ebuild b/games-arcade/jamestown/jamestown-1.0.1.ebuild
93 new file mode 100644
94 index 0000000..0a5adf1
95 --- /dev/null
96 +++ b/games-arcade/jamestown/jamestown-1.0.1.ebuild
97 @@ -0,0 +1,50 @@
98 +# Copyright 1999-2020 Gentoo Authors
99 +# Distributed under the terms of the GNU General Public License v2
100 +
101 +EAPI=7
102 +
103 +inherit desktop eutils unpacker
104 +
105 +TS=1324610248
106 +
107 +DESCRIPTION="A neo-classical top-down shooter for up to four players."
108 +HOMEPAGE="http://www.finalformgames.com/jamestown/"
109 +MY_INSTALLER_PN="JamestownInstaller"
110 +SRC_URI="jtownlinux_$(ver_rs 1-2 _)_${TS}.zip"
111 +RESTRICT="fetch"
112 +
113 +LICENSE="Jamestown"
114 +SLOT="0"
115 +KEYWORDS="~amd64 ~x86"
116 +IUSE=""
117 +
118 +DEPEND="app-arch/unzip"
119 +RDEPEND="media-libs/libsdl[opengl]"
120 +
121 +pkg_nofetch() {
122 + ewarn
123 + ewarn "Place ${A} to ${DISTDIR}"
124 + ewarn
125 +}
126 +
127 +src_unpack() {
128 + default
129 + unpack_zip "${WORKDIR}/JamestownInstaller_$(ver_rs 1-2 _)-bin"
130 +}
131 +
132 +S="${WORKDIR}/data"
133 +
134 +src_install() {
135 + local dir="/opt/${PN}"
136 + local exe
137 + insinto ${dir}
138 + doins -r Archives Distribution.txt
139 + exeinto ${dir}
140 + use amd64 && exe="Jamestown-amd64"
141 + use x86 && exe="Jamestown-x86"
142 + doexe ${exe}
143 + doicon ${PN}.png
144 + make_desktop_entry ${PN} Jamestown ${PN}
145 + make_wrapper ${PN} ./${exe} ${dir} ${dir}
146 + dodoc README-linux-generic.txt README-linux.txt
147 +}