public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/dopewars/
Date: Sat, 12 Apr 2025 20:55:06 +0000 (UTC)	[thread overview]
Message-ID: <1744491083.9e25c7dcc4b02d32f3677db8bbfb5ae890ce7ffb.sam@gentoo> (raw)

commit:     9e25c7dcc4b02d32f3677db8bbfb5ae890ce7ffb
Author:     NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com>
AuthorDate: Sat Mar 29 10:58:57 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Apr 12 20:51:23 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e25c7dc

games-strategy/dopewars: remove USE=nls, limit to C17

Per comment in configure.ac, nls usage is mandatory. There's no
code to macro nls usage off if it's disabled in configure.
Ncurses and GTK clients have same API9, but one is void(*)(void)
and another is void (*)(GtkWidget *, void *), setting -std=gnu17
is for the best.

Closes: https://bugs.gentoo.org/941853
Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/41367
Signed-off-by: Sam James <sam <AT> gentoo.org>

 games-strategy/dopewars/dopewars-1.6.2-r1.ebuild | 74 ++++++++++++++++++++++++
 1 file changed, 74 insertions(+)

diff --git a/games-strategy/dopewars/dopewars-1.6.2-r1.ebuild b/games-strategy/dopewars/dopewars-1.6.2-r1.ebuild
new file mode 100644
index 000000000000..603b358a4713
--- /dev/null
+++ b/games-strategy/dopewars/dopewars-1.6.2-r1.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools desktop toolchain-funcs flag-o-matic
+
+DESCRIPTION="Re-Write of the game Drug Wars"
+HOMEPAGE="https://dopewars.sourceforge.io/"
+SRC_URI="https://github.com/benmwebb/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ncurses gtk gnome sdl"
+
+RDEPEND="
+	ncurses? ( >=sys-libs/ncurses-5.2:0= )
+	gtk? ( x11-libs/gtk+:2 )
+	dev-libs/glib:2
+	virtual/libintl
+	sdl? (
+		media-libs/libsdl2
+		media-libs/sdl2-mixer
+	)
+"
+DEPEND="${RDEPEND}
+	sys-devel/gettext
+"
+BDEPEND="virtual/pkgconfig"
+
+DOCS=( AUTHORS NEWS README.md TODO doc/example-cfg doc/example-igneous )
+
+src_prepare() {
+	default
+	eautoreconf
+	sed -i -e 's:index.html:html/index.html:' \
+		src/dopewars.c || die
+	sed -i -e "s/\-lncurses/$($(tc-getPKG_CONFIG) --libs ncurses)/g" \
+		configure || die
+}
+
+src_configure() {
+	local myservconf
+
+	if ! use gtk ; then
+		myservconf="--disable-gui-client --disable-gui-server --disable-glibtest --disable-gtktest"
+	fi
+
+	local myeconfargs=(
+		$(use_enable ncurses curses-client)
+		--enable-nls
+		$(use_with sdl)
+		--without-esd
+		--enable-networking
+		--enable-plugins
+		${myservconf}
+	)
+
+	# ncurses and gtk clients use same function names with different
+	# argument lists, porting to C23 is problematic
+	append-cflags -std=gnu17
+
+	econf "${myeconfargs[@]}"
+}
+
+src_install() {
+	emake DESTDIR="${D}" install
+	rm -r "${ED}"/usr/share/gnome || die
+	rm -r "${ED}"/usr/share/doc || die
+	make_desktop_entry "${PN}" "Dopewars" /usr/share/pixmaps/dopewars-weed.png
+	HTML_DOCS="doc/*html doc/help/"
+	einstalldocs
+}


             reply	other threads:[~2025-04-12 20:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-12 20:55 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-08-25 23:54 [gentoo-commits] repo/gentoo:master commit in: games-strategy/dopewars/ Conrad Kostecki
2024-08-25 23:54 Conrad Kostecki
2019-08-17  4:43 Stefan Strogin
2018-05-01 19:37 Pacho Ramos
2016-01-05  8:26 Michael Sterrett

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=1744491083.9e25c7dcc4b02d32f3677db8bbfb5ae890ce7ffb.sam@gentoo \
    --to=sam@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