/[gentoo-x86]/games-rpg/mana/mana-0.6.1.ebuild
Gentoo

Contents of /games-rpg/mana/mana-0.6.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Jul 13 13:58:36 2012 UTC (10 months, 1 week ago) by hasufell
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +3 -5 lines
drop server useflag cause MANASERV feature is alpha and not supported yet

(Portage version: 2.2.0_alpha116/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-rpg/mana/mana-0.6.1.ebuild,v 1.2 2012/07/03 14:51:52 hasufell Exp $
4
5 EAPI=2
6 inherit eutils cmake-utils games
7
8 DESCRIPTION="A fully free and open source MMORPG game client"
9 HOMEPAGE="http://manasource.org/"
10 SRC_URI="http://manasource.org/files/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~amd64 ~ppc ~x86"
15 IUSE="nls opengl"
16
17 RDEPEND="!=games-rpg/tmw-0.5.2
18 >=dev-games/physfs-1.0.0
19 dev-libs/libxml2
20 media-libs/sdl-mixer[vorbis]
21 media-libs/sdl-image[png]
22 media-libs/sdl-net
23 media-libs/sdl-ttf
24 net-misc/curl
25 sys-libs/zlib
26 media-libs/libpng:0
27 media-fonts/dejavu
28 >=dev-games/guichan-0.8.1[sdl]
29 media-libs/libsdl[X,opengl?,video]
30 media-libs/sdl-gfx
31 x11-libs/libX11
32 nls? ( virtual/libintl )
33 opengl? ( virtual/opengl )"
34 DEPEND="${RDEPEND}
35 virtual/pkgconfig
36 nls? ( sys-devel/gettext )"
37
38 DOCS=( AUTHORS ChangeLog NEWS README )
39 PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
40
41 src_prepare() {
42 base_src_prepare
43
44 if [[ ${LINGUAS+set} ]]; then
45 for lang in $(grep -v ^# po/LINGUAS); do
46 has $lang $LINGUAS || sed -i "s:^${lang}:#${lang}:" po/LINGUAS
47 done
48 fi
49 }
50
51 src_compile() {
52 cmake-utils_src_compile
53 }
54
55 src_configure() {
56 mycmakeargs=(
57 $(cmake-utils_use_with opengl)
58 $(cmake-utils_use_enable nls)
59 -DPKG_DATADIR="${GAMES_DATADIR}/${PN}"
60 -DPKG_BINDIR="${GAMES_BINDIR}"
61 -DWITH_BUNDLEDHEADERS=OFF
62 )
63 cmake-utils_src_configure
64 }
65
66 src_install() {
67 cmake-utils_src_install
68 dosym /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/dejavusans-bold.ttf
69 dosym /usr/share/fonts/dejavu/DejaVuSans.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/dejavusans.ttf
70 dosym /usr/share/fonts/dejavu/DejaVuSansMono.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/dejavusans-mono.ttf
71 insinto "${GAMES_DATADIR}"/${PN}/data
72 prepgamesdirs
73 }

  ViewVC Help
Powered by ViewVC 1.1.13