commit:     6c61f889afab8fe5ea34fb0b22dcdcf5ff3b2ca4
Author:     Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
AuthorDate: Sat Feb 29 10:28:01 2020 +0000
Commit:     Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
CommitDate: Sat Feb 29 10:28:01 2020 +0000
URL:        https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=6c61f889

games-puzzle/cogs: update package

Migrated from deprecated eclass.

Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>

 ...ogs-20110811.ebuild => cogs-20110811-r1.ebuild} | 27 +++++++++-------------
 games-puzzle/cogs/metadata.xml                     | 11 +++++++++
 2 files changed, 22 insertions(+), 16 deletions(-)

diff --git a/games-puzzle/cogs/cogs-20110811.ebuild 
b/games-puzzle/cogs/cogs-20110811-r1.ebuild
similarity index 81%
rename from games-puzzle/cogs/cogs-20110811.ebuild
rename to games-puzzle/cogs/cogs-20110811-r1.ebuild
index b18f3f5..2c84ce0 100644
--- a/games-puzzle/cogs/cogs-20110811.ebuild
+++ b/games-puzzle/cogs/cogs-20110811-r1.ebuild
@@ -1,19 +1,18 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
-# $Header: $
 
-EAPI="5"
+EAPI=7
 
-inherit eutils games
+inherit desktop eutils
 
-DESCRIPTION="Immersed in a steampunk world with stunning visual design. Build 
an incredible variety of machines from sliding tiles."
+DESCRIPTION="Immersed in a steampunk world with stunning visual design."
 HOMEPAGE="http://www.cogsgame.com/";
 
 SRC_URI="${P/-/_}_all.tar.gz"
 
-LICENSE="as-is"
+LICENSE="all-rights-reserved"
 SLOT="0"
-KEYWORDS="-* amd64 ~x86"
+KEYWORDS="-* ~amd64 ~x86"
 IUSE=""
 RESTRICT="strip fetch"
 
@@ -87,20 +86,18 @@ RDEPEND="
 
 S="${WORKDIR}/${PN}"
 
-
 src_install() {
        local exe;
-       GAMEDIR="${GAMES_PREFIX_OPT}/${PN}"
+       dir="/opt/${PN}"
 
        use amd64 && exe="Cogs-amd64"
        use x86 && exe="Cogs-x86"
 
-       insinto "${GAMEDIR}"
-       exeinto "${GAMEDIR}"
+       insinto "${dir}"
+       exeinto "${dir}"
 
        # install icon
-       doicon "${PN}.png" \
-               || die "install icon"
+       doicon "${PN}.png" || die "install icon"
 
        # install docs
        dodoc "README-linux.txt"
@@ -110,8 +107,6 @@ src_install() {
        doins -r data || die "doins game data"
 
        # install shortcuts
-       games_make_wrapper "${PN}" "./${exe}" "${GAMEDIR}" || die "install 
shortcut"
+       make_wrapper "${PN}" "./${exe}" "${dir}" || die "install shortcut"
        make_desktop_entry "${PN}" "Cogs" "${PN}"
-
-       prepgamesdirs
 }

diff --git a/games-puzzle/cogs/metadata.xml b/games-puzzle/cogs/metadata.xml
new file mode 100644
index 0000000..aec4945
--- /dev/null
+++ b/games-puzzle/cogs/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>
+

Reply via email to