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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Feb 7 21:19:12 2012 UTC (8 years, 4 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
tmw became games-rpg/mana

1 # Copyright 1999-2011 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.5.2.ebuild,v 1.2 2011/09/05 18:02:37 mr_bones_ Exp $
4
5 EAPI=2
6 inherit eutils cmake-utils games
7
8 MUSIC=tmwmusic-0.3
9
10 DESCRIPTION="A fully free and open source MMORPG game with the looks of \"old-fashioned\" 2D RPG"
11 HOMEPAGE="http://themanaworld.org/"
12 SRC_URI="mirror://sourceforge/themanaworld/${P}.tar.bz2
13 mirror://sourceforge/themanaworld/${MUSIC}.tar.gz"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~amd64 ~ppc ~x86"
18 IUSE="nls"
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 media-libs/libsdl[opengl,video]
32 media-libs/sdl-gfx
33 x11-libs/libX11
34 nls? ( virtual/libintl )
35 virtual/opengl"
36 DEPEND="${RDEPEND}
37 dev-util/pkgconfig
38 nls? ( sys-devel/gettext )"
39
40 DOCS=( AUTHORS ChangeLog NEWS README )
41 PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
42
43 src_unpack() {
44 mkdir ${P}
45 cd ${P}
46 unpack ${A}
47 }
48
49 src_prepare() {
50 base_src_prepare
51 sed -i \
52 -e "s:@GENTOO_BINDIR@:${GAMES_BINDIR}:" \
53 -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
54 CMakeLists.txt \
55 || die "sed failed"
56 }
57
58 src_configure() {
59 mycmakeargs=(
60 -DWITH_OPENGL=ON
61 $(cmake-utils_use_enable nls)
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 insinto "${GAMES_DATADIR}"/${PN}/data
71 doins -r ${MUSIC}/data/music || die
72 prepgamesdirs
73 }

  ViewVC Help
Powered by ViewVC 1.1.20