app-shells/zsh-autosuggestions - 0.7.1 (guru)

Search

Install

Install this version:

emerge -a =app-shells/zsh-autosuggestions-0.7.1

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

autounmask =app-shells/zsh-autosuggestions-0.7.1

Or alternatively:

emerge --autounmask-write -a =app-shells/zsh-autosuggestions-0.7.1

Package Information

Description:
Fish-like autosuggestions for zsh
Homepage:
https://github.com/zsh-users/zsh-autosuggestions
License:
MIT

Ebuild Details

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

EAPI=8

USE_RUBY="ruby32 ruby33 ruby34 ruby40"
RUBY_OPTIONAL="yes"

inherit readme.gentoo-r1 ruby-ng

DESCRIPTION="Fish-like autosuggestions for zsh"
HOMEPAGE="https://github.com/zsh-users/zsh-autosuggestions"
SRC_URI="https://github.com/zsh-users/zsh-autosuggestions/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/all/${P}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
REQUIRED_USE="test? ( || ( $(ruby_get_use_targets) ) )"

RDEPEND=">=app-shells/zsh-5.9.1"
BDEPEND="
	test? (
		${RDEPEND}
		$(ruby_implementations_depend)
		app-misc/tmux
		dev-ruby/bundler
		dev-ruby/pry
		dev-ruby/pry-byebug
		dev-ruby/rspec
		dev-ruby/rspec-wait
		virtual/rubygems
	)
"

RESTRICT="!test? ( test )"

DISABLE_AUTOFORMATTING="true"
DOC_CONTENTS="In order to use ${CATEGORY}/${PN} add
. /usr/share/zsh/site-functions/${PN}.zsh
at the end of your ~/.zshrc"

pkg_setup() {
	use test && ruby-ng_pkg_setup
}

src_prepare() {
	# FIXME: Disable failing tests
	rm "spec/options/buffer_max_size_spec.rb" \
		|| die "Could not remove tests"
	rm "spec/integrations/auto_cd_spec.rb" \
		|| die "Could not remove tests"

	if use test; then
		ruby-ng_src_prepare
	else
		default
	fi
}

src_configure() {
	use test && ruby-ng_src_configure
}

src_compile() {
	use test && ruby-ng_src_compile
}

each_ruby_test() {
	RSPEC_VERSION=3 ruby-ng_rspec
}

src_install() {
	insinto "/usr/share/zsh/site-functions/"
	doins "${PN}.zsh"

	readme.gentoo_create_doc
	einstalldocs
}

pkg_postinst() {
	readme.gentoo_print_elog
}

USE Flags

Manage flags for this package: euse -i <flag> -p app-shells/zsh-autosuggestions | euse -E <flag> -p app-shells/zsh-autosuggestions | euse -D <flag> -p app-shells/zsh-autosuggestions

Global/Standard Flags

Inherited Eclasses

Dependencies

RDEPEND

>=app-shells/zsh-5.9.1

BDEPEND

	test? (
		${RDEPEND}
		$(ruby_implementations_depend)
		app-misc/tmux
		dev-ruby/bundler
		dev-ruby/pry
		dev-ruby/pry-byebug
		dev-ruby/rspec
		dev-ruby/rspec-wait
		virtual/rubygems
	)

Manifest for 0.7.1

Type File Size Source URLs
DIST zsh-autosuggestions-0.7.1.tar.gz 29968 bytes https://github.com/zsh-users/zsh-autosuggestions/archive/v0.7.1.tar.gz