From 66f63f420241bfd08e2a76817d4a5e3a1cd5805c Mon Sep 17 00:00:00 2001 From: Sam James Date: Tue, 6 Apr 2021 23:26:06 +0000 Subject: games-action/shadowgrounds-survivor-bin: port to EAPI 7, games.eclass-- Signed-off-by: Sam James --- .../shadowgrounds-survivor-bin-0_p1-r1.ebuild | 65 ++++++++++++++++++++++ .../shadowgrounds-survivor-bin-0_p1.ebuild | 65 ---------------------- 2 files changed, 65 insertions(+), 65 deletions(-) create mode 100644 games-action/shadowgrounds-survivor-bin/shadowgrounds-survivor-bin-0_p1-r1.ebuild delete mode 100644 games-action/shadowgrounds-survivor-bin/shadowgrounds-survivor-bin-0_p1.ebuild (limited to 'games-action') diff --git a/games-action/shadowgrounds-survivor-bin/shadowgrounds-survivor-bin-0_p1-r1.ebuild b/games-action/shadowgrounds-survivor-bin/shadowgrounds-survivor-bin-0_p1-r1.ebuild new file mode 100644 index 000000000000..09beed77b703 --- /dev/null +++ b/games-action/shadowgrounds-survivor-bin/shadowgrounds-survivor-bin-0_p1-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop unpacker wrapper + +DIST_PV=$(ver_cut 2-) + +DESCRIPTION="human survivors who battle against the ongoing alien onslaught" +HOMEPAGE="http://shadowgroundsgame.com/survivor/" +SRC_URI="survivorUpdate${DIST_PV/p/}.run" +S="${WORKDIR}" + +LICENSE="frozenbyte-eula" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +RESTRICT="fetch strip" + +RDEPEND=" + >=sys-devel/gcc-4.3.0 + >=sys-libs/glibc-2.4 + !amd64? ( + gnome-base/libglade + ) + amd64? ( + >=gnome-base/libglade-2.6.4-r1[abi_x86_32(-)] + ) +" +BDEPEND="app-arch/unzip" + +d="opt/${PN}" +QA_TEXTRELS_x86="`echo ${d#/}/lib32/lib{avcodec.so.51,avformat.so.52,avutil.so.49,FLAC.so.8}`" +QA_TEXTRELS_amd64=${QA_TEXTRELS_x86} + +pkg_nofetch() { + einfo "Fetch ${SRC_URI} and put it into your DISTDIR directory." + einfo "See http://www.humblebundle.com/ for more info." +} + +src_unpack() { + # Manually run unzip as the initial seek causes it to exit(1) + unpack_zip ${A} + rm lib*/lib{gcc_s,m,rt,selinux}.so.? || die +} + +src_install() { + local b bb + + doicon Survivor.xpm || die + for b in bin launcher ; do + bb="survivor-${b}" + exeinto ${d} + newexe ${bb} ${bb} + + make_wrapper ${bb} "./${bb}" "${d}" + make_desktop_entry ${bb} "Shadowgrounds Survivor ${b}" "Shadowgrounds Survivor" + done + + exeinto ${d}/lib32 + doexe lib32/* + + insinto ${d} + doins -r Config data Profiles *.fbz *.glade *-logo.png +} diff --git a/games-action/shadowgrounds-survivor-bin/shadowgrounds-survivor-bin-0_p1.ebuild b/games-action/shadowgrounds-survivor-bin/shadowgrounds-survivor-bin-0_p1.ebuild deleted file mode 100644 index 242be142fe41..000000000000 --- a/games-action/shadowgrounds-survivor-bin/shadowgrounds-survivor-bin-0_p1.ebuild +++ /dev/null @@ -1,65 +0,0 @@ -# Copyright 1999-2018 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -inherit unpacker eutils games versionator - -DIST_PV=$(get_version_component_range 2) - -DESCRIPTION="human survivors who battle against the ongoing alien onslaught" -HOMEPAGE="http://shadowgroundsgame.com/survivor/" -SRC_URI="survivorUpdate${DIST_PV/p/}.run" - -LICENSE="frozenbyte-eula" -SLOT="0" -KEYWORDS="-* ~amd64 ~x86" -IUSE="" -RESTRICT="fetch strip" - -DEPEND="app-arch/unzip" -RDEPEND=">=sys-libs/glibc-2.4 - >=sys-devel/gcc-4.3.0 - !amd64? ( - gnome-base/libglade - ) - amd64? ( - >=gnome-base/libglade-2.6.4-r1[abi_x86_32(-)] - )" - -S=${WORKDIR} - -d="${GAMES_PREFIX_OPT}/${PN}" -QA_TEXTRELS_x86="`echo ${d#/}/lib32/lib{avcodec.so.51,avformat.so.52,avutil.so.49,FLAC.so.8}`" -QA_TEXTRELS_amd64=${QA_TEXTRELS_x86} - -pkg_nofetch() { - einfo "Fetch ${SRC_URI} and put it into your DISTDIR directory." - einfo "See http://www.humblebundle.com/ for more info." -} - -src_unpack() { - # manually run unzip as the initial seek causes it to exit(1) - unpack_zip ${A} - rm lib*/lib{gcc_s,m,rt,selinux}.so.? -} - -src_install() { - local b bb - - doicon Survivor.xpm || die - for b in bin launcher ; do - bb="survivor-${b}" - exeinto ${d} - newexe ${bb} ${bb} - games_make_wrapper ${bb} "./${bb}" "${d}" - make_desktop_entry ${bb} "Shadowgrounds Survivor ${b}" "Shadowgrounds Survivor" - done - - exeinto ${d}/lib32 - doexe lib32/* - - insinto ${d} - doins -r Config data Profiles *.fbz *.glade *-logo.png - - prepgamesdirs -} -- cgit v1.2.3-65-gdbad