pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
diesel-cli: really install completions
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By: wiz
Date: Wed Jun 21 16:10:19 2023 +0200
Changeset: 97e80b95942614d3a53aa1be5f6fc7f6765b0a48
Modified Files:
diesel-cli/Makefile
diesel-cli/PLIST
diesel-cli/distinfo
Log Message:
diesel-cli: really install completions
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=97e80b95942614d3a53aa1be5f6fc7f6765b0a48
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
diesel-cli/Makefile | 24 ++++++++++++++++++++----
diesel-cli/PLIST | 3 +++
diesel-cli/distinfo | 6 +++---
3 files changed, 26 insertions(+), 7 deletions(-)
diffs:
diff --git a/diesel-cli/Makefile b/diesel-cli/Makefile
index 9acf97b999..e45f6e3bd0 100644
--- a/diesel-cli/Makefile
+++ b/diesel-cli/Makefile
@@ -1,24 +1,40 @@
# $NetBSD$
-DISTNAME= diesel-2.1.0
+DISTNAME= diesel-cli-2.1.0
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_GITHUB:=diesel-rs/}
+GITHUB_PROJECT= diesel
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
HOMEPAGE= https://diesel.rs/
COMMENT= CLI for the Diesel crate
-LICENSE= apache-2.0 AND mit
+LICENSE= apache-2.0 OR mit
+
+INSTALLATION_DIRS+= bin
+INSTALLATION_DIRS+= share/bash-completion/completions
+INSTALLATION_DIRS+= share/zsh/site-functions
+INSTALLATION_DIRS+= share/fish/vendor_completions.d
+
+DIESEL_BINARY= ${WRKSRC}/target/release/diesel
.include "cargo-depends.mk"
USE_TOOLS+= pkg-config
RUSTFLAGS+= -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.sqlite3}/lib
+RUSTFLAGS+= -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.${PGSQL_TYPE}}/lib
+
+post-build:
+ cd ${WRKSRC} && ${DIESEL_BINARY} completions bash > diesel.bash
+ cd ${WRKSRC} && ${DIESEL_BINARY} completions zsh > diesel.zsh
+ cd ${WRKSRC} && ${DIESEL_BINARY} completions fish > diesel.fish
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/target/release/diesel \
- ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${DIESEL_BINARY} ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/diesel.bash ${DESTDIR}${PREFIX}/share/bash-completion/completions/diesel
+ ${INSTALL_PROGRAM} ${WRKSRC}/diesel.zsh ${DESTDIR}${PREFIX}/share/zsh/site-functions/_diesel
+ ${INSTALL_PROGRAM} ${WRKSRC}/diesel.fish ${DESTDIR}${PREFIX}/share/fish/vendor_completions.d/diesel.fish
.include "../../lang/rust/cargo.mk"
.include "../../databases/sqlite3/buildlink3.mk"
diff --git a/diesel-cli/PLIST b/diesel-cli/PLIST
index e0592eed46..4aff2d7db6 100644
--- a/diesel-cli/PLIST
+++ b/diesel-cli/PLIST
@@ -1,2 +1,5 @@
@comment $NetBSD$
bin/diesel
+share/bash-completion/completions/diesel
+share/fish/vendor_completions.d/diesel.fish
+share/zsh/site-functions/_diesel
diff --git a/diesel-cli/distinfo b/diesel-cli/distinfo
index 970fa1a011..9e49903a79 100644
--- a/diesel-cli/distinfo
+++ b/diesel-cli/distinfo
@@ -90,9 +90,9 @@ Size (core-foundation-sys-0.8.4.crate) = 17725 bytes
BLAKE2s (crypto-common-0.1.6.crate) = 855d36a49ecab87b6f8a58c85a0360ab113d0615fa206f5e1bf200caa2fcbfd5
SHA512 (crypto-common-0.1.6.crate) = 471dbc43f517089d2cfe0868e29510c6ca579875b3bb5d013c70796db969b609b6c4bb35c9a07b9a2917012dc5708b717d48e317a20038adbe7e7039bf3ada6f
Size (crypto-common-0.1.6.crate) = 8760 bytes
-BLAKE2s (diesel-2.1.0.tar.gz) = 7f3b49e6e620016ecec5838b5165ccffb5782fd8e0d1b9f01b165d905ce5f2e8
-SHA512 (diesel-2.1.0.tar.gz) = 55636130b6b42a0d68d55c673e5ad9219a51519793597638cb374a89141c8617b0ad53f98e7890c540633af4ad64c7e23d8f2da1341ff21b22b0f183c07069a8
-Size (diesel-2.1.0.tar.gz) = 727497 bytes
+BLAKE2s (diesel-cli-2.1.0.tar.gz) = 7f3b49e6e620016ecec5838b5165ccffb5782fd8e0d1b9f01b165d905ce5f2e8
+SHA512 (diesel-cli-2.1.0.tar.gz) = 55636130b6b42a0d68d55c673e5ad9219a51519793597638cb374a89141c8617b0ad53f98e7890c540633af4ad64c7e23d8f2da1341ff21b22b0f183c07069a8
+Size (diesel-cli-2.1.0.tar.gz) = 727497 bytes
BLAKE2s (diffy-0.3.0.crate) = dd118fe0c99cc0f3dd777845394af28c6c5d43f92aa5e32e4af5d0623d4ea6cc
SHA512 (diffy-0.3.0.crate) = 242d5fd01f0bdcb877052d7ba96df4e394bb3bbc79328c9f16da20336215e00f796e27d219c10023bd0266da9c55976fe5de635741fe98287d02ad8c245e225b
Size (diffy-0.3.0.crate) = 35374 bytes
Home |
Main Index |
Thread Index |
Old Index