Skip to content

Commit

Permalink
app-editors/ted: use Motif toolkit by default
Browse files Browse the repository at this point in the history
Use Motif instead of Gtk-2, which is alternatively
supported as a GUI.
Bugday 2021-04-03

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Bernd Waibel <[email protected]>
Closes: gentoo#20241
Signed-off-by: Joonas Niilola <[email protected]>
  • Loading branch information
waebbl authored and juippis committed Apr 13, 2021
1 parent 9bddc6d commit 4440adb
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
From 4368f7bab3a79b4322c1c19fdb99634e10f823ad Mon Sep 17 00:00:00 2001
From: Bernd Waibel <[email protected]>
Date: Sat, 3 Apr 2021 11:36:06 +0200
Subject: [PATCH] use Motif toolkit instead of GTK by default

Signed-off-by: Bernd Waibel <[email protected]>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 08224f9..f6ced83 100644
--- a/Makefile
+++ b/Makefile
@@ -73,7 +73,7 @@
#### P.S. I admit that this makefile is more like a shell script.
####

-CONFIGURE_OPTIONS=--with-GTK
+CONFIGURE_OPTIONS=--with-MOTIF

compile: tedlibs \
Ted/Ted \
--
2.31.1

9 changes: 7 additions & 2 deletions app-editors/ted/ted-2.23-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ RDEPEND="
sys-libs/zlib
virtual/jpeg
virtual/libiconv
x11-libs/gtk+:2
x11-libs/libXft
x11-libs/libXpm
x11-libs/motif
"
DEPEND="${RDEPEND}"
BDEPEND="
Expand All @@ -38,6 +38,7 @@ PATCHES=(
"${FILESDIR}"/${P}-0002-fix-unrecognized-option-with-GTK.patch
"${FILESDIR}"/${P}-0003-avoid-compressing-man-page.patch
"${FILESDIR}"/${P}-freetype261.patch
"${FILESDIR}"/${P}-use-Motif-toolkit-instead-of-GTK-by-default.patch
)

src_prepare() {
Expand Down Expand Up @@ -66,10 +67,14 @@ src_configure() {
tc-export AR CC RANLIB

local dir
for dir in appFrame appUtil bitmap docBuf ind Ted tedPackage; do
for dir in appUtil textEncoding utilPs bitmap docFont docBase docBuf ind drawMeta docRtf docEdit docLayout docHtml; do
cd "${S}"/${dir}
econf --cache-file=../config.cache
done
for dir in appFrame; do
cd "${S}"/${dir}
econf --cache-file=../config.cache --with-MOTIF
done
}

src_compile() {
Expand Down

0 comments on commit 4440adb

Please sign in to comment.