From 957b3738f83e54c2ad1b167c425d47610e983f4f Mon Sep 17 00:00:00 2001 From: stisa Date: Sat, 7 Oct 2017 16:54:13 +0200 Subject: [PATCH 1/3] remove cairo dependency and update the readme --- README.md | 25 +++++-------------------- nimforum.nimble | 2 +- 2 files changed, 6 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 1df440e..1ec4b8c 100644 --- a/README.md +++ b/README.md @@ -15,23 +15,8 @@ _See also: Running the forum for how to create the database_ ## Dependencies The code depends on the RST parser of the Nim -compiler and on Jester. The code generating captchas for registration uses the -[cairo module](https://github.com/nim-lang/cairo), which requires you to have -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. +compiler and on Jester. The captchas for registration uses the +[reCaptcha module](https://github.com/euantorano/recaptcha.nim). #### bcrypt @@ -47,7 +32,7 @@ changing the dependencies slightly. ``` [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 @@ -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._ -_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._ # Copyright -Copyright (c) 2012-2015 Andreas Rumpf, Dominik Picheta. +Copyright (c) 2012-2017 Andreas Rumpf, Dominik Picheta. All rights reserved. diff --git a/nimforum.nimble b/nimforum.nimble index b0cdb09..b6943e0 100644 --- a/nimforum.nimble +++ b/nimforum.nimble @@ -8,4 +8,4 @@ license = "MIT" bin = "forum" [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" From 13f2de94a3bfd8f640ad460620b17237d1c4401e Mon Sep 17 00:00:00 2001 From: stisa Date: Sat, 7 Oct 2017 17:11:50 +0200 Subject: [PATCH 2/3] macos bcrypt may need a fixed version --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1ec4b8c..1e3205c 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ changing the dependencies slightly. ``` [Deps] -Requires: "nim >= 0.14.0, jester#head, bcrypt#head, recaptcha >= 1.0.0" +Requires: "nim >= 0.14.0, jester#head, bcrypt >= 0.2.1, recaptcha >= 1.0.0" ``` # Running the forum From 8bbe9356febfef1a5816f06d60bc9056eb0bf0a9 Mon Sep 17 00:00:00 2001 From: stisa Date: Sat, 7 Oct 2017 17:17:08 +0200 Subject: [PATCH 3/3] close a paren, fix a link --- README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1e3205c..b0ee351 100644 --- a/README.md +++ b/README.md @@ -4,19 +4,18 @@ This is Nim's forum. Available at http://forum.nim-lang.org. ## Building -You can use ``nimble`` (available [here](https://github.com/nim-lang/nimble) +You can use ``nimble`` (available [here](https://github.com/nim-lang/nimble)) to get all the necessary [dependencies](https://github.com/nim-lang/nimforum/blob/master/nimforum.nimble#L11). Clone this repo and execute ``nimble build`` in this repositories directory. -_See also: Running the forum for how to create the database_ +See also: Running the forum for how to create the database. ## Dependencies -The code depends on the RST parser of the Nim -compiler and on Jester. The captchas for registration uses the -[reCaptcha module](https://github.com/euantorano/recaptcha.nim). +The code depends on the RST parser of the Nim compiler and on Jester. +The captchas for registration uses the [reCaptcha module](https://github.com/euantorano/recaptcha.nim). #### bcrypt