commit:     078484482cb871933e197d9688fad20538f4a992
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 21 10:37:29 2026 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Feb 21 16:39:57 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07848448

games-puzzle/sgt-puzzles: drop 20190415

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 games-puzzle/sgt-puzzles/Manifest                  |   1 -
 .../files/sgt-puzzles-20161207-builtin-help.patch  | 107 --------------------
 .../sgt-puzzles/sgt-puzzles-20190415.ebuild        | 112 ---------------------
 3 files changed, 220 deletions(-)

diff --git a/games-puzzle/sgt-puzzles/Manifest 
b/games-puzzle/sgt-puzzles/Manifest
index 9246f1f1d298..35a74b390a3f 100644
--- a/games-puzzle/sgt-puzzles/Manifest
+++ b/games-puzzle/sgt-puzzles/Manifest
@@ -1,2 +1 @@
-DIST puzzles-20190415.e2135d5.tar.gz 3286744 BLAKE2B 
6b19cde3f95b5375bde74923a5f8e3deb9abb7d4d737ad5f2d18aa7895b973a9ca1ed4a495cf80da8390ed7fb63f1eb973c8053d52145e5752c56e38d3ac19d7
 SHA512 
5f38c96cff4e745a1c1615762c0e5f3f3dd056ff7dbf0f80a5953e658ae1460503c6394fe29301f5682485d6a6121869853a270dc60327821a3059ca6d971fa1
 DIST sgt-puzzles-20250904.tar.gz 2468223 BLAKE2B 
1da3846645a073f0f86865321cdf238603da271c12cc5761df572ec1019035213067e72100cbf931e5f2103af43b82c8c5ddd32daadc4de105c414e1e8015ea1
 SHA512 
6faa3c6d735632f7434d8cd888f97f5c69cb519d0a872292367fcb10836487fac4bd4df172c4c8e93e50be70308834790c662ec2c2d44cbacf5075c18b2c990f

