This directory holds the Homebrew formula template for svlens.
svlens.rb-- formula template tracking the latest tagged release. Updateurlandsha256for each new release before copying it into the public tap.
-
The
release-artifactsworkflow has finished and producedsvlens-macos-arm64.tar.gzfor the new tag. -
Compute SHA256 against the GitHub source tarball (not the binary archive), since the formula builds from source:
curl -sSL -o svlens-vX.Y.Z.tar.gz \ https://github.com/babyworm/svlens/archive/refs/tags/vX.Y.Z.tar.gz shasum -a 256 svlens-vX.Y.Z.tar.gz
-
Update
svlens.rb(this directory):url-> the tag tarball URL above.sha256-> the digest from step 2.
-
Copy the updated
svlens.rbinto thebabyworm/homebrew-svlenstap (or whichever tap repository is canonical). -
Validate locally:
brew tap babyworm/svlens brew install --build-from-source svlens brew test svlens -
Audit for issues:
brew audit --new-formula svlens
The tap repo (babyworm/homebrew-svlens) is expected to follow the standard
Homebrew tap layout:
homebrew-svlens/
├── Formula/
│ └── svlens.rb # synced from this template
└── README.md
End users then install with:
brew tap babyworm/svlens
brew install svlens- The formula uses
SVLENS_FETCH_DEPS=OFFand pins slang viascripts/setup-deps.sh. If a Homebrew slang formula becomes available upstream, switch to adepends_on "slang"block and remove the setup-deps call frominstall. headbuilds (brew install --HEAD svlens) track themainbranch and are useful for testing unreleased changes.