1Name:                zip-archive
2Version:             0.4.1
3x-revision: 1
4Cabal-Version:       2.0
5Build-type:          Simple
6Synopsis:            Library for creating and modifying zip archives.
7Description:
8   The zip-archive library provides functions for creating, modifying, and
9   extracting files from zip archives. The zip archive format is
10   documented in <http://www.pkware.com/documents/casestudies/APPNOTE.TXT>.
11   .
12   Certain simplifying assumptions are made about the zip archives: in
13   particular, there is no support for strong encryption, zip files that
14   span multiple disks, ZIP64, OS-specific file attributes, or compression
15   methods other than Deflate. However, the library should be able to read
16   the most common zip archives, and the archives it produces should be
17   readable by all standard unzip programs.
18   .
19   Archives are built and extracted in memory, so manipulating large zip
20   files will consume a lot of memory. If you work with large zip files or
21   need features not supported by this library, a better choice may be
22   <http://hackage.haskell.org/package/zip zip>, which uses a
23   memory-efficient streaming approach. However, zip can only read and
24   write archives inside instances of MonadIO, so zip-archive is a better
25   choice if you want to manipulate zip archives in "pure" contexts.
26   .
27   As an example of the use of the library, a standalone zip archiver and
28   extracter is provided in the source distribution.
29Category:            Codec
30Tested-with:         GHC == 7.8.2, GHC == 7.10.3, GHC == 8.0.2,
31                     GHC == 8.2.2, GHC == 8.4.3, GHC == 8.6.1
32License:             BSD3
33License-file:        LICENSE
34Homepage:            http://github.com/jgm/zip-archive
35Author:              John MacFarlane
36Maintainer:          jgm@berkeley.edu
37Extra-Source-Files:  changelog
38                     README.markdown
39                     tests/test4.zip
40                     tests/test4/a.txt
41                     tests/test4/b.bin
42                     "tests/test4/c/with spaces.txt"
43                     tests/zip_with_symlinks.zip
44                     tests/zip_with_password.zip
45                     tests/zip_with_evil_path.zip
46
47Source-repository    head
48  type:              git
49  location:          git://github.com/jgm/zip-archive.git
50
51flag executable
52  Description:       Build the Zip executable.
53  Default:           False
54
55Library
56  Build-depends:     base >= 4.5 && < 5,
57                     pretty,
58                     containers,
59                     binary >= 0.6,
60                     zlib,
61                     filepath,
62                     bytestring >= 0.10.0,
63                     array,
64                     mtl,
65                     text >= 0.11,
66                     digest >= 0.0.0.1,
67                     directory >= 1.2.0,
68                     time
69  Exposed-modules:   Codec.Archive.Zip
70  Default-Language:  Haskell98
71  Hs-Source-Dirs:    src
72  Ghc-Options:       -Wall
73  if os(windows)
74    cpp-options:     -D_WINDOWS
75  else
76    Build-depends:   unix
77
78Executable zip-archive
79  if flag(executable)
80    Buildable:       True
81  else
82    Buildable:       False
83  Main-is:           Main.hs
84  Hs-Source-Dirs:    .
85  Build-Depends:     base >= 4.2 && < 5,
86                     directory >= 1.1,
87                     bytestring >= 0.9.0,
88                     zip-archive
89  Other-Modules:     Paths_zip_archive
90  Autogen-Modules:   Paths_zip_archive
91  Ghc-Options:       -Wall
92  Default-Language:  Haskell98
93
94Test-Suite test-zip-archive
95  Type:           exitcode-stdio-1.0
96  Main-Is:        test-zip-archive.hs
97  Hs-Source-Dirs: tests
98  Build-Depends:  base >= 4.2 && < 5,
99                  directory >= 1.3, bytestring >= 0.9.0, process, time,
100                  HUnit, zip-archive, temporary, filepath
101  Default-Language:  Haskell98
102  Ghc-Options:    -Wall
103  if os(windows)
104    cpp-options:     -D_WINDOWS
105  else
106    Build-depends:   unix
107  build-tools: unzip
108