From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1F9BF15808C for ; Wed, 6 Apr 2022 21:25:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7171BE09B4; Wed, 6 Apr 2022 21:25:31 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 56E30E093E for ; Wed, 6 Apr 2022 21:25:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 490CF340EC2 for ; Wed, 6 Apr 2022 21:25:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 87726290 for ; Wed, 6 Apr 2022 21:25:27 +0000 (UTC) From: "Ronny Gutbrod" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ronny Gutbrod" Message-ID: <1649274402.1cf47b5a6da4f551086eeafe036cff1ee73cfbc3.tastytea@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: app-shells/zsh-autosuggestions/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-shells/zsh-autosuggestions/zsh-autosuggestions-0.7.0-r1.ebuild X-VCS-Directories: app-shells/zsh-autosuggestions/ X-VCS-Committer: tastytea X-VCS-Committer-Name: Ronny Gutbrod X-VCS-Revision: 1cf47b5a6da4f551086eeafe036cff1ee73cfbc3 X-VCS-Branch: master Date: Wed, 6 Apr 2022 21:25:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: af6b9ab4-7c5e-456d-875e-85ab70455cab X-Archives-Hash: 3bd0ed33c2797c76c3d43f019b7ee634 Message-ID: <20220406212527.qRw94zBu8cdOUZWd1Ky1F8uwr74V2BUedhl6Od6y9vc@z> commit: 1cf47b5a6da4f551086eeafe036cff1ee73cfbc3 Author: Ronny (tastytea) Gutbrod tastytea de> AuthorDate: Wed Apr 6 19:29:33 2022 +0000 Commit: Ronny Gutbrod tastytea de> CommitDate: Wed Apr 6 19:46:42 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1cf47b5a app-shells/zsh-autosuggestions: Don't pull test deps with USE="-test" ruby-fakegem pulls in virtual/rubygems unconditionally, so we use ruby-ng directly and copy each_ruby_test() from ruby-fakegem. Signed-off-by: Ronny (tastytea) Gutbrod tastytea.de> .../zsh-autosuggestions-0.7.0-r1.ebuild | 83 ++++++++++++++++++++++ 1 file changed, 83 insertions(+) diff --git a/app-shells/zsh-autosuggestions/zsh-autosuggestions-0.7.0-r1.ebuild b/app-shells/zsh-autosuggestions/zsh-autosuggestions-0.7.0-r1.ebuild new file mode 100644 index 000000000..834a9c1b9 --- /dev/null +++ b/app-shells/zsh-autosuggestions/zsh-autosuggestions-0.7.0-r1.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby26 ruby27 ruby30" +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-4.3.11" +DEPEND="" +BDEPEND=" + test? ( + ${RDEPEND} + $(ruby_implementations_depend) + app-misc/tmux + dev-ruby/bundler + dev-ruby/pry + dev-ruby/pry-byebug + dev-ruby/rspec:3 + 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" + + 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 +}