diff --git 
a/games-puzzle/sgt-puzzles/files/sgt-puzzles-20161207-builtin-help.patch 
b/games-puzzle/sgt-puzzles/files/sgt-puzzles-20161207-builtin-help.patch
deleted file mode 100644
index a5c3a3695bd1..000000000000
--- a/games-puzzle/sgt-puzzles/files/sgt-puzzles-20161207-builtin-help.patch
+++ /dev/null
@@ -1,107 +0,0 @@
-Based on 
http://sources.debian.net/patches/sgt-puzzles/20160429.b31155b-1/202_online-help.diff/
-Simply opens HTML help files with xdg-open
-
-Author: Ben Hutchings <[email protected]>
-Description: Add HTML-based online help
-
-This works along the same lines as the Windows implementation,
-though we have to try a bit harder to find a help browser.
-
---- a/gtk.c    2016-12-08 07:53:06.812409184 -0500
-+++ b/gtk.c    2016-12-08 07:58:06.426415886 -0500
-@@ -2,6 +2,10 @@
-  * gtk.c: GTK front end for my puzzle collection.
-  */
- 
-+#ifndef _POSIX_C_SOURCE
-+#define _POSIX_C_SOURCE 1 /* for PATH_MAX */
-+#endif
-+
- #include <stdio.h>
- #include <assert.h>
- #include <stdlib.h>
-@@ -10,6 +14,9 @@
- #include <string.h>
- #include <errno.h>
- #include <math.h>
-+#include <limits.h>
-+#include <unistd.h>
-+#include <locale.h>
- 
- #include <sys/time.h>
- #include <sys/resource.h>
-@@ -2270,6 +2277,37 @@
-     resize_fe(fe);
- }
- 
-+static void show_help(frontend *fe, const char *topic)
-+{
-+    char path[PATH_MAX + 1];
-+
-+    sprintf(path, "%s/%s.html", HTMLDIR, topic);
-+    if (access(path, R_OK) != 0) {
-+        error_box(fe->window, "Help file could not be found");
-+        return;
-+    }
-+
-+    const char *argv[3];
-+
-+    argv[0] = "xdg-open";
-+    argv[1] = path;
-+    argv[2] = NULL;
-+    if (! g_spawn_async(NULL, (char **)argv, NULL,
-+                      G_SPAWN_SEARCH_PATH,
-+                      NULL, NULL, NULL, NULL))
-+        error_box(fe->window, "Failed to open help file");
-+}
-+
-+static void menu_help_contents_event(GtkMenuItem *menuitem, gpointer data)
-+{
-+    show_help((frontend *)data, "index");
-+}
-+
-+static void menu_help_specific_event(GtkMenuItem *menuitem, gpointer data)
-+{
-+    show_help((frontend *)data, thegame.htmlhelp_topic);
-+}
-+
- static void menu_about_event(GtkMenuItem *menuitem, gpointer data)
- {
-     frontend *fe = (frontend *)data;
-@@ -2590,6 +2628,25 @@
-     menu = gtk_menu_new();
-     gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), menu);
- 
-+    menuitem = gtk_menu_item_new_with_label("Contents");
-+    gtk_container_add(GTK_CONTAINER(menu), menuitem);
-+    g_signal_connect(G_OBJECT(menuitem), "activate",
-+                     G_CALLBACK(menu_help_contents_event), fe);
-+    gtk_widget_show(menuitem);
-+
-+    if (thegame.htmlhelp_topic) {
-+        char *item;
-+        assert(thegame.name);
-+        item = snewn(9+strlen(thegame.name), char); /*ick*/
-+        sprintf(item, "Help on %s", thegame.name);
-+        menuitem = gtk_menu_item_new_with_label(item);
-+        sfree(item);
-+        gtk_container_add(GTK_CONTAINER(menu), menuitem);
-+        g_signal_connect(G_OBJECT(menuitem), "activate",
-+                         G_CALLBACK(menu_help_specific_event), fe);
-+        gtk_widget_show(menuitem);
-+    }
-+
-     menuitem = gtk_menu_item_new_with_label("About");
-     gtk_container_add(GTK_CONTAINER(menu), menuitem);
-     g_signal_connect(G_OBJECT(menuitem), "activate",
---- a/Recipe
-+++ b/Recipe
-@@ -95,6 +95,7 @@ Puzzles.dmg: Puzzles
-
- !begin am
- bin_PROGRAMS = $(GAMES)
-+GTK_CFLAGS += -DHTMLDIR="\"$(htmldir)\""
- !end
- !begin am_begin
- GAMES =
-

diff --git a/games-puzzle/sgt-puzzles/sgt-puzzles-20190415.ebuild 
b/games-puzzle/sgt-puzzles/sgt-puzzles-20190415.ebuild
deleted file mode 100644
index 39e32f02b666..000000000000
--- a/games-puzzle/sgt-puzzles/sgt-puzzles-20190415.ebuild
+++ /dev/null
@@ -1,112 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit autotools desktop toolchain-funcs xdg-utils
-
-if [[ ${PV} == "99999999" ]] ; then
-       inherit git-r3
-       EGIT_REPO_URI="https://git.tartarus.org/simon/puzzles.git";
-       GENTOO_ICONS="20160315"
-       
SRC_URI="https://dev.gentoo.org/~np-hardass/distfiles/${PN}/${PN}-icons-${GENTOO_ICONS}.tar.xz";
-else
-       MAGIC=e2135d5
-       
SRC_URI="https://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-${PV}.${MAGIC}.tar.gz";
-       S=${WORKDIR}/puzzles-${PV}.${MAGIC}
-       KEYWORDS="~amd64 ~x86"
-fi
-
-DESCRIPTION="Simon Tatham's Portable Puzzle Collection"
-HOMEPAGE="https://www.chiark.greenend.org.uk/~sgtatham/puzzles/";
-
-LICENSE="MIT"
-SLOT="0"
-IUSE="+doc"
-
-COMMON_DEPEND="
-       x11-libs/gtk+:3"
-
-RDEPEND="${COMMON_DEPEND}
-       x11-misc/xdg-utils" # Used by builtin help patch
-
-DEPEND="${COMMON_DEPEND}"
-
-BDEPEND="
-       dev-lang/perl
-       virtual/pkgconfig
-       doc? ( >=app-text/halibut-1.2 )"
-
-PATCHES=( "${FILESDIR}/${PN}-20161207-builtin-help.patch" )
-
-src_unpack() {
-       default
-       if [[ ${PV} == "99999999" ]]; then
-               git-r3_src_unpack
-       fi
-}
-
-src_prepare() {
-       default
-
-       sed -i \
-               -e 's|-Werror||g' \
-               configure.ac || die
-       sed -i \
-               -e 's/-O2 -Wall .* -g/-Wall/' \
-               -e "s/libstr =/libstr = '\$(LDFLAGS) ' ./" \
-               mkfiles.pl || die
-       ./mkfiles.pl || die
-       eautoreconf
-
-       # Import icons from latest Gentoo tarball for live
-       if [[ ${PV} == "99999999" ]]; then
-               cp -R ../${PN}-icons/icons . || die
-       fi
-}
-
-src_configure() {
-       econf \
-               --program-prefix="${PN}_" \
-               --with-gtk=3
-}
-
-src_compile() {
-       emake CC="$(tc-getCC)"
-       if use doc ; then
-               halibut --text --html --info --pdf --ps puzzles.but || die
-       fi
-}
-
-src_install() {
-       default
-
-       local file name
-       for file in *.R ; do
-               [[ ${file} == "nullgame.R" ]] && continue
-               name=$(awk -F: '/exe:/ { print $3 }' "${file}")
-               file=${file%.R}
-               newicon -s 48 icons/${file}-48d24.png ${PN}_${file}.png
-               make_desktop_entry "${PN}_${file}" "${name}" "${PN}_${file}" 
"LogicGame;X-${PN};"
-       done
-
-       if use doc ; then
-               local DOCS=( puzzles.{pdf,ps,txt} )
-               local HTML_DOCS=( *.html )
-               einstalldocs
-               doinfo puzzles.info{,-1,-2,-3}
-       fi
-
-       insinto /etc/xdg/menus/applications-merged
-       doins "${FILESDIR}/${PN}.menu"
-       insinto /usr/share/desktop-directories
-       doins "${FILESDIR}/${PN}.directory"
-}
-
-pkg_postinst() {
-       xdg_icon_cache_update
-}
-
-pkg_postrm() {
-       xdg_icon_cache_update
-}

Reply via email to