Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] ruby-tmuxinator: update to 3.0.5.
@ 2022-08-11 16:03 dataCobra
  2022-08-11 16:07 ` [PR PATCH] [Updated] " dataCobra
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: dataCobra @ 2022-08-11 16:03 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 932 bytes --]

There is a new pull request by dataCobra against master on the void-packages repository

https://github.com/dataCobra/void-packages tmuxinator-update-3.0.5
https://github.com/void-linux/void-packages/pull/38613

ruby-tmuxinator: update to 3.0.5.
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl

I've also updated the necessary dependencies and switched from gem to gemspec to apply the patch for xdg. 

That patch is copied from [AUR](https://aur.archlinux.org/cgit/aur.git/tree/xdg.patch?h=tmuxinator).
With the patch ruby-xdg versions >=4.5.0 are working properly with tmuxinator-3.0.5.


A patch file from https://github.com/void-linux/void-packages/pull/38613.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-tmuxinator-update-3.0.5-38613.patch --]
[-- Type: text/x-diff, Size: 5893 bytes --]

From fc15f08e60aa8c43d7d23a54c0df09c56f89bf98 Mon Sep 17 00:00:00 2001
From: dataCobra <datacobra@thinkbot.de>
Date: Thu, 11 Aug 2022 17:54:12 +0200
Subject: [PATCH 1/3] ruby-xdg: update to 6.5.0.

---
 srcpkgs/ruby-xdg/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/ruby-xdg/template b/srcpkgs/ruby-xdg/template
index e04194374ce9..d0ffeb44af50 100644
--- a/srcpkgs/ruby-xdg/template
+++ b/srcpkgs/ruby-xdg/template
@@ -1,13 +1,13 @@
 # Template file for 'ruby-xdg'
 pkgname=ruby-xdg
-version=5.1.1
-revision=2
+version=6.5.0
+revision=1
 build_style=gem
 short_desc="Module for supporting the XDG Base Directory Standard"
 maintainer="Orphaned <orphan@voidlinux.org>"
-license="BSD-2-Clause"
+license="Hippocratic License 2.1.0"
 homepage="http://rubyworks.github.com/xdg"
-checksum=3d050ea585c0d1fdb69bbb9ee58858edbd7ad6e6db830391e08b174eddbe4b15
+checksum=c6b621087134c6452a19a5817a286b5ca400f8267549294bdffbcc7591b9c9b3
 
 post_install() {
 	vlicense LICENSE.adoc

From 0a37d9af419da2cfd05de3ca397741c3d0aa2298 Mon Sep 17 00:00:00 2001
From: dataCobra <datacobra@thinkbot.de>
Date: Thu, 11 Aug 2022 17:55:33 +0200
Subject: [PATCH 2/3] ruby-thor: update to 1.2.1.

---
 srcpkgs/ruby-thor/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/ruby-thor/template b/srcpkgs/ruby-thor/template
index 241ea78068e6..7344c73e1839 100644
--- a/srcpkgs/ruby-thor/template
+++ b/srcpkgs/ruby-thor/template
@@ -1,13 +1,13 @@
 # Template file for 'ruby-thor'
 pkgname=ruby-thor
-version=0.20.3
-revision=6
+version=1.2.1
+revision=1
 build_style=gem
 short_desc="Toolkit for building powerful command-line interfaces"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
 homepage="http://whatisthor.com/"
-checksum=49bc217fe28f6af34c6e60b003e3405c27595a55689077d82e9e61d4d3b519fa
+checksum=b1752153dc9c6b8d3fcaa665e9e1a00a3e73f28da5e238b81c404502e539d446
 
 post_install() {
 	vlicense LICENSE.md

From f96400cb39f3e542e6bee74eaf6a8d41ea8cdb71 Mon Sep 17 00:00:00 2001
From: dataCobra <datacobra@thinkbot.de>
Date: Thu, 11 Aug 2022 17:55:58 +0200
Subject: [PATCH 3/3] ruby-tmuxinator: update to 3.0.5.

---
 srcpkgs/ruby-tmuxinator/patches/xdg.patch | 50 +++++++++++++++++++++++
 srcpkgs/ruby-tmuxinator/template          | 17 +++++---
 2 files changed, 61 insertions(+), 6 deletions(-)
 create mode 100644 srcpkgs/ruby-tmuxinator/patches/xdg.patch

diff --git a/srcpkgs/ruby-tmuxinator/patches/xdg.patch b/srcpkgs/ruby-tmuxinator/patches/xdg.patch
new file mode 100644
index 000000000000..034a6b2bc1ee
--- /dev/null
+++ b/srcpkgs/ruby-tmuxinator/patches/xdg.patch
@@ -0,0 +1,50 @@
+diff --git a/lib/tmuxinator/config.rb b/lib/tmuxinator/config.rb
+index 25620bf..fcc61a3 100644
+--- a/lib/tmuxinator/config.rb
++++ b/lib/tmuxinator/config.rb
+@@ -29,7 +29,7 @@ module Tmuxinator
+       # a custom value. (e.g. if $XDG_CONFIG_HOME is set to ~/my-config, the
+       # return value will be ~/my-config/tmuxinator)
+       def xdg
+-        XDG["CONFIG"].to_s + "/tmuxinator"
++        XDG::Config.new.home.to_s + "/tmuxinator"
+       end
+
+       def xdg?
+diff --git a/spec/lib/tmuxinator/config_spec.rb b/spec/lib/tmuxinator/config_spec.rb
+index 71b8da2..d28a60a 100644
+--- a/spec/lib/tmuxinator/config_spec.rb
++++ b/spec/lib/tmuxinator/config_spec.rb
+@@ -53,7 +53,8 @@ describe Tmuxinator::Config do
+
+         Dir.mktmpdir do |dir|
+           config_parent = "#{dir}/non_existant_parent/s"
+-          allow(XDG).to receive(:[]).with("CONFIG").and_return config_parent
++          allow(XDG::Config).to receive_message_chain(:new, :home, :to_s).
++            and_return config_parent
+           expect(described_class.directory).
+             to eq "#{config_parent}/tmuxinator"
+           expect(File.directory?("#{config_parent}/tmuxinator")).to be true
+@@ -134,7 +135,8 @@ describe Tmuxinator::Config do
+
+   describe "#xdg" do
+     it "is $XDG_CONFIG_HOME/tmuxinator" do
+-      expect(described_class.xdg).to eq "#{XDG['CONFIG_HOME']}/tmuxinator"
++      config_home = XDG::Config.new.home.to_s
++      expect(described_class.xdg).to eq "#{config_home}/tmuxinator"
+     end
+   end
+
+diff --git a/tmuxinator.gemspec b/tmuxinator.gemspec
+index 1b02053..3f4c8f8 100644
+--- a/tmuxinator.gemspec
++++ b/tmuxinator.gemspec
+@@ -41,7 +41,7 @@ Gem::Specification.new do |s|
+
+   s.add_dependency "erubis", "~> 2.6"
+   s.add_dependency "thor", "~> 1.2.1"
+-  s.add_dependency "xdg", "~> 2.2", ">= 2.2.5"
++  s.add_dependency "xdg", ">= 4.3.0"
+
+   s.add_development_dependency "activesupport", "< 5.0.0" # Please see issue #432
+   s.add_development_dependency "awesome_print", "~> 1.2"
diff --git a/srcpkgs/ruby-tmuxinator/template b/srcpkgs/ruby-tmuxinator/template
index 7d11374018a5..6698c222e742 100644
--- a/srcpkgs/ruby-tmuxinator/template
+++ b/srcpkgs/ruby-tmuxinator/template
@@ -1,16 +1,21 @@
 # Template file for 'ruby-tmuxinator'
 pkgname=ruby-tmuxinator
-version=0.16.0
-revision=5
-build_style=gem
-depends="ruby-erubis>=2.6 ruby-thor>=0.15.0 ruby-xdg>=2.2.3 tmux"
+version=3.0.5
+revision=1
+build_style=gemspec
+depends="ruby-erubis>=2.6 ruby-thor>=1.2.1 ruby-xdg>=4.5.0 tmux"
 short_desc="Create and manage complex tmux sessions easily"
 maintainer="Alexander Egorenkov <egorenar-dev@posteo.net>"
 license="MIT"
 homepage="https://github.com/tmuxinator/tmuxinator"
-checksum=296f370ee7cfffd91ee42ab301479c7e632091097001728f6f2a84b629469538
+distfiles="https://github.com/tmuxinator/tmuxinator/archive/refs/tags/v${version}.tar.gz"
+checksum=f67296a0b600fb5d8e51bf8fc9f8376a887754fd74cd59b6a8d9c962ad8f80a4
+wrksrc="tmuxinator-${version}"
 
 post_install() {
-	$XBPS_FETCH_CMD https://raw.githubusercontent.com/tmuxinator/tmuxinator/v${version}/LICENSE
 	vlicense LICENSE
+	cd completion/
+	for sh in bash fish zsh; do
+		vcompletion "tmuxinator.${sh}" ${sh}
+	done
 }

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR PATCH] [Updated] ruby-tmuxinator: update to 3.0.5.
  2022-08-11 16:03 [PR PATCH] ruby-tmuxinator: update to 3.0.5 dataCobra
@ 2022-08-11 16:07 ` dataCobra
  2022-08-11 16:10 ` dataCobra
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: dataCobra @ 2022-08-11 16:07 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 937 bytes --]

There is an updated pull request by dataCobra against master on the void-packages repository

https://github.com/dataCobra/void-packages tmuxinator-update-3.0.5
https://github.com/void-linux/void-packages/pull/38613

ruby-tmuxinator: update to 3.0.5.
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl

I've also updated the necessary dependencies and switched from gem to gemspec to apply the patch for xdg. 

That patch is copied from [AUR](https://aur.archlinux.org/cgit/aur.git/tree/xdg.patch?h=tmuxinator).
With the patch ruby-xdg versions >=4.5.0 are working properly with tmuxinator-3.0.5.


A patch file from https://github.com/void-linux/void-packages/pull/38613.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-tmuxinator-update-3.0.5-38613.patch --]
[-- Type: text/x-diff, Size: 5883 bytes --]

From 7155404f151f69cc9d2ceaa20abaf6e3135116f9 Mon Sep 17 00:00:00 2001
From: dataCobra <datacobra@thinkbot.de>
Date: Thu, 11 Aug 2022 18:06:54 +0200
Subject: [PATCH 1/3] ruby-xdg: update to 6.5.0.

---
 srcpkgs/ruby-xdg/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/ruby-xdg/template b/srcpkgs/ruby-xdg/template
index e04194374ce9..cb711fd41f2c 100644
--- a/srcpkgs/ruby-xdg/template
+++ b/srcpkgs/ruby-xdg/template
@@ -1,13 +1,13 @@
 # Template file for 'ruby-xdg'
 pkgname=ruby-xdg
-version=5.1.1
-revision=2
+version=6.5.0
+revision=1
 build_style=gem
 short_desc="Module for supporting the XDG Base Directory Standard"
 maintainer="Orphaned <orphan@voidlinux.org>"
-license="BSD-2-Clause"
+license="Hippocratic-2.1"
 homepage="http://rubyworks.github.com/xdg"
-checksum=3d050ea585c0d1fdb69bbb9ee58858edbd7ad6e6db830391e08b174eddbe4b15
+checksum=c6b621087134c6452a19a5817a286b5ca400f8267549294bdffbcc7591b9c9b3
 
 post_install() {
 	vlicense LICENSE.adoc

From a0b49586ca5232bfaaa1715cbbf26c9f4ef02a01 Mon Sep 17 00:00:00 2001
From: dataCobra <datacobra@thinkbot.de>
Date: Thu, 11 Aug 2022 18:07:18 +0200
Subject: [PATCH 2/3] ruby-thor: update to 1.2.1.

---
 srcpkgs/ruby-thor/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/ruby-thor/template b/srcpkgs/ruby-thor/template
index 241ea78068e6..7344c73e1839 100644
--- a/srcpkgs/ruby-thor/template
+++ b/srcpkgs/ruby-thor/template
@@ -1,13 +1,13 @@
 # Template file for 'ruby-thor'
 pkgname=ruby-thor
-version=0.20.3
-revision=6
+version=1.2.1
+revision=1
 build_style=gem
 short_desc="Toolkit for building powerful command-line interfaces"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
 homepage="http://whatisthor.com/"
-checksum=49bc217fe28f6af34c6e60b003e3405c27595a55689077d82e9e61d4d3b519fa
+checksum=b1752153dc9c6b8d3fcaa665e9e1a00a3e73f28da5e238b81c404502e539d446
 
 post_install() {
 	vlicense LICENSE.md

From f98fc0277e99f06ec87efc396e76906c2c740eef Mon Sep 17 00:00:00 2001
From: dataCobra <datacobra@thinkbot.de>
Date: Thu, 11 Aug 2022 18:07:43 +0200
Subject: [PATCH 3/3] ruby-tmuxinator: update to 3.0.5.

---
 srcpkgs/ruby-tmuxinator/patches/xdg.patch | 50 +++++++++++++++++++++++
 srcpkgs/ruby-tmuxinator/template          | 17 +++++---
 2 files changed, 61 insertions(+), 6 deletions(-)
 create mode 100644 srcpkgs/ruby-tmuxinator/patches/xdg.patch

diff --git a/srcpkgs/ruby-tmuxinator/patches/xdg.patch b/srcpkgs/ruby-tmuxinator/patches/xdg.patch
new file mode 100644
index 000000000000..034a6b2bc1ee
--- /dev/null
+++ b/srcpkgs/ruby-tmuxinator/patches/xdg.patch
@@ -0,0 +1,50 @@
+diff --git a/lib/tmuxinator/config.rb b/lib/tmuxinator/config.rb
+index 25620bf..fcc61a3 100644
+--- a/lib/tmuxinator/config.rb
++++ b/lib/tmuxinator/config.rb
+@@ -29,7 +29,7 @@ module Tmuxinator
+       # a custom value. (e.g. if $XDG_CONFIG_HOME is set to ~/my-config, the
+       # return value will be ~/my-config/tmuxinator)
+       def xdg
+-        XDG["CONFIG"].to_s + "/tmuxinator"
++        XDG::Config.new.home.to_s + "/tmuxinator"
+       end
+
+       def xdg?
+diff --git a/spec/lib/tmuxinator/config_spec.rb b/spec/lib/tmuxinator/config_spec.rb
+index 71b8da2..d28a60a 100644
+--- a/spec/lib/tmuxinator/config_spec.rb
++++ b/spec/lib/tmuxinator/config_spec.rb
+@@ -53,7 +53,8 @@ describe Tmuxinator::Config do
+
+         Dir.mktmpdir do |dir|
+           config_parent = "#{dir}/non_existant_parent/s"
+-          allow(XDG).to receive(:[]).with("CONFIG").and_return config_parent
++          allow(XDG::Config).to receive_message_chain(:new, :home, :to_s).
++            and_return config_parent
+           expect(described_class.directory).
+             to eq "#{config_parent}/tmuxinator"
+           expect(File.directory?("#{config_parent}/tmuxinator")).to be true
+@@ -134,7 +135,8 @@ describe Tmuxinator::Config do
+
+   describe "#xdg" do
+     it "is $XDG_CONFIG_HOME/tmuxinator" do
+-      expect(described_class.xdg).to eq "#{XDG['CONFIG_HOME']}/tmuxinator"
++      config_home = XDG::Config.new.home.to_s
++      expect(described_class.xdg).to eq "#{config_home}/tmuxinator"
+     end
+   end
+
+diff --git a/tmuxinator.gemspec b/tmuxinator.gemspec
+index 1b02053..3f4c8f8 100644
+--- a/tmuxinator.gemspec
++++ b/tmuxinator.gemspec
+@@ -41,7 +41,7 @@ Gem::Specification.new do |s|
+
+   s.add_dependency "erubis", "~> 2.6"
+   s.add_dependency "thor", "~> 1.2.1"
+-  s.add_dependency "xdg", "~> 2.2", ">= 2.2.5"
++  s.add_dependency "xdg", ">= 4.3.0"
+
+   s.add_development_dependency "activesupport", "< 5.0.0" # Please see issue #432
+   s.add_development_dependency "awesome_print", "~> 1.2"
diff --git a/srcpkgs/ruby-tmuxinator/template b/srcpkgs/ruby-tmuxinator/template
index 7d11374018a5..1e7fcda10720 100644
--- a/srcpkgs/ruby-tmuxinator/template
+++ b/srcpkgs/ruby-tmuxinator/template
@@ -1,16 +1,21 @@
 # Template file for 'ruby-tmuxinator'
 pkgname=ruby-tmuxinator
-version=0.16.0
-revision=5
-build_style=gem
-depends="ruby-erubis>=2.6 ruby-thor>=0.15.0 ruby-xdg>=2.2.3 tmux"
+version=3.0.5
+revision=1
+build_style=gemspec
+depends="ruby-erubis>=2.6 ruby-thor>=1.2.1 ruby-xdg>=4.5.0 tmux"
 short_desc="Create and manage complex tmux sessions easily"
 maintainer="Alexander Egorenkov <egorenar-dev@posteo.net>"
 license="MIT"
 homepage="https://github.com/tmuxinator/tmuxinator"
-checksum=296f370ee7cfffd91ee42ab301479c7e632091097001728f6f2a84b629469538
+distfiles="https://github.com/tmuxinator/tmuxinator/archive/refs/tags/v${version}.tar.gz"
+wrksrc="tmuxinator-${version}"
+checksum=f67296a0b600fb5d8e51bf8fc9f8376a887754fd74cd59b6a8d9c962ad8f80a4
 
 post_install() {
-	$XBPS_FETCH_CMD https://raw.githubusercontent.com/tmuxinator/tmuxinator/v${version}/LICENSE
 	vlicense LICENSE
+	cd completion/
+	for sh in bash fish zsh; do
+		vcompletion "tmuxinator.${sh}" ${sh}
+	done
 }

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR PATCH] [Updated] ruby-tmuxinator: update to 3.0.5.
  2022-08-11 16:03 [PR PATCH] ruby-tmuxinator: update to 3.0.5 dataCobra
  2022-08-11 16:07 ` [PR PATCH] [Updated] " dataCobra
