packages feed

epub-tools-1.1.0: epub-tools.cabal

name:                epub-tools
cabal-version:       >= 1.8
version:             1.1.0
build-type:          Simple
license:             BSD3
license-file:        LICENSE
copyright:           2008-2011 Dino Morelli 
author:              Dino Morelli 
maintainer:          Dino Morelli <dino@ui3.info>
stability:           stable
homepage:            http://ui3.info/d/proj/epub-tools.html
synopsis:            Command line utilities for working with epub files
description:         A suite of command-line utilities for creating and manipulating epub book files. Included are: epubmeta, epubname, epubzip
category:            Application, Console
tested-with:         GHC >= 7.0.3
extra-source-files:  testsuite/*.hs

source-repository    head
   type:             darcs
   location:         http://ui3.info/darcs/epub-tools/

executable           epubmeta
   main-is:          EpubTools/epubmeta.hs
   build-depends:    base >= 3 && < 5, bytestring, directory,
                     epub-metadata >= 2.2, filepath, mtl, process,
                     zip-archive
   hs-source-dirs:   src
   other-modules:    EpubTools.EpubMeta.Display
                     EpubTools.EpubMeta.Edit
                     EpubTools.EpubMeta.Export
                     EpubTools.EpubMeta.Import
                     EpubTools.EpubMeta.Opts
                     EpubTools.EpubMeta.Util

   -- Strip symbols from binary, for Windows, not portable, see [1] below
   --ghc-options:      -Wall -optl-s
   ghc-options:      -Wall

executable           epubname
   main-is:          EpubTools/epubname.hs
   build-depends:    base >= 3 && < 5, directory, epub-metadata >= 2.2, 
                     mtl, regex-compat
   hs-source-dirs:   src
   other-modules:    EpubTools.EpubName.Author
                     EpubTools.EpubName.Format
                     EpubTools.EpubName.Opts
                     EpubTools.EpubName.Util

   -- Strip symbols from binary, for Windows, not portable, see [1] below
   --ghc-options:      -Wall -optl-s
   ghc-options:      -Wall

test-suite           epubname-tests
   type:             exitcode-stdio-1.0
   main-is:          epubname.hs
   build-depends:    base, epub-metadata >= 2.2, HUnit, mtl, regex-compat
   hs-source-dirs:   src testsuite
   ghc-options:      -Wall

executable           epubzip
   main-is:          EpubTools/epubzip.hs
   build-depends:    base >= 3 && < 5, directory, epub-metadata >= 2.2,
                     filepath, mtl, regex-compat
   hs-source-dirs:   src
   other-modules:    EpubTools.EpubZip.Opts

   -- Strip symbols from binary, for Windows, not portable, see [1] below
   --ghc-options:      -Wall -optl-s
   ghc-options:      -Wall


-- [1] The right way to handle this should be an if os(windows) block
--     but that makes this package unacceptable to Hackage. Sorry,
--     you'll have to use comments to switch this on.