summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>