Unverified Commit 04b776d6 authored by Bobby Rong's avatar Bobby Rong Committed by GitHub
Browse files

libgedit-amtk, libgedit-gfls, libgedit-gtksourceview, libgedit-tepl, gedit,...

libgedit-amtk, libgedit-gfls, libgedit-gtksourceview, libgedit-tepl, gedit, enter-tex: Update (#342828)
parents f6676eac 9052a2df
Loading
Loading
Loading
Loading
+12 −9
Original line number Diff line number Diff line
diff --git a/gedit/meson.build b/gedit/meson.build
index a8683e61a..fc48669f7 100644
index bc689e5..e3b90d8 100644
--- a/gedit/meson.build
+++ b/gedit/meson.build
@@ -191,7 +191,7 @@ libgedit_shared_lib = shared_library(
   c_args: libgedit_c_args,
   link_args: libgedit_link_args,
   install: true,
-  install_dir: get_option('libdir') / 'gedit',
+  install_dir: get_option('prefix') / get_option('libdir') / 'gedit',
 )
@@ -165,9 +165,9 @@ libgedit_private_headers += 'gedit-enum-types-private.h'
 subdir('resources')
 
 # GObject Introspection
 if host_machine.system() == 'windows'
-  libgedit_shared_lib_install_dir = get_option('libdir')
+  libgedit_shared_lib_install_dir = get_option('prefix') / get_option('libdir')
 else
-  libgedit_shared_lib_install_dir = get_option('libdir') / 'gedit'
+  libgedit_shared_lib_install_dir = get_option('prefix') / get_option('libdir') / 'gedit'
 endif
 
 libgedit_shared_lib = shared_library(
+3 −15
Original line number Diff line number Diff line
@@ -4,7 +4,6 @@
, mesonEmulatorHook
, fetchurl
, python3
, python3Packages
, pkg-config
, gtk3
, gtk-mac-integration
@@ -30,13 +29,13 @@

stdenv.mkDerivation rec {
  pname = "gedit";
  version = "47.0";
  version = "48.0";

  outputs = [ "out" "devdoc" ];

  src = fetchurl {
    url = "mirror://gnome/sources/gedit/${lib.versions.major version}/gedit-${version}.tar.xz";
    sha256 = "+kpZfjTHbUrJFDG1rm4ZHJbGsK8XAuCJmrNRme36G/o=";
    sha256 = "/g/vm3sHmRINuGrok6BgA2oTRFNS3tkWm6so04rPDoA=";
  };

  patches = [
@@ -54,7 +53,6 @@ stdenv.mkDerivation rec {
    perl
    pkg-config
    python3
    python3Packages.wrapPython
    vala
    wrapGAppsHook3
    gtk-doc
@@ -87,16 +85,6 @@ stdenv.mkDerivation rec {
  # Reliably fails to generate gedit-file-browser-enum-types.h in time
  enableParallelBuilding = false;

  pythonPath = with python3Packages; [
    # https://github.com/NixOS/nixpkgs/issues/298716
    pycairo
  ];

  postFixup = ''
    buildPythonPath "$pythonPath"
    patchPythonScript $out/lib/gedit/plugins/snippets/document.py
  '';

  passthru = {
    updateScript = gnome.updateScript {
      packageName = "gedit";
@@ -104,7 +92,7 @@ stdenv.mkDerivation rec {
  };

  meta = with lib; {
    homepage = "https://gedit-technology.github.io/apps/gedit/";
    homepage = "https://gitlab.gnome.org/World/gedit/gedit";
    description = "Former GNOME text editor";
    maintainers = with maintainers; [ bobby285271 ];
    license = licenses.gpl2Plus;
+84 −0
Original line number Diff line number Diff line
{ stdenv
, lib
, fetchurl
, fetchpatch
, autoreconfHook
, gtk-doc
, vala
, gobject-introspection
, wrapGAppsHook3
, gsettings-desktop-schemas
, gspell
, libgedit-gtksourceview
, libgedit-tepl
, libgee
, adwaita-icon-theme
, gnome
, glib
, pkg-config
, gettext
, itstool
, libxml2
{
  stdenv,
  lib,
  fetchurl,
  desktop-file-utils,
  docbook-xsl-nons,
  gettext,
  gobject-introspection,
  gtk-doc,
  itstool,
  meson,
  ninja,
  pkg-config,
  vala,
  wrapGAppsHook3,
  dconf,
  glib,
  gsettings-desktop-schemas,
  gspell,
  libgedit-amtk,
  libgedit-gtksourceview,
  libgedit-tepl,
  libgee,
  gnome,
}:

stdenv.mkDerivation rec {
  version = "3.46.0";
  pname = "gnome-latex";
stdenv.mkDerivation (finalAttrs: {
  pname = "enter-tex";
  version = "3.47.0";

  src = fetchurl {
    url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
    sha256 = "1nVVY5sqFaiuvVTzNTVORP40MxQ648s8ynqOJvgRKto=";
    url = "mirror://gnome/sources/enter-tex/${lib.versions.majorMinor finalAttrs.version}/enter-tex-${finalAttrs.version}.tar.xz";
    hash = "sha256-oIyuySdcCruVNWdN9bnBa5KxSWjNIZFtb/wvoMud12o=";
  };

  patches = [
    # Adapt for Tepl -> libgedit-tepl rename
    (fetchpatch {
      url = "https://gitlab.gnome.org/swilmet/gnome-latex/-/commit/41e532c427f43a5eed9081766963d6e29a9975a1.patch";
      hash = "sha256-gu8o/er4mP92dE5gWg9lGx5JwTHB8ytk3EMNlwlIpq4=";
    })
  ];

  nativeBuildInputs = [
    pkg-config
    autoreconfHook
    desktop-file-utils
    docbook-xsl-nons
    gettext
    gobject-introspection
    gtk-doc
    itstool
    meson
    ninja
    pkg-config
    vala
    gobject-introspection
    wrapGAppsHook3
    itstool
    gettext
  ];

  buildInputs = [
    adwaita-icon-theme
    dconf
    glib
    gsettings-desktop-schemas
    gspell
    libgedit-amtk
    libgedit-gtksourceview
    libgedit-tepl
    libgee
    libxml2
  ];

  configureFlags = [
    "--disable-dconf-migration"
  ];
  preBuild = ''
    # Workaround the use case of C code mixed with Vala code.
    # https://gitlab.gnome.org/swilmet/enter-tex/-/blob/3.47.0/docs/more-information.md#install-procedure
    ninja src/gtex/Gtex-1.gir
  '';

  doCheck = true;

  env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";

  passthru.updateScript = gnome.updateScript {
    packageName = pname;
    versionPolicy = "odd-unstable";
    packageName = "enter-tex";
  };

  meta = with lib; {
    homepage = "https://gitlab.gnome.org/swilmet/gnome-latex";
    homepage = "https://gitlab.gnome.org/swilmet/enter-tex";
    description = "LaTeX editor for the GNOME desktop";
    maintainers = with maintainers; [ manveru bobby285271 ];
    maintainers = with maintainers; [
      manveru
      bobby285271
    ];
    license = licenses.gpl3Plus;
    platforms = platforms.linux;
    mainProgram = "gnome-latex";
    mainProgram = "enter-tex";
  };
}
})
+9 −9
Original line number Diff line number Diff line
{ stdenv
, lib
, fetchFromGitHub
, fetchFromGitLab
, glib
, gtk3
, meson
@@ -17,15 +17,17 @@

stdenv.mkDerivation rec {
  pname = "libgedit-amtk";
  version = "5.8.0";
  version = "5.9.0";

  outputs = [ "out" "dev" "devdoc" ];

  src = fetchFromGitHub {
    owner = "gedit-technology";
  src = fetchFromGitLab {
    domain = "gitlab.gnome.org";
    group = "World";
    owner = "gedit";
    repo = "libgedit-amtk";
    rev = version;
    hash = "sha256-U77/KMZw9k9ukebCXVXAsCa4uJaTgw9irfZ/l0303kk=";
    hash = "sha256-D6jZmadUHDtxedw/tCsKHzcWXobs6Vb7dyhbVKqu2Zc=";
  };

  strictDeps = true;
@@ -62,12 +64,10 @@ stdenv.mkDerivation rec {
    runHook postCheck
  '';

  passthru.updateScript = gitUpdater {
    odd-unstable = true;
  };
  passthru.updateScript = gitUpdater { };

  meta = with lib; {
    homepage = "https://github.com/gedit-technology/libgedit-amtk";
    homepage = "https://gitlab.gnome.org/World/gedit/libgedit-amtk";
    description = "Actions, Menus and Toolbars Kit for GTK applications";
    maintainers = with maintainers; [ manveru bobby285271 ];
    license = licenses.lgpl21Plus;
+8 −6
Original line number Diff line number Diff line
{ stdenv
, lib
, fetchFromGitHub
, fetchFromGitLab
, docbook-xsl-nons
, gobject-introspection
, gtk-doc
@@ -14,15 +14,17 @@

stdenv.mkDerivation (finalAttrs: {
  pname = "libgedit-gfls";
  version = "0.1.0";
  version = "0.2.0";

  outputs = [ "out" "dev" "devdoc" ];

  src = fetchFromGitHub {
    owner = "gedit-technology";
  src = fetchFromGitLab {
    domain = "gitlab.gnome.org";
    group = "World";
    owner = "gedit";
    repo = "libgedit-gfls";
    rev = finalAttrs.version;
    hash = "sha256-tES8UGWcCT8lRd/fnOt9EN3wHkNSLRM4j8ONrCDPBK0=";
    hash = "sha256-oxsqggn4O4SwGEas840qE103hKU4f+GP+ItOtD3M+ac=";
  };

  nativeBuildInputs = [
@@ -46,7 +48,7 @@ stdenv.mkDerivation (finalAttrs: {
  ];

  meta = {
    homepage = "https://github.com/gedit-technology/libgedit-gfls";
    homepage = "https://gitlab.gnome.org/World/gedit/libgedit-gfls";
    description = "Module dedicated to file loading and saving";
    maintainers = with lib.maintainers; [ bobby285271 ];
    license = lib.licenses.lgpl3Plus;
Loading