app-emacs/vterm - 9999 (akater)

Search

Install

Install this version:

emerge -a =app-emacs/vterm-9999

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =app-emacs/vterm-9999

Or alternatively:

emerge --autounmask-write -a =app-emacs/vterm-9999

Package Information

Description:
Emacs package implementing a terminal via libvterm
Homepage:
https://github.com/akermu/emacs-libvterm
License:
GPL-3

Ebuild Details

Version EAPI Keywords Slot
9999 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit elisp cmake git-r3 git-extras

DESCRIPTION="Emacs package implementing a terminal via libvterm"
HOMEPAGE="https://github.com/akermu/emacs-libvterm"

# EGIT_REPO_URI="https://github.com/akermu/emacs-libvterm.git"
EGIT_REPO_URI="https://github.com/akater/emacs-libvterm.git"
EGIT_CLONE_TYPE="mirror"
EGIT_BRANCH="gentoo"
KEYWORDS="~amd64 ~x86"

LICENSE="GPL-3"
SLOT="0"
IUSE="fish +system-libvterm zsh"
# -system-libvterm does not work, see below

RDEPEND="
	>=app-editors/emacs-25.1[dynamic-loading]
	system-libvterm? ( dev-libs/libvterm )
"

BDEPEND="${RDEPEND}
	>=app-eselect/eselect-emacs-1.19
	>=dev-build/cmake-3.11
"
SITEFILE="50${PN}-gentoo.el"
DOCS="README.md"

src_prepare() {
	if ! use system-libvterm ; then
		git switch vendor_libvterm
		# this branch is old so this doesn't work
		git branch work
		git switch work
		git-merge gentoo
	fi
	cmake_src_prepare
}

src_configure() {
	local mycmakeargs=(
		-DUSE_SYSTEM_LIBVTERM=$(usex system-libvterm On Off)
	)
	cmake_src_configure
}

src_compile() {
	cmake_src_compile
	elisp_src_compile
}

src_install() {
	elisp_src_install
	elisp-modules-install ${PN} vterm-module.so

	insinto /etc/bash/
	doins etc/emacs-vterm-bash.sh

	# The following files are example configuration files for various shells.
	# You can put them anywhere and source the correct one in your shell.
	# Alternatively, you can ignore them and configure your shell
	# as you prefer according to the readme
	# --- Gabriele Bozzola @Sbozzolo on Telegram

	if use fish ; then
		insinto /etc/fish/
		doins etc/emacs-vterm.fish
	fi

	if use zsh ; then
		insinto /etc/zsh/
		doins etc/emacs-vterm-zsh.sh
	fi

}

USE Flags

Manage flags for this package: euse -i <flag> -p app-emacs/vterm | euse -E <flag> -p app-emacs/vterm | euse -D <flag> -p app-emacs/vterm

Global/Standard Flags

system-libvterm
Default: Enabled (+)
zsh

Inherited Eclasses

Dependencies

RDEPEND

	>=app-editors/emacs-25.1[dynamic-loading]
	system-libvterm? ( dev-libs/libvterm )

BDEPEND

	>=app-editors/emacs-25.1[dynamic-loading]
	system-libvterm? ( dev-libs/libvterm )

	>=app-eselect/eselect-emacs-1.19
	>=dev-build/cmake-3.11