https://github.com/egison/homebrew-egison
Homebrew formula for Egison
https://github.com/egison/homebrew-egison
Last synced: 2 months ago
JSON representation
Homebrew formula for Egison
- Host: GitHub
- URL: https://github.com/egison/homebrew-egison
- Owner: egison
- License: mit
- Created: 2017-11-14T10:06:43.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-12-21T00:07:46.000Z (over 4 years ago)
- Last Synced: 2025-12-25T17:10:35.006Z (6 months ago)
- Language: Shell
- Homepage:
- Size: 2.35 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# homebrew-egison
Homebrew formula to install Egison
## Installation
```sh
$ brew tap egison/egison
$ brew install egison egison-tutorial
```
### Upgrade
```sh
$ brew tap egison/egison
$ brew upgrade egison egison-tutorial
```
### Uninstallation
```sh
$ brew remove egison
$ brew untap egison/egison
```
* * *
## For developers of this repository
### How to build binary (egison)
```sh
$ git clone https://github.com/egison/egison.git
$ cd egison
$ cabal v2-update
$ cabal v2-install --only-dependencies --lib
$ cabal v2-configure
$ cabal v2-build
$ _pathsfile="$(find "./dist-newstyle" -type f -name 'Paths_egison.hs' | head -n 1)"
$ perl -i -pe 's@datadir[ ]*=[ ]*.*$@datadir = "/usr/local/lib/egison"@' "$_pathsfile"
$ cp "$_pathsfile" ./hs-src
$ cabal v2-build
$ file $(find "./dist-newstyle" -type f -name 'egison')
```
### How to build binary (egison-tutorial)
```sh
$ git clone https://github.com/egison/egison-tutorial.git
$ TAG="$(awk '/Version:/{print $NF}' egison-tutorial.cabal )"
$ cd egison-tutorial
$ cabal v2-update
$ cabal v2-install
$ cabal v2-configure
$ cabal v2-build
$ mkdir -p bin lib/egison-tutorial
$ cp $(find dist-newstyle/ -type f -name egison-tutorial | head -n 1) ./bin/egison-tutorial-impl
$ printf '%s\n%s\n' '#!/bin/sh' 'egison_datadir=/usr/local/lib/egison-tutorial egison-tutorial-impl "$@"' > ./bin/egison-tutorial
$ chmod +x ./bin/egison-tutorial
$ file_name="egison-tutorial_$(uname | sed 's/./\L&/')_$(uname -m)_$TAG.zip"
$ git clone --branch $TAG https://github.com/egison/egison.git
$ cp -rf ./egison/lib ./lib/egison-tutorial/
$ zip -r "$file_name" bin lib
### => get zip file
$ shasum -a 256 "$file_name"
### => get hash
```
Update `egison-tutorial.rb`
### Update formula
```sh
# Edit
$ brew edit egison/egison/egison
# Check
$ brew audit --strict egison/egison/egison
# Commit & Push
$ cd /usr/local/Homebrew/Library/Taps/egison/homebrew-egison/
$ git add
$ git commit -m ''
$ git push origin master
```