| 1 |
# Copyright 1999-2013 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/games-strategy/megaglest-data/megaglest-data-3.6.0.3.ebuild,v 1.2 2012/08/21 12:44:57 hasufell Exp $ |
| 4 |
|
| 5 |
EAPI=4 |
| 6 |
inherit cmake-utils games |
| 7 |
|
| 8 |
MY_PN="megaglest" |
| 9 |
DESCRIPTION="Data files for the cross-platform 3D realtime strategy game MegaGlest" |
| 10 |
HOMEPAGE="http://www.megaglest.org/" |
| 11 |
SRC_URI="mirror://sourceforge/${MY_PN}/${P}.tar.xz" |
| 12 |
|
| 13 |
LICENSE="CC-BY-SA-3.0" |
| 14 |
SLOT="0" |
| 15 |
KEYWORDS="~amd64 ~x86" |
| 16 |
IUSE="doc" |
| 17 |
|
| 18 |
RDEPEND="~games-strategy/megaglest-${PV}" |
| 19 |
|
| 20 |
DOCS=( docs/AUTHORS.data.txt docs/CHANGELOG.txt docs/README.txt ) |
| 21 |
|
| 22 |
S=${WORKDIR}/${MY_PN}-${PV} |
| 23 |
|
| 24 |
src_configure() { |
| 25 |
local mycmakeargs=( |
| 26 |
-DMEGAGLEST_BIN_INSTALL_PATH="${GAMES_BINDIR}" |
| 27 |
-DMEGAGLEST_DATA_INSTALL_PATH="${GAMES_DATADIR}/${MY_PN}" |
| 28 |
-DMEGAGLEST_ICON_INSTALL_PATH="/usr/share/pixmaps" |
| 29 |
) |
| 30 |
cmake-utils_src_configure |
| 31 |
} |
| 32 |
|
| 33 |
src_compile() { |
| 34 |
cmake-utils_src_compile |
| 35 |
} |
| 36 |
|
| 37 |
src_install() { |
| 38 |
use doc && HTML_DOCS="docs/glest_factions/" |
| 39 |
|
| 40 |
cmake-utils_src_install |
| 41 |
|
| 42 |
prepgamesdirs |
| 43 |
|
| 44 |
} |