@ 2022-08-11 16:10 ` dataCobra
  2022-08-11 16:16 ` dataCobra
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: dataCobra @ 2022-08-11 16:10 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 937 bytes --]

There is an updated pull request by dataCobra against master on the void-packages repository

https://github.com/dataCobra/void-packages tmuxinator-update-3.0.5
https://github.com/void-linux/void-packages/pull/38613

ruby-tmuxinator: update to 3.0.5.
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl

I've also updated the necessary dependencies and switched from gem to gemspec to apply the patch for xdg. 

That patch is copied from [AUR](https://aur.archlinux.org/cgit/aur.git/tree/xdg.patch?h=tmuxinator).
With the patch ruby-xdg versions >=4.5.0 are working properly with tmuxinator-3.0.5.


A patch file from https://github.com/void-linux/void-packages/pull/38613.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-tmuxinator-update-3.0.5-38613.patch --]
[-- Type: text/x-diff, Size: 5883 bytes --]

From 7155404f151f69cc9d2ceaa20abaf6e3135116f9 Mon Sep 17 00:00:00 2001
From: dataCobra <datacobra@thinkbot.de>
Date: Thu, 11 Aug 2022 18:06:54 +0200
Subject: [PATCH 1/3] ruby-xdg: update to 6.5.0.

---
 srcpkgs/ruby-xdg/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/ruby-xdg/template b/srcpkgs/ruby-xdg/template
index e04194374ce9..cb711fd41f2c 100644
--- a/srcpkgs/ruby-xdg/template
+++ b/srcpkgs/ruby-xdg/template
@@ -1,13 +1,13 @@
 # Template file for 'ruby-xdg'
 pkgname=ruby-xdg
-version=5.1.1
-revision=2
+version=6.5.0
+revision=1
 build_style=gem
 short_desc="Module for supporting the XDG Base Directory Standard"
 maintainer="Orphaned <orphan@voidlinux.org>"
-license="BSD-2-Clause"
+license="Hippocratic-2.1"
 homepage="http://rubyworks.github.com/xdg"
-checksum=3d050ea585c0d1fdb69bbb9ee58858edbd7ad6e6db830391e08b174eddbe4b15
+checksum=c6b621087134c6452a19a5817a286b5ca400f8267549294bdffbcc7591b9c9b3
 
 post_install() {
 	vlicense LICENSE.adoc

From a0b49586ca5232bfaaa1715cbbf26c9f4ef02a01 Mon Sep 17 00:00:00 2001
From: dataCobra <datacobra@thinkbot.de>
Date: Thu, 11 Aug 2022 18:07:18 +0200
Subject: [PATCH 2/3] ruby-thor: update to 1.2.1.

---
 srcpkgs/ruby-thor/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/ruby-thor/template b/srcpkgs/ruby-thor/template
index 241ea78068e6..7344c73e1839 100644
--- a/srcpkgs/ruby-thor/template
+++ b/srcpkgs/ruby-thor/template
@@ -1,13 +1,13 @@
 # Template file for 'ruby-thor'
 pkgname=ruby-thor
-version=0.20.3
-revision=6
+version=1.2.1
+revision=1
 build_style=gem
 short_desc="Toolkit for building powerful command-line interfaces"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
 homepage="http://whatisthor.com/"
-checksum=49bc217fe28f6af34c6e60b003e3405c27595a55689077d82e9e61d4d3b519fa
+checksum=b1752153dc9c6b8d3fcaa665e9e1a00a3e73f28da5e238b81c404502e539d446
 
 post_install() {
 	vlicense LICENSE.md

From da4d2e48e28d67b903c41a38d06fd86648228c78 Mon Sep 17 00:00:00 2001
From: dataCobra <datacobra@thinkbot.de>
Date: Thu, 11 Aug 2022 18:10:09 +0200
Subject: [PATCH 3/3] ruby-tmuxinator: update to 3.0.5.

---
 srcpkgs/ruby-tmuxinator/patches/xdg.patch | 50 +++++++++++++++++++++++
 srcpkgs/ruby-tmuxinator/template          | 17 +++++---
 2 files changed, 61 insertions(+), 6 deletions(-)
 create mode 100644 srcpkgs/ruby-tmuxinator/patches/xdg.patch

diff --git a/srcpkgs/ruby-tmuxinator/patches/xdg.patch b/srcpkgs/ruby-tmuxinator/patches/xdg.patch
new file mode 100644
index 000000000000..034a6b2bc1ee
--- /dev/null
+++ b/srcpkgs/ruby-tmuxinator/patches/xdg.patch
@@ -0,0 +1,50 @@
+diff --git a/lib/tmuxinator/config.rb b/lib/tmuxinator/config.rb
+index 25620bf..fcc61a3 100644
+--- a/lib/tmuxinator/config.rb
++++ b/lib/tmuxinator/config.rb
+@@ -29,7 +29,7 @@ module Tmuxinator
+       # a custom value. (e.g. if $XDG_CONFIG_HOME is set to ~/my-config, the
+       # return value will be ~/my-config/tmuxinator)
+       def xdg
+-        XDG["CONFIG"].to_s + "/tmuxinator"
++        XDG::Config.new.home.to_s + "/tmuxinator"
+       end
+
+       def xdg?
+diff --git a/spec/lib/tmuxinator/config_spec.rb b/spec/lib/tmuxinator/config_spec.rb
+index 71b8da2..d28a60a 100644
+--- a/spec/lib/tmuxinator/config_spec.rb
++++ b/spec/lib/tmuxinator/config_spec.rb
+@@ -53,7 +53,8 @@ describe Tmuxinator::Config do
+
+         Dir.mktmpdir do |dir|
+           config_parent = "#{dir}/non_existant_parent/s"
+-          allow(XDG).to receive(:[]).with("CONFIG").and_return config_parent
++          allow(XDG::Config).to receive_message_chain(:new, :home, :to_s).
++            and_return config_parent
+           expect(described_class.directory).
+             to eq "#{config_parent}/tmuxinator"
+           expect(File.directory?("#{config_parent}/tmuxinator")).to be true
+@@ -134,7 +135,8 @@ describe Tmuxinator::Config do
+
+   describe "#xdg" do
+     it "is $XDG_CONFIG_HOME/tmuxinator" do
+-      expect(described_class.xdg).to eq "#{XDG['CONFIG_HOME']}/tmuxinator"
++      config_home = XDG::Config.new.home.to_s
++      expect(described_class.xdg).to eq "#{config_home}/tmuxinator"
+     end
+   end
+
+diff --git a/tmuxinator.gemspec b/tmuxinator.gemspec
+index 1b02053..3f4c8f8 100644
+--- a/tmuxinator.gemspec
++++ b/tmuxinator.gemspec
+@@ -41,7 +41,7 @@ Gem::Specification.new do |s|
+
+   s.add_dependency "erubis", "~> 2.6"
+   s.add_dependency "thor", "~> 1.2.1"
+-  s.add_dependency "xdg", "~> 2.2", ">= 2.2.5"
++  s.add_dependency "xdg", ">= 4.3.0"
+
+   s.add_development_dependency "activesupport", "< 5.0.0" # Please see issue #432
+   s.add_development_dependency "awesome_print", "~> 1.2"
diff --git a/srcpkgs/ruby-tmuxinator/template b/srcpkgs/ruby-tmuxinator/template
index 7d11374018a5..644e42be30a6 100644
--- a/srcpkgs/ruby-tmuxinator/template
+++ b/srcpkgs/ruby-tmuxinator/template
@@ -1,16 +1,21 @@
 # Template file for 'ruby-tmuxinator'
 pkgname=ruby-tmuxinator
-version=0.16.0
-revision=5
-build_style=gem
-depends="ruby-erubis>=2.6 ruby-thor>=0.15.0 ruby-xdg>=2.2.3 tmux"
+version=3.0.5
+revision=1
+wrksrc="tmuxinator-${version}"
+build_style=gemspec
+depends="ruby-erubis>=2.6 ruby-thor>=1.2.1 ruby-xdg>=4.5.0 tmux"
 short_desc="Create and manage complex tmux sessions easily"
 maintainer="Alexander Egorenkov <egorenar-dev@posteo.net>"
 license="MIT"
 homepage="https://github.com/tmuxinator/tmuxinator"
-checksum=296f370ee7cfffd91ee42ab301479c7e632091097001728f6f2a84b629469538
+distfiles="https://github.com/tmuxinator/tmuxinator/archive/refs/tags/v${version}.tar.gz"
+checksum=f67296a0b600fb5d8e51bf8fc9f8376a887754fd74cd59b6a8d9c962ad8f80a4
 
 post_install() {
-	$XBPS_FETCH_CMD https://raw.githubusercontent.com/tmuxinator/tmuxinator/v${version}/LICENSE
 	vlicense LICENSE
+	cd completion/
+	for sh in bash fish zsh; do
+		vcompletion "tmuxinator.${sh}" ${sh}
+	done
 }

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: ruby-tmuxinator: update to 3.0.5.
  2022-08-11 16:03 [PR PATCH] ruby-tmuxinator: update to 3.0.5 dataCobra
  2022-08-11 16:07 ` [PR PATCH] [Updated] " dataCobra
  2022-08-11 16:10 ` dataCobra
@ 2022-08-11 16:16 ` dataCobra
  2022-08-11 16:55 ` [PR REVIEW] " classabbyamp
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: dataCobra @ 2022-08-11 16:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 194 bytes --]

New comment by dataCobra on void-packages repository

https://github.com/void-linux/void-packages/pull/38613#issuecomment-1212202696

Comment:
Hey @egorenar,

are you ok with these changes?


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR REVIEW] ruby-tmuxinator: update to 3.0.5.
  2022-08-11 16:03 [PR PATCH] ruby-tmuxinator: update to 3.0.5 dataCobra
                   ` (3 preceding siblings ...)
  2022-08-11 16:55 ` [PR REVIEW] " classabbyamp
@ 2022-08-11 16:55 ` classabbyamp
  2022-08-11 17:00 ` classabbyamp
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: classabbyamp @ 2022-08-11 16:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 312 bytes --]

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/38613#discussion_r943712534

