summaryrefslogtreecommitdiff
path: root/games-strategy/dopewars
diff options
context:
space:
mode:
Diffstat (limited to 'games-strategy/dopewars')
-rw-r--r--games-strategy/dopewars/Manifest4
-rw-r--r--games-strategy/dopewars/dopewars-1.6.2.ebuild70
-rw-r--r--games-strategy/dopewars/metadata.xml1
3 files changed, 74 insertions, 1 deletions
diff --git a/games-strategy/dopewars/Manifest b/games-strategy/dopewars/Manifest
index 96ee65912a1e..f960f4ca0fbb 100644
--- a/games-strategy/dopewars/Manifest
+++ b/games-strategy/dopewars/Manifest
@@ -1,3 +1,5 @@
DIST dopewars-1.6.1.tar.gz 1024168 BLAKE2B 28d650e0d1eccdfa9aa799bb4b35e82facc800ed9cbde9778c7182bd615ad0b1ec7d3fd323473f381f3ed1902b8e305a7994a5e351728aa1028be2e0665bfa57 SHA512 fab27b483b5a24abd95ffe6a52fe92c7179d8ee3e7d27393f0e7c265202781ab6a58e3b3214ff84bbc0e8195644b5c2ec94616b5f63b3fa9dc2ad2f9216e37d1
+DIST dopewars-1.6.2.tar.gz 1030811 BLAKE2B 96d333b7760786b215c3b6079498067149de0784099fd16b30c47a785a0f6d4d1d9030e6654a1d309f59803896d2675181146180411aef558e3cf28b715ac192 SHA512 ce41bc4b7f3a45bc759a76e3f70be84cc6ec1243127a60e8c4c96c908bf70d2d6fbb7d871afbeeec18591dac2cfb5d6d2646e14c7e2771ec02cf7b20e5a25a8f
EBUILD dopewars-1.6.1.ebuild 1510 BLAKE2B 5eabb5c98a771353ffc1d1f64cdad67ab6b1661d526bcb98f75a064d98fb74ac2fa5c47d20494f550ffac881c97bc2146c123b4b7ff899a2a1d8457e6ecbabdd SHA512 1202134a565c078ffd83bc9d8a36cd01f95f5471b22e95f4b3e7eecd3b161baede697afddc81debe79aada0a0818d5dca7f60b95d74127062bd0bd353576ab85
-MISC metadata.xml 332 BLAKE2B 37111175fefbc638c0e0b0ac57988eb28def430f9140f9eb411566a5c6b9ad27fdb4de4df557b72d1a8a2d6d57bf27e0ae38fab9a54f4c9ec8abca812968747b SHA512 30383bc97bba57511c351d77f1c17152a0be7d14573348e2159b3df908bb28733d25476f5a5db211334966db3c3a2addae2047e27650b2a60e6a8928344c66c4
+EBUILD dopewars-1.6.2.ebuild 1542 BLAKE2B 39ca243409f381e6e981a9535781c1e8da1d1f04fcf3e058b60b2347a1edc74ef94fb9cebe5e0b24b6c1e4040599fa5909909ba84003f6c5661e52e69503b250 SHA512 9206baf5bf36939ad8cbb466ba9bdc1f16d4cfd6fcb894e4b3a7af8ec44438c424f9422e5fa45537f5a416aadfd17f28c47ce9e91e7033606bc07cddd41dcd33
+MISC metadata.xml 389 BLAKE2B faeb3588a03eb4157b892bca2a14275432b53a1c0ee8e3046d2eb39f1c6f3a54c26eb0b14e278d40628c4919e4544bec77295c4090720fa11f27f89ed3d7d2a0 SHA512 292846b61e3cee79012666ee7680c6f8f64267d75fd8e8d9ff450df11f8d6c102c89ce0d536e6cd8dc7480cb9dbcff43effef9aa70534fe8b563f48f296c310a
diff --git a/games-strategy/dopewars/dopewars-1.6.2.ebuild b/games-strategy/dopewars/dopewars-1.6.2.ebuild
new file mode 100644
index 000000000000..cd4655886e70
--- /dev/null
+++ b/games-strategy/dopewars/dopewars-1.6.2.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools desktop toolchain-funcs
+
+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="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/libsdl2
+ media-libs/sdl2-mixer
+ )
+"
+DEPEND="${RDEPEND}
+ nls? ( 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)
+ $(use_enable nls)
+ $(use_with sdl)
+ --without-esd
+ --enable-networking
+ --enable-plugins
+ ${myservconf}
+ )
+
+ 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
+}
diff --git a/games-strategy/dopewars/metadata.xml b/games-strategy/dopewars/metadata.xml
index aca5e3fff917..b8a14ab9ab42 100644
--- a/games-strategy/dopewars/metadata.xml
+++ b/games-strategy/dopewars/metadata.xml
@@ -7,5 +7,6 @@
</maintainer>
<upstream>
<remote-id type="sourceforge">dopewars</remote-id>
+ <remote-id type="github">benmwebb/dopewars</remote-id>
</upstream>
</pkgmetadata>