;pkg: clean up package.yaml files

Consistent layout.
Group metadata at the top in similar order to `cabal format`.
This commit is contained in:
Simon Michael 2025-03-31 17:25:41 -10:00
parent 775507c2d4
commit ed6cef5c00
4 changed files with 90 additions and 110 deletions

View File

@ -1,6 +1,15 @@
name: hledger-lib name: hledger-lib
version: 1.42.99 version: 1.42.99
synopsis: A library providing the core functionality of hledger license: GPL-3.0-or-later
maintainer: Simon Michael <simon@joyful.com>
author: Simon Michael <simon@joyful.com>
stability: stable
tested-with: ghc==8.10.7, ghc==9.0.2, ghc==9.2.8, ghc==9.4.8, ghc==9.6.7, ghc==9.8.4, ghc==9.10.1
homepage: http://hledger.org
bug-reports: http://bugs.hledger.org
github: simonmichael/hledger
category: Finance
synopsis: A library providing the core functionality of hledger
description: | description: |
This library contains hledger's core functionality. This library contains hledger's core functionality.
It is used by most hledger* packages so that they support the same It is used by most hledger* packages so that they support the same
@ -20,24 +29,21 @@ description: |
- https://hackage.haskell.org/package/hledger-lib/docs/Hledger.html - starting point for hledger's haddock docs - https://hackage.haskell.org/package/hledger-lib/docs/Hledger.html - starting point for hledger's haddock docs
category: Finance
license: GPL-3.0-or-later
author: Simon Michael <simon@joyful.com>
maintainer: Simon Michael <simon@joyful.com>
github: simonmichael/hledger
homepage: http://hledger.org
bug-reports: http://bugs.hledger.org
stability: stable
extra-source-files: extra-source-files:
- CHANGES.md - CHANGES.md
- README.md - README.md
- test/unittest.hs - test/unittest.hs
- test/doctests.hs - test/doctests.hs
#data-files: flags:
debug:
tested-with: GHC==8.10.7, GHC==9.0.2, GHC==9.2.8, GHC==9.4.8, GHC==9.6.7, GHC==9.8.4, GHC==9.10.1 description: Build with GHC 9.10+'s stack traces enabled
default: false
manual: true
# ghcdebug:
# description: Build with support for attaching a ghc-debug client
# default: false
# manual: true
dependencies: dependencies:
- base >=4.14 && <4.21 - base >=4.14 && <4.21
@ -96,17 +102,6 @@ ghc-options:
- -Wno-type-defaults - -Wno-type-defaults
- -Wno-unused-do-bind - -Wno-unused-do-bind
flags:
debug:
description: Build with GHC 9.10+'s stack traces enabled
default: false
manual: true
# bitrotted
# ghcdebug:
# description: Build with support for attaching a ghc-debug client
# default: false
# manual: true
when: when:
- condition: (flag(debug)) - condition: (flag(debug))
cpp-options: -DDEBUG cpp-options: -DDEBUG

View File

