Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[f39] Revert "Add: GLFW Builds of Ghostty, Changes to Main Specs For Compatibility …" (#2823) #2824

Merged
merged 1 commit into from
Dec 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions anda/devs/ghostty/nightly-glfw/anda.hcl

This file was deleted.

88 changes: 0 additions & 88 deletions anda/devs/ghostty/nightly-glfw/ghostty-glfw-nightly.spec

This file was deleted.

17 changes: 0 additions & 17 deletions anda/devs/ghostty/nightly-glfw/no-strip.diff

This file was deleted.

5 changes: 0 additions & 5 deletions anda/devs/ghostty/nightly-glfw/update.rhai

This file was deleted.

41 changes: 24 additions & 17 deletions anda/devs/ghostty/nightly/ghostty-nightly.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,29 @@
%global commit_date 20241228

Name: ghostty-nightly
Version: %{commit_date}.%{shortcommit}
Release: 1%{?dist}
Summary: A fast, native terminal emulator written in Zig; this is the Tip (nightly) build.
Version: %commit_date.%shortcommit
Release: 1%?dist
Summary: A fast, native terminal emulator written in Zig; this is the Tip (nightly) build
License: MIT
URL: https://ghostty.org/
Source0: https://github.com/ghostty-org/ghostty/archive/%{commit}/ghostty-%{commit}.tar.gz
Patch0: no-strip.diff
BuildRequires: gtk4-devel
BuildRequires: libadwaita-devel
BuildRequires: ncurses
BuildRequires: ncurses-devel
BuildRequires: pandoc-cli
#Patch0: pkgconfig-libadwaita-1.diff
#Patch1: use-pkg-config.diff
Patch2: no-strip.diff
BuildRequires: zig
BuildRequires: gtk4-devel libadwaita-devel
BuildRequires: pandoc-cli
#BuildRequires: pkg-config
#BuildRequires: pkgconfig(harfbuzz)
#BuildRequires: pkgconfig(fontconfig)
#BuildRequires: pkgconfig(libpng)
#BuildRequires: pkgconfig(zlib)
#BuildRequires: pkgconfig(oniguruma)
#BuildRequires: pkgconfig(glslang)
# Not in Fedora
#BuildRequires: pkgconfig(spirv-cross)
#BuildRequires: pkgconfig(simdutf)
#BuildRequires: pkgconfig(libxml-2.0)
Requires: %{name}-terminfo = %{version}-%{release}
Requires: %{name}-shell-integration = %{version}-%{release}
Requires: fontconfig
Expand All @@ -29,8 +39,6 @@ Requires: pixman
Requires: zlib-ng
Suggests: libadwaita
Conflicts: ghostty
Conflicts: ghostty-glfw
Conflicts: ghostty-glfw-nightly
Provides: ghostty-tip = %{version}-%{release}
Packager: ShinyGil <rockgrub@protonmail.com>

Expand All @@ -39,43 +47,43 @@ Packager: ShinyGil <rockgrub@protonmail.com>

%package bash-completion
Summary: Ghostty Bash completion
Requires: %{name}
Requires: bash-completion
Supplements: (%{name} and bash-completion)
Supplements: (ghostty-glfw-nightly and bash-completion)

%description bash-completion
%summary.

%package fish-completion
Summary: Ghostty Fish completion
Requires: %{name}
Requires: fish
Supplements: (%{name} and fish)
Supplements: (ghostty-glfw-nightly and fish)

%description fish-completion
%summary.

%package zsh-completion
Summary: Ghostty Zsh completion
Requires: %{name}
Requires: zsh
Supplements: (%{name} and zsh)
Supplements: (ghostty-glfw-nightly and zsh)

%description zsh-completion
%summary.

%package shell-integration
Summary: Ghostty shell integration
Requires: %{name}
Supplements: %{name}
Supplements: ghostty-glfw-nightly

%description shell-integration
%summary.

%package terminfo
Summary: Ghostty terminfo
Requires: %{name}
Supplements: %{name}
Supplements: ghostty-glfw-nightly

%description terminfo
%summary.
Expand Down Expand Up @@ -116,7 +124,6 @@ zig build \
%_iconsdir/hicolor/256x256/apps/com.mitchellh.ghostty.png
%_iconsdir/hicolor/256x256@2/apps/com.mitchellh.ghostty.png
%_iconsdir/hicolor/512x512/apps/com.mitchellh.ghostty.png
%_iconsdir/hicolor/1024x1024/apps/com.mitchellh.ghostty.png
%_mandir/man1/ghostty.1.gz
%_mandir/man5/ghostty.5.gz

Expand Down
13 changes: 13 additions & 0 deletions anda/devs/ghostty/nightly/pkgconfig-libadwaita-1.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/build.zig b/build.zig
index 0969c64..68e16cd 100644
--- a/build.zig
+++ b/build.zig
@@ -1374,7 +1374,7 @@ fn addDeps(

.gtk => {
step.linkSystemLibrary2("gtk4", dynamic_link_opts);
- if (config.adwaita) step.linkSystemLibrary2("adwaita-1", dynamic_link_opts);
+ if (config.adwaita) step.linkSystemLibrary2("libadwaita-1", dynamic_link_opts);

{
const gresource = @import("src/apprt/gtk/gresource.zig");
12 changes: 12 additions & 0 deletions anda/devs/ghostty/nightly/use-pkg-config.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/build.zig b/build.zig
index a0ecf25..0969c64 100644
--- a/build.zig
+++ b/build.zig
@@ -1047,6 +1047,7 @@ fn addDeps(
const dynamic_link_opts: std.Build.Module.LinkSystemLibraryOptions = .{
.preferred_link_mode = .dynamic,
.search_strategy = .mode_first,
+ .use_pkg_config = .force,
};

// Freetype
5 changes: 0 additions & 5 deletions anda/devs/ghostty/stable-glfw/anda.hcl

This file was deleted.

82 changes: 0 additions & 82 deletions anda/devs/ghostty/stable-glfw/ghostty-glfw.spec

This file was deleted.

17 changes: 0 additions & 17 deletions anda/devs/ghostty/stable-glfw/no-strip.diff

This file was deleted.

1 change: 0 additions & 1 deletion anda/devs/ghostty/stable-glfw/update.rhai

This file was deleted.

Loading
Loading