Skip to content

Commit

Permalink
games-fps/etqw-data: Stop using games.eclass
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.67, Repoman-2.3.14
Signed-off-by: Pacho Ramos <[email protected]>
  • Loading branch information
pacho2 committed Jun 30, 2019
1 parent db0a813 commit 7cf1017
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 65 deletions.
53 changes: 53 additions & 0 deletions games-fps/etqw-data/etqw-data-1.0-r1.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
inherit cdrom

DESCRIPTION="Enemy Territory: Quake Wars data files"
HOMEPAGE="http://zerowing.idsoftware.com/linux/etqw/ETQWFrontPage/"
SRC_URI=""

LICENSE="ETQW"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE="videos"

S="${WORKDIR}"

src_install() {
local dir=/opt/etqw

cdrom_get_cds Setup/Data/base/DEU:Setup/Data/base/POL:Setup/Data/base

cd "${CDROM_ROOT}"/Setup/Data/base
insinto "${dir}"/base
doins pak00{0..4}.pk4
doins -r megatextures

case ${CDROM_SET} in
0)
doins \
zpak_english000.pk4 \
DEU/zpak_german000.pk4 \
ESP/zpak_spanish000.pk4 \
FRA/zpak_french000.pk4
;;
1)
doins \
POL/zpak_polish000.pk4 \
RUS/zpak_russian000.pk4
;;
2)
doins zpak_english000.pk4
;;
esac

if use videos ; then
case ${CDROM_SET} in
0|2)
doins -r video
;;
esac
fi
}
65 changes: 0 additions & 65 deletions games-fps/etqw-data/etqw-data-1.0.ebuild

This file was deleted.

0 comments on commit 7cf1017

Please sign in to comment.