@ -1,7 +1,16 @@
name : hledger-ui name: hledger-ui
version : 1.42.99 version: 1.42.99
synopsis : Terminal interface for the hledger accounting system license: GPL-3.0-or-later
description : | maintainer: Simon Michael <simon@joyful.com>
author: Simon Michael <simon@joyful.com>
stability: stable
tested-with: ghc==8.10.7, ghc==9.0.2, ghc==9.2.8, ghc==9.4.8, ghc==9.6.7, ghc==9.8.4, ghc==9.10.1
homepage: http://hledger.org
bug-reports: http://bugs.hledger.org
github: simonmichael/hledger
category: Finance, Console
synopsis: Terminal interface for the hledger accounting system
description: |
A simple terminal user interface for the hledger accounting system. A simple terminal user interface for the hledger accounting system.
It can be a more convenient way to browse your accounts than the CLI. It can be a more convenient way to browse your accounts than the CLI.
@ -12,15 +21,6 @@ description : |
implementations of Plain Text Accounting. Read more at: implementations of Plain Text Accounting. Read more at:
<https://hledger.org> <https://hledger.org>
category : Finance, Console
license : GPL-3.0-or-later
author : Simon Michael <simon@joyful.com>
maintainer : Simon Michael <simon@joyful.com>
github : simonmichael/hledger
homepage : http://hledger.org
bug-reports : http://bugs.hledger.org
stability : stable
extra-source-files: extra-source-files:
- CHANGES.md - CHANGES.md
- README.md - README.md
@ -28,46 +28,20 @@ extra-source-files:
- hledger-ui.txt - hledger-ui.txt
- hledger-ui.info - hledger-ui.info
#data-files:
flags: flags:
threaded:
description: Build with support for multithreaded execution
default: true
manual: false
debug: debug:
description: Build with GHC 9.10+'s stack traces enabled description: Build with GHC 9.10+'s stack traces enabled
default: false default: false
manual: true manual: true
# bitrotted threaded:
description: Build with support for multithreaded execution
default: true
manual: false
# ghcdebug: # ghcdebug:
# description: Build with support for attaching a ghc-debug client # description: Build with support for attaching a ghc-debug client
# default: false # default: false
# manual: true # manual: true
cpp-options: -DVERSION="1.42.99"
ghc-options:
- -Wall
- -Wno-incomplete-uni-patterns
- -Wno-missing-signatures
- -Wno-orphans
- -Wno-type-defaults
- -Wno-unused-do-bind
tested-with: GHC==8.10.7, GHC==9.0.2, GHC==9.2.8, GHC==9.4.8, GHC==9.6.7, GHC==9.8.4, GHC==9.10.1
dependencies:
- base >=4.14 && <4.21
when:
- condition: (flag(debug))
cpp-options: -DDEBUG
# - condition: (flag(ghcdebug))
# cpp-options: -DGHCDEBUG
# dependencies:
# - ghc-debug-stub >=0.6.0.0 && <0.7
# curses is required to build terminfo for vty for hledger-ui. # curses is required to build terminfo for vty for hledger-ui.
# On POSIX systems it might be not present. # On POSIX systems it might be not present.
# On windows it's very likely not present, but possibly it could be. # On windows it's very likely not present, but possibly it could be.
@ -82,6 +56,27 @@ when:
# like Windows Terminal. # like Windows Terminal.
# mintty-based backends (default for cygwin/gitbash/msys2) are not supported (yet) # mintty-based backends (default for cygwin/gitbash/msys2) are not supported (yet)
cpp-options: -DVERSION="1.42.99"
ghc-options:
- -Wall
- -Wno-incomplete-uni-patterns
- -Wno-missing-signatures
- -Wno-orphans
- -Wno-type-defaults
- -Wno-unused-do-bind
when:
- condition: (flag(debug))
cpp-options: -DDEBUG
# - condition: (flag(ghcdebug))
# cpp-options: -DGHCDEBUG
# dependencies:
# - ghc-debug-stub >=0.6.0.0 && <0.7
dependencies:
- base >=4.14 && <4.21
library: library:
source-dirs: . source-dirs: .
cpp-options: -DVERSION="1.42.99" cpp-options: -DVERSION="1.42.99"
@ -126,7 +121,6 @@ library:
else: else:
dependencies: unix dependencies: unix
executables: executables:
hledger-ui: hledger-ui:
source-dirs: app source-dirs: app

View File

@ -1,6 +1,15 @@
name: hledger-web name: hledger-web
version: 1.42.99 version: 1.42.99
synopsis: Web user interface for the hledger accounting system license: GPL-3.0-or-later
maintainer: Simon Michael <simon@joyful.com>
author: Simon Michael <simon@joyful.com>
stability: stable
tested-with: ghc==8.10.7, ghc==9.0.2, ghc==9.2.8, ghc==9.4.8, ghc==9.6.7, ghc==9.8.4, ghc==9.10.1
homepage: http://hledger.org
bug-reports: http://bugs.hledger.org
github: simonmichael/hledger
category: Finance
synopsis: Web user interface for the hledger accounting system
description: | description: |
A simple web user interface for the hledger accounting system, A simple web user interface for the hledger accounting system,
providing a more modern UI than the command-line or terminal interfaces. providing a more modern UI than the command-line or terminal interfaces.
@ -14,15 +23,6 @@ description: |
implementations of Plain Text Accounting. Read more at: implementations of Plain Text Accounting. Read more at:
<https://hledger.org> <https://hledger.org>
category: Finance
license: GPL-3.0-or-later
author: Simon Michael <simon@joyful.com>
maintainer: Simon Michael <simon@joyful.com>
github: simonmichael/hledger
homepage: http://hledger.org
bug-reports: http://bugs.hledger.org
stability: stable
extra-source-files: extra-source-files:
- CHANGES.md - CHANGES.md
- README.md - README.md
@ -62,7 +62,6 @@ flags:
description: Build with GHC 9.10+'s stack traces enabled # ' description: Build with GHC 9.10+'s stack traces enabled # '
default: false default: false
manual: true manual: true
# bitrotted
# ghcdebug: # ghcdebug:
# description: Build with support for attaching a ghc-debug client # description: Build with support for attaching a ghc-debug client
# default: false # default: false
@ -93,8 +92,6 @@ when:
# dependencies: # dependencies:
# - ghc-debug-stub >=0.6.0.0 && <0.7 # - ghc-debug-stub >=0.6.0.0 && <0.7
tested-with: GHC==8.10.7, GHC==9.0.2, GHC==9.2.8, GHC==9.4.8, GHC==9.6.7, GHC==9.8.4, GHC==9.10.1
dependencies: dependencies:
- base >=4.14 && <4.21 - base >=4.14 && <4.21

