Skip to content

Commit ae19cc6

Browse files
root@ThinkPArchdJasonGantner
authored andcommitted
add wterm WIP
1 parent a0a3aad commit ae19cc6

File tree

8 files changed

+142
-0
lines changed

8 files changed

+142
-0
lines changed

gui-apps/wterm/Manifest

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
AUX config.patch 342 BLAKE2B 1deef7afce6add08c2475958ba020ab173b8bcbb1467ce06efe3a0a1cd927df03b6a49b2f01955da226316d4cc2c2e8ab06a4d82998d6874ed48357dd1c8d6e4 SHA512 6ab1cd101680b7a937a360bd4ce716773cffc2890991f0239feb362c3034a2b727d6c4c237e402aa41de4ae9802be1089e27523d260e445a1a5168eebb4b11f0
2+
AUX termname.patch 328 BLAKE2B fb5b9cce8ca6fd0bf243fd50fe1bf53a0b0ef3ff42eae48c407c4d983ab5735087f345dd05184aa218e73b684637879462b88498e73d23e87024625ee28358ac SHA512 ba21363ac4e714b3f9f3c6f41e9d7a9131d5596c3faed933375c23f483049d486a46c6be25c395f1a5952b8bc8682b254ee69c515225f95ffd93828f041673fd
3+
AUX wld-config.patch 541 BLAKE2B 7bff84e98e5773c6e245ceccbaa067945ad0a007f3144562416ad802e3a0c4c366a2fb10ff0a8730467a8f2392301d1f6faaee3baf87c6021fc9da1da25c7342 SHA512 e3ed3034b9bfe85950d13c4cc58048f9bc1a00c34f78f0c5ea32f3298f5989beac9177c19fca192ad77c86c66f50f7821fae862dd4598df9e2ba62228c08863c
4+
AUX wterm.c.patch 302 BLAKE2B 7235c7c09d773e861791a6e1408704b076ba09f62e105bd58922e9615903e97ed20db028d819dc08defa4477473199fdc5936302280320def86f30fc19ac43e3 SHA512 e176c209f0662504e891daf87a51bd3c718d71593a41eb7836edf0075bd88319bd58809856a12dbb40f3864b6db5a8e871185922ae5d422d60adbe8e0dc053ce
5+
EBUILD wterm-9999.ebuild 1201 BLAKE2B bddb4adc4728fd841e8dd81fb87a558c35f32702581166b41205ac67a7b9b3e2be527359650453d270de99c2217e46a13ac40517ac1a9bb60108b0f9050b5f48 SHA512 10366cf2b84a48d0443202f6306e1cd52857e055905b721c7f0500b7701ded041a082f6322b608663c79fddf83086a035464915159a640c3bdf9c8a0b186ca6b
6+
MISC metadata.xml 544 BLAKE2B 84c58225efd1fdb1bd4f91116612de63c0f5da150ada08e8a590ad9898868ca5cd5758c39dd925d94988ae6a53cd630769855c32cc84108efa21e8034f8342c9 SHA512 07237366bc7e53287e8648116436ac112fd470c9ecdd77a25f30844d1a29c4828042504c859c816efd40d2913640d330eb6cf4e1b6e144ccf9f638aaf270c90b

gui-apps/wterm/files/config.patch

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
diff --git a/config.mk b/config.mk
2+
index c1946ee..fc90de1 100644
3+
--- a/config.mk
4+
+++ b/config.mk
5+
@@ -1 +0,0 @@
6+
-
7+
@@ -4,4 +3,0 @@ VERSION = 0.7
8+
-ENABLE_INTEL = 1
9+
-ENABLE_NOUVEAU = 1
10+
-
11+
-CFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=700
12+
@@ -9 +5 @@ CFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=700
13+
-PREFIX=/usr/local
14+
+PREFIX=$(D)/usr/
15+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
diff --git a/config.def.h b/config.def.h
2+
index f0dd482..89106fc 100644
3+
--- a/config.def.h
4+
+++ b/config.def.h
5+
@@ -72,2 +72,2 @@ static unsigned int cursorthickness = 2;
6+
-/* TERM value */
7+
-static char termname[] = "wterm-256color";
8+
+/* TERM value --- set to xterm for compatibility */
9+
+static char termname[] = "xterm-256color";
10+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
diff --git a/src/wld/config.mk b/src/wld/config.mk
2+
index 8f3ee29..71236e6 100644
3+
--- a/src/wld/config.mk
4+
+++ b/src/wld/config.mk
5+
@@ -2,5 +1,0 @@
6+
-
7+
-CC = gcc
8+
-CFLAGS = -pipe
9+
-
10+
-ENABLE_DEBUG = 1
11+
@@ -11,2 +5,0 @@ ENABLE_PIXMAN = 1
12+
-ENABLE_DRM = 1
13+
-ENABLE_WAYLAND = 1
14+
@@ -14 +7,9 @@ ENABLE_WAYLAND = 1
15+
-DRM_DRIVERS = intel nouveau
16+
+DRM_DRIVERS =
17+
+
18+
+ifeq ($(ENABLE_INTEL),1)
19+
+ DRM_DRIVERS += intel
20+
+endif
21+
+ifeq ($(ENABLE_NOUVEAU),1)
22+
+ DRM_DRIVERS += nouveau
23+
+endif
24+
+

