games-fps/openjk-academy - 9999 (luke-jr)

Search

Install

Install this version:

emerge -a =games-fps/openjk-academy-9999

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =games-fps/openjk-academy-9999

Or alternatively:

emerge --autounmask-write -a =games-fps/openjk-academy-9999

Package Information

Description:
Community-maintained Jedi Academy, story version
Homepage:
https://github.com/JACoders/OpenJK
License:
GPL-2

Ebuild Details

Version EAPI Keywords Slot
9999 7 0
View Raw Ebuild
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=7

inherit cmake-utils git-r3 wrapper

DESCRIPTION="Community-maintained Jedi Academy, story version"
HOMEPAGE="https://github.com/JACoders/OpenJK"
LICENSE="GPL-2"

SRC_URI=""
EGIT_REPO_URI="https://github.com/JACoders/OpenJK.git"
SLOT="0"
KEYWORDS=""

IUSE="test"

DEPEND="
	media-libs/libjpeg-turbo
	media-libs/libpng
	sys-libs/zlib
	virtual/opengl
	media-libs/libsdl2
	test? ( dev-libs/boost )
"
RDEPEND="${DEPEND}"

src_configure() {
	local mycmakeargs=(
		-DCMAKE_INSTALL_PREFIX="/opt"
		-DBuildJK2SPEngine=OFF
		-DBuildJK2SPGame=OFF
		-DBuildJK2SPRdVanilla=OFF
		-DBuildMPCGame=OFF
		-DBuildMPDed=OFF
		-DBuildMPEngine=OFF
		-DBuildMPGame=OFF
		-DBuildMPRdVanilla=OFF
		-DBuildMPUI=OFF
		-DBuildSPEngine=ON
		-DBuildSPGame=ON
		-DBuildSPRdVanilla=ON
		-DBuildTests=$(usex test)
	)

	cmake-utils_src_configure
}

GAMEDIR="/opt/JediAcademy"

openjk_make_wrapper() {
	local binname="$1"
	local fullbinname=$( cd "${D}/${GAMEDIR}" && echo ${binname}.* )
	make_wrapper "${binname}" "${GAMEDIR}/${fullbinname}"
}

src_install() {
	cmake-utils_src_install
	openjk_make_wrapper openjk_sp
	keepdir "${GAMEDIR}/base"
	cd "${ED}/opt"
	use test && mv UnitTests JediAcademy/UnitTests-SP
}

pkg_postinst() {
	einfo "Copy data files into ${GAMEDIR}/base"
}

USE Flags

Manage flags for this package: euse -i <flag> -p games-fps/openjk-academy | euse -E <flag> -p games-fps/openjk-academy | euse -D <flag> -p games-fps/openjk-academy

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

	media-libs/libjpeg-turbo
	media-libs/libpng
	sys-libs/zlib
	virtual/opengl
	media-libs/libsdl2
	test? ( dev-libs/boost )

RDEPEND

	media-libs/libjpeg-turbo
	media-libs/libpng
	sys-libs/zlib
	virtual/opengl
	media-libs/libsdl2
	test? ( dev-libs/boost )