|
| 1 | += Homebrew Tap for Express Engine (eengine) |
| 2 | +:toc: |
| 3 | +:toclevels: 2 |
| 4 | + |
| 5 | +== Purpose |
| 6 | + |
| 7 | +This repository provides a Homebrew tap for installing |
| 8 | +https://github.com/expresslang/eengine-releases[Express Engine (eengine)] |
| 9 | +on macOS and Linux systems. |
| 10 | + |
| 11 | +Express Engine is an open-source EXPRESS language parser and interpreter |
| 12 | +implemented in Steel Bank Common Lisp (SBCL). |
| 13 | + |
| 14 | +== Installation |
| 15 | + |
| 16 | +=== Add the tap |
| 17 | + |
| 18 | +[source,bash] |
| 19 | +---- |
| 20 | +brew tap expresslang/eengine |
| 21 | +---- |
| 22 | + |
| 23 | +=== Install eengine |
| 24 | + |
| 25 | +[source,bash] |
| 26 | +---- |
| 27 | +brew install eengine |
| 28 | +---- |
| 29 | + |
| 30 | +=== Verify installation |
| 31 | + |
| 32 | +[source,bash] |
| 33 | +---- |
| 34 | +eengine --version |
| 35 | +---- |
| 36 | + |
| 37 | +=== Update to latest version |
| 38 | + |
| 39 | +[source,bash] |
| 40 | +---- |
| 41 | +brew upgrade eengine |
| 42 | +---- |
| 43 | + |
| 44 | +== Supported Platforms |
| 45 | + |
| 46 | +The formula supports the following platforms: |
| 47 | + |
| 48 | +* macOS (Apple Silicon) |
| 49 | +* macOS (Intel) |
| 50 | +* Linux (x86-64) |
| 51 | +* Linux (ARM64) |
| 52 | + |
| 53 | +The formula automatically detects your platform and installs the appropriate |
| 54 | +binary. |
| 55 | + |
| 56 | +== How It Works |
| 57 | + |
| 58 | +=== Automated Updates |
| 59 | + |
| 60 | +This tap is automatically updated when new eengine releases are published: |
| 61 | + |
| 62 | +1. A new release is created in |
| 63 | + https://github.com/expresslang/eengine-releases[eengine-releases] |
| 64 | +2. The release workflow triggers a `repository_dispatch` event to this |
| 65 | + repository |
| 66 | +3. The `update-formula.yml` workflow runs `generate-formula.rb` to: |
| 67 | + * Download all platform binaries from the release |
| 68 | + * Calculate SHA256 checksums |
| 69 | + * Update `formula-metadata.json` |
| 70 | + * Generate `Formula/eengine.rb` from the ERB template |
| 71 | +4. A pull request is created with the updated formula |
| 72 | +5. After review and merge, the new version is available via Homebrew |
| 73 | + |
| 74 | +=== Manual Formula Generation |
| 75 | + |
| 76 | +To manually update the formula (for testing or maintenance): |
| 77 | + |
| 78 | +[source,bash] |
| 79 | +---- |
| 80 | +# Install dependencies |
| 81 | +bundle install |
| 82 | +
|
| 83 | +# Generate formula for a specific version |
| 84 | +bundle exec ruby generate-formula.rb --version eeng-5.2.7 |
| 85 | +
|
| 86 | +# Dry run (preview changes without writing files) |
| 87 | +bundle exec ruby generate-formula.rb --version eeng-5.2.7 --dry-run |
| 88 | +---- |
| 89 | + |
| 90 | +== Repository Structure |
| 91 | + |
| 92 | +[source] |
| 93 | +---- |
| 94 | +homebrew-eengine/ |
| 95 | +├── .github/workflows/ |
| 96 | +│ └── update-formula.yml # Automated formula update workflow |
| 97 | +├── Formula/ |
| 98 | +│ └── eengine.rb # Generated Homebrew formula |
| 99 | +├── templates/ |
| 100 | +│ └── eengine.rb.erb # ERB template for formula |
| 101 | +├── formula-metadata.json # Version and SHA256 metadata |
| 102 | +├── generate-formula.rb # Formula generator script |
| 103 | +├── Gemfile # Ruby dependencies |
| 104 | +└── README.adoc # This file |
| 105 | +---- |
| 106 | + |
| 107 | +== Development |
| 108 | + |
| 109 | +=== Prerequisites |
| 110 | + |
| 111 | +* Ruby 3.2 or later |
| 112 | +* Bundler |
| 113 | + |
| 114 | +=== Setup |
| 115 | + |
| 116 | +[source,bash] |
| 117 | +---- |
| 118 | +# Install dependencies |
| 119 | +bundle install |
| 120 | +
|
| 121 | +# Set GitHub token for testing (optional) |
| 122 | +export GITHUB_TOKEN=your_token_here |
| 123 | +---- |
| 124 | + |
| 125 | +=== Testing |
| 126 | + |
| 127 | +Test the formula locally before publishing: |
| 128 | + |
| 129 | +[source,bash] |
| 130 | +---- |
| 131 | +# Install from local tap |
| 132 | +brew install --build-from-source Formula/eengine.rb |
| 133 | +
|
| 134 | +# Test the installation |
| 135 | +eengine --version |
| 136 | +
|
| 137 | +# Uninstall |
| 138 | +brew uninstall eengine |
| 139 | +---- |
| 140 | + |
| 141 | +== Contributing |
| 142 | + |
| 143 | +This repository is primarily maintained through automated workflows. Manual |
| 144 | +updates should only be necessary for: |
| 145 | + |
| 146 | +* Updating the formula template (`templates/eengine.rb.erb`) |
| 147 | +* Modifying the generator script (`generate-formula.rb`) |
| 148 | +* Fixing workflow issues |
| 149 | + |
| 150 | +== License |
| 151 | + |
| 152 | +This tap is provided as-is for distributing eengine via Homebrew. Refer to the |
| 153 | +https://github.com/expresslang/eengine-releases[eengine-releases repository] |
| 154 | +for license information about eengine itself. |
0 commit comments