Unverified Commit d08d8fdd authored by Jörg Thalheim's avatar Jörg Thalheim Committed by GitHub
Browse files

treewide: remove some unmaintained gtk2 packages (#341960)

parents f451c385 c9ccc888
Loading
Loading
Loading
Loading
+0 −71
Original line number Diff line number Diff line
{ stdenv
, lib
, fetchFromGitHub
, pkg-config
, mono
, meson
, ninja
, gtk-sharp-2_0
, gettext
, makeWrapper
, glib
, gtk2-x11
, libxslt
, docbook_xsl
, python3
, itstool
}:

stdenv.mkDerivation rec {
  pname = "bless";
  version = "0.6.3";

  src = fetchFromGitHub {
    owner = "afrantzis";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-rS+vJX0y9v1TiPsRfABroHiTuENQKEOxNsyKwagRuHM=";
  };

  buildInputs = [
    gtk-sharp-2_0
    mono
    # runtime only deps
    glib
    gtk2-x11
  ];

  nativeBuildInputs = [
    pkg-config
    meson
    ninja
    gettext
    makeWrapper
    libxslt
    docbook_xsl
    python3
    itstool
  ];

  mesonFlags = [
    "-Dtests=false" # requires NUnit
  ];

  postPatch = ''
    patchShebangs .
  '';

  preFixup = ''
    MPATH="${gtk-sharp-2_0}/lib/mono/gtk-sharp-2.0:${glib.out}/lib:${gtk2-x11}/lib:${gtk-sharp-2_0}/lib"
    wrapProgram $out/bin/bless --prefix MONO_PATH : "$MPATH" --prefix LD_LIBRARY_PATH : "$MPATH" --prefix PATH : ${lib.makeBinPath [ mono ]}
  '';

  meta = with lib; {
    homepage = "https://github.com/afrantzis/bless";
    description = "Gtk# Hex Editor";
    maintainers = [ maintainers.mkg20001 ];
    license = licenses.gpl2;
    platforms = platforms.linux;
    mainProgram = "bless";
  };
}
+0 −44
Original line number Diff line number Diff line
{lib, stdenv, fetchurl, fetchpatch, gtk2, perlPackages, pkg-config } :

let version = "0.4"; in
stdenv.mkDerivation {
  pname = "gcolor2";
  inherit version;
  arch = if stdenv.hostPlatform.system == "x86_64-linux" then "amd64" else "386";

  src = fetchurl {
    url = "mirror://sourceforge/project/gcolor2/gcolor2/${version}/gcolor2-${version}.tar.bz2";
    sha256 = "1siv54vwx9dbfcflklvf7pkp5lk6h3nn63flg6jzifz9wp0c84q6";
  };

  preConfigure = ''
    sed -i 's/\[:space:\]/[&]/g' configure
  '';

  # from https://github.com/PhantomX/slackbuilds/tree/master/gcolor2/patches
  patches = (if stdenv.hostPlatform.system == "x86_64-linux" then
        [ ./gcolor2-amd64.patch ] else
        [ ])
   ++ [
     # Pull patch pending upstream inclusion for -fno-common toolchains:
     #   https://sourceforge.net/p/gcolor2/patches/8/
     (fetchpatch {
       name = "fno-common.patch";
       url = "https://sourceforge.net/p/gcolor2/patches/8/attachment/0001-gcolor2-fix-build-on-gcc-10-fno-common.patch";
       sha256 = "0187zc8as9g3d6mpm3isg87jfpryj0hajb4inwvii8gxrzbi5l5f";
     })
  ];

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [ gtk2 ]
    ++ (with perlPackages; [ perl XMLParser ]);

  meta = {
    description = "Simple GTK 2 color selector";
    homepage = "https://gcolor2.sourceforge.net/";
    license = lib.licenses.gpl2Plus;
    maintainers = with lib.maintainers; [ notthemessiah ];
    platforms = with lib.platforms; unix;
    mainProgram = "gcolor2";
  };
}
+0 −46
Original line number Diff line number Diff line
diff --exclude-from=/home/dang/bin/scripts/diffrc -up -ruN gcolor2-0.4.orig/src/callbacks.c gcolor2-0.4/src/callbacks.c
--- gcolor2-0.4.orig/src/callbacks.c	2005-07-12 14:06:12.000000000 -0400
+++ gcolor2-0.4/src/callbacks.c	2007-02-17 19:19:38.000000000 -0500
@@ -4,6 +4,9 @@
 
 #include <gtk/gtk.h>
 #include <stdio.h>
+#include <string.h>
+#include <glib.h>
+#include <glib/gprintf.h>
 
 #include "callbacks.h"
 #include "interface.h"
@@ -172,6 +175,9 @@ void on_copy_color_to_clipboard_activate
 	gtk_clipboard_set_text (cb, hex, strlen (hex));
 }
 
