gtkperf: remove

This commit is contained in:
aleksana 2024-09-14 21:41:11 +08:00
parent 6abef67bb4
commit 578b246a07
4 changed files with 1 additions and 88 deletions

View File

@ -1,60 +0,0 @@
--- gtkperf/src/callbacks.c 2005-10-30 11:33:42.000000000 +0000
+++ gtkperf-patched/src/callbacks.c 2008-05-23 23:41:17.000000000 +0100
@@ -219,6 +219,13 @@
}
+void
+on_cmdline_test(char *optarg)
+{
+ appdata->test_type = atoi(optarg);
+}
+
+
/* Initialize appdata */
void
setup_appdata(AppData * appdata_in)
@@ -398,7 +405,7 @@
appdata->pixbuf_drawing = gdk_pixbuf_new_from_file (filename, NULL);
gtk_combo_box_set_active (GTK_COMBO_BOX (appdata->combobox_testtype),
- 0);
+ appdata->test_type);
/* create end mark to info textview */
GtkTextIter iter;
--- gtkperf/src/callbacks.h 2005-10-30 10:21:23.000000000 +0000
+++ gtkperf-patched/src/callbacks.h 2008-05-23 23:22:30.000000000 +0100
@@ -13,6 +13,7 @@
void on_cmdline_run_all ();
void on_cmdline_help () ;
void on_cmdline_count (char *optarg) ;
+void on_cmdline_test (char *optarg) ;
void on_window_main_show (AppData * data);
gboolean
--- gtkperf/src/main.c 2005-10-30 11:26:42.000000000 +0000
+++ gtkperf-patched/src/main.c 2008-05-23 23:44:02.000000000 +0100
@@ -65,9 +65,10 @@
{"help", 0, 0, 0},
{"automatic", 0, 0, 0},
{"count", 1, 0, 0},
+ {"test", 1, 0, 0},
{0, 0, 0, 0}
};
- c = getopt_long (argc, argv, "hac:",
+ c = getopt_long (argc, argv, "hac:t:",
long_options, &option_index);
if (c == -1)
break;
@@ -104,6 +105,10 @@
on_cmdline_count(optarg);
break;
+ case 't':
+ on_cmdline_test(optarg);
+ break;
+
default:
case 'h':
on_cmdline_help ();

View File

@ -1,26 +0,0 @@
{ lib, stdenv, fetchurl, gtk2, pkg-config, libintl }:
stdenv.mkDerivation rec {
pname = "gtkperf";
version = "0.40.0";
src = fetchurl {
url = "mirror://sourceforge/${pname}/${pname}_${lib.versions.majorMinor version}.tar.gz";
sha256 = "0yxj3ap3yfi76vqg6xjvgc16nfi9arm9kp87s35ywf10fd73814p";
};
hardeningDisable = [ "format" ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gtk2 libintl ];
# https://openbenchmarking.org/innhold/7e9780c11550d09aa67bdba71248facbe2d781db
patches = [ ./bench.patch ];
meta = with lib; {
description = "Application designed to test GTK performance";
mainProgram = "gtkperf";
homepage = "https://gtkperf.sourceforge.net/";
license = with licenses; [ gpl2 ];
maintainers = [ ];
};
}

View File

@ -644,6 +644,7 @@ mapAliases ({
grub = throw "grub1 was removed after not being maintained upstream for a decade. Please switch to another bootloader"; # Added 2023-04-11
gtetrinet = throw "'gtetrinet' has been removed because it depends on GNOME 2 libraries"; # Added 2024-06-27
gtkcord4 = dissent; # Added 2024-03-10
gtkperf = throw "'gtkperf' has been removed due to lack of maintenance upstream"; # Added 2024-09-14
gtkpod = throw "'gtkpod' was removed due to one of its dependencies, 'anjuta' being unmaintained"; # Added 2024-01-16
guardian-agent = throw "'guardian-agent' has been removed, as it hasn't been maintained upstream in years and accumulated many vulnerabilities"; # Added 2024-06-09
guile-disarchive = disarchive; # Added 2023-10-27

View File

@ -8441,8 +8441,6 @@ with pkgs;
gtkgnutella = callPackage ../tools/networking/p2p/gtk-gnutella { };
gtkperf = callPackage ../development/tools/misc/gtkperf { };
gtkradiant = callPackage ../applications/misc/gtkradiant { };
gtk-frdp = callPackage ../development/libraries/gtk-frdp { };