diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2021-07-16 13:50:47 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2021-07-17 03:58:46 -0400 |
commit | b26d60e8afaee37f6768a40e80960facda8dda08 (patch) | |
tree | 4e155da1b8f2af15f11bf21c26537b1841ef8f64 /games-puzzle | |
parent | dev-python/django-allauth: Add python@ as co-maint. (diff) | |
download | gentoo-b26d60e8afaee37f6768a40e80960facda8dda08.tar.gz gentoo-b26d60e8afaee37f6768a40e80960facda8dda08.tar.bz2 gentoo-b26d60e8afaee37f6768a40e80960facda8dda08.zip |
games-puzzle/nightsky: EAPI 7->8, hopefully fix install
Like others it is known broken given fperms will not take
arguments without a leading /
Somewhat minimal changes given do not have the distfile to test.
Fixes: 4ed59a3993bfef4e0c9e7d87abdd24c85e7f585d
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'games-puzzle')
-rw-r--r-- | games-puzzle/nightsky/nightsky-20111222-r1.ebuild | 50 |
1 files changed, 18 insertions, 32 deletions
diff --git a/games-puzzle/nightsky/nightsky-20111222-r1.ebuild b/games-puzzle/nightsky/nightsky-20111222-r1.ebuild index f74d7895b84c..a28bb13ec292 100644 --- a/games-puzzle/nightsky/nightsky-20111222-r1.ebuild +++ b/games-puzzle/nightsky/nightsky-20111222-r1.ebuild @@ -1,28 +1,25 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -inherit desktop gnome2-utils +inherit desktop DESCRIPTION="Puzzle game that puts you inside and ambient and mysterious universe" HOMEPAGE="http://www.nicalis.com/nightsky/" SRC_URI="nightskyhd-linux-1324519044.tar.gz" -S="${WORKDIR}"/NightSky +S="${WORKDIR}/NightSky" LICENSE="all-rights-reserved" SLOT="0" KEYWORDS="-* ~amd64 ~x86" IUSE="bundled-libs" +RESTRICT="bindist fetch" -RESTRICT="bindist fetch splitdebug" - -MYGAMEDIR=opt/${PN} QA_PREBUILT=" - ${MYGAMEDIR#/}/NightSky* - ${MYGAMEDIR#/}/lib/* - ${MYGAMEDIR#/}/lib64/* -" + opt/${PN}/NightSky* + opt/${PN}/lib/* + opt/${PN}/lib64/*" RDEPEND=" virtual/glu @@ -50,8 +47,8 @@ src_prepare() { default einfo "Removing ${ARCH} unrelated files..." - rm -v NightSkyHD$(usex amd64 "" "_64") || die - rm -rv lib$(usex amd64 "" "64") || die + rm -v NightSkyHD$(usev !amd64 _64) || die + rm -rv lib$(usev !amd64 64) || die if ! use bundled-libs ; then einfo "Removing bundled libs..." @@ -61,35 +58,24 @@ src_prepare() { # empty dir, we create symlink here later rm -r Settings || die - sed \ - -e "s#@GAMES_PREFIX_OPT@#/opt#" \ + sed "s|@GAMES_PREFIX_OPT@|${EPREFIX}/opt|" \ "${FILESDIR}"/${PN}-wrapper > "${T}"/${PN} || die } src_install() { dobin "${T}"/${PN} - insinto "${MYGAMEDIR}" - doins -r * - - newicon -s 128 "World/The Void/Physical"/Circle72.png ${PN}.png - make_desktop_entry ${PN} + insinto /opt/${PN} + doins -r . - fperms +x "${MYGAMEDIR}"/NightSkyHD$(usex amd64 "_64" "") -} + newicon "World/The Void/Physical"/Circle72.png ${PN}.png + make_desktop_entry ${PN} "NightSky HD" -pkg_preinst() { - gnome2_icon_savelist + fperms +x /opt/${PN}/NightSkyHD$(usev amd64 _64) } pkg_postinst() { - gnome2_icon_cache_update - - echo - elog "Saves and Settings are in ~/.nightsky/Settings" - echo -} - -pkg_postrm() { - gnome2_icon_cache_update + if [[ -z ${REPLACING_VERSIONS} ]]; then + elog "Saves and Settings are in ~/.nightsky/Settings" + fi } |