about summary refs log tree commit diff
path: root/pkgs/desktops/gnome/core/gnome-color-manager
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/desktops/gnome/core/gnome-color-manager')
-rw-r--r--pkgs/desktops/gnome/core/gnome-color-manager/0001-Fix-build-with-Exiv2-0.28.patch73
-rw-r--r--pkgs/desktops/gnome/core/gnome-color-manager/default.nix70
2 files changed, 0 insertions, 143 deletions
diff --git a/pkgs/desktops/gnome/core/gnome-color-manager/0001-Fix-build-with-Exiv2-0.28.patch b/pkgs/desktops/gnome/core/gnome-color-manager/0001-Fix-build-with-Exiv2-0.28.patch
deleted file mode 100644
index 96688c8d80867..0000000000000
--- a/pkgs/desktops/gnome/core/gnome-color-manager/0001-Fix-build-with-Exiv2-0.28.patch
+++ /dev/null
@@ -1,73 +0,0 @@
-From 0417f60c7e760e1ebc6acd3dc23818b38c3929e7 Mon Sep 17 00:00:00 2001
-From: Weijia Wang <contact@weijia.wang>
-Date: Mon, 7 Aug 2023 21:51:30 +0200
-Subject: [PATCH] Fix build with Exiv2 0.28
-
----
- src/gcm-helper-exiv.cpp | 20 ++++++++++++++++++--
- 1 file changed, 18 insertions(+), 2 deletions(-)
-
-diff --git a/src/gcm-helper-exiv.cpp b/src/gcm-helper-exiv.cpp
-index 7ec69948..23c8b320 100644
---- a/src/gcm-helper-exiv.cpp
-+++ b/src/gcm-helper-exiv.cpp
-@@ -22,6 +22,10 @@
- #include <exiv2/image.hpp>
- #include <exiv2/exif.hpp>
- 
-+#if EXIV2_MAJOR_VERSION >= 1 || (EXIV2_MAJOR_VERSION == 0 && EXIV2_MINOR_VERSION >= 28)
-+#define HAVE_EXIV2_0_28
-+#endif
-+
- #if EXIV2_MAJOR_VERSION >= 1 || (EXIV2_MAJOR_VERSION == 0 && EXIV2_MINOR_VERSION >= 27)
- #define HAVE_EXIV2_ERROR_CODE
- #include <exiv2/error.hpp>
-@@ -33,7 +37,11 @@
- int
- main (int argc, char* const argv[])
- {
-+#ifdef HAVE_EXIV2_0_28
-+	Exiv2::Image::UniquePtr image;
-+#else
- 	Exiv2::Image::AutoPtr image;
-+#endif
- 	Exiv2::ExifData exifData;
- 	std::string filename;
- 	std::string make;
-@@ -57,7 +65,9 @@ main (int argc, char* const argv[])
- 		if (argc == 2)
- 			filename = argv[1];
- 		if (filename.empty())
--#ifdef HAVE_EXIV2_ERROR_CODE
-+#ifdef HAVE_EXIV2_0_28
-+			throw Exiv2::Error(Exiv2::ErrorCode::kerErrorMessage, "No filename specified");
-+#elif defined(HAVE_EXIV2_ERROR_CODE)
- 			throw Exiv2::Error(Exiv2::kerErrorMessage, "No filename specified");
- #else
- 			throw Exiv2::Error(1, "No filename specified");
-@@ -70,7 +80,9 @@ main (int argc, char* const argv[])
- 		if (exifData.empty()) {
- 			std::string error(argv[1]);
- 			error += ": No Exif data found in the file";
--#ifdef HAVE_EXIV2_ERROR_CODE
-+#ifdef HAVE_EXIV2_0_28
-+			throw Exiv2::Error(Exiv2::ErrorCode::kerErrorMessage, error);
-+#elif defined(HAVE_EXIV2_ERROR_CODE)
- 			throw Exiv2::Error(Exiv2::kerErrorMessage, error);
- #else
- 			throw Exiv2::Error(1, error);
-@@ -89,7 +101,11 @@ main (int argc, char* const argv[])
- 		std::cout << model << "\n";
- 		std::cout << make << "\n";
- 		std::cout << serial << "\n";
-+#ifdef HAVE_EXIV2_0_28
-+	} catch (Exiv2::Error& e) {
-+#else
- 	} catch (Exiv2::AnyError& e) {
-+#endif
- 		std::cout << "Failed to load: " << e << "\n";
- 		retval = -1;
- 	}
--- 
-2.39.2 (Apple Git-143)
-
diff --git a/pkgs/desktops/gnome/core/gnome-color-manager/default.nix b/pkgs/desktops/gnome/core/gnome-color-manager/default.nix
deleted file mode 100644
index 7c9d3df9f1c02..0000000000000
--- a/pkgs/desktops/gnome/core/gnome-color-manager/default.nix
+++ /dev/null
@@ -1,70 +0,0 @@
-{ lib, stdenv
-, fetchurl
-, meson
-, ninja
-, pkg-config
-, gettext
-, itstool
-, desktop-file-utils
-, gnome
-, glib
-, gtk3
-, libexif
-, libtiff
-, colord
-, colord-gtk
-, libcanberra-gtk3
-, lcms2
-, vte
-, exiv2
-}:
-
-stdenv.mkDerivation rec {
-  pname = "gnome-color-manager";
-  version = "3.32.0";
-
-  src = fetchurl {
-    url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
-    sha256 = "1vpxa2zjz3lkq9ldjg0fl65db9s6b4kcs8nyaqfz3jygma7ifg3w";
-  };
-
-  patches = [
-    ./0001-Fix-build-with-Exiv2-0.28.patch
-  ];
-
-  nativeBuildInputs = [
-    meson
-    ninja
-    pkg-config
-    gettext
-    itstool
-    desktop-file-utils
-  ];
-
-  buildInputs = [
-    glib
-    gtk3
-    libexif
-    libtiff
-    colord
-    colord-gtk
-    libcanberra-gtk3
-    lcms2
-    vte
-    exiv2
-  ];
-
-  passthru = {
-    updateScript = gnome.updateScript {
-      packageName = pname;
-      attrPath = "gnome.${pname}";
-    };
-  };
-
-  meta = with lib; {
-    description = "A set of graphical utilities for color management to be used in the GNOME desktop";
-    license = licenses.gpl2Plus;
-    maintainers = teams.gnome.members;
-    platforms = platforms.linux;
-  };
-}