summaryrefslogtreecommitdiff
path: root/games-board
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-03-07 01:06:27 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-03-07 01:06:27 +0000
commit905e7d07da40378586e71ece65bd962b0b00c578 (patch)
tree1172da3268461b04a82fd99d5a6bbbaa16a7561e /games-board
parentf8f68d6f93dd8510c09261f47d4f64cadf303815 (diff)
gentoo auto-resync : 07:03:2024 - 01:06:26
Diffstat (limited to 'games-board')
-rw-r--r--games-board/Manifest.gzbin10188 -> 10188 bytes
-rw-r--r--games-board/gnubg/Manifest3
-rw-r--r--games-board/gnubg/files/gnubg-1.08.002-gtk3_relational.patch12
-rw-r--r--games-board/gnubg/gnubg-1.08.002.ebuild104
4 files changed, 119 insertions, 0 deletions
diff --git a/games-board/Manifest.gz b/games-board/Manifest.gz
index 7524450ea5fa..d95a9296ab89 100644
--- a/games-board/Manifest.gz
+++ b/games-board/Manifest.gz
Binary files differ
diff --git a/games-board/gnubg/Manifest b/games-board/gnubg/Manifest
index 3ede0a6c6d7a..9d882941b98c 100644
--- a/games-board/gnubg/Manifest
+++ b/games-board/gnubg/Manifest
@@ -1,5 +1,8 @@
+AUX gnubg-1.08.002-gtk3_relational.patch 782 BLAKE2B 371e9010ddebfbd75d1363cef246327962b746db2f832e0af28db30ae5a999a1e83290eac01442fd87e6e2c9fd2ed59405e1a2cc33fbb851705100060e1a5e15 SHA512 4debf3f222d2a3b412f7dde5906a25fbbdbd670db6d2b476878597b4cf736e0e94687b0a1af402f57bb0a2adfca75bbdb7691db46655cce364e65d5b2acc0680
DIST gnubg-release-1.07.001-sources.tar.gz 13729158 BLAKE2B 3c5a0ffd38d2f1a16b3bf188a6ed6ba38e9527d681ad510b2e318b6f5da7d5fb1e0728f4f562fe4d770710489e7eae1396318e26717a51434fa8b4c3258570f9 SHA512 0643af4c3c6e32774e3572462755e7eed094fcc9621dc8262ce0f794657f00a3dbc22d0f916580982a6dacc08488544cd5fec5bf7e2c60ca50f83e2a60804e08
DIST gnubg-release-1.08.001-sources.tar.gz 14019262 BLAKE2B ac207c54a6b0b4af59eefe0d2d2967393fa6fe6497c29c514baba596a446a0481bc07a4fa74f492de270260c942df81a1ef28bcdc9187cc3b2d3c0507cd6f27c SHA512 a3a547368f8852d0b5186340a3b893842237358b48dc4e6893920d57ea0f2fe72d958b4d0de16be55616fc687889118b016a6d3a859a1651fc77adcefcd7a7eb
+DIST gnubg-release-1.08.002-sources.tar.gz 14045962 BLAKE2B 328639d4ab96d8ab8025971819a2b6c120102ca757f29c8e5e8d0ac8f77a5abb4b75fd006d1c7090c2d04b9d66e1185069ce51c5f90437464d430f9c53d1875c SHA512 0e68c03457ca2cc925fe510752e24b03147db36e2e489c9e2912dd72f55f42514d98568fec1ce81176e7b8e3aafd68034659fe84e89e07b057224095f3be8924
EBUILD gnubg-1.07.001.ebuild 2359 BLAKE2B d8e63dbbf47c1e399927ae4314195e534dab67196d68b18c76c3132289dfc7a32956d27783a6455dcf84399a5d9031e4550b60111e876680b3faf1c8c508ade4 SHA512 c3bcee3239e571326780f9cfa6161cdf373b07c67877849c699fecf4f90ddd868f590fef8da43ffa770dbccbc329f4db5b49521e266dae9c9cba9cd94cf32bc9
EBUILD gnubg-1.08.001.ebuild 2359 BLAKE2B b3d1dcdc2c675a72d6cf8ab5a70c2121c01dcef641c9510ce79ce2e2cc863995fad1e4c2551a83b92a7bd3923c2eb781e1a27f42e4db7020e03cb777fa869d6b SHA512 666e360e015c9381b9f4a19a4ff4851befc8262572ed6ee0dbfcef83445bb3d8b06ecb343ecfd5b5911420e0aa218c073d4a2026515445b21c020644887240bd
+EBUILD gnubg-1.08.002.ebuild 2413 BLAKE2B af2fdc98441ea23c4514e3abb5aafaf6c3917ea16e74d4c20355b9cf609848bac7b24fdd57e0c189cb54fc6181f4fee64d9f3c1258d37b36b932620d003ae0d6 SHA512 056e30237f007ba0456aa31a33a63f8cbd67b209487ca334146d735c700656470a1a6025bdf453f6bcb52a030a410a24a9c5f3e7334eea5b4102f3f3aa4701ea
MISC metadata.xml 455 BLAKE2B e5933eca885ed18303b49be65c026034d77d3d5f9ce85e4b1fc76c0e9aa1a0e914ed3151634c172e199f00bd26b5104ad5d87412cdc578a4c45b4122b5485385 SHA512 e3ba0ddc20123d70cedacc413169ab896440b89a93e3945ea5bf3aa9b41f9a91b2a0912f6dec07d16c08329886355a32da3ff2828a4d4eba6e2ef3aec2b7c8dd
diff --git a/games-board/gnubg/files/gnubg-1.08.002-gtk3_relational.patch b/games-board/gnubg/files/gnubg-1.08.002-gtk3_relational.patch
new file mode 100644
index 000000000000..c9e7027c651d
--- /dev/null
+++ b/games-board/gnubg/files/gnubg-1.08.002-gtk3_relational.patch
@@ -0,0 +1,12 @@
+diff -Naur gnubg-1.08.002.orig/gtkrelational.c gnubg-1.08.002/gtkrelational.c
+--- gnubg-1.08.002.orig/gtkrelational.c 2024-02-24 22:07:39.000000000 +0100
++++ gnubg-1.08.002/gtkrelational.c 2024-03-06 22:45:43.113919993 +0100
+@@ -502,7 +502,7 @@
+ // window setup
+ // window = (GtkWindow*)gtk_window_new(GTK_WINDOW_TOPLEVEL);
+ //window = GTKCreateDialog("", DT_INFO, NULL, DIALOG_FLAG_MINMAXBUTTONS, NULL, NULL);
+- window = GTKCreateDialog(_("History plot"), DT_INFO, pwDialog, DIALOG_FLAG_MINMAXBUTTONS, NULL, NULL);
++ window = GTKCreateDialog(_("History plot"), DT_INFO, NULL, DIALOG_FLAG_MINMAXBUTTONS, NULL, NULL);
+
+ gtk_window_set_default_size (GTK_WINDOW(window), WIDTH, HEIGHT);
+ gtk_window_set_position (GTK_WINDOW(window), GTK_WIN_POS_CENTER);
diff --git a/games-board/gnubg/gnubg-1.08.002.ebuild b/games-board/gnubg/gnubg-1.08.002.ebuild
new file mode 100644
index 000000000000..200ed22e57b9
--- /dev/null
+++ b/games-board/gnubg/gnubg-1.08.002.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+inherit autotools desktop python-single-r1 xdg
+
+DESCRIPTION="GNU BackGammon"
+HOMEPAGE="https://www.gnu.org/software/gnubg/"
+SRC_URI="mirror://gnu/${PN}/${PN}-release-${PV}-sources.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc64 ~x86"
+IUSE="
+ cpu_flags_x86_avx cpu_flags_x86_sse cpu_flags_x86_sse2
+ gui opengl python sqlite"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )
+ opengl? ( gui )"
+
+RDEPEND="
+ dev-libs/cglm
+ dev-libs/glib:2
+ dev-libs/gmp:=
+ media-fonts/dejavu
+ media-libs/freetype:2
+ media-libs/libpng:=
+ net-misc/curl
+ sys-libs/readline:=
+ virtual/libintl
+ x11-libs/cairo[svg(+)]
+ x11-libs/pango
+ gui? (
+ media-libs/libcanberra[gtk3]
+ x11-libs/gdk-pixbuf:2
+ x11-libs/gtk+:3
+ )
+ opengl? ( media-libs/libepoxy )
+ python? ( ${PYTHON_DEPS} )
+ sqlite? ( dev-db/sqlite:3 )"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ dev-build/autoconf-archive
+ sys-devel/gettext
+ virtual/pkgconfig
+ python? ( ${PYTHON_DEPS} )"
+
+PATCHES=( "${FILESDIR}"/${P}-gtk3_relational.patch )
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ #This was provided by gtkglext before
+ sed -i "s/\$(GTKGLEXT_LIBS)/-lGL/" Makefile.am || die
+
+ sed -i "s|/tmp|${T}|" credits.sh || die #298275
+ sed -i 's/fonts //' Makefile.am || die #335774
+ sed -i 's/gzip/true/' doc/Makefile.am || die
+
+ # use system's copy so py3.10 distutils warning doesn't trigger a fatal error
+ rm m4/ax_python_devel.m4 || die
+
+ eautoreconf
+}
+
+src_configure() {
+ local simd=no
+ use cpu_flags_x86_sse && simd=sse
+ use cpu_flags_x86_sse2 && simd=sse2
+ use cpu_flags_x86_avx && simd=avx
+
+ local econfargs=(
+ $(use_with gui gtk)
+ $(use_with gui gtk3)
+ $(use_with opengl board3d)
+ $(use_with python)
+ $(use_with sqlite)
+ --disable-cputest
+ --docdir="${EPREFIX}"/usr/share/doc/${PF}/html
+ --enable-simd=${simd}
+ )
+
+ econf "${econfargs[@]}"
+}
+
+src_install() {
+ default
+
+ mv "${ED}"/usr/share/doc/${PF}{/html/*.pdf,} || die
+
+ insinto /usr/share/${PN}
+ doins ${PN}.weights *.bd
+
+ dosym ../../fonts/dejavu/DejaVuSans.ttf /usr/share/${PN}/fonts/Vera.ttf
+ dosym ../../fonts/dejavu/DejaVuSans-Bold.ttf /usr/share/${PN}/fonts/VeraBd.ttf
+ dosym ../../fonts/dejavu/DejaVuSerif-Bold.ttf /usr/share/${PN}/fonts/VeraSeBd.ttf
+
+ use gui && make_desktop_entry "gnubg -w" "GNU Backgammon"
+}