Comment:
```suggestion
homepage="https://github.com/tmuxinator/tmuxinator"
changelog="https://raw.githubusercontent.com/tmuxinator/tmuxinator/master/CHANGELOG.md"
```

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR REVIEW] ruby-tmuxinator: update to 3.0.5.
  2022-08-11 16:03 [PR PATCH] ruby-tmuxinator: update to 3.0.5 dataCobra
                   ` (2 preceding siblings ...)
  2022-08-11 16:16 ` dataCobra
@ 2022-08-11 16:55 ` classabbyamp
  2022-08-11 16:55 ` classabbyamp
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: classabbyamp @ 2022-08-11 16:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 251 bytes --]

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/38613#discussion_r943706710

Comment:
```suggestion
	for sh in bash fish zsh; do
		vcompletion "completion/tmuxinator.${sh}" ${sh}
```

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR REVIEW] ruby-tmuxinator: update to 3.0.5.
  2022-08-11 16:03 [PR PATCH] ruby-tmuxinator: update to 3.0.5 dataCobra
                   ` (4 preceding siblings ...)
  2022-08-11 16:55 ` classabbyamp
@ 2022-08-11 17:00 ` classabbyamp
  2022-08-11 17:00 ` classabbyamp
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: classabbyamp @ 2022-08-11 17:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 293 bytes --]

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/38613#discussion_r943718804

