diff --git a/.github/autobump.txt b/.github/autobump.txt index 809c182d3d374..b2ddd858c2cba 100644 --- a/.github/autobump.txt +++ b/.github/autobump.txt @@ -2642,6 +2642,7 @@ remind renovate replxx repo +repomix reposurgeon repren reproc diff --git a/Formula/r/repomix.rb b/Formula/r/repomix.rb index fcf68193ef399..c36edee45c435 100644 --- a/Formula/r/repomix.rb +++ b/Formula/r/repomix.rb @@ -1,19 +1,28 @@ class Repomix < Formula desc "Pack repository contents into a single AI-friendly file" homepage "https://github.com/yamadashy/repomix" - url "https://registry.npmjs.org/repomix/-/repomix-0.2.1.tgz" - sha256 "9fd247249747d94215925ad7a58fc29df56ba3adb018e0c5213ba5e38819dde1" + url "https://registry.npmjs.org/repomix/-/repomix-0.2.6.tgz" + sha256 "18cb7b4453a5935d02565d0443978407cb972e442b06315b880d10c85755a612" license "MIT" - bottle do - sha256 cellar: :any_skip_relocation, all: "4e98557fe499a1152cf9a9993c3043cd5c90812b8a7741a25d8927bb4cd7b206" - end - depends_on "node" + on_linux do + depends_on "xsel" + end + def install system "npm", "install", *std_npm_args bin.install_symlink Dir["#{libexec}/bin/*"] + + clipboardy_fallbacks_dir = libexec/"lib/node_modules/#{name}/node_modules/clipboardy/fallbacks" + rm_r(clipboardy_fallbacks_dir) # remove pre-built binaries + if OS.linux? + linux_dir = clipboardy_fallbacks_dir/"linux" + linux_dir.mkpath + # Replace the vendored pre-built xsel with one we build ourselves + ln_sf (Formula["xsel"].opt_bin/"xsel").relative_path_from(linux_dir), linux_dir + end end test do