X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Flwn-epub.git;a=blobdiff_plain;f=lwn-epub.cabal;fp=lwn-epub.cabal;h=61b3270ef6fb0524aa915fb43838c7871790e1c7;hp=08ee1bf9601eeecaa392c9b7191d71760eecd329;hb=7b567f5bc275be3212d485e2fe537949c921df3d;hpb=ac752b19d20e01771664ce50528d7f306bd2de9e diff --git a/lwn-epub.cabal b/lwn-epub.cabal index 08ee1bf..61b3270 100644 --- a/lwn-epub.cabal +++ b/lwn-epub.cabal @@ -1,11 +1,21 @@ name: lwn-epub -version: 0.0 +version: 0.0.2 cabal-version: >= 1.8 author: Michael Orlitzky maintainer: Michael Orlitzky +license: GPL-3 +license-file: doc/LICENSE +homepage: http://michael.orlitzky.com/code/lwn-epub.php +bug-reports: mailto:michael@orlitzky.com +build-type: Simple +category: Text synopsis: Convert issues of LWN (lwn.net) to EPUB format. -build-type: Simple +description: + A command-line utility that downloads an LWN article (or issue), cleans it + up, and writes it to EPUB with a stylesheet that looks decent on the Kindle. + It can use account credentials to log in and access the current edition. +data-files: makefile doc/README executable lwn-epub build-depends: @@ -14,12 +24,11 @@ executable lwn-epub cmdargs == 0.9.*, ConfigFile == 1.*, containers == 0.*, - curl == 1.*, directory == 1.1.*, - download-curl == 0.1.*, filepath == 1.3.*, HandsomeSoup == 0.3.*, - HUnit == 1.2.*, + http-conduit == 1.6.*, + http-types == 0.7.*, hxt == 9.*, MissingH == 1.1.*, network == 2.3.*, @@ -27,10 +36,12 @@ executable lwn-epub parallel-io == 0.3.*, regex-posix == 0.95.*, temporary == 1.*, - test-framework == 0.6.*, - test-framework-hunit == 0.2.*, time == 1.*, - utf8-string == 0.3.* + utf8-string == 0.3.*, + -- Additional test dependencies. + HUnit == 1.2.*, + test-framework == 0.6.*, + test-framework-hunit == 0.2.* main-is: Main.hs @@ -49,11 +60,52 @@ executable lwn-epub -fwarn-incomplete-record-updates -fwarn-monomorphism-restriction -fwarn-unused-do-bind - -funbox-strict-fields - -fexcess-precision - -fno-spec-constr-count -rtsopts -threaded -O2 -optc-O3 -optc-march=native + + +test-suite testsuite + type: exitcode-stdio-1.0 + hs-source-dirs: src test + main-is: TestSuite.hs + build-depends: + base == 4.5.*, + bytestring == 0.9.*, + cmdargs == 0.9.*, + ConfigFile == 1.*, + containers == 0.*, + directory == 1.1.*, + filepath == 1.3.*, + HandsomeSoup == 0.3.*, + http-conduit == 1.6.*, + http-types == 0.7.*, + hxt == 9.*, + MissingH == 1.1.*, + network == 2.3.*, + pandoc == 1.9.*, + parallel-io == 0.3.*, + regex-posix == 0.95.*, + temporary == 1.*, + time == 1.*, + utf8-string == 0.3.*, + -- Additional test dependencies. + HUnit == 1.2.*, + test-framework == 0.6.*, + test-framework-hunit == 0.2.* + + -- It's not entirely clear to me why I have to reproduce all of this. + ghc-options: + -rtsopts + -threaded + -O2 + -optc-O3 + -optc-march=native + + +source-repository head + type: git + location: http://michael.orlitzky.com/git/lwn-epub.git + branch: master