Comment:
```suggestion
homepage="http://rubyworks.github.com/xdg"
changelog="https://raw.githubusercontent.com/rubyworks/xdg/master/HISTORY.md"
```

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR REVIEW] ruby-tmuxinator: update to 3.0.5.
  2022-08-11 16:03 [PR PATCH] ruby-tmuxinator: update to 3.0.5 dataCobra
                   ` (5 preceding siblings ...)
  2022-08-11 17:00 ` classabbyamp
@ 2022-08-11 17:00 ` classabbyamp
  2022-08-11 17:09 ` [PR PATCH] [Updated] " dataCobra
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: classabbyamp @ 2022-08-11 17:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 292 bytes --]

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/38613#discussion_r943718804

Comment:
```suggestion
homepage="http://rubyworks.github.io/xdg"
changelog="https://raw.githubusercontent.com/rubyworks/xdg/master/HISTORY.md"
```

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR PATCH] [Updated] ruby-tmuxinator: update to 3.0.5.
  2022-08-11 16:03 [PR PATCH] ruby-tmuxinator: update to 3.0.5 dataCobra
                   ` (6 preceding siblings ...)
  2022-08-11 17:00 ` classabbyamp
@ 2022-08-11 17:09 ` dataCobra
  2022-08-11 17:12 ` dataCobra
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: dataCobra @ 2022-08-11 17:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 976 bytes --]

