aboutsummaryrefslogtreecommitdiff
path: root/mds.cabal
blob: 59bfc272eab07209b7a75ee6cd2bc344864d583a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name:                mds
version:             0.1.0
synopsis:            Transform a directory layout based on audio meta-data
description:         Transforms an Album directory into an Artist -> Album structure
                     based on the metadata of the files in the directory.
homepage:            https://git.rodere.systems/mds
license:             AGPL-3
license-file:        LICENSE
author:              Carlos Sosa <gnusosa@gnusosa.net>
maintainer:          Carlos Sosa <gnusosa@gnusosa.net>
copyright:           2020 Carlos Sosa
category:            Sound, Utility
build-type:          Simple
cabal-version:       >= 1.18
extra-source-files:  README.md
data-files:          audio-samples/*.flac
                   , audio-samples/*.mp3

library
  hs-source-dirs:      src
  exposed-modules:     Sound.MusicDirTrans
  other-modules:       Sound.MusicDirTrans.File
                     , Sound.MusicDirTrans.Type
                     , Sound.MusicDirTrans.Directory
  build-depends:       base >= 4.7 && < 5
                     , directory >= 1.3.3.1
                     , Cabal >= 2.0 && < 3.2
                     , filepath >= 1.4 && < 2.0
                     , Glob >= 0.8.0
                     , htaglib >= 1.1.1
                     , text >= 1.0 && < 1.3
  default-language:    Haskell2010

executable mds
  hs-source-dirs:      app
  main-is:             Main.hs
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N
  other-modules:       RunCmd
  build-depends:       base >= 4.7 && < 5
                     , directory >= 1.3.3.1
                     , filepath >= 1.4 && < 2.0
                     , optparse-applicative
                     , mds
                     , text >= 1.0 && < 1.3
  default-language:    Haskell2010

test-suite mds-test
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Spec.hs
  build-depends:       base >= 4.7 && < 5
                     , Glob >= 0.8.0
                     , htaglib >= 1.1.1
                     , mds
                     , hspec >= 2.0 && < 3.0
                     , text >= 1.0 && < 1.3
  other-modules:       Sound.MusicDirTrans.FileSpec
                     , Sound.MusicDirTrans.DirectorySpec
                     , Sound.MusicDirTrans.TypeSpec
                     , Sound.MusicDirTrans.Test.Util
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N
  build-tools:         hspec-discover >= 2.0 && < 3.0
  default-language:    Haskell2010

source-repository head
  type:     git
  location: https://git.rodere.systems/mds