public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Pacho Ramos" <pacho@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/dopewars/, games-strategy/dopewars/files/
Date: Tue,  1 May 2018 19:37:40 +0000 (UTC)	[thread overview]
Message-ID: <1525203355.2de88f03f39f8ef50015dd7b1c87fc7b32119f5f.pacho@gentoo> (raw)

commit:     2de88f03f39f8ef50015dd7b1c87fc7b32119f5f
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Tue May  1 19:08:58 2018 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Tue May  1 19:35:55 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2de88f03

games-strategy/dopewars: Stop using games.eclass

Package-Manager: Portage-2.3.31, Repoman-2.3.9

 games-strategy/dopewars/dopewars-1.5.12-r3.ebuild  | 64 ++++++++++++++++++++++
 .../files/dopewars-1.5.12-CVE-2009-3591.patch      |  4 +-
 2 files changed, 66 insertions(+), 2 deletions(-)

diff --git a/games-strategy/dopewars/dopewars-1.5.12-r3.ebuild b/games-strategy/dopewars/dopewars-1.5.12-r3.ebuild
new file mode 100644
index 00000000000..4d1c3843761
--- /dev/null
+++ b/games-strategy/dopewars/dopewars-1.5.12-r3.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit desktop
+
+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 ~x86"
+IUSE="nls ncurses gtk gnome sdl"
+
+RDEPEND="
+	ncurses? ( >=sys-libs/ncurses-5.2:0= )
+	gtk? ( x11-libs/gtk+:2 )
+	dev-libs/glib:2
+	nls? ( virtual/libintl )
+	sdl? (
+		media-libs/libsdl
+		media-libs/sdl-mixer
+	)
+"
+DEPEND="${RDEPEND}
+	virtual/pkgconfig
+	nls? ( sys-devel/gettext )
+"
+
+src_prepare() {
+	default
+	eapply "${FILESDIR}"/${P}-CVE-2009-3591.patch
+	sed -i \
+		-e "/priv_hiscore/ s:DPDATADIR:\"/var/lib\":" \
+		-e "/\/doc\// s:DPDATADIR:\"/usr/share\":" \
+		-e 's:index.html:html/index.html:' \
+		src/dopewars.c || die
+}
+
+src_configure() {
+	local myservconf
+
+	if ! use gtk ; then
+		myservconf="--disable-gui-client --disable-gui-server --disable-glibtest --disable-gtktest"
+	fi
+
+	econf \
+		$(use_enable ncurses curses-client) \
+		$(use_enable nls) \
+		$(use_with sdl) \
+		--without-esd \
+		--enable-networking \
+		--enable-plugins \
+		${myservconf}
+}
+
+src_install() {
+	emake DESTDIR="${D}" install
+	rm -r "${ED}"/usr/share/gnome || die
+	rm -rf "${ED}"/usr/share/doc
+	make_desktop_entry "${PN}" "Dopewars" /usr/share/pixmaps/dopewars-weed.png
+	HTML_DOCS="doc/*html" einstalldocs
+}

diff --git a/games-strategy/dopewars/files/dopewars-1.5.12-CVE-2009-3591.patch b/games-strategy/dopewars/files/dopewars-1.5.12-CVE-2009-3591.patch
index d657bf8744f..3b8b066a81c 100644
--- a/games-strategy/dopewars/files/dopewars-1.5.12-CVE-2009-3591.patch
+++ b/games-strategy/dopewars/files/dopewars-1.5.12-CVE-2009-3591.patch
@@ -3,8 +3,8 @@ Patch for CVE-2009-3591 -- bug 288295.
 Fetched from upstream SVN:
 http://dopewars.svn.sourceforge.net/viewvc/dopewars/dopewars/trunk/src/serverside.c?r1=1033&r2=1032&pathrev=1033
 
---- dopewars/trunk/src/serverside.c	2009/03/10 07:18:49	1032
-+++ dopewars/trunk/src/serverside.c	2009/10/05 04:11:32	1033
+--- trunk/src/serverside.c	2009/03/10 07:18:49	1032
++++ trunk/src/serverside.c	2009/10/05 04:11:32	1033
 @@ -504,6 +504,12 @@
      break;
    case C_REQUESTJET:


             reply	other threads:[~2018-05-01 19:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-01 19:37 Pacho Ramos [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-12-31 21:02 [gentoo-commits] repo/gentoo:master commit in: games-strategy/dopewars/, games-strategy/dopewars/files/ Stefan Strogin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1525203355.2de88f03f39f8ef50015dd7b1c87fc7b32119f5f.pacho@gentoo \
    --to=pacho@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox