darcs repository web UI and hosting app. This is the main darcsden trunk, which also runs hub.darcs.net. (http://hub.darcs.net)

root / darcsden.cabal

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
name:            darcsden
version:         1.1.99
synopsis:        Darcs repository UI and hosting/collaboration app (hub.darcs.net branch).
description:
    A web application and SSH server for browsing and hosting darcs
    repositories and collaborating with others.
    .
    Installation: <http://hub.darcs.net/simon/darcsden/README.md>
    .
    Release notes: <http://hub.darcs.net/simon/darcsden/ANNOUNCE.md>

cabal-version:   >=1.8
build-type:      Simple
license:         GPL
license-file:    LICENSE
author:          Alex Suraci <suraci.alex@gmail.com>
maintainer:      Simon Michael <simon@joyful.com>
homepage:        http://hackage.haskell.org/package/darcsden
category:        Development, Distribution, Web
tested-with:     GHC==7.10.3
extra-source-files: 
                    CHANGES.md
                    LICENSE
                    README.md
data-files:
                    public/js/relatize.js
                    public/js/main.js
                    public/js/jquery-1.8.1.min.js
                    public/images/explore.xcf
                    public/images/favicon.ico
                    public/images/added.gif
                    public/images/spinner.gif
                    public/images/preference.gif
                    public/images/favicon.xcf
                    public/images/modified.gif
                    public/images/delete-small.gif
                    public/images/up.gif
                    public/images/unsubscribe.gif
                    public/images/subscribe.gif
                    public/images/log.gif
                    public/images/login.gif
                    public/images/edit.xcf
                    public/images/patches.gif
                    public/images/fork.gif
                    public/images/issues.gif
                    public/images/patches.xcf
                    public/images/new.xcf
                    public/images/delete.gif
                    public/images/new.gif
                    public/images/home.gif
                    public/images/issues.xcf
                    public/images/folder.gif
                    public/images/logout.gif
                    public/images/file.gif
                    public/images/register.gif
                    public/images/explore.gif
                    public/images/forkgif.xcf
                    public/images/edit.gif
                    public/images/private.gif
                    public/images/removed.gif
                    public/images/favicon.png
                    public/codemirror-3.14/theme/elegant.css
                    public/codemirror-3.14/LICENSE
                    public/codemirror-3.14/lib/codemirror.css
                    public/codemirror-3.14/lib/codemirror-compressed.js
                    public/robots.txt
                    public/css/main.css
                    public/css/highlight.css
                    public/bootstrap/js/bootstrap.js
                    public/bootstrap/js/bootstrap.min.js
                    public/bootstrap/img/glyphicons-halflings-white.png
                    public/bootstrap/css/bootstrap.min.css
                    public/bootstrap/css/bootstrap.css
                    public/bootstrap/css/bootstrap-responsive.css
                    public/bootstrap/css/bootstrap-responsive.min.css

source-repository   head
    type:           darcs
    location:       http://hub.darcs.net/simon/darcsden


-- flags

flag cli
  manual:      True
  description: Build the den command-line tool which helps with local use
  default:     True

flag posthook
  manual:      True
  description: Build the darcsden-post-hook script that closes issues based on commit messages
  default:     False

flag ssh
  manual:      True
  description: Build the darcsden-ssh server allowing darcs push/pull from remote machines
  default:     False

flag dev
  manual:      True
  description: Build in developer mode (define DEV, use a different port etc)
  default:     False

flag warn-as-error
  manual:      True
  description: Build with warnings-as-errors
  default:     False

-- TODO: replace these with skylighting
-- Enable only one of these two (or neither). highlightingkate performs better,
-- highlighter needs no C library.
flag highlightingkate
  manual:      True
  description: Enable source code highlighting, using highlighting-kate (faster).
  default:     True
flag highlighter
  manual:      True
  description: Enable source code highlighting, using highlighter.
  default:     False

-- library
library
  hs-source-dirs:  src

  -- there's no particularly coherent split between exposed-modules and
  -- other-modules yet, so just move things here as needed
  exposed-modules:
                   DarcsDen.Auth
                   DarcsDen.Backend.Permanent
                   DarcsDen.Backend.Permanent.Local
                   DarcsDen.Backend.Transient
                   DarcsDen.Darcs
                   DarcsDen.Handlers
                   DarcsDen.Mail
                   DarcsDen.Settings
                   DarcsDen.Settings.Production
                   DarcsDen.Settings.Local
                   DarcsDen.Settings.Test
                   DarcsDen.Settings.TestSelenium
                   DarcsDen.Settings.Types
                   DarcsDen.Settings.Common
                   DarcsDen.State.Types
                   DarcsDen.State.Comment
                   DarcsDen.State.FileSystem
                   DarcsDen.State.Issue
                   DarcsDen.State.JSON
                   DarcsDen.State.Repo
                   DarcsDen.State.Representation
                   DarcsDen.State.StateUtils
                   DarcsDen.State.User
                   DarcsDen.Util
                   DarcsDen.WebUtils
                   DarcsDen.WebServer
                   DarcsDen.Instance.Class
                   DarcsDen.Instance.Default
                   DarcsDen.Instance.Hub
                   DarcsDen.Instance.Local                  
                   DarcsDen.Backend.Permanent.Local.Files

  other-modules:
                   DarcsDen.Backend.Permanent.CouchDB
                   DarcsDen.Backend.Transient.Redis
                   DarcsDen.Backend.Transient.InProcess
                   DarcsDen.DebugUtils
                   DarcsDen.Handlers.RepoHandlers
                   DarcsDen.Handlers.RepoHandlerUtils.Annotate
                   DarcsDen.Handlers.RepoHandlerUtils.Browse
                   DarcsDen.Handlers.RepoHandlerUtils.Changes
                   DarcsDen.Handlers.RepoHandlerUtils.Dist
                   DarcsDen.Handlers.RepoHandlerUtils.Forks
                   DarcsDen.Handlers.RepoHandlerUtils.Util
                   DarcsDen.Handlers.UserHandlers
                   DarcsDen.Handlers.UserHandlerUtils.Github
                   DarcsDen.Handlers.UserHandlerUtils.Google
                   DarcsDen.MimeMapSettings
                   DarcsDen.Pages.Base
                   DarcsDen.Pages.HubPages
                   DarcsDen.Pages.PageUtils
                   DarcsDen.Pages.RepoPages
                   DarcsDen.Pages.UserPages
                   DarcsDen.State.Bundle
                   DarcsDen.State.ForgotPassword
                   DarcsDen.State.Session
                   DarcsDen.Validate
                   Paths_darcsden

  -- hsx2hs must be installed, but cabal doesn't know of it yet
  -- build-tools: hsx2hs

  ghc-options:     -Wall -fno-warn-unused-do-bind

  if flag(warn-as-error)
    ghc-options:      -Werror

  if flag(dev)
    cpp-options: -DDEV

  if flag(highlightingkate)
    cpp-options: -DHIGHLIGHTINGKATE
    build-depends: highlighting-kate >= 0.5.5

  if flag(highlighter)
    cpp-options: -DHIGHLIGHTER
    build-depends: highlighter

  if !os(windows)
    cpp-options: -DUNIX
    build-depends: unix >= 2.5
    
  build-depends:
      base >= 4.8 && < 4.10
    , base64-string
    , base64-bytestring
    , blaze-builder
    , blaze-html >= 0.5 && < 0.9
    , blaze-markup
    , bytestring
    , ConfigFile
    , CouchDB >= 1.2.1 && < 1.3
    , containers
    , darcs >= 2.12.5 && < 2.14
    , directory >= 1.2.2.0
    , filepath
    , hsp >= 0.10
    , http-client >= 0.5 && < 0.6
    , http-conduit >= 2.0 && < 2.3
    , io-streams >= 1.3 && < 1.4
    , json
    , lens >= 3.10 && < 4.16
    , mtl >= 2 && < 2.3
    , mime-mail
    , mime-types
    , MissingH >= 1.3.0.1
    , network
    , old-locale
    , old-time
    , pandoc >= 1.14 && < 1.20
    , pureMD5
    , process
    , PSQueue >= 1.1 && < 1.2
    , random
    , redis >= 0.14
    , safe
    , errors
    , SHA
    , snap-core >= 1.0 && < 1.1
    , snap-server >= 1.0 && < 1.1
    , uuid
    , split >= 0.1.4.1 && < 0.3
    , text
    , time
    , transformers >= 0.1 && < 0.6
    , utf8-string
    , vector
    , void
    , xhtml
    , xml

  extensions:
    ConstraintKinds
    ImplicitParams
    TypeFamilies
    ScopedTypeVariables
    StandaloneDeriving
    ViewPatterns
    EmptyDataDecls
    FlexibleContexts
    ConstrainedClassMethods


-- executables

executable darcsden
  hs-source-dirs:  web-server
  main-is:         darcsden.hs
  other-modules:   DenConfig

  -- not -threaded until libdarcs is working directory thread safe
  ghc-options:     -Wall -fno-warn-unused-do-bind

  if flag(warn-as-error)
    ghc-options:      -Werror

  if flag(dev)
    cpp-options: -DDEV

  build-depends:
      darcsden
    , base
    , base64-string
    , blaze-builder
    , bytestring
    , ConfigFile
    , directory >= 1.2.2.0
    , filepath
    , HsOpenSSL
    , mtl
    , network
    , snap-core
    , snap-server

  if os(windows)
    cpp-options: -DWIN32
    build-depends:
      Win32-services-wrapper

  extensions:
    ConstraintKinds
    ImplicitParams
    TypeFamilies
    ScopedTypeVariables
    StandaloneDeriving
    ViewPatterns
    EmptyDataDecls
    FlexibleContexts

executable darcsden-ssh
  if !flag(ssh)
    buildable: False

  hs-source-dirs:  ssh-server
  main-is:         darcsden-ssh.hs

  ghc-options:     -Wall -threaded -fno-warn-unused-do-bind

  if flag(warn-as-error)
    ghc-options:      -Werror

  if flag(dev)
    cpp-options: -DDEV

  build-depends:
      darcsden
    , base
    , base64-string
    , directory >= 1.2.2.0
    , filepath
    , lens
    , mtl
    , network
    , process
    , ssh >= 0.3.1
    , time

  extensions:
    ConstraintKinds
    ImplicitParams
    TypeFamilies
    ScopedTypeVariables
    StandaloneDeriving
    ViewPatterns
    EmptyDataDecls

executable darcsden-post-hook
  if !flag(posthook)
    buildable: False

  hs-source-dirs:  post-hook
  main-is:         darcsden-post-hook.hs

  ghc-options:     -Wall -threaded -fno-warn-unused-do-bind

  if flag(warn-as-error)
    ghc-options:      -Werror

  if flag(dev)
    cpp-options: -DDEV

  build-depends:
      darcsden
    , base
    , directory >= 1.2.2.0
    , filepath
    , lens
    , time
    , xml
    , pcre-light

  extensions:
    ConstraintKinds
    ImplicitParams
    TypeFamilies
    ScopedTypeVariables
    StandaloneDeriving
    ViewPatterns
    EmptyDataDecls

executable den
  if !flag(cli)
    buildable: False

  hs-source-dirs: darcsden-cli
  main-is:        Main.hs
  build-depends:  base >=4 && <5,
                  process,
                  directory,
                  filepath,
                  ConfigFile,
                  MissingH,
                  open-browser,
                  mtl,
                  http-client,
                  darcsden, darcs

test-suite darcsden-test-http
  type: exitcode-stdio-1.0
  hs-source-dirs: test-http
  main-is:        darcsden-test-http.hs
  -- other-modules:

  ghc-options: -Wall -threaded -fno-warn-unused-do-bind

  if flag(warn-as-error)
    ghc-options:      -Werror

  if flag(dev)
    cpp-options: -DDEV

  build-depends:
      darcsden
    , base
    , bytestring
    , directory >= 1.2.2.0
    , filepath
    , http-client
    , HUnit
    , lens
    , shelly >= 1.5.7 && < 1.7
    , taggy
    , taggy-lens
    , test-framework
    , test-framework-hunit
    , text
    , wreq

  extensions:
    ConstraintKinds
    ImplicitParams
    TypeFamilies
    ScopedTypeVariables
    StandaloneDeriving
    ViewPatterns
    EmptyDataDecls
    FlexibleContexts

test-suite darcsden-test
  type: exitcode-stdio-1.0
  hs-source-dirs: test-harness
  main-is:        darcsden-test.hs
  other-modules:
                   Test.GithubTest
                   Test.GoogleTest
                   Test.RepoTest
                   Test.UserTest
                   Test.Utils

  ghc-options: -Wall -threaded -fno-warn-unused-do-bind

  if flag(warn-as-error)
    ghc-options:      -Werror

  if flag(dev)
    cpp-options: -DDEV

  build-depends:
      darcsden
    , aeson
    , base
    , directory >= 1.2.2.0
    , exceptions >= 0.8 && < 0.9
    , filepath
    , HsOpenSSL
    , HUnit
    , mtl
    , random
    , split
    , temporary >= 1.2 && <1.3
    , test-framework
    , test-framework-hunit
    , text
    , unordered-containers
    , webdriver >= 0.6.2 && < 0.9

  extensions:
    ConstraintKinds
    ImplicitParams
    TypeFamilies
    ScopedTypeVariables
    StandaloneDeriving
    ViewPatterns
    EmptyDataDecls
    FlexibleContexts