Skip to content
Draft
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
6 changes: 6 additions & 0 deletions gui-apps/wterm/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
AUX config.patch 342 BLAKE2B 1deef7afce6add08c2475958ba020ab173b8bcbb1467ce06efe3a0a1cd927df03b6a49b2f01955da226316d4cc2c2e8ab06a4d82998d6874ed48357dd1c8d6e4 SHA512 6ab1cd101680b7a937a360bd4ce716773cffc2890991f0239feb362c3034a2b727d6c4c237e402aa41de4ae9802be1089e27523d260e445a1a5168eebb4b11f0
AUX termname.patch 328 BLAKE2B fb5b9cce8ca6fd0bf243fd50fe1bf53a0b0ef3ff42eae48c407c4d983ab5735087f345dd05184aa218e73b684637879462b88498e73d23e87024625ee28358ac SHA512 ba21363ac4e714b3f9f3c6f41e9d7a9131d5596c3faed933375c23f483049d486a46c6be25c395f1a5952b8bc8682b254ee69c515225f95ffd93828f041673fd
AUX wld-config.patch 541 BLAKE2B 7bff84e98e5773c6e245ceccbaa067945ad0a007f3144562416ad802e3a0c4c366a2fb10ff0a8730467a8f2392301d1f6faaee3baf87c6021fc9da1da25c7342 SHA512 e3ed3034b9bfe85950d13c4cc58048f9bc1a00c34f78f0c5ea32f3298f5989beac9177c19fca192ad77c86c66f50f7821fae862dd4598df9e2ba62228c08863c
AUX wterm.c.patch 302 BLAKE2B 7235c7c09d773e861791a6e1408704b076ba09f62e105bd58922e9615903e97ed20db028d819dc08defa4477473199fdc5936302280320def86f30fc19ac43e3 SHA512 e176c209f0662504e891daf87a51bd3c718d71593a41eb7836edf0075bd88319bd58809856a12dbb40f3864b6db5a8e871185922ae5d422d60adbe8e0dc053ce
EBUILD wterm-9999.ebuild 1201 BLAKE2B bddb4adc4728fd841e8dd81fb87a558c35f32702581166b41205ac67a7b9b3e2be527359650453d270de99c2217e46a13ac40517ac1a9bb60108b0f9050b5f48 SHA512 10366cf2b84a48d0443202f6306e1cd52857e055905b721c7f0500b7701ded041a082f6322b608663c79fddf83086a035464915159a640c3bdf9c8a0b186ca6b
MISC metadata.xml 544 BLAKE2B 84c58225efd1fdb1bd4f91116612de63c0f5da150ada08e8a590ad9898868ca5cd5758c39dd925d94988ae6a53cd630769855c32cc84108efa21e8034f8342c9 SHA512 07237366bc7e53287e8648116436ac112fd470c9ecdd77a25f30844d1a29c4828042504c859c816efd40d2913640d330eb6cf4e1b6e144ccf9f638aaf270c90b
15 changes: 15 additions & 0 deletions gui-apps/wterm/files/config.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/config.mk b/config.mk
index c1946ee..fc90de1 100644
--- a/config.mk
+++ b/config.mk
@@ -1 +0,0 @@
-
@@ -4,4 +3,0 @@ VERSION = 0.7
-ENABLE_INTEL = 1
-ENABLE_NOUVEAU = 1
-
-CFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=700
@@ -9 +5 @@ CFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=700
-PREFIX=/usr/local
+PREFIX=$(D)/usr/

10 changes: 10 additions & 0 deletions gui-apps/wterm/files/termname.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
diff --git a/config.def.h b/config.def.h
index f0dd482..89106fc 100644
--- a/config.def.h
+++ b/config.def.h
@@ -72,2 +72,2 @@ static unsigned int cursorthickness = 2;
-/* TERM value */
-static char termname[] = "wterm-256color";
+/* TERM value --- set to xterm for compatibility */
+static char termname[] = "xterm-256color";

