Skip to content

Instantly share code, notes, and snippets.

@hasufell
Created August 18, 2012 21:08
Show Gist options
  • Save hasufell/3389866 to your computer and use it in GitHub Desktop.
Save hasufell/3389866 to your computer and use it in GitHub Desktop.
megaglest-data-3.6.0.3.ebuild
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
inherit cmake-utils games
MY_PN="megaglest"
DESCRIPTION="Data files for the cross-platform 3D realtime strategy game MegaGlest"
HOMEPAGE="http://www.megaglest.org/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
LICENSE="CCPL-Attribution-ShareAlike-3.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
RDEPEND="~games-strategy/megaglest-${PV}"
DOCS=( docs/AUTHORS.data.txt docs/CHANGELOG.txt docs/README.txt )
S=${WORKDIR}/${MY_PN}-${PV}
src_configure() {
local mycmakeargs=(
-DMEGAGLEST_BIN_INSTALL_PATH="${GAMES_BINDIR}"
-DMEGAGLEST_DATA_INSTALL_PATH="${GAMES_DATADIR}/${MY_PN}"
-DMEGAGLEST_ICON_INSTALL_PATH="/usr/share/pixmaps"
)
cmake-utils_src_configure
}
src_compile() {
cmake-utils_src_compile
}
src_install() {
use doc && HTML_DOCS="docs/glest_factions/"
cmake-utils_src_install
prepgamesdirs
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment