You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
1.9 KiB
73 lines
1.9 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
10 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
3 years ago
|
EAPI=7
|
||
|
|
||
|
inherit wrapper
|
||
10 years ago
|
|
||
|
MY_FULL_PV=1.9.3
|
||
|
MY_PN="${PN/-bin/}"
|
||
10 years ago
|
DESCRIPTION="Quakeworld client with mqwcl functionality and many more features"
|
||
10 years ago
|
HOMEPAGE="http://ezquake.sf.net/"
|
||
|
SRC_URI="
|
||
|
amd64? ( mirror://sourceforge/${MY_PN}/${MY_PN}_linux-x86_64.${MY_FULL_PV}.tar.gz
|
||
|
mirror://sourceforge/${MY_PN}/${MY_PN}_linux64_${PV}.tar.gz )
|
||
|
x86? ( mirror://sourceforge/${MY_PN}/${MY_PN}_linux-x86_${MY_FULL_PV}.tar.gz
|
||
3 years ago
|
mirror://sourceforge/${MY_PN}/${MY_PN}_linux32_${PV}.tar.gz )
|
||
|
"
|
||
|
S="${WORKDIR}"/${MY_PN}
|
||
10 years ago
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
3 years ago
|
KEYWORDS="-* ~amd64 ~x86"
|
||
10 years ago
|
IUSE="cdinstall"
|
||
|
|
||
3 years ago
|
RESTRICT="strip mirror"
|
||
|
|
||
10 years ago
|
DEPEND="cdinstall? ( games-fps/quake1-data )"
|
||
3 years ago
|
RDEPEND="
|
||
3 years ago
|
${DEPEND}
|
||
|
virtual/opengl
|
||
|
x11-libs/libXpm
|
||
|
x11-libs/libXxf86dga
|
||
|
x11-libs/libXxf86vm
|
||
3 years ago
|
"
|
||
10 years ago
|
|
||
3 years ago
|
MY_DIR=opt/${PN}
|
||
3 years ago
|
QA_PREBUILT="${MY_DIR}/ezquake*"
|
||
10 years ago
|
|
||
|
src_unpack() {
|
||
|
unpack ${A}
|
||
3 years ago
|
|
||
10 years ago
|
if use amd64; then
|
||
3 years ago
|
mv ${MY_PN}_linux-x86_64.${MY_FULL_PV} "${MY_PN}" || die
|
||
|
mv ezquake-gl_linux-x64.glx "${MY_PN}"/ezquake-gl.glx || die
|
||
10 years ago
|
else
|
||
3 years ago
|
mv ${MY_PN}_linux-x86.${MY_FULL_PV} "${MY_PN}" || die
|
||
|
mv ezquake-gl_linux-x86.glx "${MY_PN}"/ezquake-gl.glx || die
|
||
10 years ago
|
fi
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
3 years ago
|
exeinto ${MY_DIR}
|
||
|
insinto ${MY_DIR}
|
||
10 years ago
|
|
||
|
doexe ezquake-gl.glx
|
||
|
doins -r ezquake qw
|
||
3 years ago
|
dosym ../../usr/share/quake1/id1 ${MY_DIR}/id1
|
||
|
make_wrapper ezquake-gl.glx ./ezquake-gl.glx "${MY_DIR}" "${MY_DIR}"
|
||
10 years ago
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
if ! use cdinstall; then
|
||
|
elog "NOTE that this client doesn't include .pak files. You *should*"
|
||
|
elog "enable \"cdinstall\" flag or install quake1-demodata with the symlink use flag."
|
||
|
elog "You can also copy the files from your Quake1 CD to"
|
||
3 years ago
|
elog " ${MY_DIR}/quake1/id1 (all names lowercase)"
|
||
10 years ago
|
elog ""
|
||
|
elog "You may also want to check:"
|
||
|
elog " http://fuhquake.quakeworld.nu - complete howto on commands and variables"
|
||
|
elog " http://equake.quakeworld.nu - free package containing various files"
|
||
|
fi
|
||
|
}
|