From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 C0A41158088 for ; Fri, 7 Jan 2022 20:44:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 186B12BC034; Fri, 7 Jan 2022 20:44:56 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 C352D2BC032 for ; Fri, 7 Jan 2022 20:44:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 F2429342D32 for ; Fri, 7 Jan 2022 20:44:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A5F9D285 for ; Fri, 7 Jan 2022 20:44:52 +0000 (UTC) From: "Georgy Yakovlev" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Georgy Yakovlev" Message-ID: <1641588233.d65ae4798481462d0c332a98329f2c6075fd57c8.gyakovlev@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: x11-terms/st-terminfo/ X-VCS-Repository: repo/gentoo X-VCS-Files: x11-terms/st-terminfo/Manifest x11-terms/st-terminfo/metadata.xml x11-terms/st-terminfo/st-terminfo-0.8.5.ebuild x11-terms/st-terminfo/st-terminfo-9999.ebuild X-VCS-Directories: x11-terms/st-terminfo/ X-VCS-Committer: gyakovlev X-VCS-Committer-Name: Georgy Yakovlev X-VCS-Revision: d65ae4798481462d0c332a98329f2c6075fd57c8 X-VCS-Branch: master Date: Fri, 7 Jan 2022 20:44:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6c05abbd-bbe2-475d-8ef6-2ea9fce6f230 X-Archives-Hash: 81dd7bed7f6f54a1cd81b13a691d05ad commit: d65ae4798481462d0c332a98329f2c6075fd57c8 Author: Georgy Yakovlev gentoo org> AuthorDate: Fri Jan 7 20:32:45 2022 +0000 Commit: Georgy Yakovlev gentoo org> CommitDate: Fri Jan 7 20:43:53 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d65ae479 x11-terms/st-terminfo: initial import Bug: https://bugs.gentoo.org/592332 Signed-off-by: Georgy Yakovlev gentoo.org> x11-terms/st-terminfo/Manifest | 1 + x11-terms/st-terminfo/metadata.xml | 8 ++++ x11-terms/st-terminfo/st-terminfo-0.8.5.ebuild | 51 ++++++++++++++++++++++++++ x11-terms/st-terminfo/st-terminfo-9999.ebuild | 51 ++++++++++++++++++++++++++ 4 files changed, 111 insertions(+) diff --git a/x11-terms/st-terminfo/Manifest b/x11-terms/st-terminfo/Manifest new file mode 100644 index 000000000000..589989ed4491 --- /dev/null +++ b/x11-terms/st-terminfo/Manifest @@ -0,0 +1 @@ +DIST st-0.8.5.tar.gz 47829 BLAKE2B 9c036b39605dcc69c03fd5a67e911545eb41e3e748efbcf4761770b2a9bf9f158fc1da1fc140b84fb9939fcb35ce126de444cd567806c350e8e2905907bdf645 SHA512 45cc51f9fc343bd80a48f23f5b00e41e0cc01a538474e0578dd02f02ce92cb560e0e7464ec47fd7de4d39483b23fda212c3e7c64233e8a3f4ab6862144d76323 diff --git a/x11-terms/st-terminfo/metadata.xml b/x11-terms/st-terminfo/metadata.xml new file mode 100644 index 000000000000..2f82d0bb8eb7 --- /dev/null +++ b/x11-terms/st-terminfo/metadata.xml @@ -0,0 +1,8 @@ + + + + + gyakovlev@gentoo.org + Georgy Yakovlev + + diff --git a/x11-terms/st-terminfo/st-terminfo-0.8.5.ebuild b/x11-terms/st-terminfo/st-terminfo-0.8.5.ebuild new file mode 100644 index 000000000000..05cc1126c2b2 --- /dev/null +++ b/x11-terms/st-terminfo/st-terminfo-0.8.5.ebuild @@ -0,0 +1,51 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Terminfo for x11-terms/st" +HOMEPAGE="https://st.suckless.org/" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://git.suckless.org/st" +else + SRC_URI="https://dl.suckless.org/st/st-${PV}.tar.gz" + S="${WORKDIR}/st-${PV}" + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc64 ~riscv ~x86" +fi + +LICENSE="MIT-with-advertising" +SLOT="0" + +BDEPEND=">=sys-libs/ncurses-6.0" + +RESTRICT="test" + +src_prepare() { + mkdir -v terminfo || die "Failed to create terminfo directory" + default +} + +src_configure() { + : +} + +src_compile() { + tic -sxo terminfo st.info || die "Failed to translate terminfo file" +} + +src_install() { + insinto "/usr/share/st" + doins -r terminfo + + newenvd - "51${PN}" <<-_EOF_ + TERMINFO_DIRS="/usr/share/st/terminfo" + COLON_SEPARATED="TERMINFO_DIRS" + _EOF_ +} + +pkg_postinst() { + ewarn "Please run env-update and then source /etc/profile in any open shells" + ewarn "to update terminfo settings. Relogin to update it for any new shells." +} diff --git a/x11-terms/st-terminfo/st-terminfo-9999.ebuild b/x11-terms/st-terminfo/st-terminfo-9999.ebuild new file mode 100644 index 000000000000..05cc1126c2b2 --- /dev/null +++ b/x11-terms/st-terminfo/st-terminfo-9999.ebuild @@ -0,0 +1,51 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Terminfo for x11-terms/st" +HOMEPAGE="https://st.suckless.org/" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://git.suckless.org/st" +else + SRC_URI="https://dl.suckless.org/st/st-${PV}.tar.gz" + S="${WORKDIR}/st-${PV}" + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc64 ~riscv ~x86" +fi + +LICENSE="MIT-with-advertising" +SLOT="0" + +BDEPEND=">=sys-libs/ncurses-6.0" + +RESTRICT="test" + +src_prepare() { + mkdir -v terminfo || die "Failed to create terminfo directory" + default +} + +src_configure() { + : +} + +src_compile() { + tic -sxo terminfo st.info || die "Failed to translate terminfo file" +} + +src_install() { + insinto "/usr/share/st" + doins -r terminfo + + newenvd - "51${PN}" <<-_EOF_ + TERMINFO_DIRS="/usr/share/st/terminfo" + COLON_SEPARATED="TERMINFO_DIRS" + _EOF_ +} + +pkg_postinst() { + ewarn "Please run env-update and then source /etc/profile in any open shells" + ewarn "to update terminfo settings. Relogin to update it for any new shells." +}