mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -06:00
gf-server.cabal: always build the fastcgi module (pgf-server), lower version requirement on the cgi package
+ The flag fastcgi is removed: building the fastcgi is the main purpose of this cabal file again. + pgf-http superseded by gf-server, but is still available as an option + Require cgi>=3001.7.3 instead of cgi>=3001.8.0.
This commit is contained in:
@@ -6,45 +6,48 @@ license: GPL
|
|||||||
license-file: ../../LICENSE
|
license-file: ../../LICENSE
|
||||||
synopsis: FastCGI Server for Grammatical Framework
|
synopsis: FastCGI Server for Grammatical Framework
|
||||||
|
|
||||||
flag fastcgi
|
|
||||||
Description: Build the fastcgi service (requires the fastcgi package)
|
|
||||||
(In Ubuntu: apt-get install libghc-fastcgi-dev)
|
|
||||||
Default: False
|
|
||||||
|
|
||||||
flag content
|
flag content
|
||||||
Description:
|
Description:
|
||||||
Build content service (requires fastcgi and hsql-mysql packages)
|
Build content service (requires fastcgi and hsql-mysql packages)
|
||||||
(In Ubuntu: apt-get install libghc-fastcgi-dev libghc-hsql-mysql-dev)
|
(In Ubuntu: apt-get install libghc-fastcgi-dev libghc-hsql-mysql-dev)
|
||||||
Default: False
|
Default: False
|
||||||
|
|
||||||
|
flag http
|
||||||
|
Description: Build pgf-http (deprecated, replaced by gf -server)
|
||||||
|
Default: False
|
||||||
|
|
||||||
executable pgf-http
|
executable pgf-http
|
||||||
main-is: pgf-http.hs
|
main-is: pgf-http.hs
|
||||||
Hs-source-dirs: . transfer
|
Hs-source-dirs: . transfer
|
||||||
other-modules: PGFService FastCGIUtils Cache URLEncoding
|
|
||||||
RunHTTP ServeStaticFile Fold
|
|
||||||
ghc-options: -threaded
|
ghc-options: -threaded
|
||||||
if impl(ghc>=7.0)
|
if impl(ghc>=7.0)
|
||||||
ghc-options: -rtsopts
|
ghc-options: -rtsopts
|
||||||
|
|
||||||
build-depends: base >=4.2 && <5,
|
if flag(http)
|
||||||
old-time,
|
buildable: True
|
||||||
directory,
|
other-modules: PGFService FastCGIUtils Cache URLEncoding
|
||||||
filepath,
|
RunHTTP ServeStaticFile Fold
|
||||||
containers,
|
build-depends: base >=4.2 && <5,
|
||||||
process,
|
old-time,
|
||||||
gf >= 3.1,
|
directory,
|
||||||
cgi >= 3001.1.8.0,
|
filepath,
|
||||||
httpd-shed,
|
containers,
|
||||||
network,
|
process,
|
||||||
json >= 0.3.3,
|
gf >= 3.1,
|
||||||
utf8-string >= 0.3.1.1,
|
cgi >= 3001.1.7.3,
|
||||||
bytestring,
|
httpd-shed,
|
||||||
pretty,
|
network,
|
||||||
random
|
json >= 0.3.3,
|
||||||
if os(windows)
|
utf8-string >= 0.3.1.1,
|
||||||
ghc-options: -optl-mwindows
|
bytestring,
|
||||||
|
pretty,
|
||||||
|
random
|
||||||
|
if os(windows)
|
||||||
|
ghc-options: -optl-mwindows
|
||||||
|
else
|
||||||
|
build-depends: unix
|
||||||
else
|
else
|
||||||
build-depends: unix
|
buildable: False
|
||||||
|
|
||||||
executable pgf-service
|
executable pgf-service
|
||||||
main-is: pgf-fcgi.hs
|
main-is: pgf-fcgi.hs
|
||||||
@@ -54,12 +57,8 @@ executable pgf-service
|
|||||||
if impl(ghc>=7.0)
|
if impl(ghc>=7.0)
|
||||||
ghc-options: -rtsopts
|
ghc-options: -rtsopts
|
||||||
|
|
||||||
if flag(fastcgi)
|
build-depends: fastcgi >= 3001.0.2.2
|
||||||
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
|
||||||
buildable: True
|
|
||||||
else
|
|
||||||
buildable: False
|
|
||||||
|
|
||||||
build-depends: base >=4.2 && <5,
|
build-depends: base >=4.2 && <5,
|
||||||
old-time,
|
old-time,
|
||||||
@@ -68,7 +67,7 @@ executable pgf-service
|
|||||||
containers,
|
containers,
|
||||||
process,
|
process,
|
||||||
gf >= 3.1,
|
gf >= 3.1,
|
||||||
cgi >= 3001.1.8.0,
|
cgi >= 3001.1.7.3,
|
||||||
network,
|
network,
|
||||||
json >= 0.3.3,
|
json >= 0.3.3,
|
||||||
utf8-string >= 0.3.1.1,
|
utf8-string >= 0.3.1.1,
|
||||||
|
|||||||
Reference in New Issue
Block a user