commit: b0b45b7b2073b6cf347023bc0fe31921e1865a50
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
AuthorDate: Thu Dec 13 22:10:32 2018 +0000
Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
CommitDate: Thu Dec 13 22:10:32 2018 +0000
URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=b0b45b7b
games-action/ardentryst: fix installation
Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
games-action/ardentryst/ardentryst-1.71.ebuild | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/games-action/ardentryst/ardentryst-1.71.ebuild
b/games-action/ardentryst/ardentryst-1.71.ebuild
index 3d1783e..37b4f77 100644
--- a/games-action/ardentryst/ardentryst-1.71.ebuild
+++ b/games-action/ardentryst/ardentryst-1.71.ebuild
@@ -1,7 +1,10 @@
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-inherit games
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+inherit eutils python-single-r1
MY_P=${P/-/}
@@ -14,17 +17,21 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
-RDEPEND="dev-python/pygame"
+RDEPEND="dev-python/pygame[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
S=${WORKDIR}/${MY_P}
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
src_install() {
- insinto "${GAMES_DATADIR}/${PN}"
+ insinto "/usr/share/${PN}"
doins -r Base Data Demos Fonts Levels Music Sounds OPR.txt *.py *.dig
*.xml || die "doins failed"
- games_make_wrapper ${PN} "python ./ardentryst.py"
"${GAMES_DATADIR}/${PN}"
+ python_optimize ${ED%/}/usr/share/${PN}
+ make_wrapper ${PN} "${EPYTHON} ./ardentryst.py" "/usr/share/${PN}"
newicon Data/icon.png ${PN}.png
make_desktop_entry ${PN} Ardentryst
dodoc help.txt || die
- prepgamesdirs
}