Skip to content

Commit

Permalink
x11/shotman: update to 0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeich committed Feb 10, 2023
1 parent 286f632 commit 9b1e2aa
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 10 deletions.
3 changes: 2 additions & 1 deletion x11/shotman/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PORTNAME= shotman
DISTVERSIONPREFIX= v
DISTVERSION= 0.4.0
DISTVERSION= 0.4.1
CATEGORIES= x11 wayland
MASTER_SITES= https://git.sr.ht/~whynothugo/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/
# XXX Teach USES=cargo to not override default DISTFILES
Expand All @@ -16,6 +16,7 @@ LICENSE_FILE= ${WRKSRC}/LICENCE.md
LIB_DEPENDS= libxkbcommon.so:x11/libxkbcommon

USES= cargo pkgconfig
CARGO_ENV= SHOTMAN_VERSION="${DISTVERSIONFULL}"
PLIST_FILES= bin/${PORTNAME} \
bin/${PORTNAME}_completions \
share/bash-completion/completions/${PORTNAME} \
Expand Down
2 changes: 0 additions & 2 deletions x11/shotman/Makefile.crates
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ CARGO_CRATES= adler-1.0.2 \
chrono-0.4.23 \
clap-4.1.4 \
clap_complete-4.1.1 \
clap_complete_command-0.4.0 \
clap_complete_fig-4.1.0 \
clap_derive-4.1.0 \
clap_lex-0.3.0 \
codespan-reporting-0.11.1 \
Expand Down
10 changes: 3 additions & 7 deletions x11/shotman/distinfo
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
TIMESTAMP = 1675076032
SHA256 (shotman-v0.4.0.tar.gz) = 387ade4c244c26f03081b7c065b1e6f745032d1ae9e5d7b1adafcc636f8d3dbe
SIZE (shotman-v0.4.0.tar.gz) = 27267
TIMESTAMP = 1675933311
SHA256 (shotman-v0.4.1.tar.gz) = e9f25856b40ac21cd4e7795d175b127ec86f0b8fd81ead8772c7e610d9c0de06
SIZE (shotman-v0.4.1.tar.gz) = 27662
SHA256 (rust/crates/adler-1.0.2.crate) = f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe
SIZE (rust/crates/adler-1.0.2.crate) = 12778
SHA256 (rust/crates/android_system_properties-0.1.5.crate) = 819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311
Expand All @@ -27,10 +27,6 @@ SHA256 (rust/crates/clap-4.1.4.crate) = f13b9c79b5d1dd500d20ef541215a6423c75829e
SIZE (rust/crates/clap-4.1.4.crate) = 207077
SHA256 (rust/crates/clap_complete-4.1.1.crate) = 3d6540eedc41f8a5a76cf3d8d458057dcdf817be4158a55b5f861f7a5483de75
SIZE (rust/crates/clap_complete-4.1.1.crate) = 32707
SHA256 (rust/crates/clap_complete_command-0.4.0.crate) = 4160b4a4f72ef58bd766bad27c09e6ef1cc9d82a22f6a0f55d152985a4a48e31
SIZE (rust/crates/clap_complete_command-0.4.0.crate) = 6293
SHA256 (rust/crates/clap_complete_fig-4.1.0.crate) = cf0c76d8fcf782a1102ccfcd10ca8246e7fdd609c1cd6deddbb96cb638e9bb5c
SIZE (rust/crates/clap_complete_fig-4.1.0.crate) = 10970
SHA256 (rust/crates/clap_derive-4.1.0.crate) = 684a277d672e91966334af371f1a7b5833f9aa00b07c84e92fbce95e00208ce8
SIZE (rust/crates/clap_derive-4.1.0.crate) = 27897
SHA256 (rust/crates/clap_lex-0.3.0.crate) = 0d4198f73e42b4936b35b5bb248d81d2b595ecb170da0bac7655c54eedfa8da8
Expand Down
17 changes: 17 additions & 0 deletions x11/shotman/files/patch-build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
https://lists.sr.ht/~whynothugo/shotman/%3Clel5-5qpi-wny%40FreeBSD.org%3E

--- build.rs.orig 2023-02-09 09:01:51 UTC
+++ build.rs
@@ -1,5 +1,6 @@ fn main() {
use std::process::Command;
fn main() {
+ if std::env::var("SHOTMAN_VERSION").is_err() {
let version = Command::new("git")
.args(["describe", "--tags"])
.output()
@@ -13,4 +14,5 @@ fn main() {
.unwrap_or(String::from("unknown")); // failed to run git

println!("cargo:rustc-env=SHOTMAN_VERSION={version}");
+ }
}

0 comments on commit 9b1e2aa

Please sign in to comment.