gui-apps/wterm/files/wterm.c.patch

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
diff --git a/src/wterm.c b/src/wterm.c
2+
index c655722..76ccbb8 100644
3+
--- a/src/wterm.c
4+
+++ b/src/wterm.c
5+
@@ -3947 +3947 @@ void usage(void) {
6+
- die("%1$s " VERSION " (c) 2010-2015 st engineers, 2015-2019 wterm engineers\n"
7+
+ die("%1$s VERSION (c) 2010-2015 st engineers, 2015-2019 wterm engineers\n"

gui-apps/wterm/metadata.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3+
<pkgmetadata>
4+
<maintainer type="person">
5+
<email>jason@gantner.pw</email>
6+
<name>Jason Gantner</name>
7+
</maintainer>
8+
<use>
9+
<flag name="drm">Enable DRM backend</flag>
10+
<flag name="pixman">Enable pixman support</flag>
11+
<flag name="wayland">Enable Wayland backend (default)</flag>
12+
</use>
13+
<upstream>
14+
<remote-id type="github">majestrate/wterm</remote-id>
15+
<bugs-to>https://github.com/majestrate/wterm/issues</bugs-to>
16+
</upstream>
17+
</pkgmetadata>

gui-apps/wterm/wterm-9999.ebuild

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# SPDX-License-Identifier: GPL-2.0 OR ISC
2+
# Copyright 2020-2024 Jason André Charles Gantner
3+
# Distributed under the terms of the ISC License
4+
5+
EAPI=8
6+
7+
inherit git-r3
8+
9+
DESCRIPTION="xterm (st fork) for wayland"
10+
HOMEPAGE="https://github.com/majestrate/wterm"
11+
EGIT_REPO_URI="https://github.com/majestrate/wterm.git"
12+
13+
LICENSE="MIT"
14+
SLOT="0"
15+
KEYWORDS="~amd64 ~x86"
16+
IUSE="debug drm +pixman video_cards_intel video_cards_nouveau +wayland"
17+
REQUIRED_USE="
18+
|| ( wayland drm )
19+
drm? ( || ( video_cards_intel video_cards_nouveau ) )"
20+
21+
DEPEND="
22+
media-libs/fontconfig
23+
x11-libs/libxkbcommon
24+
pixman? ( x11-libs/pixman )
25+
drm? ( x11-libs/libdrm[video_cards_intel?,video_cards_nouveau?] )
26+
wayland? ( dev-libs/wayland )"
27+
RDEPEND="${DEPEND}"
28+
BDEPEND="
29+
virtual/pkgconfig
30+
dev-libs/wayland-protocols"
31+
32+
PATCHES="${FILESDIR}"
33+
34+
src_configure(){
35+
use debug && export ENABLE_DEBUG=1
36+
use drm && {
37+
export ENABLE_DRM=1
38+
export ENABLE_INTEL=$(use video_cards_intel && echo 1 || echo 0)
39+
export ENABLE_NOUVEAU=$(use video_cards_nouveau && echo 1 || echo 0)
40+
}|| export ENABLE_DRM=0
41+
export ENABLE_WAYLAND=$(use wayland && echo 1 || echo 0)
42+
export ENABLE_PIXMAN=$(use pixman && echo 1 || echo 0)
43+
}
44+
45+
src_compile(){
46+
emake
47+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
BDEPEND=virtual/pkgconfig dev-libs/wayland-protocols >=dev-vcs/git-1.8.2.1[curl]
2+
DEFINED_PHASES=compile configure unpack
3+
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 )
4+
DESCRIPTION=xterm (st fork) for wayland
5+
EAPI=8
6+
HOMEPAGE=https://github.com/majestrate/wterm
7+
INHERIT=git-r3
8+
IUSE=debug drm +pixman video_cards_intel video_cards_nouveau +wayland
9+
KEYWORDS=~amd64 ~x86
10+
LICENSE=MIT
11+
PROPERTIES=live
12+
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 )
13+
REQUIRED_USE=|| ( wayland drm ) drm? ( || ( video_cards_intel video_cards_nouveau ) )
14+
SLOT=0
15+
_eclasses_=git-r3 875eb471682d3e1f18da124be97dcc81
16+
_md5_=916e352fbe8aa1964cfd45b9d6401643

0 commit comments

Comments
 (0)