]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - Lucu.cabal
application/x-wavpack ==> audio/x-wavpack
[Lucu.git] / Lucu.cabal
index ae858fb60dadeab0b017c6d430ee9466cc1f9527..a20a1b5a40c8442ed2c21453fd363e6149f3939a 100644 (file)
@@ -7,21 +7,39 @@ Description:
         used to create an efficient web-based application without
         messing around FastCGI. It is also intended to be run behind a
         reverse-proxy so it doesn't have some facilities like logging,
-        client filtering and so on.
+        client filtering or such like.
 Version: 0.1
 License: PublicDomain
-Author: PHO <phonohawk at ps dot sakura dot ne dot jp>
-Maintainer: PHO <phonohawk at ps dot sakura dot ne dot jp>
+License-File: COPYING
+Author: PHO <pho at cielonegro dot org>
+Maintainer: PHO <pho at cielonegro dot org>
 Stability: experimental
-Homepage: http://ccm.sherry.jp/Lucu/
+Homepage: http://cielonegro.org/Lucu.html
 Category: Network
 Tested-With: GHC == 6.8.1
-Build-Depends:
-        Crypto, base, bytestring, containers, directory, haskell-src,
-        hxt, mtl, network, stm, time, unix, zlib
-Exposed-Modules:
+Cabal-Version: >= 1.2
+Build-Type: Simple
+
+Extra-Source-Files:
+    ImplantFile.hs
+    NEWS
+    data/CompileMimeTypes.hs
+    data/mime.types
+    examples/HelloWorld.hs
+    examples/Makefile
+
+Flag build-lucu-implant-file
+    Description: Build the lucu-implant-file program.
+    Default:     True
+
+Library
+    Build-Depends:
+        HsOpenSSL, base, bytestring, containers, dataenc, directory,
+        haskell-src, hxt, mtl, network, stm, time, unix, zlib
+    Exposed-Modules:
         Network.HTTP.Lucu
         Network.HTTP.Lucu.Abortion
+        Network.HTTP.Lucu.Authorization
         Network.HTTP.Lucu.Config
         Network.HTTP.Lucu.ETag
         Network.HTTP.Lucu.HttpVersion
@@ -38,7 +56,7 @@ Exposed-Modules:
         Network.HTTP.Lucu.Response
         Network.HTTP.Lucu.StaticFile
         Network.HTTP.Lucu.Utils
-Other-Modules:
+    Other-Modules:
         Network.HTTP.Lucu.Chunk
         Network.HTTP.Lucu.ContentCoding
         Network.HTTP.Lucu.DefaultPage
@@ -50,26 +68,25 @@ Other-Modules:
         Network.HTTP.Lucu.Preprocess
         Network.HTTP.Lucu.RequestReader
         Network.HTTP.Lucu.ResponseWriter
-Extra-Source-Files:
-        data/CompileMimeTypes.hs
-        data/mime.types
-        examples/HelloWorld.hs
-        examples/Makefile
-ghc-options:
-        -fglasgow-exts
+    Extensions:
+        DeriveDataTypeable, UnboxedTuples
+    ghc-options:
         -Wall
         -funbox-strict-fields
 
-
-Executable: lucu-implant-file
-Main-Is: ImplantFile.hs
-ghc-options:
-        -fglasgow-exts
+Executable lucu-implant-file
+    if flag(build-lucu-implant-file)
+        Buildable: True
+    else
+        Buildable: False
+    Main-Is: ImplantFile.hs
+    Extensions:
+        UnboxedTuples
+    ghc-options:
         -Wall
         -funbox-strict-fields
 
-
---Executable: HelloWorld
---Main-Is: HelloWorld.hs
---Hs-Source-Dirs: ., examples
---ghc-options: -fglasgow-exts -fwarn-missing-signatures -fwarn-unused-imports -funbox-strict-fields -O3 -prof -auto-all
+--Executable HelloWorld
+--    Main-Is: HelloWorld.hs
+--    Hs-Source-Dirs: ., examples
+--    ghc-options: -fglasgow-exts -Wall -funbox-strict-fields -O3 -prof -auto-all