remove cairo dependency and update the readme

This commit is contained in:
stisa 2017-10-07 16:54:13 +02:00
commit 957b3738f8
2 changed files with 6 additions and 21 deletions

View file

@ -15,23 +15,8 @@ _See also: Running the forum for how to create the database_
## Dependencies ## Dependencies
The code depends on the RST parser of the Nim The code depends on the RST parser of the Nim
compiler and on Jester. The code generating captchas for registration uses the compiler and on Jester. The captchas for registration uses the
[cairo module](https://github.com/nim-lang/cairo), which requires you to have [reCaptcha module](https://github.com/euantorano/recaptcha.nim).
the [cairo library](http://cairographics.org) installed when you run the forum,
or you will be greeted by a cryptic error message similar to:
$ ./forum could not load: libcairo.so(1.2)
### Mac OS X
#### cairo
If you are using macosx and have installed the ``cairo`` library through
[MacPorts](https://www.macports.org) you still need to add the library path to
your ``LD_LIBRARY_PATH`` environment variable. Example:
$ LD_LIBRARY_PATH=/opt/local/lib/ ./forum
Replace ``/opt/local/lib`` with the correct path on your system.
#### bcrypt #### bcrypt
@ -47,7 +32,7 @@ changing the dependencies slightly.
``` ```
[Deps] [Deps]
Requires: "nimrod >= 0.10.3, cairo#head, jester#head, bcrypt >= 0.2.1" Requires: "nim >= 0.14.0, jester#head, bcrypt#head, recaptcha >= 1.0.0"
``` ```
# Running the forum # Running the forum
@ -69,12 +54,12 @@ After that you can just run `forum` and if everything is ok you will get the inf
_There is an update helper `editdb` which you can safely ignore for now._ _There is an update helper `editdb` which you can safely ignore for now._
_The files `captchas.nim`, `cache.nim` are included by `forum.nim` and do _The file `cache.nim` is included by `forum.nim` and do
not need to be compiled by you._ not need to be compiled by you._
# Copyright # Copyright
Copyright (c) 2012-2015 Andreas Rumpf, Dominik Picheta. Copyright (c) 2012-2017 Andreas Rumpf, Dominik Picheta.
All rights reserved. All rights reserved.

View file

@ -8,4 +8,4 @@ license = "MIT"
bin = "forum" bin = "forum"
[Deps] [Deps]
Requires: "nim >= 0.14.0, cairo#head, jester#head, bcrypt#head, recaptcha >= 1.0.0" Requires: "nim >= 0.14.0, jester#head, bcrypt#head, recaptcha >= 1.0.0"