/[gentoo-x86]/games-rpg/tmw/tmw-0.0.29.1.ebuild
Gentoo

Contents of /games-rpg/tmw/tmw-0.0.29.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Sep 30 19:50:14 2009 UTC (10 years, 10 months ago) by nyhm
Branch: MAIN
Changes since 1.1: +6 -4 lines
Add dependencies for USE=nls
(Portage version: 2.2_rc42/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-rpg/tmw/tmw-0.0.29.1.ebuild,v 1.1 2009/06/30 02:37:59 mr_bones_ Exp $
4
5 EAPI=2
6 inherit eutils games
7
8 MUSIC=tmwmusic-0.0.20
9 DESCRIPTION="A fully free and open source MMORPG game with the looks of \"old-fashioned\" 2D RPG"
10 HOMEPAGE="http://themanaworld.org/"
11 SRC_URI="mirror://sourceforge/themanaworld/${P}.tar.gz
12 mirror://sourceforge/themanaworld/${MUSIC}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~amd64 ~ppc ~x86"
17 IUSE="nls opengl"
18 PATCHES=( "${FILESDIR}"/${P}-desktop.patch )
19
20 RDEPEND=">=dev-games/physfs-1.0.0
21 dev-libs/libxml2
22 media-libs/sdl-mixer[vorbis]
23 media-libs/sdl-image[png]
24 media-libs/sdl-net
25 media-libs/sdl-ttf
26 net-misc/curl
27 sys-libs/zlib
28 media-libs/libpng
29 media-fonts/dejavu
30 >=dev-games/guichan-0.8.1[sdl]
31 nls? ( virtual/libintl )
32 opengl? ( virtual/opengl )"
33 DEPEND="${RDEPEND}
34 dev-util/pkgconfig
35 nls? ( sys-devel/gettext )"
36
37 src_prepare() {
38 sed -i \
39 -e '/^SUBDIRS/s/fonts//' \
40 data/Makefile.in \
41 || die "sed failed"
42 }
43
44 src_configure() {
45 egamesconf \
46 --disable-dependency-tracking \
47 --localedir=/usr/share/locale \
48 $(use_enable nls) \
49 $(use_with opengl)
50 }
51
52 src_install() {
53 emake DESTDIR="${D}" install || die "emake install failed"
54 dodoc AUTHORS ChangeLog NEWS README
55 dosym /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/dejavusans-bold.ttf
56 dosym /usr/share/fonts/dejavu/DejaVuSans.ttf "${GAMES_DATADIR}"/${PN}/data/fonts/dejavusans.ttf
57 cd "${WORKDIR}"
58 insinto "${GAMES_DATADIR}"/${PN}/data/music
59 doins ${MUSIC}/data/music/*.ogg || die
60 newdoc ${MUSIC}/README README.music
61 prepgamesdirs
62 }

  ViewVC Help
Powered by ViewVC 1.1.20