From: tranzystorek-io <tranzystorek-io@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] [WIP] rustup: generate shell completions for cargo
Date: Fri, 15 Jul 2022 08:31:01 +0200 [thread overview]
Message-ID: <20220715063101.2wXkaQ6yxTavgAOongDzTJ6gHu8ut3vYJGn3XGl1Nic@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-35768@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1273 bytes --]
There is an updated pull request by tranzystorek-io against master on the void-packages repository
https://github.com/tranzystorek-io/void-packages rustup-cargo-completions
https://github.com/void-linux/void-packages/pull/35768
[WIP] rustup: generate shell completions for cargo
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/35768.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-rustup-cargo-completions-35768.patch --]
[-- Type: text/x-diff, Size: 1683 bytes --]
From 1ba5638dff302da820061eb6cfc861259deb7a7c Mon Sep 17 00:00:00 2001
From: Marcin Puc <marcin.e.puc@gmail.com>
Date: Tue, 22 Feb 2022 11:49:40 +0100
Subject: [PATCH] New package: rustup-cargo-completion-1.25.1
---
srcpkgs/rustup-cargo-completion | 1 +
srcpkgs/rustup/template | 16 +++++++++++++++-
2 files changed, 16 insertions(+), 1 deletion(-)
create mode 120000 srcpkgs/rustup-cargo-completion
diff --git a/srcpkgs/rustup-cargo-completion b/srcpkgs/rustup-cargo-completion
new file mode 120000
index 000000000000..14748877257e
--- /dev/null
+++ b/srcpkgs/rustup-cargo-completion
@@ -0,0 +1 @@
+rustup
\ No newline at end of file
diff --git a/srcpkgs/rustup/template b/srcpkgs/rustup/template
index da9d2751ba4f..765958c8f45e 100644
--- a/srcpkgs/rustup/template
+++ b/srcpkgs/rustup/template
@@ -1,7 +1,7 @@
# Template file for 'rustup'
pkgname=rustup
version=1.25.1
-revision=1
+revision=2
# rustup doesn't recognize this target
archs="~armv*-musl"
build_style=cargo
@@ -31,6 +31,10 @@ post_build() {
vtargetrun ./rustup completions zsh >rustup.zsh
vtargetrun ./rustup completions bash >rustup.bash
vtargetrun ./rustup completions fish >rustup.fish
+
+ # generate cargo completions
+ vtargetrun ./rustup completions bash cargo >cargo.bash
+ vtargetrun ./rustup completions zsh cargo >cargo.zsh
}
do_install() {
@@ -44,3 +48,13 @@ do_install() {
vlicense LICENSE-APACHE
vlicense LICENSE-MIT
}
+
+rustup-cargo-completion_package() {
+ short_desc+=" - cargo completion scripts"
+ depends="${sourcepkg}-${version}_${revision}"
+ conflicts="cargo"
+ pkg_install() {
+ vcompletion cargo.bash bash cargo
+ vcompletion cargo.zsh zsh cargo
+ }
+}
next prev parent reply other threads:[~2022-07-15 6:31 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-22 11:28 [PR PATCH] " tranzystorek-io
2022-02-22 17:00 ` Duncaen
2022-02-22 17:59 ` tranzystorek-io
2022-02-23 5:37 ` [PR PATCH] [Updated] " tranzystorek-io
2022-02-27 13:40 ` tranzystorek-io
2022-03-04 15:28 ` tranzystorek-io
2022-03-08 13:49 ` [PR PATCH] [Updated] " tranzystorek-io
2022-03-08 14:21 ` Duncaen
2022-03-08 15:26 ` tranzystorek-io
2022-03-08 16:15 ` Duncaen
2022-03-08 16:23 ` Duncaen
2022-03-08 16:47 ` tranzystorek-io
2022-06-28 2:15 ` [WIP] " github-actions
2022-06-28 5:06 ` [PR PATCH] [Updated] " tranzystorek-io
2022-06-28 5:22 ` tranzystorek-io
2022-07-15 6:00 ` [PR PATCH] [Updated] " tranzystorek-io
2022-07-15 6:31 ` tranzystorek-io [this message]
2022-07-15 6:46 ` tranzystorek-io
2022-07-15 10:40 ` jcgruenhage
2022-07-17 20:57 ` CameronNemo
2022-07-17 21:14 ` CameronNemo
2022-07-17 21:14 ` CameronNemo
2022-07-18 7:15 ` jcgruenhage
2022-07-18 22:29 ` [PR PATCH] [Updated] " tranzystorek-io
2022-07-20 15:27 ` ahesford
2022-07-20 15:34 ` Duncaen
2022-07-20 16:48 ` ahesford
2022-07-20 16:48 ` ahesford
2022-10-19 2:14 ` github-actions
2022-10-19 18:13 ` tranzystorek-io
2022-10-19 18:13 ` [PR PATCH] [Closed]: " tranzystorek-io
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220715063101.2wXkaQ6yxTavgAOongDzTJ6gHu8ut3vYJGn3XGl1Nic@z \
--to=tranzystorek-io@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).