Skip to content

Commit

Permalink
package.yml.md: Add new haskell macros, replacing cabal macros (#500)
Browse files Browse the repository at this point in the history
- [New Haskell macros](https://github.com/getsolus/ypkg/blob/master/ypkg2/rc.yml#L87-L120) have been added. Add them, mostly replacing the cabal macros
- Run prettier on page

Resolves #494
  • Loading branch information
davidjharder authored Feb 29, 2024
1 parent 08112dc commit b268b5c
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions docs/packaging/package.yml.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,15 @@ Macros are prefixed with `%`, and are substituted before your script is executed

### Haskell Actionable Macros

| Macro | Description |
| -------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| **%cabal_configure** | Runs `cabal configure` with prefix, libdir, etc. and ensures the necessary package.conf.d is copied to the correct location. |
| **%cabal_build** | Runs `cabal build` with `%JOBS%`. |
| **%cabal_install** | Runs `cabal copy` to `$installdir`. |
| **%cabal_register** | Runs `cabal register` to generate a pkg-config for package and version, then installs the conf file. |
| Macro | Description |
| ---------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| **%cabal_configure** | Configures a Cabal project that requires online dependencies, like a Cargo-style build |
| **%haskell_configure** | Runs `runhaskell configure` with prefix, libdir, etc. and ensures the necessary package.conf.d is copied to the correct location. |
| **%haskell_build** | Runs `runhaskell build` with `%JOBS%`. |
| **%haskell_install** | Runs `runhaskell copy` to `$installdir`. |
| **%haskell_register** | Runs `runhaskell register` to generate a pkg-config for package and version, then installs the conf file. |

Existing Haskell packages may use the old `cabal_build`, `cabal_install`, `cabal_register` macros. Please use the new `haskell_*` macros instead.

### Ninja Actionable Macros

Expand Down

0 comments on commit b268b5c

Please sign in to comment.