summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2019-02-21 17:41:51 -0800
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2019-02-21 17:44:44 -0800
commit7683342c9957081e3c4775facfce56078ea587fa (patch)
tree6af866f997a07bcbb209205c4351365479097799 /x11-terms
parentnet-nds/openldap: Revbump, fix libressl slot deps in 2.4.47 (diff)
downloadgentoo-7683342c9957081e3c4775facfce56078ea587fa.tar.gz
gentoo-7683342c9957081e3c4775facfce56078ea587fa.tar.bz2
gentoo-7683342c9957081e3c4775facfce56078ea587fa.zip
x11-terms/alacritty: add terminfo useflag
This will allow skipping compilation and installation of terminfo definitions has already been upstreamed to ncurses https://lists.gnu.org/archive/html/bug-ncurses/2018-10/msg00024.html https://invisible-island.net/ncurses/terminfo.src.html#toc-_Alacritty so at some point ncurses will get updated we'll be able to avoid collisions. Even without terminfo alacritty happily works with TERM=xterm-256color Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'x11-terms')
-rw-r--r--x11-terms/alacritty/alacritty-0.2.9.ebuild13
-rw-r--r--x11-terms/alacritty/metadata.xml3
2 files changed, 11 insertions, 5 deletions
diff --git a/x11-terms/alacritty/alacritty-0.2.9.ebuild b/x11-terms/alacritty/alacritty-0.2.9.ebuild
index 8861e4ab6ef6..455777826107 100644
--- a/x11-terms/alacritty/alacritty-0.2.9.ebuild
+++ b/x11-terms/alacritty/alacritty-0.2.9.ebuild
@@ -317,6 +317,7 @@ SRC_URI="https://github.com/jwilm/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
+IUSE="+terminfo"
DEPEND="
media-libs/fontconfig:=
@@ -333,8 +334,8 @@ RDEPEND="${DEPEND}
"
BDEPEND="dev-util/cmake
- sys-libs/ncurses
>=virtual/rust-1.32.0
+ terminfo? ( sys-libs/ncurses )
"
DOCS=( CHANGELOG.md docs/ansicode.txt INSTALL.md README.md alacritty.yml )
@@ -350,10 +351,6 @@ src_install() {
insinto /usr/share/zsh/site-functions
newins alacritty-completions.zsh _alacritty
- tic -e alacritty,alacritty-direct -o "${T}" alacritty.info || die "generating terminfo failed"
- insinto /usr/share/terminfo/a/
- doins "${T}"/a/alacritty*
-
sed -i '/^Icon=/s/utilities-terminal/alacritty/' alacritty.desktop || die
domenu alacritty.desktop
doicon "${DISTDIR}"/alacritty.png
@@ -361,6 +358,12 @@ src_install() {
newman alacritty.man alacritty.1
einstalldocs
+
+ if use terminfo; then
+ tic -e alacritty,alacritty-direct -o "${T}" alacritty.info || die "generating terminfo failed"
+ insinto /usr/share/terminfo/a/
+ doins "${T}"/a/alacritty*
+ fi
}
pkg_postinst() {
diff --git a/x11-terms/alacritty/metadata.xml b/x11-terms/alacritty/metadata.xml
index 6f012feb97f9..0e2f52d690f6 100644
--- a/x11-terms/alacritty/metadata.xml
+++ b/x11-terms/alacritty/metadata.xml
@@ -9,6 +9,9 @@
Alacritty is the fastest terminal emulator in existence.
Using the GPU for rendering enables optimizations that simply aren't possible in other emulators.
</longdescription>
+ <use>
+ <flag name="terminfo">Use tic from sys-libs/ncurses to generate alacritty terminfo files</flag>
+ </use>
<upstream>
<remote-id type="github">jwilm/alacritty</remote-id>
</upstream>