commit: 8dbbe0dd8748d497155498f1b213db46c525cd9d Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> AuthorDate: Sat Feb 29 00:41:48 2020 +0000 Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru> CommitDate: Sat Feb 29 00:41:48 2020 +0000 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=8dbbe0dd
games-arcade/jamestown: update package Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com> .../jamestown/jamestown-1.0.1.1324610248.ebuild | 68 ---------------------- games-arcade/jamestown/jamestown-1.0.1.ebuild | 50 ++++++++++++++++ 2 files changed, 50 insertions(+), 68 deletions(-) diff --git a/games-arcade/jamestown/jamestown-1.0.1.1324610248.ebuild b/games-arcade/jamestown/jamestown-1.0.1.1324610248.ebuild deleted file mode 100644 index af68521..0000000 --- a/games-arcade/jamestown/jamestown-1.0.1.1324610248.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=3 - -inherit games -inherit versionator -inherit toolchain-funcs - -DESCRIPTION="A neo-classical top-down shooter for up to four players set on -17th-century British Colonial Mars." -HOMEPAGE="http://www.finalformgames.com/jamestown/" -MY_PN="jtownlinux" -MY_PV=$(replace_all_version_separators '_') -MY_INSTALLER_PN="JamestownInstaller" -MY_INSTALLER_PV=$(get_version_component_range 1-3 ${MY_PV}) -SRC_URI="${MY_PN}_${MY_PV}.zip" -RESTRICT="fetch" - -LICENSE="Jamestown" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -DEPEND="" -RDEPEND="${DEPEND} - media-libs/libsdl[opengl] - >=sys-devel/gcc-4.6" - -pkg_nofetch() { - ewarn - ewarn "Place ${A} to ${DISTDIR}" - ewarn -} - -src_unpack() { - default - pwd - unzip "${MY_INSTALLER_PN}_${MY_INSTALLER_PV}-bin" -} - -S="${WORKDIR}/data" - -src_install() { - local dir="${GAMES_PREFIX_OPT}/${PN}" - insinto ${dir} - doins -r Archives Distribution.txt - exeinto ${dir} - if use amd64; then - EXESUFFIX="-amd64" - else - EXESUFFIX="-x86" - fi - EXENAME="Jamestown${EXESUFFIX}" - doexe ${EXENAME} - doicon ${PN}.png - make_desktop_entry ${PN} Jamestown ${PN} - games_make_wrapper ${PN} ./${EXENAME} ${dir} ${dir} - dodoc Jamestown_EULA.txt LICENSES.TXT README-linux-generic.txt README-linux.txt - prepgamesdirs -} - -pkg_postinst() { - version_is_at_least 4.6 $(gcc-version) || - ewarn "${PN} needs gcc version 4.6 or higher activated with gcc-config to - work properly. Please make sure to use gcc-config to set this." -} diff --git a/games-arcade/jamestown/jamestown-1.0.1.ebuild b/games-arcade/jamestown/jamestown-1.0.1.ebuild new file mode 100644 index 0000000..0a5adf1 --- /dev/null +++ b/games-arcade/jamestown/jamestown-1.0.1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop eutils unpacker + +TS=1324610248 + +DESCRIPTION="A neo-classical top-down shooter for up to four players." +HOMEPAGE="http://www.finalformgames.com/jamestown/" +MY_INSTALLER_PN="JamestownInstaller" +SRC_URI="jtownlinux_$(ver_rs 1-2 _)_${TS}.zip" +RESTRICT="fetch" + +LICENSE="Jamestown" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="app-arch/unzip" +RDEPEND="media-libs/libsdl[opengl]" + +pkg_nofetch() { + ewarn + ewarn "Place ${A} to ${DISTDIR}" + ewarn +} + +src_unpack() { + default + unpack_zip "${WORKDIR}/JamestownInstaller_$(ver_rs 1-2 _)-bin" +} + +S="${WORKDIR}/data" + +src_install() { + local dir="/opt/${PN}" + local exe + insinto ${dir} + doins -r Archives Distribution.txt + exeinto ${dir} + use amd64 && exe="Jamestown-amd64" + use x86 && exe="Jamestown-x86" + doexe ${exe} + doicon ${PN}.png + make_desktop_entry ${PN} Jamestown ${PN} + make_wrapper ${PN} ./${exe} ${dir} ${dir} + dodoc README-linux-generic.txt README-linux.txt +}