Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-terms/xterm/
Date: Tue, 27 Sep 2022 17:58:02
Message-Id: 1664300447.41798caccd4cf6804fc04075e779688797563471.sam@gentoo
1 commit: 41798caccd4cf6804fc04075e779688797563471
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 27 17:24:37 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 27 17:40:47 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41798cac
7
8 x11-terms/xterm: add 373
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 x11-terms/xterm/Manifest | 1 +
13 x11-terms/xterm/xterm-373.ebuild | 98 ++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 99 insertions(+)
15
16 diff --git a/x11-terms/xterm/Manifest b/x11-terms/xterm/Manifest
17 index 65588746f277..432078f36b8e 100644
18 --- a/x11-terms/xterm/Manifest
19 +++ b/x11-terms/xterm/Manifest
20 @@ -1 +1,2 @@
21 DIST xterm-372.tgz 1507107 BLAKE2B 256b99b13512740086203c4c05685cd170356118e11029a01d30b32f69c1fc5088efa0dabc955d8a24acf36f3e061faf7af9866c2302a4ac45405b97455384a0 SHA512 f65fee6227ca27be85569ec06f3701a6114489e036975d0fe37f3c71d7598d1b06c8689cfbda593a98418eec1417bd60b33e3978752b255989cfa0bb4ce332bf
22 +DIST xterm-373.tgz 1518059 BLAKE2B f215e6e695696cba3a0e02eac9e236fbcb50b3b99febba972bd42eb71b724ad596062ad567aaa89ff74d785c198c35ac6e99693f8231d763a4f054123863ba3b SHA512 0e1ef4165137fa5369ac2b2b93c73527a23c89a3f5e4b9de7a24dca5af78a6cb34cddb47a5aec2b16b1b302347c79447fbee87bddae3c569bbaac8765e7875f9
23
24 diff --git a/x11-terms/xterm/xterm-373.ebuild b/x11-terms/xterm/xterm-373.ebuild
25 new file mode 100644
26 index 000000000000..efd8182bd33e
27 --- /dev/null
28 +++ b/x11-terms/xterm/xterm-373.ebuild
29 @@ -0,0 +1,98 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +inherit desktop flag-o-matic toolchain-funcs
36 +
37 +DESCRIPTION="Terminal Emulator for X Windows"
38 +HOMEPAGE="https://invisible-island.net/xterm/"
39 +SRC_URI="ftp://ftp.invisible-island.net/${PN}/${P}.tgz"
40 +
41 +LICENSE="MIT"
42 +SLOT="0"
43 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
44 +IUSE="+openpty sixel toolbar truetype unicode Xaw3d xinerama"
45 +
46 +DEPEND="
47 + kernel_linux? ( sys-libs/libutempter )
48 + media-libs/fontconfig:1.0
49 + >=sys-libs/ncurses-5.7-r7:0=
50 + x11-apps/xmessage
51 + x11-libs/libICE
52 + x11-libs/libX11
53 + x11-libs/libXaw
54 + x11-libs/libXft
55 + x11-libs/libxkbfile
56 + x11-libs/libXmu
57 + x11-libs/libXrender
58 + x11-libs/libXt
59 + unicode? ( x11-apps/luit )
60 + Xaw3d? ( x11-libs/libXaw3d )
61 + xinerama? ( x11-libs/libXinerama )"
62 +RDEPEND="${DEPEND}
63 + media-fonts/font-misc-misc
64 + x11-apps/rgb"
65 +DEPEND+=" x11-base/xorg-proto"
66 +BDEPEND="virtual/pkgconfig"
67 +
68 +DOCS=( README{,.i18n} ctlseqs.txt )
69 +
70 +src_configure() {
71 + DEFAULTS_DIR="${EPREFIX}"/usr/share/X11/app-defaults
72 +
73 + # bug #454736
74 + # Workaround for ncurses[tinfo] until upstream fixes their buildsystem using
75 + # something sane like pkg-config or ncurses5-config and stops guessing libs
76 + # Everything gets linked against ncurses anyways, so don't shout
77 + append-libs $($(tc-getPKG_CONFIG) --libs ncurses)
78 +
79 + local myeconfargs=(
80 + --disable-full-tgetent
81 + --disable-imake
82 + --disable-setgid
83 + --disable-setuid
84 + --enable-256-color
85 + --enable-broken-osc
86 + --enable-broken-st
87 + --enable-dabbrev
88 + --enable-exec-xterm
89 + --enable-i18n
90 + --enable-load-vt-fonts
91 + --enable-logging
92 + --enable-screen-dumps
93 + --enable-warnings
94 + --enable-wide-chars
95 + --libdir="${EPREFIX}"/etc
96 + --with-app-defaults="${DEFAULTS_DIR}"
97 + --with-utempter
98 + --with-x
99 + $(use_enable openpty)
100 + $(use_enable sixel sixel-graphics)
101 + $(use_enable toolbar)
102 + $(use_enable truetype freetype)
103 + $(use_enable unicode luit)
104 + $(use_enable unicode mini-luit)
105 + $(use_with Xaw3d)
106 + $(use_with xinerama)
107 + )
108 +
109 + econf "${myeconfargs[@]}"
110 +}
111 +
112 +src_install() {
113 + default
114 +
115 + docinto html
116 + dodoc xterm.log.html
117 + domenu *.desktop
118 +
119 + # Fix permissions -- it grabs them from live system, and they can
120 + # be suid or sgid like they were in pre-unix98 pty or pre-utempter days,
121 + # respectively (#69510).
122 + # (info from Thomas Dickey) - Donnie Berkholz <spyderous@g.o>
123 + fperms 0755 /usr/bin/xterm
124 +
125 + # restore the navy blue
126 + sed -i -e 's:blue2$:blue:' "${D}${DEFAULTS_DIR}"/XTerm-color || die
127 +}