zip-archive 0.3.2.2 → 0.3.2.3
raw patch · 4 files changed
+20/−5 lines, 4 filesbuild-type:Customsetup-changed
Files
- Setup.hs +7/−1
- changelog +4/−0
- tests/test-zip-archive.hs +3/−2
- zip-archive.cabal +6/−2
Setup.hs view
@@ -1,2 +1,8 @@ import Distribution.Simple-main = defaultMain+import Distribution.Simple.Program++main :: IO ()+main = defaultMainWithHooks simpleUserHooks+ { hookedPrograms = [ simpleProgram "unzip"+ ]+ }
changelog view
@@ -1,3 +1,7 @@+zip-archive 0.3.2.3++ * Use custom-setup stanza and specify build-tools. Closes #41.+ zip-archive 0.3.2.2 * Use createSymbolicLink instead of createFileLink in tests. This allows
tests/test-zip-archive.hs view
@@ -16,7 +16,7 @@ #ifndef _WINDOWS import System.FilePath.Posix import System.Posix.Files-import System.Process (callCommand)+import System.Process (rawSystem) #else import System.FilePath.Windows #endif@@ -208,7 +208,8 @@ removeDirectoryRecursive testDir let zipFile = tmpDir </> "testUnzip.zip" BL.writeFile zipFile $ fromArchive archive- callCommand $ "unzip " ++ zipFile+ ec <- rawSystem "unzip" [zipFile]+ assertBool "unzip succeeds" $ ec == ExitSuccess let symlinkDir = testDir </> "link_to_directory" symlinkFile = testDir </> "link_to_file" isDirSymlink <- pathIsSymbolicLink symlinkDir
zip-archive.cabal view
@@ -1,7 +1,7 @@ Name: zip-archive-Version: 0.3.2.2+Version: 0.3.2.3 Cabal-Version: >= 1.10-Build-type: Simple+Build-type: Custom Synopsis: Library for creating and modifying zip archives. Description: The zip-archive library provides functions for creating, modifying, and extracting files from zip archives.@@ -47,6 +47,10 @@ cpp-options: -D_WINDOWS else Build-depends: unix+ Build-tools: unzip++custom-setup+ setup-depends: base, Cabal Executable zip-archive if flag(executable)