Skip to content

Commit

Permalink
games-rpg/vendetta-online-bin: port to EAPI 7, add missing deps
Browse files Browse the repository at this point in the history
  • Loading branch information
thesamesam committed Apr 10, 2021
1 parent 131a8de commit 789041a
Showing 1 changed file with 26 additions and 14 deletions.
40 changes: 26 additions & 14 deletions games-rpg/vendetta-online-bin/vendetta-online-bin-1.8.296-r1.ebuild
Original file line number Diff line number Diff line change
@@ -1,31 +1,44 @@
# Copyright 1999-2018 Gentoo Foundation
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="6"
inherit eutils unpacker
EAPI=7

inherit desktop unpacker

DESCRIPTION="Space-based MMORPG"
HOMEPAGE="https://www.vendetta-online.com"
SRC_URI="amd64? (
SRC_URI="
amd64? (
http://mirror.cle.vendetta-online.com/vendetta-linux-amd64-installer.sh
-> ${P}-amd64.sh
)
x86? (
http://mirror.cle.vendetta-online.com/vendetta-linux-ia32-installer.sh
-> ${P}-x86.sh
)"
)
"
S="${WORKDIR}"

LICENSE="guild"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE=""
RESTRICT="mirror strip"

DEPEND="dev-util/patchelf"
RDEPEND="virtual/opengl
x11-libs/gtk+:2"
RDEPEND="
media-libs/alsa-lib
media-sound/pulseaudio
virtual/glu
virtual/opengl
x11-libs/gtk+:2
"
BDEPEND="dev-util/patchelf"

S=${WORKDIR}
QA_FLAGS_IGNORED="
opt/vendetta-online-bin/install/drivers/*.so
opt/vendetta-online-bin/install/update.rlb
opt/vendetta-online-bin/install/vendetta
opt/vendetta-online-bin/vendetta
"

src_unpack() {
unpack_makeself
Expand All @@ -36,18 +49,17 @@ src_prepare() {
default

# scanelf: rpath_security_checks(): Security problem with relative DT_RPATH '.'
for file in install/drivers/{gkvc.so,soundbackends/libalsa_linux_amd64.so,soundbackends/libpulseaudio_linux_amd64.so}
do
for file in install/drivers/{gkvc.so,soundbackends/libalsa_linux_amd64.so,soundbackends/libpulseaudio_linux_amd64.so} ; do
patchelf --set-rpath '$ORIGIN' $file || die
done
}

src_install() {
local dir=/opt/${PN}

insinto "${dir}"
insinto ${dir}
doins -r *
fperms +x "${dir}"/{vendetta,install/{media.rlb,update.rlb,vendetta}}
fperms +x ${dir}/{vendetta,install/{media.rlb,update.rlb,vendetta}}

sed \
-e "s:DATADIR:${dir}:" \
Expand Down

0 comments on commit 789041a

Please sign in to comment.