There is an updated pull request by dataCobra against master on the void-packages repository

https://github.com/dataCobra/void-packages tmuxinator-update-3.0.5
https://github.com/void-linux/void-packages/pull/38613

ruby-tmuxinator: update to 3.0.5.
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl (crossbuild)
  - armv7l (crossbuild)
  - armv6l-musl (crossbuild)

I've also updated the necessary dependencies and switched from gem to gemspec to apply the patch for xdg. 

That patch is copied from [AUR](https://aur.archlinux.org/cgit/aur.git/tree/xdg.patch?h=tmuxinator).
With the patch ruby-xdg versions >=4.5.0 are working properly with tmuxinator-3.0.5.


A patch file from https://github.com/void-linux/void-packages/pull/38613.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-tmuxinator-update-3.0.5-38613.patch --]
[-- Type: text/x-diff, Size: 6092 bytes --]

From 44aa55b8cba7caa1ca6cb7235db6efc7f197c66e Mon Sep 17 00:00:00 2001
From: dataCobra <datacobra@thinkbot.de>
Date: Thu, 11 Aug 2022 19:06:47 +0200
Subject: [PATCH 1/3] ruby-xdg: update to 6.5.0.

---
 srcpkgs/ruby-xdg/template | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/ruby-xdg/template b/srcpkgs/ruby-xdg/template
index e04194374ce9..b9f45c6f5534 100644
--- a/srcpkgs/ruby-xdg/template
+++ b/srcpkgs/ruby-xdg/template
@@ -1,13 +1,14 @@
 # Template file for 'ruby-xdg'
 pkgname=ruby-xdg
-version=5.1.1
-revision=2
+version=6.5.0
+revision=1
 build_style=gem
 short_desc="Module for supporting the XDG Base Directory Standard"
 maintainer="Orphaned <orphan@voidlinux.org>"
-license="BSD-2-Clause"
-homepage="http://rubyworks.github.com/xdg"
-checksum=3d050ea585c0d1fdb69bbb9ee58858edbd7ad6e6db830391e08b174eddbe4b15
+license="Hippocratic-2.1"
+homepage="http://rubyworks.github.io/xdg"
+changelog="https://raw.githubusercontent.com/rubyworks/xdg/master/HISTORY.md"
+checksum=c6b621087134c6452a19a5817a286b5ca400f8267549294bdffbcc7591b9c9b3
 
 post_install() {
 	vlicense LICENSE.adoc

From c845221d92319f2e8ab605437dc9067ec7fe7dc5 Mon Sep 17 00:00:00 2001
From: dataCobra <datacobra@thinkbot.de>
Date: Thu, 11 Aug 2022 19:07:37 +0200
Subject: [PATCH 2/3] ruby-thor: update to 1.2.1.

---
 srcpkgs/ruby-thor/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/ruby-thor/template b/srcpkgs/ruby-thor/template
index 241ea78068e6..7344c73e1839 100644
--- a/srcpkgs/ruby-thor/template
+++ b/srcpkgs/ruby-thor/template
@@ -1,13 +1,13 @@
 # Template file for 'ruby-thor'
 pkgname=ruby-thor
-version=0.20.3
-revision=6
+version=1.2.1
+revision=1
 build_style=gem
 short_desc="Toolkit for building powerful command-line interfaces"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
 homepage="http://whatisthor.com/"
-checksum=49bc217fe28f6af34c6e60b003e3405c27595a55689077d82e9e61d4d3b519fa
+checksum=b1752153dc9c6b8d3fcaa665e9e1a00a3e73f28da5e238b81c404502e539d446
 
 post_install() {
 	vlicense LICENSE.md

From 02a18767192bad568d8d9cd76fd27438b0ca1658 Mon Sep 17 00:00:00 2001
From: dataCobra <datacobra@thinkbot.de>
Date: Thu, 11 Aug 2022 19:09:02 +0200
Subject: [PATCH 3/3] ruby-tmuxinator: update to 3.0.5.

---
 srcpkgs/ruby-tmuxinator/patches/xdg.patch | 50 +++++++++++++++++++++++
 srcpkgs/ruby-tmuxinator/template          | 17 +++++---
 2 files changed, 61 insertions(+), 6 deletions(-)
 create mode 100644 srcpkgs/ruby-tmuxinator/patches/xdg.patch

diff --git a/srcpkgs/ruby-tmuxinator/patches/xdg.patch b/srcpkgs/ruby-tmuxinator/patches/xdg.patch
new file mode 100644
index 000000000000..034a6b2bc1ee
--- /dev/null
+++ b/srcpkgs/ruby-tmuxinator/patches/xdg.patch
@@ -0,0 +1,50 @@
+diff --git a/lib/tmuxinator/config.rb b/lib/tmuxinator/config.rb
+index 25620bf..fcc61a3 100644
+--- a/lib/tmuxinator/config.rb
++++ b/lib/tmuxinator/config.rb
+@@ -29,7 +29,7 @@ module Tmuxinator
+       # a custom value. (e.g. if $XDG_CONFIG_HOME is set to ~/my-config, the
+       # return value will be ~/my-config/tmuxinator)
+       def xdg
+-        XDG["CONFIG"].to_s + "/tmuxinator"
++        XDG::Config.new.home.to_s + "/tmuxinator"
+       end
+
+       def xdg?
+diff --git a/spec/lib/tmuxinator/config_spec.rb b/spec/lib/tmuxinator/config_spec.rb
+index 71b8da2..d28a60a 100644
+--- a/spec/lib/tmuxinator/config_spec.rb
++++ b/spec/lib/tmuxinator/config_spec.rb
+@@ -53,7 +53,8 @@ describe Tmuxinator::Config do
+
+         Dir.mktmpdir do |dir|
+           config_parent = "#{dir}/non_existant_parent/s"
+-          allow(XDG).to receive(:[]).with("CONFIG").and_return config_parent
++          allow(XDG::Config).to receive_message_chain(:new, :home, :to_s).
++            and_return config_parent
+           expect(described_class.directory).
+             to eq "#{config_parent}/tmuxinator"
+           expect(File.directory?("#{config_parent}/tmuxinator")).to be true
+@@ -134,7 +135,8 @@ describe Tmuxinator::Config do
+
+   describe "#xdg" do
+     it "is $XDG_CONFIG_HOME/tmuxinator" do
+-      expect(described_class.xdg).to eq "#{XDG['CONFIG_HOME']}/tmuxinator"
++      config_home = XDG::Config.new.home.to_s
++      expect(described_class.xdg).to eq "#{config_home}/tmuxinator"
+     end
+   end
+
+diff --git a/tmuxinator.gemspec b/tmuxinator.gemspec
+index 1b02053..3f4c8f8 100644
+--- a/tmuxinator.gemspec
++++ b/tmuxinator.gemspec
+@@ -41,7 +41,7 @@ Gem::Specification.new do |s|
+
+   s.add_dependency "erubis", "~> 2.6"
+   s.add_dependency "thor", "~> 1.2.1"
+-  s.add_dependency "xdg", "~> 2.2", ">= 2.2.5"
++  s.add_dependency "xdg", ">= 4.3.0"
+
+   s.add_development_dependency "activesupport", "< 5.0.0" # Please see issue #432
+   s.add_development_dependency "awesome_print", "~> 1.2"
diff --git a/srcpkgs/ruby-tmuxinator/template b/srcpkgs/ruby-tmuxinator/template
index 7d11374018a5..2fe374cd89bb 100644
--- a/srcpkgs/ruby-tmuxinator/template
+++ b/srcpkgs/ruby-tmuxinator/template
@@ -1,16 +1,21 @@
 # Template file for 'ruby-tmuxinator'
 pkgname=ruby-tmuxinator
-version=0.16.0
-revision=5
-build_style=gem
-depends="ruby-erubis>=2.6 ruby-thor>=0.15.0 ruby-xdg>=2.2.3 tmux"
+version=3.0.5
+revision=1
+wrksrc="tmuxinator-${version}"
+build_style=gemspec
+depends="ruby-erubis>=2.6 ruby-thor>=1.2.1 ruby-xdg>=4.3.0 tmux"
 short_desc="Create and manage complex tmux sessions easily"
 maintainer="Alexander Egorenkov <egorenar-dev@posteo.net>"
 license="MIT"
 homepage="https://github.com/tmuxinator/tmuxinator"
-checksum=296f370ee7cfffd91ee42ab301479c7e632091097001728f6f2a84b629469538
+changelog="https://raw.githubusercontent.com/tmuxinator/tmuxinator/master/CHANGELOG.md"
+distfiles="https://github.com/tmuxinator/tmuxinator/archive/refs/tags/v${version}.tar.gz"
+checksum=f67296a0b600fb5d8e51bf8fc9f8376a887754fd74cd59b6a8d9c962ad8f80a4
 
 post_install() {
-	$XBPS_FETCH_CMD https://raw.githubusercontent.com/tmuxinator/tmuxinator/v${version}/LICENSE
 	vlicense LICENSE
+	for sh in bash fish zsh; do
+		vcompletion "completion/tmuxinator.${sh}" ${sh}
+	done
 }

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: ruby-tmuxinator: update to 3.0.5.
  2022-08-11 16:03 [PR PATCH] ruby-tmuxinator: update to 3.0.5 dataCobra
                   ` (7 preceding siblings ...)
  2022-08-11 17:09 ` [PR PATCH] [Updated] " dataCobra
@ 2022-08-11 17:12 ` dataCobra
  2022-08-12  2:23 ` [PR REVIEW] " classabbyamp
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: dataCobra @ 2022-08-11 17:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 235 bytes --]

New comment by dataCobra on void-packages repository

https://github.com/void-linux/void-packages/pull/38613#issuecomment-1212263100

Comment:
Hey @classabbyamp,

thanks for the input, I've changed all the lines to your suggestions.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR REVIEW] ruby-tmuxinator: update to 3.0.5.
  2022-08-11 16:03 [PR PATCH] ruby-tmuxinator: update to 3.0.5 dataCobra
                   ` (8 preceding siblings ...)
  2022-08-11 17:12 ` dataCobra
@ 2022-08-12  2:23 ` classabbyamp
  2022-08-12  2:24 ` classabbyamp
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: classabbyamp @ 2022-08-12  2:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 351 bytes --]

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/38613#discussion_r944068128

Comment:
seems I was looking at the wrong upstream earlier
```suggestion
homepage="https://www.alchemists.io/projects/xdg/"
changelog="https://raw.githubusercontent.com/bkuhlmann/xdg/main/README.adoc"
```

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR REVIEW] ruby-tmuxinator: update to 3.0.5.
  2022-08-11 16:03 [PR PATCH] ruby-tmuxinator: update to 3.0.5 dataCobra
                   ` (9 preceding siblings ...)
  2022-08-12  2:23 ` [PR REVIEW] " classabbyamp
