# ChangeLog for games-strategy/liquidwar
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/liquidwar/ChangeLog,v 1.11 2005/09/03 14:08:29 metalgod Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/liquidwar/ChangeLog,v 1.12 2005/12/01 04:32:19 mr_bones_ Exp $
+
+*liquidwar-5.6.3 (01 Dec 2005)
+
+ 01 Dec 2005; Michael Sterrett <mr_bones_@gentoo.org>
+ +liquidwar-5.6.3.ebuild:
+ version bump
03 Sep 2005; Luis Medinas <metalgod@gentoo.org> liquidwar-5.6.2.ebuild:
Added ~amd64 keywords.
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 5b56afb02d5d6d75dccb640070141bbf ChangeLog 2386
-MD5 be828dad0dc957c423c04a5931bf052b liquidwar-5.6.2.ebuild 1568
MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
+MD5 be828dad0dc957c423c04a5931bf052b liquidwar-5.6.2.ebuild 1568
+MD5 8ffbb2e0d57b2e84694f9224f01f9ee1 liquidwar-5.6.3.ebuild 1540
+MD5 38f9d16c47417cf0aa8a882ad0946b7a ChangeLog 2517
+MD5 2ce2fa37744f06a761eecedae70808c3 files/digest-liquidwar-5.6.3 68
MD5 baa58ba47700f8e6b8525f9d35093e57 files/digest-liquidwar-5.6.2 68
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.1 (GNU/Linux)
-
-iD8DBQFDGbvjwUpWvClEHQoRAgFqAJ9R/4FuWbRQz4NYxphNdZDQE4K9CQCfTnUt
-MGxC8N6kG2aEEvyYk26XGIo=
-=QZHs
------END PGP SIGNATURE-----
--- /dev/null
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/liquidwar/liquidwar-5.6.3.ebuild,v 1.1 2005/12/01 04:32:19 mr_bones_ Exp $
+
+inherit flag-o-matic games
+
+DESCRIPTION="unique multiplayer wargame"
+HOMEPAGE="http://www.ufoot.org/liquidwar/"
+SRC_URI="http://savannah.nongnu.org/download/liquidwar/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ppc x86"
+IUSE="nls"
+
+DEPEND=">media-libs/allegro-4.0"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ sed -i \
+ -e 's:/games::' \
+ -e '/^MANDIR/ s:=.*:= $(mandir)/man6:' \
+ -e '/^PIXDIR/ s:=.*:= /usr/share/pixmaps:' \
+ -e '/^DESKTOPDIR/ s:=.*:= /usr/share/applnk/Games/:' \
+ -e '/^INFODIR/ s/=.*/= $(infodir)/' \
+ -e '/^GAMEDIR/ s/exec_prefix/bindir/' \
+ -e 's:$(DOCDIR)/txt:$(DOCDIR):g' \
+ -e 's:$(GMAKE):$(MAKE):' \
+ -e '/^DOCDIR/ s:=.*:= /usr/share/doc/$(PF):' Makefile.in \
+ || die 'sed Makefile.in failed'
+ sed -i \
+ -e '/^GAMEDIR/ s/$(exec_prefix)/@bindir@/' \
+ -e 's:/games::' src/Makefile.in \
+ || die "sed src/Makefile.in failed"
+}
+
+src_compile() {
+ # Fixes build problem with gcc3 and -march=pentium4
+ replace-cpu-flags pentium4 pentium3
+ egamesconf \
+ --disable-doc-ps \
+ --disable-doc-pdf \
+ --disable-target-opt \
+ || die
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install_nolink || die "make install failed"
+ rm -f "${D}"/usr/share/doc/${PF}/COPYING
+ use nls || rm -f "${D}"/usr/share/doc/${PF}/README.*
+ prepalldocs
+ prepgamesdirs
+}