mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-24 03:52:50 -06:00
gf-server.cabal: relax network version bounds and make building the library and pgf-service executable optional
This allows you to build the content-service without installing the problematic fastcgi library.
This commit is contained in:
@@ -16,17 +16,28 @@ flag http
|
|||||||
Description: Build pgf-http (deprecated, replaced by gf -server)
|
Description: Build pgf-http (deprecated, replaced by gf -server)
|
||||||
Default: False
|
Default: False
|
||||||
|
|
||||||
|
flag fastcgi
|
||||||
|
Description: Build librar & pgf-service executable with fastcgi support
|
||||||
|
Default: True
|
||||||
|
|
||||||
flag c-runtime
|
flag c-runtime
|
||||||
Description: Include functionality from the C run-time library (which must be installed already)
|
Description: Include functionality from the C run-time library (which must be installed already)
|
||||||
Default: False
|
Default: False
|
||||||
|
|
||||||
|
flag network-uri
|
||||||
|
description: Get Network.URI from the network-uri package
|
||||||
|
default: True
|
||||||
|
|
||||||
Library
|
Library
|
||||||
exposed-modules: PGFService FastCGIUtils CGIUtils ServeStaticFile RunHTTP Cache
|
exposed-modules: PGFService FastCGIUtils CGIUtils ServeStaticFile RunHTTP Cache
|
||||||
other-modules: URLEncoding CGI Fold
|
other-modules: URLEncoding CGI Fold
|
||||||
hs-source-dirs: . transfer
|
hs-source-dirs: . transfer
|
||||||
|
|
||||||
build-depends: fastcgi >= 3001.0.2.2
|
if flag(fastcgi)
|
||||||
|
build-depends: fastcgi >= 3001.0.2.2
|
||||||
-- Install it in Ubuntu with: apt-get install libghc-fastcgi-dev
|
-- Install it in Ubuntu with: apt-get install libghc-fastcgi-dev
|
||||||
|
else
|
||||||
|
Buildable: False
|
||||||
|
|
||||||
build-depends: base >=4.2 && <5,
|
build-depends: base >=4.2 && <5,
|
||||||
time, time-compat, old-locale,
|
time, time-compat, old-locale,
|
||||||
@@ -39,13 +50,17 @@ Library
|
|||||||
httpd-shed>=0.4.0.2,
|
httpd-shed>=0.4.0.2,
|
||||||
mtl,
|
mtl,
|
||||||
exceptions,
|
exceptions,
|
||||||
network>=2.3 && <2.6,
|
|
||||||
json >= 0.3.3,
|
json >= 0.3.3,
|
||||||
utf8-string >= 0.3.1.1,
|
utf8-string >= 0.3.1.1,
|
||||||
bytestring,
|
bytestring,
|
||||||
pretty,
|
pretty,
|
||||||
random
|
random
|
||||||
|
|
||||||
|
if flag(network-uri)
|
||||||
|
build-depends: network-uri>=2.6, network>=2.6
|
||||||
|
else
|
||||||
|
build-depends: network>=2.3 && <2.6
|
||||||
|
|
||||||
ghc-options: -fwarn-unused-imports
|
ghc-options: -fwarn-unused-imports
|
||||||
if os(windows)
|
if os(windows)
|
||||||
ghc-options: -optl-mwindows
|
ghc-options: -optl-mwindows
|
||||||
@@ -75,8 +90,11 @@ executable pgf-service
|
|||||||
if impl(ghc>=7.0)
|
if impl(ghc>=7.0)
|
||||||
ghc-options: -rtsopts
|
ghc-options: -rtsopts
|
||||||
|
|
||||||
build-depends: fastcgi >= 3001.0.2.2
|
if flag(fastcgi)
|
||||||
|
build-depends: fastcgi >= 3001.0.2.2
|
||||||
-- Install it in Ubuntu with: apt-get install libghc-fastcgi-dev
|
-- Install it in Ubuntu with: apt-get install libghc-fastcgi-dev
|
||||||
|
else
|
||||||
|
Buildable: False
|
||||||
|
|
||||||
build-depends: base >=4.2 && <5, gf-server
|
build-depends: base >=4.2 && <5, gf-server
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user