@ 2022-08-12  2:24 ` classabbyamp
  2022-08-12  5:12 ` [PR PATCH] [Updated] " dataCobra
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: classabbyamp @ 2022-08-12  2:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 350 bytes --]

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/38613#discussion_r944068128

Comment:
seems I was looking at the wrong upstream earlier
```suggestion
homepage="https://www.alchemists.io/projects/xdg"
changelog="https://raw.githubusercontent.com/bkuhlmann/xdg/main/README.adoc"
```

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR PATCH] [Updated] ruby-tmuxinator: update to 3.0.5.
  2022-08-11 16:03 [PR PATCH] ruby-tmuxinator: update to 3.0.5 dataCobra
                   ` (10 preceding siblings ...)
  2022-08-12  2:24 ` classabbyamp
@ 2022-08-12  5:12 ` dataCobra
  2022-08-12  5:13 ` [PR REVIEW] " dataCobra
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: dataCobra @ 2022-08-12  5:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 976 bytes --]

There is an updated pull request by dataCobra against master on the void-packages repository

https://github.com/dataCobra/void-packages tmuxinator-update-3.0.5
https://github.com/void-linux/void-packages/pull/38613

ruby-tmuxinator: update to 3.0.5.
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl (crossbuild)
  - armv7l (crossbuild)
  - armv6l-musl (crossbuild)

