/[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.4 - (show annotations) (download)
Sat Feb 6 02:29:17 2010 UTC (10 years, 5 months ago) by rich0
Branch: MAIN
Changes since 1.3: +2 -2 lines
amd64 stable - 303483
(Portage version: 2.1.7.16/cvs/Linux x86_64)

1 # Copyright 1999-2010 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.3 2010/01/05 17:28:24 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
19 RDEPEND=">=dev-games/physfs-1.0.0
20 dev-libs/libxml2
21 media-libs/sdl-mixer[vorbis]
22 media-libs/sdl-image[png]
23 media-libs/sdl-net
24 media-libs/sdl-ttf
25 net-misc/curl
26 sys-libs/zlib
27 media-libs/libpng
28 media-fonts/dejavu
29 >=dev-games/guichan-0.8.1[sdl]
30 nls? ( virtual/libintl )
31 opengl? ( virtual/opengl )"
32 DEPEND="${RDEPEND}
33 dev-util/pkgconfig
34 nls? ( sys-devel/gettext )"
35
36 src_prepare() {
37 sed -i \
38 -e '/^SUBDIRS/s/fonts//' \
39 data/Makefile.in \
40 || die "sed failed"
41 epatch "${FILESDIR}"/${P}-desktop.patch
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