freebsd-ports/www/hs-gitit/files/patch-gitit.cabal
Johannes 5 Joemann 7fa7c89ce0 www/hs-gitit: Restore and update to 0.15.1.1
Gitit is a wiki program written in Haskell. It uses Happstack for the
web server and pandoc for markup processing. Pages and uploaded files
are stored in a git, darcs, or mercurial repository and may be
modified either by using the VCS's command-line tools or through
the wiki's web interface. By default, pandoc's extended version of
markdown is used as a markup language, but reStructuredText, LaTeX,
HTML, DocBook, or Emacs Org-mode markup can also be used. Gitit can
be configured to display TeX math (using texmath) and highlighted
source code (using highlighting-kate).

Other features include

 * plugins: dynamically loaded page transformations written in
   Haskell (see "Network.Gitit.Interface")
 * categories
 * caching
 * Atom feeds (site-wide and per-page)
 * a library, "Network.Gitit", that makes it simple to include
   a gitit wiki in any happstack application

WWW: https://github.com/jgm/gitit

PR:		273260
2023-09-24 14:57:13 -04:00

31 lines
1 KiB
Text

--- gitit.cabal.orig 2001-09-09 01:46:40 UTC
+++ gitit.cabal
@@ -104,6 +104,10 @@ Flag plugins
plugins should disable this flag.
default: True
+Flag with_rtsopts
+ description: Use -with-rtsopts=-I0 to avoid idle GC.
+ default: True
+
Library
hs-source-dirs: src
exposed-modules: Network.Gitit, Network.Gitit.ContentTransformer,
@@ -176,6 +180,8 @@ Library
exposed-modules: Network.Gitit.Interface
build-depends: ghc, ghc-paths
cpp-options: -D_PLUGINS
+ if flag(with_rtsopts)
+ cpp-options: -DRTSOPTS
default-extensions: CPP
default-language: Haskell2010
ghc-options: -Wall -fno-warn-unused-do-bind
@@ -198,6 +204,8 @@ Executable gitit
default-extensions: CPP
default-language: Haskell2010
ghc-options: -Wall -threaded -fno-warn-unused-do-bind
+ if flag(with_rtsopts)
+ ghc-options: -rtsopts=all -with-rtsopts=-I0
ghc-prof-options: -fprof-auto-exported -rtsopts
Executable expireGititCache