I've also updated the necessary dependencies and switched from gem to gemspec to apply the patch for xdg. 

That patch is copied from [AUR](https://aur.archlinux.org/cgit/aur.git/tree/xdg.patch?h=tmuxinator).
With the patch ruby-xdg versions >=4.5.0 are working properly with tmuxinator-3.0.5.


A patch file from https://github.com/void-linux/void-packages/pull/38613.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-tmuxinator-update-3.0.5-38613.patch --]
[-- Type: text/x-diff, Size: 6099 bytes --]

From de1a881b412e70ec87e895887e769efbe42ffc66 Mon Sep 17 00:00:00 2001
From: dataCobra <datacobra@thinkbot.de>
Date: Fri, 12 Aug 2022 07:11:32 +0200
Subject: [PATCH 1/3] ruby-xdg: update to 6.5.0.

---
 srcpkgs/ruby-xdg/template | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/ruby-xdg/template b/srcpkgs/ruby-xdg/template
index e04194374ce9..68cead47762a 100644
--- a/srcpkgs/ruby-xdg/template
+++ b/srcpkgs/ruby-xdg/template
@@ -1,13 +1,14 @@
 # Template file for 'ruby-xdg'
 pkgname=ruby-xdg
-version=5.1.1
-revision=2
+version=6.5.0
+revision=1
 build_style=gem
 short_desc="Module for supporting the XDG Base Directory Standard"
 maintainer="Orphaned <orphan@voidlinux.org>"
-license="BSD-2-Clause"
-homepage="http://rubyworks.github.com/xdg"
-checksum=3d050ea585c0d1fdb69bbb9ee58858edbd7ad6e6db830391e08b174eddbe4b15
+license="Hippocratic-2.1"
+homepage="https://www.alchemists.io/projects/xdg"
+changelog="https://raw.githubusercontent.com/bkuhlmann/xdg/main/README.adoc"
+checksum=c6b621087134c6452a19a5817a286b5ca400f8267549294bdffbcc7591b9c9b3
 
 post_install() {
 	vlicense LICENSE.adoc

From 5c29244d25a9a0df45ceadc2e26be9ef2abfc90f Mon Sep 17 00:00:00 2001
From: dataCobra <datacobra@thinkbot.de>
Date: Fri, 12 Aug 2022 07:12:08 +0200
Subject: [PATCH 2/3] ruby-thor: update to 1.2.1.

---
 srcpkgs/ruby-thor/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/ruby-thor/template b/srcpkgs/ruby-thor/template
index 241ea78068e6..7344c73e1839 100644
--- a/srcpkgs/ruby-thor/template
+++ b/srcpkgs/ruby-thor/template
@@ -1,13 +1,13 @@
 # Template file for 'ruby-thor'
 pkgname=ruby-thor
-version=0.20.3
-revision=6
+version=1.2.1
+revision=1
 build_style=gem
 short_desc="Toolkit for building powerful command-line interfaces"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
 homepage="http://whatisthor.com/"
-checksum=49bc217fe28f6af34c6e60b003e3405c27595a55689077d82e9e61d4d3b519fa
+checksum=b1752153dc9c6b8d3fcaa665e9e1a00a3e73f28da5e238b81c404502e539d446
 
 post_install() {
 	vlicense LICENSE.md

From 38666ddffd5e15b2cea3f910c7489d153e841c4b Mon Sep 17 00:00:00 2001
From: dataCobra <datacobra@thinkbot.de>
Date: Fri, 12 Aug 2022 07:12:24 +0200
Subject: [PATCH 3/3] ruby-tmuxinator: update to 3.0.5.

---
 srcpkgs/ruby-tmuxinator/patches/xdg.patch | 50 +++++++++++++++++++++++
 srcpkgs/ruby-tmuxinator/template          | 17 +++++---
 2 files changed, 61 insertions(+), 6 deletions(-)
 create mode 100644 srcpkgs/ruby-tmuxinator/patches/xdg.patch

diff --git a/srcpkgs/ruby-tmuxinator/patches/xdg.patch b/srcpkgs/ruby-tmuxinator/patches/xdg.patch
new file mode 100644
index 000000000000..034a6b2bc1ee
--- /dev/null
+++ b/srcpkgs/ruby-tmuxinator/patches/xdg.patch
@@ -0,0 +1,50 @@
+diff --git a/lib/tmuxinator/config.rb b/lib/tmuxinator/config.rb
+index 25620bf..fcc61a3 100644
+--- a/lib/tmuxinator/config.rb
++++ b/lib/tmuxinator/config.rb
+@@ -29,7 +29,7 @@ module Tmuxinator
+       # a custom value. (e.g. if $XDG_CONFIG_HOME is set to ~/my-config, the
+       # return value will be ~/my-config/tmuxinator)
+       def xdg
+-        XDG["CONFIG"].to_s + "/tmuxinator"
++        XDG::Config.new.home.to_s + "/tmuxinator"
+       end
+
+       def xdg?
+diff --git a/spec/lib/tmuxinator/config_spec.rb b/spec/lib/tmuxinator/config_spec.rb
+index 71b8da2..d28a60a 100644
+--- a/spec/lib/tmuxinator/config_spec.rb
++++ b/spec/lib/tmuxinator/config_spec.rb
+@@ -53,7 +53,8 @@ describe Tmuxinator::Config do
+
+         Dir.mktmpdir do |dir|
+           config_parent = "#{dir}/non_existant_parent/s"
+-          allow(XDG).to receive(:[]).with("CONFIG").and_return config_parent
++          allow(XDG::Config).to receive_message_chain(:new, :home, :to_s).
++            and_return config_parent
+           expect(described_class.directory).
+             to eq "#{config_parent}/tmuxinator"
+           expect(File.directory?("#{config_parent}/tmuxinator")).to be true
+@@ -134,7 +135,8 @@ describe Tmuxinator::Config do
+
+   describe "#xdg" do
+     it "is $XDG_CONFIG_HOME/tmuxinator" do
+-      expect(described_class.xdg).to eq "#{XDG['CONFIG_HOME']}/tmuxinator"
++      config_home = XDG::Config.new.home.to_s
++      expect(described_class.xdg).to eq "#{config_home}/tmuxinator"
+     end
+   end
+
+diff --git a/tmuxinator.gemspec b/tmuxinator.gemspec
+index 1b02053..3f4c8f8 100644
+--- a/tmuxinator.gemspec
++++ b/tmuxinator.gemspec
+@@ -41,7 +41,7 @@ Gem::Specification.new do |s|
+
+   s.add_dependency "erubis", "~> 2.6"
+   s.add_dependency "thor", "~> 1.2.1"
+-  s.add_dependency "xdg", "~> 2.2", ">= 2.2.5"
++  s.add_dependency "xdg", ">= 4.3.0"
+
+   s.add_development_dependency "activesupport", "< 5.0.0" # Please see issue #432
+   s.add_development_dependency "awesome_print", "~> 1.2"
diff --git a/srcpkgs/ruby-tmuxinator/template b/srcpkgs/ruby-tmuxinator/template
index 7d11374018a5..2fe374cd89bb 100644
--- a/srcpkgs/ruby-tmuxinator/template
+++ b/srcpkgs/ruby-tmuxinator/template
@@ -1,16 +1,21 @@
 # Template file for 'ruby-tmuxinator'
 pkgname=ruby-tmuxinator
-version=0.16.0
-revision=5
-build_style=gem
-depends="ruby-erubis>=2.6 ruby-thor>=0.15.0 ruby-xdg>=2.2.3 tmux"
+version=3.0.5
+revision=1
+wrksrc="tmuxinator-${version}"
+build_style=gemspec
+depends="ruby-erubis>=2.6 ruby-thor>=1.2.1 ruby-xdg>=4.3.0 tmux"
 short_desc="Create and manage complex tmux sessions easily"
 maintainer="Alexander Egorenkov <egorenar-dev@posteo.net>"
 license="MIT"
 homepage="https://github.com/tmuxinator/tmuxinator"
-checksum=296f370ee7cfffd91ee42ab301479c7e632091097001728f6f2a84b629469538
+changelog="https://raw.githubusercontent.com/tmuxinator/tmuxinator/master/CHANGELOG.md"
+distfiles="https://github.com/tmuxinator/tmuxinator/archive/refs/tags/v${version}.tar.gz"
+checksum=f67296a0b600fb5d8e51bf8fc9f8376a887754fd74cd59b6a8d9c962ad8f80a4
 
 post_install() {
-	$XBPS_FETCH_CMD https://raw.githubusercontent.com/tmuxinator/tmuxinator/v${version}/LICENSE
 	vlicense LICENSE
+	for sh in bash fish zsh; do
+		vcompletion "completion/tmuxinator.${sh}" ${sh}
+	done
 }

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR REVIEW] ruby-tmuxinator: update to 3.0.5.
  2022-08-11 16:03 [PR PATCH] ruby-tmuxinator: update to 3.0.5 dataCobra
                   ` (11 preceding siblings ...)
  2022-08-12  5:12 ` [PR PATCH] [Updated] " dataCobra
@ 2022-08-12  5:13 ` dataCobra
  2022-08-12  5:14 ` dataCobra
  2022-08-12  5:21 ` [PR PATCH] [Merged]: " classabbyamp
  14 siblings, 0 replies; 16+ messages in thread
From: dataCobra @ 2022-08-12  5:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 192 bytes --]

New review comment by dataCobra on void-packages repository

https://github.com/void-linux/void-packages/pull/38613#discussion_r944118812

Comment:
I've changed again to your suggestion. :+1:

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: ruby-tmuxinator: update to 3.0.5.
  2022-08-11 16:03 [PR PATCH] ruby-tmuxinator: update to 3.0.5 dataCobra
                   ` (12 preceding siblings ...)
  2022-08-12  5:13 ` [PR REVIEW] " dataCobra
@ 2022-08-12  5:14 ` dataCobra
  2022-08-12  5:21 ` [PR PATCH] [Merged]: " classabbyamp
  14 siblings, 0 replies; 16+ messages in thread
From: dataCobra @ 2022-08-12  5:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 230 bytes --]

New comment by dataCobra on void-packages repository

https://github.com/void-linux/void-packages/pull/38613#issuecomment-1212736849

Comment:
The changes are made and pushed as requested by @classabbyamp. :slightly_smiling_face:

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR PATCH] [Merged]: ruby-tmuxinator: update to 3.0.5.
  2022-08-11 16:03 [PR PATCH] ruby-tmuxinator: update to 3.0.5 dataCobra
                   ` (13 preceding siblings ...)
  2022-08-12  5:14 ` dataCobra
@ 2022-08-12  5:21 ` classabbyamp
  14 siblings, 0 replies; 16+ messages in thread
From: classabbyamp @ 2022-08-12  5:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 800 bytes --]

There's a merged pull request on the void-packages repository

ruby-tmuxinator: update to 3.0.5.
https://github.com/void-linux/void-packages/pull/38613

Description:
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl (crossbuild)
  - armv7l (crossbuild)
  - armv6l-musl (crossbuild)

I've also updated the necessary dependencies and switched from gem to gemspec to apply the patch for xdg. 

That patch is copied from [AUR](https://aur.archlinux.org/cgit/aur.git/tree/xdg.patch?h=tmuxinator).
With the patch ruby-xdg versions >=4.5.0 are working properly with tmuxinator-3.0.5.


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2022-08-12  5:21 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-11 16:03 [PR PATCH] ruby-tmuxinator: update to 3.0.5 dataCobra
2022-08-11 16:07 ` [PR PATCH] [Updated] " dataCobra
2022-08-11 16:10 ` dataCobra
2022-08-11 16:16 ` dataCobra
2022-08-11 16:55 ` [PR REVIEW] " classabbyamp
2022-08-11 16:55 ` classabbyamp
2022-08-11 17:00 ` classabbyamp
2022-08-11 17:00 ` classabbyamp
2022-08-11 17:09 ` [PR PATCH] [Updated] " dataCobra
2022-08-11 17:12 ` dataCobra
2022-08-12  2:23 ` [PR REVIEW] " classabbyamp
2022-08-12  2:24 ` classabbyamp
2022-08-12  5:12 ` [PR PATCH] [Updated] " dataCobra
2022-08-12  5:13 ` [PR REVIEW] " dataCobra
2022-08-12  5:14 ` dataCobra
2022-08-12  5:21 ` [PR PATCH] [Merged]: " classabbyamp

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).