summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzamat H. Hackimov <azamat.hackimov@gmail.com>2018-12-14 01:10:32 +0300
committerAzamat H. Hackimov <azamat.hackimov@gmail.com>2018-12-14 01:10:32 +0300
commitb0b45b7b2073b6cf347023bc0fe31921e1865a50 (patch)
treeb7c9743b11177b73336d632c40b38003906b066f
parent[dev-games/mcedit] Removed package (diff)
downloadgamerlay-b0b45b7b2073b6cf347023bc0fe31921e1865a50.tar.gz
gamerlay-b0b45b7b2073b6cf347023bc0fe31921e1865a50.tar.bz2
gamerlay-b0b45b7b2073b6cf347023bc0fe31921e1865a50.zip
games-action/ardentryst: fix installation
Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com> Package-Manager: Portage-2.3.51, Repoman-2.3.11
-rw-r--r--games-action/ardentryst/ardentryst-1.71.ebuild17
1 files 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
}