/[gentoo-x86]/games-strategy/megaglest-data/megaglest-data-3.7.0.ebuild
Gentoo

Contents of /games-strategy/megaglest-data/megaglest-data-3.7.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Nov 14 17:10:49 2012 UTC (20 months ago) by hasufell
Branch: MAIN
version bump

(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
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 mirror://sourceforge/${MY_PN}/${MY_PN}-source-embedded-${PV}.tar.xz"
13
14 LICENSE="CCPL-Attribution-ShareAlike-3.0 BitstreamVera GPL-2+ GPL-2-with-font-exception"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17 IUSE="doc"
18
19 RDEPEND="~games-strategy/megaglest-${PV}"
20
21 DOCS=( docs/AUTHORS.data.txt docs/CHANGELOG.txt docs/README.txt )
22
23 S=${WORKDIR}/${MY_PN}-${PV}
24
25 src_prepare() {
26 sed -i \
27 -e 's/# MEGAGLEST_FONT/MEGAGLEST_FONT/' \
28 data/lang/*.lng || die "setting default font in .lng failed!"
29 }
30
31 src_configure() {
32 local mycmakeargs=(
33 -DMEGAGLEST_BIN_INSTALL_PATH="${GAMES_BINDIR}"
34 -DMEGAGLEST_DATA_INSTALL_PATH="${GAMES_DATADIR}/${MY_PN}"
35 -DMEGAGLEST_ICON_INSTALL_PATH="/usr/share/pixmaps"
36 )
37 cmake-utils_src_configure
38 }
39
40 src_compile() {
41 cmake-utils_src_compile
42 }
43
44 src_install() {
45 use doc && HTML_DOCS="docs/glest_factions/"
46
47 cmake-utils_src_install
48
49 insinto "${GAMES_DATADIR}/${MY_PN}"/data/core/fonts
50 doins "${WORKDIR}"/${MY_PN}-${PV}/data/core/fonts/*.ttf
51
52 prepgamesdirs
53
54 }

  ViewVC Help
Powered by ViewVC 1.1.20