Skip to content

Commit

Permalink
games-puzzle/splice: port to EAPI 7, games.eclass--
Browse files Browse the repository at this point in the history
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Apr 6, 2021
1 parent a5b378a commit d2aae58
Showing 1 changed file with 16 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
# Copyright 1999-2018 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# TODO: unbundle mono? (seems hardcoded)
# icon
EAPI=7

EAPI=5

inherit eutils games
inherit desktop wrapper

DESCRIPTION="An experimental and artistic puzzler set in a microbial world"
HOMEPAGE="http://www.cipherprime.com/games/splice/"
SRC_URI="splice-linux-1353389454.tar.gz"
S="${WORKDIR}"/Linux

LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE=""

RESTRICT="bindist fetch splitdebug"

MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN}
QA_PREBUILT="${MYGAMEDIR#/}/Splice*
${MYGAMEDIR#/}/Splice_Data/Mono/*"
MYGAMEDIR=opt/${PN}
QA_PREBUILT="
${MYGAMEDIR#/}/Splice*
${MYGAMEDIR#/}/Splice_Data/Mono/*
"

# TODO: unbundle mono? (seems hardcoded)
# icon
RDEPEND="
virtual/glu
virtual/opengl
x11-libs/libX11
x11-libs/libXcursor
x11-libs/libXext"

S=${WORKDIR}/Linux

pkg_nofetch() {
einfo "Please buy & download ${SRC_URI} from:"
einfo " ${HOMEPAGE}"
einfo "and move it to your DISTDIR directory."
}

src_prepare() {
einfo "removing ${ARCH} unrelated files..."
einfo "Removing ${ARCH} unrelated files..."
rm -v Splice.x86$(usex amd64 "" "_64") || die
rm -rv Splice_Data/Mono/x86$(usex amd64 "" "_64") || die

Expand All @@ -49,12 +49,11 @@ src_prepare() {
src_install() {
dodoc "${T}"/README

insinto "${MYGAMEDIR}"
insinto ${MYGAMEDIR}
doins -r *

make_desktop_entry ${PN}
games_make_wrapper ${PN} "./Splice.x86$(usex amd64 "_64" "")" "${MYGAMEDIR}"
make_wrapper ${PN} "./Splice.x86$(usex amd64 "_64" "")" "${MYGAMEDIR}"

fperms +x "${MYGAMEDIR}"/Splice.x86$(usex amd64 "_64" "")
prepgamesdirs
fperms +x ${MYGAMEDIR}/Splice.x86$(usex amd64 "_64" "")
}

0 comments on commit d2aae58

Please sign in to comment.