24 changes: 24 additions & 0 deletions gui-apps/wterm/files/wld-config.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
diff --git a/src/wld/config.mk b/src/wld/config.mk
index 8f3ee29..71236e6 100644
--- a/src/wld/config.mk
+++ b/src/wld/config.mk
@@ -2,5 +1,0 @@
-
-CC = gcc
-CFLAGS = -pipe
-
-ENABLE_DEBUG = 1
@@ -11,2 +5,0 @@ ENABLE_PIXMAN = 1
-ENABLE_DRM = 1
-ENABLE_WAYLAND = 1
@@ -14 +7,9 @@ ENABLE_WAYLAND = 1
-DRM_DRIVERS = intel nouveau
+DRM_DRIVERS =
+
+ifeq ($(ENABLE_INTEL),1)
+ DRM_DRIVERS += intel
+endif
+ifeq ($(ENABLE_NOUVEAU),1)
+ DRM_DRIVERS += nouveau
+endif
+
7 changes: 7 additions & 0 deletions gui-apps/wterm/files/wterm.c.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
diff --git a/src/wterm.c b/src/wterm.c
index c655722..76ccbb8 100644
--- a/src/wterm.c
+++ b/src/wterm.c
@@ -3947 +3947 @@ void usage(void) {
- die("%1$s " VERSION " (c) 2010-2015 st engineers, 2015-2019 wterm engineers\n"
+ die("%1$s VERSION (c) 2010-2015 st engineers, 2015-2019 wterm engineers\n"
17 changes: 17 additions & 0 deletions gui-apps/wterm/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>[email protected]</email>
<name>Jason Gantner</name>
</maintainer>
<use>
<flag name="drm">Enable DRM backend</flag>
<flag name="pixman">Enable pixman support</flag>
<flag name="wayland">Enable Wayland backend (default)</flag>
</use>
<upstream>
<remote-id type="github">majestrate/wterm</remote-id>
<bugs-to>https://github.com/majestrate/wterm/issues</bugs-to>
</upstream>
</pkgmetadata>
47 changes: 47 additions & 0 deletions gui-apps/wterm/wterm-9999.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# SPDX-License-Identifier: GPL-2.0 OR ISC
# Copyright 2020-2024 Jason André Charles Gantner
# Distributed under the terms of the ISC License

EAPI=8

inherit git-r3

DESCRIPTION="xterm (st fork) for wayland"
HOMEPAGE="https://github.com/majestrate/wterm"
EGIT_REPO_URI="https://github.com/majestrate/wterm.git"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug drm +pixman video_cards_intel video_cards_nouveau +wayland"
REQUIRED_USE="
|| ( wayland drm )
drm? ( || ( video_cards_intel video_cards_nouveau ) )"

DEPEND="
media-libs/fontconfig
x11-libs/libxkbcommon
pixman? ( x11-libs/pixman )
drm? ( x11-libs/libdrm[video_cards_intel?,video_cards_nouveau?] )
wayland? ( dev-libs/wayland )"
RDEPEND="${DEPEND}"
BDEPEND="
virtual/pkgconfig
dev-libs/wayland-protocols"

PATCHES="${FILESDIR}"

src_configure(){
use debug && export ENABLE_DEBUG=1
use drm && {
export ENABLE_DRM=1
export ENABLE_INTEL=$(use video_cards_intel && echo 1 || echo 0)
export ENABLE_NOUVEAU=$(use video_cards_nouveau && echo 1 || echo 0)
}|| export ENABLE_DRM=0
export ENABLE_WAYLAND=$(use wayland && echo 1 || echo 0)
export ENABLE_PIXMAN=$(use pixman && echo 1 || echo 0)
}

src_compile(){
emake
}
16 changes: 16 additions & 0 deletions metadata/md5-cache/gui-apps/wterm-9999
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
BDEPEND=virtual/pkgconfig dev-libs/wayland-protocols >=dev-vcs/git-1.8.2.1[curl]
DEFINED_PHASES=compile configure unpack
DEPEND=media-libs/fontconfig x11-libs/libxkbcommon pixman? ( x11-libs/pixman ) drm? ( x11-libs/libdrm[video_cards_intel?,video_cards_nouveau?] ) wayland? ( dev-libs/wayland )
DESCRIPTION=xterm (st fork) for wayland
EAPI=8
HOMEPAGE=https://github.com/majestrate/wterm
INHERIT=git-r3
IUSE=debug drm +pixman video_cards_intel video_cards_nouveau +wayland
KEYWORDS=~amd64 ~x86
LICENSE=MIT
PROPERTIES=live
RDEPEND=media-libs/fontconfig x11-libs/libxkbcommon pixman? ( x11-libs/pixman ) drm? ( x11-libs/libdrm[video_cards_intel?,video_cards_nouveau?] ) wayland? ( dev-libs/wayland )
REQUIRED_USE=|| ( wayland drm ) drm? ( || ( video_cards_intel video_cards_nouveau ) )
SLOT=0
_eclasses_=git-r3 875eb471682d3e1f18da124be97dcc81
_md5_=916e352fbe8aa1964cfd45b9d6401643