From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1602565-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 13A39158041
	for <garchives@archives.gentoo.org>; Wed, 21 Feb 2024 08:03:25 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 486E0E29B5;
	Wed, 21 Feb 2024 08:03:24 +0000 (UTC)
Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 2FCA0E29B5
	for <gentoo-commits@lists.gentoo.org>; Wed, 21 Feb 2024 08:03:24 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 6DD823431BE
	for <gentoo-commits@lists.gentoo.org>; Wed, 21 Feb 2024 08:03:23 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 07ACC14C5
	for <gentoo-commits@lists.gentoo.org>; Wed, 21 Feb 2024 08:03:22 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org>
Message-ID: <1708502571.b4bf0f072f03c4f45c1b51127b6eb91bfd002dc5.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-terms/xterm/
X-VCS-Repository: repo/gentoo
X-VCS-Files: x11-terms/xterm/Manifest x11-terms/xterm/xterm-390.ebuild
X-VCS-Directories: x11-terms/xterm/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: b4bf0f072f03c4f45c1b51127b6eb91bfd002dc5
X-VCS-Branch: master
Date: Wed, 21 Feb 2024 08:03:22 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: b95a3519-f854-44fd-a966-d398962684c0
X-Archives-Hash: cdadaaf32be03add07d21f7b70e19fbc

commit:     b4bf0f072f03c4f45c1b51127b6eb91bfd002dc5
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 21 08:02:44 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Feb 21 08:02:51 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4bf0f07

x11-terms/xterm: add 390

Signed-off-by: Sam James <sam <AT> gentoo.org>

 x11-terms/xterm/Manifest         |   2 +
 x11-terms/xterm/xterm-390.ebuild | 110 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 112 insertions(+)

diff --git a/x11-terms/xterm/Manifest b/x11-terms/xterm/Manifest
index 3cb1bbf3f3e0..3ea0cae38fda 100644
--- a/x11-terms/xterm/Manifest
+++ b/x11-terms/xterm/Manifest
@@ -2,3 +2,5 @@ DIST xterm-388.tgz 1548336 BLAKE2B fe003ee6a234bf978a3b85ab840f59470239b3584e20e
 DIST xterm-388.tgz.asc 729 BLAKE2B 22c15b4ee2aec490bf793ab6893b50a7d4fd48f182066012528df53df9684040664177df07aa1d798e5992e6969f11cd0f6fcf3f1cb666f50c4e68d18cfb690c SHA512 60d45780deba965b11bfe63a173d7413a76c05f043666aa41973296745976fd51380bebb6b6a120983c206889d550fb35895233492c674bc04555957829e4563
 DIST xterm-389.tgz 1579767 BLAKE2B 1d686a7873a659982f198138ce7b914042b6d92a45f7a78193ca0a0b5784540aaff6bc92b14236c0bb62fcbf69bdee3ad7dfe0c66ac853b1468458df29770abd SHA512 a87703692d621f38670c85be3495aa3840de5e53136dc7be01b3b7003add6109310cc583ac5f0ac1f67e588628336a4b48e947f8d1a326d33a804e2c164890fc
 DIST xterm-389.tgz.asc 729 BLAKE2B d44c17397c6bc64829677f4211db305343f334f73c479663048aac92b04aa329d100771d9ed51e8da958070fa1a81a2b8895e0bcdba0317138465374ad4b2fa9 SHA512 a793f911ed2aea78cd7ab289af7f031054ea86a6d726f4cd4775c44b30e9cc6217adbcda49bd195aa04a5c22ccf9d1cdefd99fe3d0785c5e126a901b0399195e
+DIST xterm-390.tgz 1580899 BLAKE2B 0f8f894cac4511ae1eb982ec9a2b94171d3967f061b3dd0c6f1051188a8a19b5bbc49a6e0c39c4d14f19071c750981b149b63bcb1c2ffff9c5a89e78fc5e99e3 SHA512 865ae292a56635ec2811a950763da22cbbb4de463bee75b4595b7387a09227f612c5620986e431631c3d73fe783d862fd9a6694c54c33898327339467b7085b7
+DIST xterm-390.tgz.asc 729 BLAKE2B a095355c7e1d7ad01e6a693a111e5d7145ed4ae7ae870862e85d631b56e1af2a4b5f3feaf599b83ef677543d6f24bbffbc1ad4ccf1b2ba2eb13d83d065518e79 SHA512 44093a1fd6db3902253bc66611ad21d6807faa92f248cf23e46e60556cd7e86f8a77d9b4c7ba167b3bbb8607ae49d7569e10c92589cb86203aadd4024db3162b