View File

@ -1,6 +1,15 @@
name: hledger name: hledger
version: 1.42.99 version: 1.42.99
synopsis: Command-line interface for the hledger accounting system license: GPL-3.0-or-later
maintainer: Simon Michael <simon@joyful.com>
author: Simon Michael <simon@joyful.com>
stability: stable
tested-with: ghc==8.10.7, ghc==9.0.2, ghc==9.2.8, ghc==9.4.8, ghc==9.6.7, ghc==9.8.4, ghc==9.10.1
homepage: http://hledger.org
bug-reports: http://bugs.hledger.org
github: simonmichael/hledger
category: Finance, Console
synopsis: Command-line interface for the hledger accounting system
description: | description: |
The command-line interface for the hledger accounting system. The command-line interface for the hledger accounting system.
Its basic function is to read a plain text file describing Its basic function is to read a plain text file describing
@ -13,15 +22,6 @@ description: |
implementations of Plain Text Accounting. Read more at: implementations of Plain Text Accounting. Read more at:
<https://hledger.org> <https://hledger.org>
category: Finance, Console
license: GPL-3.0-or-later
author: Simon Michael <simon@joyful.com>
maintainer: Simon Michael <simon@joyful.com>
github: simonmichael/hledger
homepage: http://hledger.org
bug-reports: http://bugs.hledger.org
stability: stable
extra-source-files: extra-source-files:
- CHANGES.md - CHANGES.md
- README.md - README.md
@ -89,9 +89,6 @@ extra-source-files:
- Hledger/Cli/Commands/Tags.txt - Hledger/Cli/Commands/Tags.txt
- Hledger/Cli/Commands/Test.txt - Hledger/Cli/Commands/Test.txt
#data-files:
flags: flags:
threaded: threaded:
description: Build with support for multithreaded execution description: Build with support for multithreaded execution
@ -101,7 +98,6 @@ flags:
description: Build with GHC 9.10+'s stack traces enabled description: Build with GHC 9.10+'s stack traces enabled
default: false default: false
manual: true manual: true
# bitrotted
# ghcdebug: # ghcdebug:
# description: Build with support for attaching a ghc-debug client # description: Build with support for attaching a ghc-debug client
# default: false # default: false
@ -117,7 +113,13 @@ ghc-options:
# avoid stack's "non-portable path" warning/error on mac, https://github.com/commercialhaskell/stack/issues/3918 # avoid stack's "non-portable path" warning/error on mac, https://github.com/commercialhaskell/stack/issues/3918
- -optP-Wno-nonportable-include-path - -optP-Wno-nonportable-include-path
tested-with: GHC==8.10.7, GHC==9.0.2, GHC==9.2.8, GHC==9.4.8, GHC==9.6.7, GHC==9.8.4, GHC==9.10.1 when:
- condition: (flag(debug))
cpp-options: -DDEBUG
# - condition: (flag(ghcdebug))
# cpp-options: -DGHCDEBUG
# dependencies:
# - ghc-debug-stub >=0.6.0.0 && <0.7
dependencies: dependencies:
- base >=4.14 && <4.21 - base >=4.14 && <4.21
@ -156,14 +158,6 @@ dependencies:
- utility-ht >=0.0.13 - utility-ht >=0.0.13
- wizards >=1.0 - wizards >=1.0
when:
- condition: (flag(debug))
cpp-options: -DDEBUG
# - condition: (flag(ghcdebug))
# cpp-options: -DGHCDEBUG
# dependencies:
# - ghc-debug-stub >=0.6.0.0 && <0.7
library: library:
cpp-options: -DVERSION="1.42.99" cpp-options: -DVERSION="1.42.99"
exposed-modules: exposed-modules: