summaryrefslogtreecommitdiff
path: root/x11-terms/st-terminfo
diff options
context:
space:
mode:
Diffstat (limited to 'x11-terms/st-terminfo')
-rw-r--r--x11-terms/st-terminfo/Manifest4
-rw-r--r--x11-terms/st-terminfo/metadata.xml8
-rw-r--r--x11-terms/st-terminfo/st-terminfo-0.8.5.ebuild51
-rw-r--r--x11-terms/st-terminfo/st-terminfo-9999.ebuild51
4 files changed, 114 insertions, 0 deletions
diff --git a/x11-terms/st-terminfo/Manifest b/x11-terms/st-terminfo/Manifest
new file mode 100644
index 000000000000..55aaa1a369f9
--- /dev/null
+++ b/x11-terms/st-terminfo/Manifest
@@ -0,0 +1,4 @@
+DIST st-0.8.5.tar.gz 47829 BLAKE2B 9c036b39605dcc69c03fd5a67e911545eb41e3e748efbcf4761770b2a9bf9f158fc1da1fc140b84fb9939fcb35ce126de444cd567806c350e8e2905907bdf645 SHA512 45cc51f9fc343bd80a48f23f5b00e41e0cc01a538474e0578dd02f02ce92cb560e0e7464ec47fd7de4d39483b23fda212c3e7c64233e8a3f4ab6862144d76323
+EBUILD st-terminfo-0.8.5.ebuild 1069 BLAKE2B 81dbed746b1a45a57a10b54f3b79b955ba43e5a67d7658e516814a85557fd059ea487688957f9915f6d6ebd62044ddfa45448cce1f3052497c8cac4e1ef9562f SHA512 7a33a667cc0729d3b6736d026d675cdb163f843561f068997418460e393d94f81ebbdfe7c3a7f91a80d08d9050afa8b7c83c671f5965daa57b3632291220c750
+EBUILD st-terminfo-9999.ebuild 1069 BLAKE2B 81dbed746b1a45a57a10b54f3b79b955ba43e5a67d7658e516814a85557fd059ea487688957f9915f6d6ebd62044ddfa45448cce1f3052497c8cac4e1ef9562f SHA512 7a33a667cc0729d3b6736d026d675cdb163f843561f068997418460e393d94f81ebbdfe7c3a7f91a80d08d9050afa8b7c83c671f5965daa57b3632291220c750
+MISC metadata.xml 252 BLAKE2B ed5f11ce8c4de4fde4020b83dc772d6b47192ea5617cacf05adf13ab5a29923858b2969ed9dc26e75194cb972d41ffceee40856e6f955f42039693af96ebb2e4 SHA512 7f9b5cf205b6500eb65742c67963c3c6c375fa05c7eb094037fb9950d9d2840930e8b4d3ef76c948ddf7f37005012be51c8217c758a615dd7e128c80b6b1db28
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>gyakovlev@gentoo.org</email>
+ <name>Georgy Yakovlev</name>
+ </maintainer>
+</pkgmetadata>
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."
+}