summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2007-12-24 11:05:29 +0000
committerAlfredo Tupone <tupone@gentoo.org>2007-12-24 11:05:29 +0000
commit4e97dad8428c07813c3f836eb03d3f2571f47faa (patch)
treebd305273f008ea9b75c6eec4eb93d9e74c94836a /games-strategy/dopewars
parentarm/s390/sh stable (diff)
downloadgentoo-2-4e97dad8428c07813c3f836eb03d3f2571f47faa.tar.gz
gentoo-2-4e97dad8428c07813c3f836eb03d3f2571f47faa.tar.bz2
gentoo-2-4e97dad8428c07813c3f836eb03d3f2571f47faa.zip
Fixing dependency on dev-libs/glib. Bug #203207
(Portage version: 2.1.3.19)
Diffstat (limited to 'games-strategy/dopewars')
-rw-r--r--games-strategy/dopewars/ChangeLog10
-rw-r--r--games-strategy/dopewars/dopewars-1.5.12-r1.ebuild72
-rw-r--r--games-strategy/dopewars/files/digest-dopewars-1.5.12-r13
3 files changed, 83 insertions, 2 deletions
diff --git a/games-strategy/dopewars/ChangeLog b/games-strategy/dopewars/ChangeLog
index 51838e22b9ea..e47979c73260 100644
--- a/games-strategy/dopewars/ChangeLog
+++ b/games-strategy/dopewars/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-strategy/dopewars
-# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/dopewars/ChangeLog,v 1.16 2006/10/09 15:03:27 nyhm Exp $
+# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/dopewars/ChangeLog,v 1.17 2007/12/24 11:05:29 tupone Exp $
+
+*dopewars-1.5.12-r1 (24 Dec 2007)
+
+ 24 Dec 2007; Tupone Alfredo <tupone@gentoo.org>
+ +dopewars-1.5.12-r1.ebuild:
+ Fixing dependency on dev-libs/glib. Bug #203207 by Paul Merlin
09 Oct 2006; Tristan Heaven <nyhm@gentoo.org> dopewars-1.5.12.ebuild:
Fix install path when not using the default GAMES_DATADIR
diff --git a/games-strategy/dopewars/dopewars-1.5.12-r1.ebuild b/games-strategy/dopewars/dopewars-1.5.12-r1.ebuild
new file mode 100644
index 000000000000..1bb912d66ead
--- /dev/null
+++ b/games-strategy/dopewars/dopewars-1.5.12-r1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/dopewars/dopewars-1.5.12-r1.ebuild,v 1.1 2007/12/24 11:05:29 tupone Exp $
+
+inherit games
+
+DESCRIPTION="Re-Write of the game Drug Wars"
+HOMEPAGE="http://dopewars.sourceforge.net/"
+SRC_URI="mirror://sourceforge/dopewars/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="nls ncurses gtk gnome esd sdl"
+
+RDEPEND="ncurses? ( >=sys-libs/ncurses-5.2 )
+ esd? ( media-sound/esound )
+ gtk? ( =x11-libs/gtk+-2* )
+ dev-libs/glib
+ nls? ( virtual/libintl )
+ sdl? (
+ media-libs/libsdl
+ media-libs/sdl-mixer
+ )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ sed -i \
+ -e "/priv_hiscore/ s:DPDATADIR:\"${GAMES_STATEDIR}\":" \
+ -e "/\/doc\// s:DPDATADIR:\"/usr/share\":" \
+ -e 's:index.html:html/index.html:' \
+ src/dopewars.c \
+ || die "sed failed"
+}
+
+src_compile() {
+ local myservconf
+
+ if ! use gtk ; then
+ myservconf="--disable-gui-client --disable-gui-server --disable-glibtest --disable-gtktest"
+ fi
+
+ egamesconf \
+ --disable-dependency-tracking \
+ $(use_enable ncurses curses-client) \
+ $(use_enable nls) \
+ $(use_with sdl) \
+ $(use_with esd) \
+ --enable-networking \
+ --enable-plugins \
+ ${myservconf} \
+ || die
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS ChangeLog NEWS README TODO
+
+ dodir /usr/share
+ cd "${D}/${GAMES_DATADIR}"
+ use gnome && mv gnome "${D}/usr/share" || rm -rf gnome
+ mv pixmaps "${D}/usr/share"
+ dohtml -r doc/*/*
+ rm -rf doc
+
+ prepgamesdirs
+}
diff --git a/games-strategy/dopewars/files/digest-dopewars-1.5.12-r1 b/games-strategy/dopewars/files/digest-dopewars-1.5.12-r1
new file mode 100644
index 000000000000..2194e7568071
--- /dev/null
+++ b/games-strategy/dopewars/files/digest-dopewars-1.5.12-r1
@@ -0,0 +1,3 @@
+MD5 debf749de9053dc2fb2e74c37ae06206 dopewars-1.5.12.tar.gz 1419725
+RMD160 66c86bceb67657a9fb2ef7944b1a069dafab8ae0 dopewars-1.5.12.tar.gz 1419725
+SHA256 23059dcdea96c6072b148ee21d76237ef3535e5be90b3b2d8239d150feee0c19 dopewars-1.5.12.tar.gz 1419725