From fda5ab995420ae367840e0c29a747ce439a3a0e3 Mon Sep 17 00:00:00 2001 From: "Azamat H. Hackimov" Date: Sat, 29 Feb 2020 17:16:47 +0300 Subject: games-action/psychonauts: update package Migrate from deprecated eclass. Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Azamat H. Hackimov --- games-action/psychonauts/metadata.xml | 2 +- .../psychonauts/psychonauts-2012.08.15-r1.ebuild | 53 ++++++++++++++++++++ .../psychonauts/psychonauts-2012.08.15.ebuild | 58 ---------------------- 3 files changed, 54 insertions(+), 59 deletions(-) create mode 100644 games-action/psychonauts/psychonauts-2012.08.15-r1.ebuild delete mode 100644 games-action/psychonauts/psychonauts-2012.08.15.ebuild diff --git a/games-action/psychonauts/metadata.xml b/games-action/psychonauts/metadata.xml index 9dfdfbc..58233f7 100644 --- a/games-action/psychonauts/metadata.xml +++ b/games-action/psychonauts/metadata.xml @@ -1,7 +1,7 @@ - + azamat.hackimov@gmail.com Azamat H. Hackimov diff --git a/games-action/psychonauts/psychonauts-2012.08.15-r1.ebuild b/games-action/psychonauts/psychonauts-2012.08.15-r1.ebuild new file mode 100644 index 0000000..b09f4de --- /dev/null +++ b/games-action/psychonauts/psychonauts-2012.08.15-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop eutils multilib-minimal + +DESCRIPTION="A mind-bending platforming adventure from Double Fine Productions." +HOMEPAGE="http://www.psychonauts.com/" +SRC_URI="${PN}-linux-$(ver_cut 2)$(ver_cut 3)$(ver_cut 1)-bin" + +LICENSE="Psychonauts-EULA" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="" + +DEPEND="app-arch/unzip" +RDEPEND="virtual/opengl + media-libs/openal[${MULTILIB_USEDEP}] + media-libs/libsdl[${MULTILIB_USEDEP}]" + +RESTRICT="fetch strip" + +S="${WORKDIR}/data" + +pkg_nofetch() { + einfo "Please download ${A}" + einfo "from your personal page in Humble Indie Bundle V site" + einfo "(http://www.humblebundle.com)" + einfo "and place it to ${DISTDIR}" +} + +src_unpack() { + # self unpacking zip archive; unzip warns about the exe stuff + # (taken from lugaru ebuild) + local a=${DISTDIR}/${A} + echo ">>> Unpacking ${a} to ${PWD}" + unzip -q "${a}" + [ $? -gt 1 ] && die "unpacking failed" +} + +src_install() { + local dir="/opt/${PN}" + dodoc "Psychonauts Manual Win.pdf" + dodoc Documents/Readmes/* + exeinto ${dir} + doexe Psychonauts || die + insinto ${dir} + doins -r DisplaySettings.ini PsychonautsData2.pkg WorkResource || die + doicon ${PN}.png + make_wrapper ${PN} ./Psychonauts "${dir}" "${dir}" + make_desktop_entry ${PN} Psychonauts ${PN} +} diff --git a/games-action/psychonauts/psychonauts-2012.08.15.ebuild b/games-action/psychonauts/psychonauts-2012.08.15.ebuild deleted file mode 100644 index 0579174..0000000 --- a/games-action/psychonauts/psychonauts-2012.08.15.ebuild +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=3 - -inherit games versionator - -MY_PV=$(version_format_string '${2}${3}${1}') - -DESCRIPTION="A mind-bending platforming adventure from Double Fine Productions." -HOMEPAGE="http://www.psychonauts.com/" -SRC_URI="${PN}-linux-${MY_PV}-bin" - -LICENSE="Psychonauts-EULA" -SLOT="0" -KEYWORDS="-* ~amd64 ~x86" -IUSE="" - -DEPEND="app-arch/unzip" -RDEPEND="virtual/opengl - amd64? ( app-emulation/emul-linux-x86-sdl ) - x86? ( media-libs/openal media-libs/libsdl )" - -RESTRICT="fetch strip" - -S="${WORKDIR}/data" - -pkg_nofetch() { - einfo "Please download ${A}" - einfo "from your personal page in Humble Indie Bundle V site" - einfo "(http://www.humblebundle.com)" - einfo "and place it to ${DISTDIR}" -} - -src_unpack() { - # self unpacking zip archive; unzip warns about the exe stuff - # (taken from lugaru ebuild) - local a=${DISTDIR}/${A} - echo ">>> Unpacking ${a} to ${PWD}" - unzip -q "${a}" - [ $? -gt 1 ] && die "unpacking failed" -} - -src_install() { - local dir="${GAMES_PREFIX_OPT}/${PN}" - dodoc "Psychonauts Manual Win.pdf" - dodoc Documents/Readmes/* - exeinto ${dir} - doexe Psychonauts || die - insinto ${dir} - doins -r DisplaySettings.ini PsychonautsData2.pkg WorkResource || die - doicon ${PN}.png - games_make_wrapper ${PN} ./Psychonauts "${dir}" "${dir}" - make_desktop_entry ${PN} Psychonauts ${PN} - - prepgamesdirs -} -- cgit v1.2.3