remove unused ghostty eb
This commit is contained in:
parent
72a543fed8
commit
9f527035c2
@ -1,13 +0,0 @@
|
||||
diff --git a/src/build/SharedDeps.zig b/src/build/SharedDeps.zig
|
||||
index 077da96..026c951 100644
|
||||
--- a/src/build/SharedDeps.zig
|
||||
+++ b/src/build/SharedDeps.zig
|
||||
@@ -111,7 +111,7 @@ pub fn add(
|
||||
step.root_module.addImport("freetype", freetype_dep.module("freetype"));
|
||||
|
||||
if (b.systemIntegrationOption("freetype", .{})) {
|
||||
- step.linkSystemLibrary2("bzip2", dynamic_link_opts);
|
||||
+ step.linkSystemLibrary2("bz2", dynamic_link_opts);
|
||||
step.linkSystemLibrary2("freetype2", dynamic_link_opts);
|
||||
} else {
|
||||
step.linkLibrary(freetype_dep.artifact("freetype"));
|
||||
@ -1,57 +0,0 @@
|
||||
From 79e953d91173a808dc2fbc33a39582ffc921263b Mon Sep 17 00:00:00 2001
|
||||
From: sin-ack <sin-ack@protonmail.com>
|
||||
Date: Thu, 30 Jan 2025 23:21:16 +0000
|
||||
Subject: [PATCH] build: Disable terminfo database installation
|
||||
|
||||
Database installation is unconditional in Ghostty and causes conflicts
|
||||
with newer ncurses versions which have the database merged in.
|
||||
|
||||
Bug: https://bugs.gentoo.org/948830
|
||||
Signed-off-by: sin-ack <sin-ack@protonmail.com>
|
||||
---
|
||||
src/build/GhosttyResources.zig | 30 ------------------------------
|
||||
1 file changed, 30 deletions(-)
|
||||
|
||||
diff --git a/src/build/GhosttyResources.zig b/src/build/GhosttyResources.zig
|
||||
index a7ff40cb..ad400d72 100644
|
||||
--- a/src/build/GhosttyResources.zig
|
||||
+++ b/src/build/GhosttyResources.zig
|
||||
@@ -46,36 +46,6 @@ pub fn init(b: *std.Build, cfg: *const Config) !GhosttyResources {
|
||||
const cap_install = b.addInstallFile(out_source, "share/terminfo/ghostty.termcap");
|
||||
try steps.append(&cap_install.step);
|
||||
}
|
||||
-
|
||||
- // Compile the terminfo source into a terminfo database
|
||||
- {
|
||||
- const run_step = RunStep.create(b, "tic");
|
||||
- run_step.addArgs(&.{ "tic", "-x", "-o" });
|
||||
- const path = run_step.addOutputFileArg("terminfo");
|
||||
- run_step.addFileArg(source);
|
||||
- _ = run_step.captureStdErr(); // so we don't see stderr
|
||||
-
|
||||
- // Ensure that `share/terminfo` is a directory, otherwise the `cp
|
||||
- // -R` will create a file named `share/terminfo`
|
||||
- const mkdir_step = RunStep.create(b, "make share/terminfo directory");
|
||||
- switch (cfg.target.result.os.tag) {
|
||||
- // windows mkdir shouldn't need "-p"
|
||||
- .windows => mkdir_step.addArgs(&.{"mkdir"}),
|
||||
- else => mkdir_step.addArgs(&.{ "mkdir", "-p" }),
|
||||
- }
|
||||
- mkdir_step.addArg(b.fmt("{s}/share/terminfo", .{b.install_path}));
|
||||
- try steps.append(&mkdir_step.step);
|
||||
-
|
||||
- // Use cp -R instead of Step.InstallDir because we need to preserve
|
||||
- // symlinks in the terminfo database. Zig's InstallDir step doesn't
|
||||
- // handle symlinks correctly yet.
|
||||
- const copy_step = RunStep.create(b, "copy terminfo db");
|
||||
- copy_step.addArgs(&.{ "cp", "-R" });
|
||||
- copy_step.addFileArg(path);
|
||||
- copy_step.addArg(b.fmt("{s}/share", .{b.install_path}));
|
||||
- copy_step.step.dependOn(&mkdir_step.step);
|
||||
- try steps.append(©_step.step);
|
||||
- }
|
||||
}
|
||||
|
||||
// Shell-integration
|
||||
--
|
||||
2.45.3
|
||||
@ -1,111 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
ZIG_SLOT="0.13"
|
||||
inherit git-r3 zig
|
||||
|
||||
DESCRIPTION="Ghostty is a fast, feature-rich, and cross-platform terminal emulator that uses platform-native UI and GPU acceleration."
|
||||
HOMEPAGE="ghostty.org"
|
||||
EGIT_REPO_URI="https://github.com/ghostty-org/ghostty.git"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
|
||||
IUSE="adwaita man +gtk glfw X"
|
||||
IUSE+=" +system-fontconfig +system-freetype +system-glslang +system-harfbuzz +system-libpng system-libxml2 +system-oniguruma +system-zlib +system-simdutf"
|
||||
REQUIRED_USE="
|
||||
adwaita? ( gtk )
|
||||
^^ ( gtk glfw )
|
||||
"
|
||||
|
||||
|
||||
RDEPEND="
|
||||
adwaita? ( gui-libs/libadwaita:1= )
|
||||
gtk? (
|
||||
gui-libs/gtk:4=[X?]
|
||||
X? (
|
||||
x11-libs/libX11
|
||||
)
|
||||
system-libxml2? ( >=dev-libs/libxml2-2.11.5:= )
|
||||
)
|
||||
|
||||
system-fontconfig? ( >=media-libs/fontconfig-2.14.2:= )
|
||||
system-freetype? ( >=media-libs/freetype-2.13.2:=[bzip2] )
|
||||
system-glslang? ( >=dev-util/glslang-1.3.296.0:= )
|
||||
system-harfbuzz? ( >=media-libs/harfbuzz-8.4.0:= )
|
||||
system-libpng? ( >=media-libs/libpng-1.6.43:= )
|
||||
system-oniguruma? ( >=dev-libs/oniguruma-6.9.9:= )
|
||||
system-zlib? ( >=sys-libs/zlib-1.3.1:= )
|
||||
system-simdutf? ( >=dev-cpp/simdutf-5.7.2:= )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
QA_FLAGS_IGNORED="usr/bin/ghostty"
|
||||
QA_PRESTRIPPED="usr/bin/ghostty"
|
||||
|
||||
PATCHES=(
|
||||
# "${FILESDIR}"/${PN}-1.0.0-bzip2-dependency.patch
|
||||
# "${FILESDIR}"/${PN}-1.1.0-build-disable-terminfo-database-installation.patch
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
git-r3_fetch
|
||||
git-r3_checkout
|
||||
cd ${S}/ || die
|
||||
zig build --help -Dapp-runtime=glfw 2&>/dev/null
|
||||
zig build --help -Dapp-runtime=glfw 2&>/dev/null
|
||||
zig build --help -Dapp-runtime=glfw 2&>/dev/null
|
||||
zig build --help -Dapp-runtime=gtk
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
}
|
||||
|
||||
|
||||
src_configure() {
|
||||
local my_zbs_args=(
|
||||
--release=fast
|
||||
|
||||
-Dfont-backend=fontconfig_freetype
|
||||
-Drenderer=opengl
|
||||
-Dgtk-adwaita=$(usex adwaita true false)
|
||||
-Demit-docs=$(usex man true false)
|
||||
-Demit-terminfo=false
|
||||
-Demit-termcap=false
|
||||
-Dgtk-x11=$(usex X true false)
|
||||
|
||||
-f$(usex system-fontconfig sys no-sys)=fontconfig
|
||||
-f$(usex system-freetype sys no-sys)=freetype
|
||||
-f$(usex system-glslang sys no-sys)=glslang
|
||||
-f$(usex system-harfbuzz sys no-sys)=harfbuzz
|
||||
-f$(usex system-libpng sys no-sys)=libpng
|
||||
-f$(usex system-oniguruma sys no-sys)=oniguruma
|
||||
-f$(usex system-zlib sys no-sys)=zlib
|
||||
-f$(usex system-simdutf sys no-sys)=simdutf
|
||||
)
|
||||
if use gtk; then
|
||||
my_zbs_args+=(
|
||||
-Dapp-runtime=gtk
|
||||
)
|
||||
if use system-libxml2; then
|
||||
my_zbs_args+=(
|
||||
-Dsys=libxml2
|
||||
)
|
||||
fi
|
||||
elif use glfw; then
|
||||
my_zbs_args+=(
|
||||
-Dapp-runtime=glfw
|
||||
)
|
||||
fi
|
||||
|
||||
zig_src_configure
|
||||
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
BUILD_DIR=${S}
|
||||
zig_src_compile
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user