+void add_rgb_file (gchar *filename, gchar *type);
+gchar* get_system_file (void);
+
 void on_show_system_colors_activate (GtkMenuItem *menuitem, gpointer user_data)
 {
 	if (gtk_check_menu_item_get_active (GTK_CHECK_MENU_ITEM (menuitem)))
@@ -266,6 +272,8 @@ void on_save_button_clicked (GtkButton *
 	gtk_widget_destroy (savedialog);
 }
 
+void add_list_color (gchar *spec, gchar *name, gchar *type, gboolean is_new_color);
+
 void add_color_to_treeview ()
 {
 	GtkTreeView      *treeview;
diff --exclude-from=/home/dang/bin/scripts/diffrc -up -ruN gcolor2-0.4.orig/src/main.c gcolor2-0.4/src/main.c
--- gcolor2-0.4.orig/src/main.c	2005-07-11 10:55:49.000000000 -0400
+++ gcolor2-0.4/src/main.c	2007-02-17 19:18:23.000000000 -0500
@@ -4,6 +4,10 @@
 
 #include <gtk/gtk.h>
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <glib.h>
+#include <glib/gprintf.h>
 
 #include "interface.h"
 #include "support.h"
+0 −31
Original line number Diff line number Diff line
{ lib, stdenv, fetchurl, intltool, pkg-config, gtk2, fetchpatch }:

stdenv.mkDerivation rec {
  pname = "gpicview";
  version = "0.2.4";

  src = fetchurl {
    url = "mirror://sourceforge/lxde/gpicview-${version}.tar.gz";
    sha256 = "1svcy1c8bgk0pl12yhyv16h2fl52x5vzzcv57z6qdcv5czgvgglr";
  };

  patches = [
    (fetchpatch {
      url = "https://raw.githubusercontent.com/nonas/debian-clang/master/buildlogs/gpicview/gpicview-0.2.4/debian/patches/clang_FTBFS_Wreturn-type.patch";
      sha256 = "02dm966bplnv10knpdx7rlpjipk884156ggd9ij05zhza0jl8xcs";
    })
  ];

  nativeBuildInputs = [ pkg-config intltool ];

  buildInputs = [ gtk2 ];

  meta = with lib; {
    description = "Simple and fast image viewer for X";
    homepage = "https://lxde.sourceforge.net/gpicview/";
    license = licenses.gpl2;
    maintainers = with maintainers; [ lovek323 ];
    platforms = platforms.unix;
    mainProgram = "gpicview";
  };
}
+0 −29
Original line number Diff line number Diff line
{ lib, stdenv, fetchurl, pkg-config, gtk2, libpng }:

stdenv.mkDerivation rec {
  pname = "gqview";
  version = "2.1.5";

  src = fetchurl {
    url = "mirror://sourceforge/gqview/gqview-${version}.tar.gz";
    sha256 = "0ilm5s7ps9kg4f5hzgjhg0xhn6zg0v9i7jnd67zrx9h7wsaa9zhj";
  };

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [ gtk2 libpng ];

  hardeningDisable = [ "format" ];

  env.NIX_CFLAGS_COMPILE = "-fcommon";
  NIX_LDFLAGS = "-lm";

  meta = with lib; {
    description = "Fast image viewer";
    homepage = "https://gqview.sourceforge.net";
    license = licenses.gpl2;
    platforms = platforms.unix;
    maintainers = [ ];
    mainProgram = "gqview";
  };
}
Loading