commit: dcff656069e8a585beff104bf6975964b968d853 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> AuthorDate: Sat Feb 29 11:53:41 2020 +0000 Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru> CommitDate: Sat Feb 29 11:53:41 2020 +0000 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=dcff6560
games-puzzle/spacechem: update package Migrate from deprecated eclass Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com> games-puzzle/spacechem/metadata.xml | 11 ++++++ ...cechem-1012.ebuild => spacechem-1012-r1.ebuild} | 45 ++++++++-------------- 2 files changed, 27 insertions(+), 29 deletions(-) diff --git a/games-puzzle/spacechem/metadata.xml b/games-puzzle/spacechem/metadata.xml new file mode 100644 index 0000000..aec4945 --- /dev/null +++ b/games-puzzle/spacechem/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> +<email>[email protected]</email> +<name>Vadim A. Misbakh-Soloviov</name> +</maintainer> +<longdescription lang="en"> +</longdescription> +</pkgmetadata> + diff --git a/games-puzzle/spacechem/spacechem-1012.ebuild b/games-puzzle/spacechem/spacechem-1012-r1.ebuild similarity index 62% rename from games-puzzle/spacechem/spacechem-1012.ebuild rename to games-puzzle/spacechem/spacechem-1012-r1.ebuild index 0a34f4a..c0da93f 100644 --- a/games-puzzle/spacechem/spacechem-1012.ebuild +++ b/games-puzzle/spacechem/spacechem-1012-r1.ebuild @@ -1,51 +1,43 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -# $Header: $ -EAPI="4" +EAPI=7 -inherit eutils games +inherit desktop eutils multilib-minimal DESCRIPTION="A design-based puzzle game from Zachtronics Industries." HOMEPAGE="http://www.spacechemthegame.com/" -MY_PV="1.0.12" - SRC_URI="amd64? ( ${PN}-linux-1345144627-amd64.deb ) - x86? ( SpaceChem-i386.deb )" + x86? ( SpaceChem-i386.deb )" -LICENSE="spacechem" +LICENSE="all-rights-reserved" SLOT="0" -KEYWORDS="-* amd64 ~x86" +KEYWORDS="-* ~amd64 ~x86" IUSE="" RESTRICT="strip fetch" RDEPEND=" - >=dev-lang/mono-2.10.3 - x11-misc/xclip - media-libs/libsdl - media-libs/sdl-mixer - media-libs/sdl-image - dev-db/sqlite:3 - amd64? ( - app-emulation/emul-linux-x86-sdl - ) + >=dev-lang/mono-2.10.3[${MULTILIB_USEDEP}] + media-libs/libsdl[${MULTILIB_USEDEP}] + media-libs/sdl-mixer[${MULTILIB_USEDEP}] + media-libs/sdl-image[${MULTILIB_USEDEP}] + dev-db/sqlite:3[${MULTILIB_USEDEP}] " S="${WORKDIR}" - src_unpack() { - unpack "${A}" + unpack ${A} cd "${S}" unpack "./data.tar.gz" } src_install() { - GAMEDIR="${GAMES_PREFIX_OPT}/${PN}" + local dir="/opt/${PN}" - insinto "${GAMEDIR}" - exeinto "${GAMEDIR}" + insinto "${dir}" + exeinto "${dir}" # install icon newicon opt/zachtronicsindustries/spacechem/icon.png ${PN}.png \ @@ -62,12 +54,7 @@ src_install() { doins -r opt/zachtronicsindustries/spacechem/* || die "doins opt" # install shortcuts - games_make_wrapper "${PN}" "mono SpaceChem.exe" "${GAMEDIR}" "${GAMEDIR}" \ + make_wrapper "${PN}" "mono SpaceChem.exe" "${dir}" "${dir}" \ || die "install shortcut" make_desktop_entry "${PN}" "SpaceChem" "${PN}" "Game;LogicGame;" "Comment=Solve design-based challenges in this game from Zachtronics Industries" - - prepgamesdirs - - #cd "${S}/usr/share/man/man6" - #doman spacechem.6.gz }