diff --git a/x11-terms/xterm/xterm-390.ebuild b/x11-terms/xterm/xterm-390.ebuild
new file mode 100644
index 000000000000..cd361e1d8205
--- /dev/null
+++ b/x11-terms/xterm/xterm-390.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/thomasdickey.asc
+inherit desktop flag-o-matic toolchain-funcs verify-sig xdg
+
+DESCRIPTION="Terminal Emulator for X Windows"
+HOMEPAGE="https://invisible-island.net/xterm/"
+SRC_URI="https://invisible-island.net/archives/${PN}/${P}.tgz"
+SRC_URI+=" verify-sig? ( https://invisible-island.net/archives/${PN}/${P}.tgz.asc )"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
+IUSE="+openpty sixel toolbar truetype unicode Xaw3d xinerama"
+
+DEPEND="
+	kernel_linux? ( sys-libs/libutempter )
+	media-libs/fontconfig:1.0
+	>=sys-libs/ncurses-5.7-r7:=
+	x11-apps/xmessage
+	x11-libs/libICE
+	x11-libs/libX11
+	x11-libs/libXaw
+	x11-libs/libXft
+	x11-libs/libxkbfile
+	x11-libs/libXmu
+	x11-libs/libXrender
+	x11-libs/libXt
+	unicode? ( x11-apps/luit )
+	Xaw3d? ( x11-libs/libXaw3d )
+	xinerama? ( x11-libs/libXinerama )"
+RDEPEND="${DEPEND}
+	media-fonts/font-misc-misc
+	x11-apps/rgb"
+DEPEND+=" x11-base/xorg-proto"
+BDEPEND="
+	virtual/pkgconfig
+	verify-sig? ( sec-keys/openpgp-keys-thomasdickey )
+"
+
+DOCS=( README{,.i18n} ctlseqs.txt )
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-384-unconditional-gnusource.patch
+)
+
+src_configure() {
+	DEFAULTS_DIR="${EPREFIX}"/usr/share/X11/app-defaults
+
+	# bug #454736
+	# Workaround for ncurses[tinfo] until upstream fixes their buildsystem using
+	# something sane like pkg-config or ncurses5-config and stops guessing libs
+	# Everything gets linked against ncurses anyways, so don't shout
+	append-libs $($(tc-getPKG_CONFIG) --libs ncurses)
+
+	local myeconfargs=(
+		--disable-full-tgetent
+		--disable-imake
+		--disable-setgid
+		--disable-setuid
+		--enable-256-color
+		--enable-broken-osc
+		--enable-broken-st
+		--enable-dabbrev
+		--enable-exec-xterm
+		--enable-i18n
+		--enable-load-vt-fonts
+		--enable-logging
+		--enable-screen-dumps
+		--enable-warnings
+		--enable-wide-chars
+		--libdir="${EPREFIX}"/etc
+		--with-app-defaults="${DEFAULTS_DIR}"
+		--with-icon-theme=hicolor
+		--with-icondir="${EPREFIX}"/usr/share/icons
+		--with-utempter
+		--with-x
+		$(use_enable openpty)
+		$(use_enable sixel sixel-graphics)
+		$(use_enable toolbar)
+		$(use_enable truetype freetype)
+		$(use_enable unicode luit)
+		$(use_enable unicode mini-luit)
+		$(use_with Xaw3d)
+		$(use_with xinerama)
+	)
+
+	econf "${myeconfargs[@]}"
+}
+
+src_install() {
+	default
+
+	docinto html
+	dodoc xterm.log.html
+	sed -i -e 's/_48x48//g' *.desktop || die
+	domenu *.desktop
+
+	# Fix permissions -- it grabs them from live system, and they can
+	# be suid or sgid like they were in pre-unix98 pty or pre-utempter days,
+	# respectively (#69510).
+	# (info from Thomas Dickey) - Donnie Berkholz <spyderous@gentoo.org>
+	fperms 0755 /usr/bin/xterm
+
+	# restore the navy blue
+	sed -i -e 's:blue2$:blue:' "${D}${DEFAULTS_DIR}"/XTerm-color || die
+}