all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#28177] [PATCH] Add ikiwiki and dependencies
@ 2017-08-21 18:04 Christopher Baines
  2017-08-21 18:08 ` [bug#28177] [PATCH 01/12] gnu: Add discount Christopher Baines
  2017-09-12 21:38 ` Christopher Baines
  0 siblings, 2 replies; 33+ messages in thread
From: Christopher Baines @ 2017-08-21 18:04 UTC (permalink / raw)
  To: 28177

[-- Attachment #1: Type: text/plain, Size: 837 bytes --]

Christopher Baines (12):
  gnu: Add discount.
  gnu: Add perl-text-markdown-discount.
  gnu: Add perl-test-cpan-meta-json.
  gnu: Add perl-test-cpan-meta.
  gnu: Add perl-devel-cycle.
  gnu: Add perl-test-memory-cycle.
  gnu: Add perl-test-notabs.
  gnu: Add perl-test-eol.
  gnu: Add perl-html-scrubber.
  gnu: Add perl-yaml-libyaml.
  gnu: Add perl-cgi-session.
  gnu: Add ikiwiki.

 gnu/packages/markup.scm                            |  87 ++++++++++
 ...ext-markdown-discount-use-system-markdown.patch |  32 ++++
 gnu/packages/perl.scm                              | 187 +++++++++++++++++++++
 gnu/packages/web.scm                               | 132 ++++++++++++++-
 4 files changed, 437 insertions(+), 1 deletion(-)
 create mode 100644 gnu/packages/patches/perl-text-markdown-discount-use-system-markdown.patch

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 963 bytes --]

^ permalink raw reply	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 01/12] gnu: Add discount.
  2017-08-21 18:04 [bug#28177] [PATCH] Add ikiwiki and dependencies Christopher Baines
@ 2017-08-21 18:08 ` Christopher Baines
  2017-08-21 18:08   ` [bug#28177] [PATCH 02/12] gnu: Add perl-text-markdown-discount Christopher Baines
                     ` (11 more replies)
  2017-09-12 21:38 ` Christopher Baines
  1 sibling, 12 replies; 33+ messages in thread
From: Christopher Baines @ 2017-08-21 18:08 UTC (permalink / raw)
  To: 28177

This is required by perl-text-markdown-discount, which is required by ikiwiki.

* gnu/packages/markdown.scm (discount) New variable.
---
 gnu/packages/markup.scm | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/markup.scm b/gnu/packages/markup.scm
index 121e6cdbf..6d7f7fd40 100644
--- a/gnu/packages/markup.scm
+++ b/gnu/packages/markup.scm
@@ -102,6 +102,47 @@ convert it to structurally valid XHTML (or HTML).")
     (license (non-copyleft "file://License.text"
                            "See License.text in the distribution."))))
 
+(define-public discount
+  (package
+    (name "discount")
+    (version "2.2.2")
+    (source (origin
+             (method url-fetch)
+             (uri (string-append
+                   "http://www.pell.portland.or.us/~orc/Code/"
+                   name "/" name "-" version ".tar.bz2"))
+             (file-name (string-append name "-" version ".tar.gz"))
+             (sha256
+              (base32
+               "0r4gjyk1ngx47zhb25q0gkjm3bz2m5x8ngrk6rim3y1y3rricygc"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:test-target "test"
+       #:make-flags (list
+                     (string-append "LFLAGS=-L. -Wl,-rpath="
+                                    (assoc-ref %outputs "out") "/lib"))
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'configure
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (setenv "CC" "gcc")
+             (zero? (system*
+                     "./configure.sh"
+                     (string-append "--prefix=" (assoc-ref outputs "out"))
+                     "--shared"))))
+         (add-before 'configure 'set_ac_default_path
+           (lambda args
+             (substitute* "configure.inc"
+               (("ac_default_path=\".*\"")
+                (string-append "ac_default_path=\"" (getenv "PATH") "\"")))
+             #t)))))
+    (synopsis "Markdown processing library, written in C")
+    (description
+     "Discount is a markdown implementation, written in C.  It provides a
+@command{markdown} command, and a library.")
+    (home-page "http://www.pell.portland.or.us/~orc/Code/discount/")
+    (license bsd-3)))
+
 (define-public cmark
   (package
     (name "cmark")
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 02/12] gnu: Add perl-text-markdown-discount.
  2017-08-21 18:08 ` [bug#28177] [PATCH 01/12] gnu: Add discount Christopher Baines
@ 2017-08-21 18:08   ` Christopher Baines
  2017-08-21 18:08   ` [bug#28177] [PATCH 03/12] gnu: Add perl-test-cpan-meta-json Christopher Baines
                     ` (10 subsequent siblings)
  11 siblings, 0 replies; 33+ messages in thread
From: Christopher Baines @ 2017-08-21 18:08 UTC (permalink / raw)
  To: 28177

* gnu/packages/markdown.scm (perl-text-markdown-discount): New variable.
* gnu/packages/patches/perl-text-markdown-discount-use-system-markdown.patch:
  New file.
---
 gnu/packages/markup.scm                            | 46 ++++++++++++++++++++++
 ...ext-markdown-discount-use-system-markdown.patch | 32 +++++++++++++++
 2 files changed, 78 insertions(+)
 create mode 100644 gnu/packages/patches/perl-text-markdown-discount-use-system-markdown.patch

diff --git a/gnu/packages/markup.scm b/gnu/packages/markup.scm
index 6d7f7fd40..40b6d6486 100644
--- a/gnu/packages/markup.scm
+++ b/gnu/packages/markup.scm
@@ -27,6 +27,8 @@
   #:use-module (guix build-system trivial)
   #:use-module (guix build-system cmake)
   #:use-module (gnu packages compression)
+  #:use-module (guix build-system perl)
+  #:use-module (gnu packages)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages python)
   #:use-module (gnu packages web))
@@ -143,6 +145,50 @@ convert it to structurally valid XHTML (or HTML).")
     (home-page "http://www.pell.portland.or.us/~orc/Code/discount/")
     (license bsd-3)))
 
+(define-public perl-text-markdown-discount
+  (package
+    (name "perl-text-markdown-discount")
+    (version "0.11")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/S/SE/SEKIMURA/Text-Markdown-Discount-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "1xx7v3wnla7m6wa3h33whxw3vvincaicg4yra1b9wbzf2aix9rnw"))
+       (patches
+        (search-patches "perl-text-markdown-discount-use-system-markdown.patch"))))
+    (build-system perl-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'build 'set-ldflags
+           (lambda* (#:key inputs #:allow-other-keys)
+             (substitute* "Makefile"
+               (("OTHERLDFLAGS = ")
+                (string-append
+                      "OTHERLDFLAGS = -lmarkdown -Wl,-rpath="
+                      (assoc-ref inputs "discount")
+                      "/lib"))))))))
+    (inputs
+     `(("discount" ,discount)))
+    (home-page
+     "http://search.cpan.org/dist/Text-Markdown-Discount")
+    (synopsis
+     "Fast function for converting Markdown to HTML using Discount")
+    (description
+     "Text::Markdown::Discount is a Perl extension to the Discount markdown
+implementation.
+
+@example
+  use Text::Markdown::Discount;
+  my $html = markdown($text)
+@end example")
+    (license #f)))
+
 (define-public cmark
   (package
     (name "cmark")
diff --git a/gnu/packages/patches/perl-text-markdown-discount-use-system-markdown.patch b/gnu/packages/patches/perl-text-markdown-discount-use-system-markdown.patch
new file mode 100644
index 000000000..e0df632a0
--- /dev/null
+++ b/gnu/packages/patches/perl-text-markdown-discount-use-system-markdown.patch
@@ -0,0 +1,32 @@
+Description: Use the markdown library provided by the libmarkdown2 package.
+Author: Alessandro Ghedini <al3xbio@gmail.com>
+Origin: vendor
+Forwarded: not-needed
+Last-Update: 2012-01-01
+
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -57,12 +57,6 @@
+ 
+ 
+ 
+-sub MY::postamble {
+-    return sprintf('
+-$(MYEXTLIB):
+-	%s
+-', qq{( cd $extdir; CC='cc -fPIC' sh configure.sh; make )\n});
+-}
+ 
+ WriteMakefile(
+     NAME              => 'Text::Markdown::Discount',
+@@ -71,8 +65,6 @@
+     ($] >= 5.005 ?
+       (ABSTRACT_FROM  => 'lib/Text/Markdown/Discount.pm',
+        AUTHOR         => 'Masayoshi Sekimura <sekimura@cpan.org>') : ()),
+-    LIBS               => '-L' . $extdir,
+-    INC               => '-I. -I' . $extdir,
+-    MYEXTLIB          => $myextlib,
+-    clean             => { FILES => $clean_files },
++    LIBS               => '-lmarkdown',
++    INC               => '-I.',
+ );
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 03/12] gnu: Add perl-test-cpan-meta-json.
  2017-08-21 18:08 ` [bug#28177] [PATCH 01/12] gnu: Add discount Christopher Baines
  2017-08-21 18:08   ` [bug#28177] [PATCH 02/12] gnu: Add perl-text-markdown-discount Christopher Baines
@ 2017-08-21 18:08   ` Christopher Baines
  2017-08-21 18:08   ` [bug#28177] [PATCH 04/12] gnu: Add perl-test-cpan-meta Christopher Baines
                     ` (9 subsequent siblings)
  11 siblings, 0 replies; 33+ messages in thread
From: Christopher Baines @ 2017-08-21 18:08 UTC (permalink / raw)
  To: 28177

* gnu/packages/perl.scm (perl-test-cpan-meta-json): New variable.
---
 gnu/packages/perl.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 3265a55f0..d1cfabbb1 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -6530,6 +6530,34 @@ namespace::autoclean or namespace::clean and are therefore available to be
 called as methods, which usually isn't want you want.")
     (license (package-license perl))))
 
+(define-public perl-test-cpan-meta-json
+  (package
+    (name "perl-test-cpan-meta-json")
+    (version "0.16")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/B/BA/BARBIE/Test-CPAN-Meta-JSON-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "1jg9ka50ixwq083wd4k12rhdjq87w0ihb34gd8jjn7gvvyd51b37"))))
+    (build-system perl-build-system)
+    (native-inputs
+     `(("perl-test-pod" ,perl-test-pod)
+       ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
+    (inputs
+     `(("perl-json" ,perl-json)))
+    (home-page
+     "http://search.cpan.org/dist/Test-CPAN-Meta-JSON")
+    (synopsis "Validate your CPAN META.json files")
+    (description
+     "This module was written to ensure that a META.json file meets the
+specification.")
+    (license artistic2.0)))
+
 (define-public perl-test-deep
   (package
     (name "perl-test-deep")
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 04/12] gnu: Add perl-test-cpan-meta.
  2017-08-21 18:08 ` [bug#28177] [PATCH 01/12] gnu: Add discount Christopher Baines
  2017-08-21 18:08   ` [bug#28177] [PATCH 02/12] gnu: Add perl-text-markdown-discount Christopher Baines
  2017-08-21 18:08   ` [bug#28177] [PATCH 03/12] gnu: Add perl-test-cpan-meta-json Christopher Baines
@ 2017-08-21 18:08   ` Christopher Baines
  2017-08-21 18:08   ` [bug#28177] [PATCH 05/12] gnu: Add perl-devel-cycle Christopher Baines
                     ` (8 subsequent siblings)
  11 siblings, 0 replies; 33+ messages in thread
From: Christopher Baines @ 2017-08-21 18:08 UTC (permalink / raw)
  To: 28177

* gnu/packages/perl.scm (perl-test-cpan-meta): New variable.
---
 gnu/packages/perl.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index d1cfabbb1..9f135b4cc 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -6530,6 +6530,33 @@ namespace::autoclean or namespace::clean and are therefore available to be
 called as methods, which usually isn't want you want.")
     (license (package-license perl))))
 
+(define-public perl-test-cpan-meta
+  (package
+    (name "perl-test-cpan-meta")
+    (version "0.25")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/B/BA/BARBIE/Test-CPAN-Meta-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "1dcdbbdwdyhpldkhjzc9rvzlmb5jbil6fwh2x07nsfdwysf4ynzm"))))
+    (build-system perl-build-system)
+    (native-inputs
+     `(("perl-test-cpan-meta-json" ,perl-test-cpan-meta-json)
+       ("perl-test-pod" ,perl-test-pod)
+       ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
+    (home-page
+     "http://search.cpan.org/dist/Test-CPAN-Meta")
+    (synopsis "Validate your CPAN META.yml files")
+    (description
+     "This module was written to ensure that a META.yml file meets the
+specification.")
+    (license artistic2.0)))
+
 (define-public perl-test-cpan-meta-json
   (package
     (name "perl-test-cpan-meta-json")
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 05/12] gnu: Add perl-devel-cycle.
  2017-08-21 18:08 ` [bug#28177] [PATCH 01/12] gnu: Add discount Christopher Baines
                     ` (2 preceding siblings ...)
  2017-08-21 18:08   ` [bug#28177] [PATCH 04/12] gnu: Add perl-test-cpan-meta Christopher Baines
@ 2017-08-21 18:08   ` Christopher Baines
  2017-08-21 18:08   ` [bug#28177] [PATCH 06/12] gnu: Add perl-test-memory-cycle Christopher Baines
                     ` (7 subsequent siblings)
  11 siblings, 0 replies; 33+ messages in thread
From: Christopher Baines @ 2017-08-21 18:08 UTC (permalink / raw)
  To: 28177

* gnu/packages/perl.scm (perl-devel-cycle): New variable.
---
 gnu/packages/perl.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 9f135b4cc..03d77bb95 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -2253,6 +2253,30 @@ whether a compiler is available.  It can test for a C99 compiler, or
 you can tell it to compile a C source file with optional linker flags.")
   (license (package-license perl))))
 
+(define-public perl-devel-cycle
+  (package
+    (name "perl-devel-cycle")
+    (version "1.12")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/L/LD/LDS/Devel-Cycle-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "1hhb77kz3dys8yaik452j22cm3510zald2mpvfyv5clqv326aczx"))))
+    (build-system perl-build-system)
+    (home-page
+     "http://search.cpan.org/dist/Devel-Cycle")
+    (synopsis "Find memory cycles in objects")
+    (description
+     "@code{Devel::Cycle} This is a tool for finding circular references in
+objects and other types of references.  Because of Perl's reference-count
+based memory management, circular references will cause memory leaks.")
+    (license (package-license perl))))
+
 (define-public perl-devel-globaldestruction
   (package
     (name "perl-devel-globaldestruction")
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 06/12] gnu: Add perl-test-memory-cycle.
  2017-08-21 18:08 ` [bug#28177] [PATCH 01/12] gnu: Add discount Christopher Baines
                     ` (3 preceding siblings ...)
  2017-08-21 18:08   ` [bug#28177] [PATCH 05/12] gnu: Add perl-devel-cycle Christopher Baines
@ 2017-08-21 18:08   ` Christopher Baines
  2017-08-21 18:08   ` [bug#28177] [PATCH 07/12] gnu: Add perl-test-notabs Christopher Baines
                     ` (6 subsequent siblings)
  11 siblings, 0 replies; 33+ messages in thread
From: Christopher Baines @ 2017-08-21 18:08 UTC (permalink / raw)
  To: 28177

* gnu/packages/perl.scm (perl-test-memory-cycle): New variable.
---
 gnu/packages/perl.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 03d77bb95..d634c4456 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -6845,6 +6845,42 @@ file to find out which tests you want to run and the order in which you want to
 It constructs the right value for the build system to do the right thing.")
     (license (package-license perl))))
 
+(define-public perl-test-memory-cycle
+  (package
+    (name "perl-test-memory-cycle")
+    (version "1.06")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/P/PE/PETDANCE/Test-Memory-Cycle-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "00ijmgx1r3cxrcs1qa9rb2s4gbm3nsawd90drda89kb4r7yxslwx"))))
+    (build-system perl-build-system)
+    (inputs
+     `(("perl-padwalker" ,perl-padwalker)))
+    (propagated-inputs
+     `(("perl-devel-cycle" ,perl-devel-cycle)))
+    (home-page
+     "http://search.cpan.org/dist/Test-Memory-Cycle")
+    (synopsis
+     "Verifies code hasn't left circular references")
+    (description
+     "@code{Test::Memory::Cycle} is built on top of @code{Devel::Cycle} to
+give you an easy way to check for these circular references.
+
+@example
+use Test::Memory::Cycle;
+
+my $object = new MyObject;
+# Do stuff with the object.
+memory_cycle_ok( $object );
+@end example")
+    (license artistic2.0)))
+
 (define-public perl-test-mockobject
   (package
     (name "perl-test-mockobject")
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 07/12] gnu: Add perl-test-notabs.
  2017-08-21 18:08 ` [bug#28177] [PATCH 01/12] gnu: Add discount Christopher Baines
                     ` (4 preceding siblings ...)
  2017-08-21 18:08   ` [bug#28177] [PATCH 06/12] gnu: Add perl-test-memory-cycle Christopher Baines
@ 2017-08-21 18:08   ` Christopher Baines
  2017-08-21 18:08   ` [bug#28177] [PATCH 08/12] gnu: Add perl-test-eol Christopher Baines
                     ` (5 subsequent siblings)
  11 siblings, 0 replies; 33+ messages in thread
From: Christopher Baines @ 2017-08-21 18:08 UTC (permalink / raw)
  To: 28177

* gnu/packages/perl.scm (perl-test-notabs): New variable.
---
 gnu/packages/perl.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index d634c4456..4e6894ff5 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -6986,6 +6986,30 @@ with an error rather than skip.
 If used in a subtest, the remainder of the subtest will be skipped.")
     (license (package-license perl))))
 
+(define-public perl-test-notabs
+  (package
+    (name "perl-test-notabs")
+    (version "2.00")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/E/ET/ETHER/Test-NoTabs-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "127kpl1va267qar2ia4c22xb96jby2jqnda3sj5pjgmxg8si26cg"))))
+    (build-system perl-build-system)
+    (home-page
+     "http://search.cpan.org/dist/Test-NoTabs")
+    (synopsis
+     "Check the presence of tabs in your project")
+    (description
+     "@code{Test::NoTabs} lets you check the presence of tabs in your perl
+code.")
+    (license (package-license perl))))
+
 (define-public perl-test-nowarnings
   (package
     (name "perl-test-nowarnings")
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 08/12] gnu: Add perl-test-eol.
  2017-08-21 18:08 ` [bug#28177] [PATCH 01/12] gnu: Add discount Christopher Baines
                     ` (5 preceding siblings ...)
  2017-08-21 18:08   ` [bug#28177] [PATCH 07/12] gnu: Add perl-test-notabs Christopher Baines
@ 2017-08-21 18:08   ` Christopher Baines
  2017-08-21 18:08   ` [bug#28177] [PATCH 09/12] gnu: Add perl-html-scrubber Christopher Baines
                     ` (4 subsequent siblings)
  11 siblings, 0 replies; 33+ messages in thread
From: Christopher Baines @ 2017-08-21 18:08 UTC (permalink / raw)
  To: 28177

* gnu/packages/perl.scm (perl-test-eol): New variable.
---
 gnu/packages/perl.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 4e6894ff5..31785e4ae 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -6682,6 +6682,30 @@ modified or tested with this API, making it simple to test both individual
 files, as well as to verify that there are no missing or unknown files.")
     (license (package-license perl))))
 
+(define-public perl-test-eol
+  (package
+    (name "perl-test-eol")
+    (version "2.00")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/E/ET/ETHER/Test-EOL-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "0l3bxpsw0x7j9nclizcp53mnf9wny25dmg2iglfhzgnk0xfpwzwf"))))
+    (build-system perl-build-system)
+    (home-page
+     "http://search.cpan.org/dist/Test-EOL")
+    (synopsis
+     "Check the correct line endings in your project")
+    (description
+     "@code{Test::EOL} lets you check for the presence of trailing whitespace
+and/or windows line endings in your perl code.")
+    (license (package-license perl))))
+
 (define-public perl-test-exception
   (package
     (name "perl-test-exception")
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 09/12] gnu: Add perl-html-scrubber.
  2017-08-21 18:08 ` [bug#28177] [PATCH 01/12] gnu: Add discount Christopher Baines
                     ` (6 preceding siblings ...)
  2017-08-21 18:08   ` [bug#28177] [PATCH 08/12] gnu: Add perl-test-eol Christopher Baines
@ 2017-08-21 18:08   ` Christopher Baines
  2017-09-10 13:25     ` Ludovic Courtès
  2017-08-21 18:08   ` [bug#28177] [PATCH 10/12] gnu: Add perl-yaml-libyaml Christopher Baines
                     ` (3 subsequent siblings)
  11 siblings, 1 reply; 33+ messages in thread
From: Christopher Baines @ 2017-08-21 18:08 UTC (permalink / raw)
  To: 28177

* gnu/packages/web.scm (perl-html-scrubber): New variable.
---
 gnu/packages/web.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 1629c293d..6fef99153 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -2107,6 +2107,37 @@ composed of HTML::Element style components.")
 <form> ... </form> instance.")
     (license l:perl-license)))
 
+(define-public perl-html-scrubber
+  (package
+    (name "perl-html-scrubber")
+    (version "0.15")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/N/NI/NIGELM/HTML-Scrubber-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "1m1f8gm2jry42zxja05dxp2ck7y66m7i8vc38nj6hccnwlby6cvi"))))
+    (build-system perl-build-system)
+    (native-inputs
+     `(("perl-module-build" ,perl-module-build)
+       ("perl-test-cpan-meta" ,perl-test-cpan-meta)
+       ("perl-test-eol" ,perl-test-eol)
+       ("perl-test-memory-cycle" ,perl-test-memory-cycle)
+       ("perl-test-notabs" ,perl-test-notabs)))
+    (inputs
+     `(("perl-html-parser" ,perl-html-parser)))
+    (home-page
+     "http://search.cpan.org/dist/HTML-Scrubber")
+    (synopsis
+     "Perl extension for scrubbing/sanitizing html")
+    (description
+     "@code{HTML::Scrubber} Perl extension for scrubbing/sanitizing HTML.")
+    (license (package-license perl))))
+
 (define-public perl-html-lint
   (package
     (name "perl-html-lint")
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 10/12] gnu: Add perl-yaml-libyaml.
  2017-08-21 18:08 ` [bug#28177] [PATCH 01/12] gnu: Add discount Christopher Baines
                     ` (7 preceding siblings ...)
  2017-08-21 18:08   ` [bug#28177] [PATCH 09/12] gnu: Add perl-html-scrubber Christopher Baines
@ 2017-08-21 18:08   ` Christopher Baines
  2017-08-21 18:08   ` [bug#28177] [PATCH 11/12] gnu: Add perl-cgi-session Christopher Baines
                     ` (2 subsequent siblings)
  11 siblings, 0 replies; 33+ messages in thread
From: Christopher Baines @ 2017-08-21 18:08 UTC (permalink / raw)
  To: 28177

* gnu/packages/perl.scm (perl-yaml-libyaml): New variable.
---
 gnu/packages/perl.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 31785e4ae..cdda79a54 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -8235,6 +8235,30 @@ neither visible nor modifiable from Perl space).")
 on the YAML 1.0 specification.")
     (license (package-license perl))))
 
+(define-public perl-yaml-libyaml
+  (package
+    (name "perl-yaml-libyaml")
+    (version "0.65")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/T/TI/TINITA/YAML-LibYAML-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "0izhvz8f29x1f50hhwfgm0iq1lz7apjjvg77lmky949jr07hnwfv"))))
+    (build-system perl-build-system)
+    (home-page
+     "http://search.cpan.org/dist/YAML-LibYAML")
+    (synopsis
+     "Perl YAML Serialization using XS and libyaml")
+    (description
+     "@code{YAML::XS} is a Perl XS binding to libyaml which offers Perl the
+best YAML support to date.")
+    (license (package-license perl))))
+
 (define-public perl-yaml-tiny
   (package
     (name "perl-yaml-tiny")
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 11/12] gnu: Add perl-cgi-session.
  2017-08-21 18:08 ` [bug#28177] [PATCH 01/12] gnu: Add discount Christopher Baines
                     ` (8 preceding siblings ...)
  2017-08-21 18:08   ` [bug#28177] [PATCH 10/12] gnu: Add perl-yaml-libyaml Christopher Baines
@ 2017-08-21 18:08   ` Christopher Baines
  2017-08-21 18:08   ` [bug#28177] [PATCH 12/12] gnu: Add ikiwiki Christopher Baines
  2017-09-10 13:23   ` [bug#28177] [PATCH 01/12] gnu: Add discount Ludovic Courtès
  11 siblings, 0 replies; 33+ messages in thread
From: Christopher Baines @ 2017-08-21 18:08 UTC (permalink / raw)
  To: 28177

* gnu/packages/web.scm (perl-cgi-session): New variable.
---
 gnu/packages/web.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 6fef99153..70c6828d2 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -1839,6 +1839,33 @@ string generation and manipulation, and processing and preparing HTTP
 headers.")
     (license l:perl-license)))
 
+(define-public perl-cgi-session
+  (package
+    (name "perl-cgi-session")
+    (version "4.48")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/M/MA/MARKSTOS/CGI-Session-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "1xsl2pz1jrh127pq0b01yffnj4mnp9nvkp88h5mndrscq9hn8xa6"))))
+    (build-system perl-build-system)
+    (native-inputs
+     `(("perl-module-build" ,perl-module-build)))
+    (inputs `(("perl-cgi" ,perl-cgi)))
+    (home-page
+     "http://search.cpan.org/dist/CGI-Session")
+    (synopsis
+     "Persistent session data in CGI applications")
+    (description
+     "@code{CGI::Session} provides modular session management system across
+HTTP requests.")
+    (license l:perl-license)))
+
 (define-public perl-cgi-simple
   (package
     (name "perl-cgi-simple")
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 12/12] gnu: Add ikiwiki.
  2017-08-21 18:08 ` [bug#28177] [PATCH 01/12] gnu: Add discount Christopher Baines
                     ` (9 preceding siblings ...)
  2017-08-21 18:08   ` [bug#28177] [PATCH 11/12] gnu: Add perl-cgi-session Christopher Baines
@ 2017-08-21 18:08   ` Christopher Baines
  2017-09-10 13:27     ` Ludovic Courtès
  2017-09-10 13:23   ` [bug#28177] [PATCH 01/12] gnu: Add discount Ludovic Courtès
  11 siblings, 1 reply; 33+ messages in thread
From: Christopher Baines @ 2017-08-21 18:08 UTC (permalink / raw)
  To: 28177

* gnu/packages/web.scm (ikiwiki): New variable.
---
 gnu/packages/web.scm | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 73 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 70c6828d2..67a793849 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -75,9 +75,12 @@
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages javascript)
   #:use-module (gnu packages image)
+  #:use-module (gnu packages imagemagick)
   #:use-module (gnu packages libidn)
   #:use-module (gnu packages libunistring)
   #:use-module (gnu packages lua)
+  #:use-module (gnu packages markdown)
+  #:use-module (gnu packages markup)
   #:use-module (gnu packages ncurses)
   #:use-module (gnu packages base)
   #:use-module (gnu packages perl)
@@ -91,7 +94,8 @@
   #:use-module (gnu packages texinfo)
   #:use-module (gnu packages textutils)
   #:use-module (gnu packages tls)
-  #:use-module (gnu packages statistics))
+  #:use-module (gnu packages statistics)
+  #:use-module (gnu packages version-control))
 
 (define-public httpd
   (package
@@ -3948,6 +3952,74 @@ parse both valid and invalid web content.  It is developed as part of the
 NetSurf project.")
     (license l:expat)))
 
+(define-public ikiwiki
+  (package
+    (name "ikiwiki")
+    (version "3.20170111")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "http://snapshot.debian.org/archive/debian/"
+                           "20170111T215449Z/pool/main/i/ikiwiki/ikiwiki_"
+                           version ".tar.xz"))
+       (sha256
+        (base32
+         "00d7yzv426fvqbhvzyafddv7fa6b4j2647b0wi371wd5yjj9j3sz"))))
+    (build-system perl-build-system)
+    (arguments
+     `(;; Image tests fail
+       ;;
+       ;; Test Summary Report
+       ;; -------------------
+       ;; t/img.t                      (Wstat: 2304 Tests: 62 Failed: 9)
+       ;;   Failed tests:  21, 27-28, 30-35
+       ;;   Non-zero exit status: 9
+       #:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'wrap-programs
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out  (assoc-ref outputs "out"))
+                    (bin  (string-append out "/bin/"))
+                    (path (getenv "PERL5LIB")))
+               (for-each (lambda (file)
+                           (wrap-program file
+                             `("PERL5LIB" ":" prefix (,path))))
+                         (find-files bin))
+               #t))))))
+    (native-inputs
+     `(("which" ,which)
+       ("perl-html-tagset" ,perl-html-tagset)
+       ("perl-timedate" ,perl-timedate)
+       ("perl-xml-sax" ,perl-xml-sax)
+       ("perl-xml-simple" ,perl-xml-simple)
+       ("gettext" ,gettext-minimal)
+       ("subversion" ,subversion)
+       ("git" ,git)
+       ("bazaar" ,bazaar)
+       ("cvs" ,cvs)
+       ("mercurial" ,mercurial)))
+    (inputs
+     `(("python" ,python-wrapper)
+       ("perl-cgi-session" ,perl-cgi-session)
+       ("perl-cgi-simple" ,perl-cgi-simple)
+       ("perl-json" ,perl-json)
+       ("perl-image-magick" ,perl-image-magick)
+       ("perl-uri" ,perl-uri)
+       ("perl-html-parser" ,perl-html-parser)
+       ("perl-uri" ,perl-uri)
+       ("perl-text-markdown-discount" ,perl-text-markdown-discount)
+       ("perl-html-scrubber" ,perl-html-scrubber)
+       ("perl-html-template" ,perl-html-template)
+       ("perl-yaml-libyaml" ,perl-yaml-libyaml)))
+    (home-page "https://ikiwiki.info/")
+    (synopsis "wiki compiler, capable of generating HTML")
+    (description
+     "Ikiwiki is a wiki compiler, capable of generating a static set of web
+pages, but also incorperating dynamic features like a web based editor and
+commenting.")
+    (license l:gpl2+)))
+
 (define-public libwapcaplet
   (package
     (name "libwapcaplet")
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 01/12] gnu: Add discount.
  2017-08-21 18:08 ` [bug#28177] [PATCH 01/12] gnu: Add discount Christopher Baines
                     ` (10 preceding siblings ...)
  2017-08-21 18:08   ` [bug#28177] [PATCH 12/12] gnu: Add ikiwiki Christopher Baines
@ 2017-09-10 13:23   ` Ludovic Courtès
  2017-09-12 20:57     ` Christopher Baines
  11 siblings, 1 reply; 33+ messages in thread
From: Ludovic Courtès @ 2017-09-10 13:23 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 28177

Christopher Baines <mail@cbaines.net> skribis:

> This is required by perl-text-markdown-discount, which is required by ikiwiki.
>
> * gnu/packages/markdown.scm (discount) New variable.

[...]

> +         (add-before 'configure 'set_ac_default_path
> +           (lambda args
> +             (substitute* "configure.inc"
> +               (("ac_default_path=\".*\"")
> +                (string-append "ac_default_path=\"" (getenv "PATH") "\"")))
> +             #t)))))

Did you check the references of the resulting store item?  It seems to
me that we might end up referring too much if this value is recorded in
the binary (GCC, Binutils, Make, etc.).

Perhaps we should instead set it to a very specific list, say coreutils,
grep, sed, or whatever is expected?

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 09/12] gnu: Add perl-html-scrubber.
  2017-08-21 18:08   ` [bug#28177] [PATCH 09/12] gnu: Add perl-html-scrubber Christopher Baines
@ 2017-09-10 13:25     ` Ludovic Courtès
  2017-09-12 21:36       ` Christopher Baines
  0 siblings, 1 reply; 33+ messages in thread
From: Ludovic Courtès @ 2017-09-10 13:25 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 28177

Christopher Baines <mail@cbaines.net> skribis:

> * gnu/packages/web.scm (perl-html-scrubber): New variable.

[...]

> +    (license (package-license perl))))

Use ‘perl-license’ from (guix licenses).

Ludo’.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 12/12] gnu: Add ikiwiki.
  2017-08-21 18:08   ` [bug#28177] [PATCH 12/12] gnu: Add ikiwiki Christopher Baines
@ 2017-09-10 13:27     ` Ludovic Courtès
  2017-09-12 21:38       ` Christopher Baines
  0 siblings, 1 reply; 33+ messages in thread
From: Ludovic Courtès @ 2017-09-10 13:27 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 28177

Christopher Baines <mail@cbaines.net> skribis:

> * gnu/packages/web.scm (ikiwiki): New variable.

[...]

> +    (home-page "https://ikiwiki.info/")
> +    (synopsis "wiki compiler, capable of generating HTML")

Please capitalize.  :-)

> +    (description
> +     "Ikiwiki is a wiki compiler, capable of generating a static set of web
> +pages, but also incorperating dynamic features like a web based editor and
                       ^^^
Typo.

Otherwise this and the other patches LGTM.  Thanks for going down this
rabbit hole!  :-)

Do you have a service (with nginx integration?) for Ikiwiki?

Cheers,
Ludo’.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 01/12] gnu: Add discount.
  2017-09-10 13:23   ` [bug#28177] [PATCH 01/12] gnu: Add discount Ludovic Courtès
@ 2017-09-12 20:57     ` Christopher Baines
  0 siblings, 0 replies; 33+ messages in thread
From: Christopher Baines @ 2017-09-12 20:57 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 28177

[-- Attachment #1: Type: text/plain, Size: 1252 bytes --]

On Sun, 10 Sep 2017 15:23:41 +0200
ludo@gnu.org (Ludovic Courtès) wrote:

> Christopher Baines <mail@cbaines.net> skribis:
> 
> > This is required by perl-text-markdown-discount, which is required
> > by ikiwiki.
> >
> > * gnu/packages/markdown.scm (discount) New variable.  
> 
> [...]
> 
> > +         (add-before 'configure 'set_ac_default_path
> > +           (lambda args
> > +             (substitute* "configure.inc"
> > +               (("ac_default_path=\".*\"")
> > +                (string-append "ac_default_path=\"" (getenv
> > "PATH") "\"")))
> > +             #t)))))  
> 
> Did you check the references of the resulting store item?  It seems to
> me that we might end up referring too much if this value is recorded
> in the binary (GCC, Binutils, Make, etc.).
> 
> Perhaps we should instead set it to a very specific list, say
> coreutils, grep, sed, or whatever is expected?

The store item references look fine, I think this is just the path the
configure.inc script searches. In looking at this again, I discovered
that setting the AC_PATH environment variable has the same effect, so
I've updated the patch to do that, as well as adding a comment to
clarify that these are used at build time only.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 963 bytes --]

^ permalink raw reply	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 09/12] gnu: Add perl-html-scrubber.
  2017-09-10 13:25     ` Ludovic Courtès
@ 2017-09-12 21:36       ` Christopher Baines
  0 siblings, 0 replies; 33+ messages in thread
From: Christopher Baines @ 2017-09-12 21:36 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 28177

[-- Attachment #1: Type: text/plain, Size: 379 bytes --]

On Sun, 10 Sep 2017 15:25:21 +0200
ludo@gnu.org (Ludovic Courtès) wrote:

> Christopher Baines <mail@cbaines.net> skribis:
> 
> > * gnu/packages/web.scm (perl-html-scrubber): New variable.  
> 
> [...]
> 
> > +    (license (package-license perl))))  
> 
> Use ‘perl-license’ from (guix licenses).

Will do, I'll update all the other uses that I've added also.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 963 bytes --]

^ permalink raw reply	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 12/12] gnu: Add ikiwiki.
  2017-09-10 13:27     ` Ludovic Courtès
@ 2017-09-12 21:38       ` Christopher Baines
  0 siblings, 0 replies; 33+ messages in thread
From: Christopher Baines @ 2017-09-12 21:38 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 28177

[-- Attachment #1: Type: text/plain, Size: 925 bytes --]

On Sun, 10 Sep 2017 15:27:07 +0200
ludo@gnu.org (Ludovic Courtès) wrote:

> Christopher Baines <mail@cbaines.net> skribis:
> 
> > * gnu/packages/web.scm (ikiwiki): New variable.  
> 
> [...]
> 
> > +    (home-page "https://ikiwiki.info/")
> > +    (synopsis "wiki compiler, capable of generating HTML")  
> 
> Please capitalize.  :-)

Done.

> > +    (description
> > +     "Ikiwiki is a wiki compiler, capable of generating a static
> > set of web +pages, but also incorperating dynamic features like a
> > web based editor and  
>                        ^^^
> Typo.

Good spot :)

> Otherwise this and the other patches LGTM.  Thanks for going down this
> rabbit hole!  :-)

Thanks for reviewing. I've fixed a few problems, and made a few changes
to these patches, so I'll send them up again.

> Do you have a service (with nginx integration?) for Ikiwiki?

I haven't got that far yet :)

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 963 bytes --]

^ permalink raw reply	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 01/12] gnu: Add discount.
  2017-08-21 18:04 [bug#28177] [PATCH] Add ikiwiki and dependencies Christopher Baines
  2017-08-21 18:08 ` [bug#28177] [PATCH 01/12] gnu: Add discount Christopher Baines
@ 2017-09-12 21:38 ` Christopher Baines
  2017-09-12 21:38   ` [bug#28177] [PATCH 02/12] gnu: Add perl-text-markdown-discount Christopher Baines
                     ` (11 more replies)
  1 sibling, 12 replies; 33+ messages in thread
From: Christopher Baines @ 2017-09-12 21:38 UTC (permalink / raw)
  To: 28177

This is required by perl-text-markdown-discount, which is required by ikiwiki.

* gnu/packages/markdown.scm (discount) New variable.
---
 gnu/packages/markup.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/gnu/packages/markup.scm b/gnu/packages/markup.scm
index 121e6cdbf..e3630fe2f 100644
--- a/gnu/packages/markup.scm
+++ b/gnu/packages/markup.scm
@@ -102,6 +102,48 @@ convert it to structurally valid XHTML (or HTML).")
     (license (non-copyleft "file://License.text"
                            "See License.text in the distribution."))))
 
+(define-public discount
+  (package
+    (name "discount")
+    (version "2.2.2")
+    (source (origin
+             (method url-fetch)
+             (uri (string-append
+                   "http://www.pell.portland.or.us/~orc/Code/"
+                   name "/" name "-" version ".tar.bz2"))
+             (file-name (string-append name "-" version ".tar.gz"))
+             (sha256
+              (base32
+               "0r4gjyk1ngx47zhb25q0gkjm3bz2m5x8ngrk6rim3y1y3rricygc"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:test-target "test"
+       #:make-flags (list
+                     (string-append "LFLAGS=-L. -Wl,-rpath="
+                                    (assoc-ref %outputs "out") "/lib"))
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'configure 'set-AC_PATH
+           (lambda _
+             ;; The default value is not suitable, so override using an
+             ;; environment variable. This just affects the build, and not the
+             ;; resulting store item.
+             (setenv "AC_PATH" (getenv "PATH"))
+             #t))
+         (replace 'configure
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (setenv "CC" "gcc")
+             (zero? (system*
+                     "./configure.sh"
+                     (string-append "--prefix=" (assoc-ref outputs "out"))
+                     "--shared")))))))
+    (synopsis "Markdown processing library, written in C")
+    (description
+     "Discount is a markdown implementation, written in C.  It provides a
+@command{markdown} command, and a library.")
+    (home-page "http://www.pell.portland.or.us/~orc/Code/discount/")
+    (license bsd-3)))
+
 (define-public cmark
   (package
     (name "cmark")
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 02/12] gnu: Add perl-text-markdown-discount.
  2017-09-12 21:38 ` Christopher Baines
@ 2017-09-12 21:38   ` Christopher Baines
  2017-09-12 21:38   ` [bug#28177] [PATCH 03/12] gnu: Add perl-test-cpan-meta-json Christopher Baines
                     ` (10 subsequent siblings)
  11 siblings, 0 replies; 33+ messages in thread
From: Christopher Baines @ 2017-09-12 21:38 UTC (permalink / raw)
  To: 28177

* gnu/packages/markdown.scm (perl-text-markdown-discount): New variable.
* gnu/packages/patches/perl-text-markdown-discount-use-system-markdown.patch:
  New file.
---
 gnu/packages/markup.scm                            | 46 ++++++++++++++++++++++
 ...ext-markdown-discount-use-system-markdown.patch | 32 +++++++++++++++
 2 files changed, 78 insertions(+)
 create mode 100644 gnu/packages/patches/perl-text-markdown-discount-use-system-markdown.patch

diff --git a/gnu/packages/markup.scm b/gnu/packages/markup.scm
index e3630fe2f..667f8b0a9 100644
--- a/gnu/packages/markup.scm
+++ b/gnu/packages/markup.scm
@@ -26,7 +26,9 @@
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system trivial)
   #:use-module (guix build-system cmake)
+  #:use-module (guix build-system perl)
   #:use-module (gnu packages compression)
+  #:use-module (gnu packages)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages python)
   #:use-module (gnu packages web))
@@ -144,6 +146,50 @@ convert it to structurally valid XHTML (or HTML).")
     (home-page "http://www.pell.portland.or.us/~orc/Code/discount/")
     (license bsd-3)))
 
+(define-public perl-text-markdown-discount
+  (package
+    (name "perl-text-markdown-discount")
+    (version "0.11")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/S/SE/SEKIMURA/Text-Markdown-Discount-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "1xx7v3wnla7m6wa3h33whxw3vvincaicg4yra1b9wbzf2aix9rnw"))
+       (patches
+        (search-patches "perl-text-markdown-discount-use-system-markdown.patch"))))
+    (build-system perl-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'build 'set-ldflags
+           (lambda* (#:key inputs #:allow-other-keys)
+             (substitute* "Makefile"
+               (("OTHERLDFLAGS = ")
+                (string-append
+                      "OTHERLDFLAGS = -lmarkdown -Wl,-rpath="
+                      (assoc-ref inputs "discount")
+                      "/lib"))))))))
+    (inputs
+     `(("discount" ,discount)))
+    (home-page
+     "http://search.cpan.org/dist/Text-Markdown-Discount")
+    (synopsis
+     "Fast function for converting Markdown to HTML using Discount")
+    (description
+     "Text::Markdown::Discount is a Perl extension to the Discount markdown
+implementation.
+
+@example
+  use Text::Markdown::Discount;
+  my $html = markdown($text)
+@end example")
+    (license perl-license)))
+
 (define-public cmark
   (package
     (name "cmark")
diff --git a/gnu/packages/patches/perl-text-markdown-discount-use-system-markdown.patch b/gnu/packages/patches/perl-text-markdown-discount-use-system-markdown.patch
new file mode 100644
index 000000000..e0df632a0
--- /dev/null
+++ b/gnu/packages/patches/perl-text-markdown-discount-use-system-markdown.patch
@@ -0,0 +1,32 @@
+Description: Use the markdown library provided by the libmarkdown2 package.
+Author: Alessandro Ghedini <al3xbio@gmail.com>
+Origin: vendor
+Forwarded: not-needed
+Last-Update: 2012-01-01
+
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -57,12 +57,6 @@
+ 
+ 
+ 
+-sub MY::postamble {
+-    return sprintf('
+-$(MYEXTLIB):
+-	%s
+-', qq{( cd $extdir; CC='cc -fPIC' sh configure.sh; make )\n});
+-}
+ 
+ WriteMakefile(
+     NAME              => 'Text::Markdown::Discount',
+@@ -71,8 +65,6 @@
+     ($] >= 5.005 ?
+       (ABSTRACT_FROM  => 'lib/Text/Markdown/Discount.pm',
+        AUTHOR         => 'Masayoshi Sekimura <sekimura@cpan.org>') : ()),
+-    LIBS               => '-L' . $extdir,
+-    INC               => '-I. -I' . $extdir,
+-    MYEXTLIB          => $myextlib,
+-    clean             => { FILES => $clean_files },
++    LIBS               => '-lmarkdown',
++    INC               => '-I.',
+ );
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 03/12] gnu: Add perl-test-cpan-meta-json.
  2017-09-12 21:38 ` Christopher Baines
  2017-09-12 21:38   ` [bug#28177] [PATCH 02/12] gnu: Add perl-text-markdown-discount Christopher Baines
@ 2017-09-12 21:38   ` Christopher Baines
  2017-09-12 21:38   ` [bug#28177] [PATCH 04/12] gnu: Add perl-test-cpan-meta Christopher Baines
                     ` (9 subsequent siblings)
  11 siblings, 0 replies; 33+ messages in thread
From: Christopher Baines @ 2017-09-12 21:38 UTC (permalink / raw)
  To: 28177

* gnu/packages/perl.scm (perl-test-cpan-meta-json): New variable.
---
 gnu/packages/perl.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 249f478f9..71f4ae8a9 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -6775,6 +6775,34 @@ namespace::autoclean or namespace::clean and are therefore available to be
 called as methods, which usually isn't want you want.")
     (license (package-license perl))))
 
+(define-public perl-test-cpan-meta-json
+  (package
+    (name "perl-test-cpan-meta-json")
+    (version "0.16")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/B/BA/BARBIE/Test-CPAN-Meta-JSON-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "1jg9ka50ixwq083wd4k12rhdjq87w0ihb34gd8jjn7gvvyd51b37"))))
+    (build-system perl-build-system)
+    (native-inputs
+     `(("perl-test-pod" ,perl-test-pod)
+       ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
+    (inputs
+     `(("perl-json" ,perl-json)))
+    (home-page
+     "http://search.cpan.org/dist/Test-CPAN-Meta-JSON")
+    (synopsis "Validate your CPAN META.json files")
+    (description
+     "This module was written to ensure that a META.json file meets the
+specification.")
+    (license artistic2.0)))
+
 (define-public perl-test-deep
   (package
     (name "perl-test-deep")
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 04/12] gnu: Add perl-test-cpan-meta.
  2017-09-12 21:38 ` Christopher Baines
  2017-09-12 21:38   ` [bug#28177] [PATCH 02/12] gnu: Add perl-text-markdown-discount Christopher Baines
  2017-09-12 21:38   ` [bug#28177] [PATCH 03/12] gnu: Add perl-test-cpan-meta-json Christopher Baines
@ 2017-09-12 21:38   ` Christopher Baines
  2017-09-12 21:38   ` [bug#28177] [PATCH 05/12] gnu: Add perl-devel-cycle Christopher Baines
                     ` (8 subsequent siblings)
  11 siblings, 0 replies; 33+ messages in thread
From: Christopher Baines @ 2017-09-12 21:38 UTC (permalink / raw)
  To: 28177

* gnu/packages/perl.scm (perl-test-cpan-meta): New variable.
---
 gnu/packages/perl.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 71f4ae8a9..756c0131d 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -6775,6 +6775,33 @@ namespace::autoclean or namespace::clean and are therefore available to be
 called as methods, which usually isn't want you want.")
     (license (package-license perl))))
 
+(define-public perl-test-cpan-meta
+  (package
+    (name "perl-test-cpan-meta")
+    (version "0.25")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/B/BA/BARBIE/Test-CPAN-Meta-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "1dcdbbdwdyhpldkhjzc9rvzlmb5jbil6fwh2x07nsfdwysf4ynzm"))))
+    (build-system perl-build-system)
+    (native-inputs
+     `(("perl-test-cpan-meta-json" ,perl-test-cpan-meta-json)
+       ("perl-test-pod" ,perl-test-pod)
+       ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
+    (home-page
+     "http://search.cpan.org/dist/Test-CPAN-Meta")
+    (synopsis "Validate your CPAN META.yml files")
+    (description
+     "This module was written to ensure that a META.yml file meets the
+specification.")
+    (license artistic2.0)))
+
 (define-public perl-test-cpan-meta-json
   (package
     (name "perl-test-cpan-meta-json")
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 05/12] gnu: Add perl-devel-cycle.
  2017-09-12 21:38 ` Christopher Baines
                     ` (2 preceding siblings ...)
  2017-09-12 21:38   ` [bug#28177] [PATCH 04/12] gnu: Add perl-test-cpan-meta Christopher Baines
@ 2017-09-12 21:38   ` Christopher Baines
  2017-09-12 21:38   ` [bug#28177] [PATCH 06/12] gnu: Add perl-test-memory-cycle Christopher Baines
                     ` (7 subsequent siblings)
  11 siblings, 0 replies; 33+ messages in thread
From: Christopher Baines @ 2017-09-12 21:38 UTC (permalink / raw)
  To: 28177

* gnu/packages/perl.scm (perl-devel-cycle): New variable.
---
 gnu/packages/perl.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 756c0131d..0ddc77acd 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -2260,6 +2260,30 @@ whether a compiler is available.  It can test for a C99 compiler, or
 you can tell it to compile a C source file with optional linker flags.")
   (license (package-license perl))))
 
+(define-public perl-devel-cycle
+  (package
+    (name "perl-devel-cycle")
+    (version "1.12")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/L/LD/LDS/Devel-Cycle-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "1hhb77kz3dys8yaik452j22cm3510zald2mpvfyv5clqv326aczx"))))
+    (build-system perl-build-system)
+    (home-page
+     "http://search.cpan.org/dist/Devel-Cycle")
+    (synopsis "Find memory cycles in objects")
+    (description
+     "@code{Devel::Cycle} This is a tool for finding circular references in
+objects and other types of references.  Because of Perl's reference-count
+based memory management, circular references will cause memory leaks.")
+    (license perl-license)))
+
 (define-public perl-devel-globaldestruction
   (package
     (name "perl-devel-globaldestruction")
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 06/12] gnu: Add perl-test-memory-cycle.
  2017-09-12 21:38 ` Christopher Baines
                     ` (3 preceding siblings ...)
  2017-09-12 21:38   ` [bug#28177] [PATCH 05/12] gnu: Add perl-devel-cycle Christopher Baines
@ 2017-09-12 21:38   ` Christopher Baines
  2017-09-12 21:38   ` [bug#28177] [PATCH 07/12] gnu: Add perl-test-notabs Christopher Baines
                     ` (6 subsequent siblings)
  11 siblings, 0 replies; 33+ messages in thread
From: Christopher Baines @ 2017-09-12 21:38 UTC (permalink / raw)
  To: 28177

* gnu/packages/perl.scm (perl-test-memory-cycle): New variable.
---
 gnu/packages/perl.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 0ddc77acd..7681e6d65 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -7116,6 +7116,42 @@ file to find out which tests you want to run and the order in which you want to
 It constructs the right value for the build system to do the right thing.")
     (license (package-license perl))))
 
+(define-public perl-test-memory-cycle
+  (package
+    (name "perl-test-memory-cycle")
+    (version "1.06")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/P/PE/PETDANCE/Test-Memory-Cycle-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "00ijmgx1r3cxrcs1qa9rb2s4gbm3nsawd90drda89kb4r7yxslwx"))))
+    (build-system perl-build-system)
+    (inputs
+     `(("perl-padwalker" ,perl-padwalker)))
+    (propagated-inputs
+     `(("perl-devel-cycle" ,perl-devel-cycle)))
+    (home-page
+     "http://search.cpan.org/dist/Test-Memory-Cycle")
+    (synopsis
+     "Verifies code hasn't left circular references")
+    (description
+     "@code{Test::Memory::Cycle} is built on top of @code{Devel::Cycle} to
+give you an easy way to check for these circular references.
+
+@example
+use Test::Memory::Cycle;
+
+my $object = new MyObject;
+# Do stuff with the object.
+memory_cycle_ok( $object );
+@end example")
+    (license artistic2.0)))
+
 (define-public perl-test-mockobject
   (package
     (name "perl-test-mockobject")
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 07/12] gnu: Add perl-test-notabs.
  2017-09-12 21:38 ` Christopher Baines
                     ` (4 preceding siblings ...)
  2017-09-12 21:38   ` [bug#28177] [PATCH 06/12] gnu: Add perl-test-memory-cycle Christopher Baines
@ 2017-09-12 21:38   ` Christopher Baines
  2017-09-12 21:39   ` [bug#28177] [PATCH 08/12] gnu: Add perl-test-eol Christopher Baines
                     ` (5 subsequent siblings)
  11 siblings, 0 replies; 33+ messages in thread
From: Christopher Baines @ 2017-09-12 21:38 UTC (permalink / raw)
  To: 28177

* gnu/packages/perl.scm (perl-test-notabs): New variable.
---
 gnu/packages/perl.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 7681e6d65..32d93f5e1 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -7257,6 +7257,30 @@ with an error rather than skip.
 If used in a subtest, the remainder of the subtest will be skipped.")
     (license (package-license perl))))
 
+(define-public perl-test-notabs
+  (package
+    (name "perl-test-notabs")
+    (version "2.00")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/E/ET/ETHER/Test-NoTabs-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "127kpl1va267qar2ia4c22xb96jby2jqnda3sj5pjgmxg8si26cg"))))
+    (build-system perl-build-system)
+    (home-page
+     "http://search.cpan.org/dist/Test-NoTabs")
+    (synopsis
+     "Check the presence of tabs in your project")
+    (description
+     "@code{Test::NoTabs} lets you check the presence of tabs in your perl
+code.")
+    (license perl-license)))
+
 (define-public perl-test-nowarnings
   (package
     (name "perl-test-nowarnings")
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 08/12] gnu: Add perl-test-eol.
  2017-09-12 21:38 ` Christopher Baines
                     ` (5 preceding siblings ...)
  2017-09-12 21:38   ` [bug#28177] [PATCH 07/12] gnu: Add perl-test-notabs Christopher Baines
@ 2017-09-12 21:39   ` Christopher Baines
  2017-09-12 21:39   ` [bug#28177] [PATCH 09/12] gnu: Add perl-html-scrubber Christopher Baines
                     ` (4 subsequent siblings)
  11 siblings, 0 replies; 33+ messages in thread
From: Christopher Baines @ 2017-09-12 21:39 UTC (permalink / raw)
  To: 28177

* gnu/packages/perl.scm (perl-test-eol): New variable.
---
 gnu/packages/perl.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 32d93f5e1..cef680e27 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -6927,6 +6927,30 @@ modified or tested with this API, making it simple to test both individual
 files, as well as to verify that there are no missing or unknown files.")
     (license (package-license perl))))
 
+(define-public perl-test-eol
+  (package
+    (name "perl-test-eol")
+    (version "2.00")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/E/ET/ETHER/Test-EOL-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "0l3bxpsw0x7j9nclizcp53mnf9wny25dmg2iglfhzgnk0xfpwzwf"))))
+    (build-system perl-build-system)
+    (home-page
+     "http://search.cpan.org/dist/Test-EOL")
+    (synopsis
+     "Check the correct line endings in your project")
+    (description
+     "@code{Test::EOL} lets you check for the presence of trailing whitespace
+and/or windows line endings in your perl code.")
+    (license perl-license)))
+
 (define-public perl-test-exception
   (package
     (name "perl-test-exception")
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 09/12] gnu: Add perl-html-scrubber.
  2017-09-12 21:38 ` Christopher Baines
                     ` (6 preceding siblings ...)
  2017-09-12 21:39   ` [bug#28177] [PATCH 08/12] gnu: Add perl-test-eol Christopher Baines
@ 2017-09-12 21:39   ` Christopher Baines
  2017-09-12 21:39   ` [bug#28177] [PATCH 10/12] gnu: Add perl-yaml-libyaml Christopher Baines
                     ` (3 subsequent siblings)
  11 siblings, 0 replies; 33+ messages in thread
From: Christopher Baines @ 2017-09-12 21:39 UTC (permalink / raw)
  To: 28177

* gnu/packages/web.scm (perl-html-scrubber): New variable.
---
 gnu/packages/web.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 377e366e2..5f255abf1 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -2185,6 +2185,37 @@ composed of HTML::Element style components.")
 <form> ... </form> instance.")
     (license l:perl-license)))
 
+(define-public perl-html-scrubber
+  (package
+    (name "perl-html-scrubber")
+    (version "0.15")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/N/NI/NIGELM/HTML-Scrubber-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "1m1f8gm2jry42zxja05dxp2ck7y66m7i8vc38nj6hccnwlby6cvi"))))
+    (build-system perl-build-system)
+    (native-inputs
+     `(("perl-module-build" ,perl-module-build)
+       ("perl-test-cpan-meta" ,perl-test-cpan-meta)
+       ("perl-test-eol" ,perl-test-eol)
+       ("perl-test-memory-cycle" ,perl-test-memory-cycle)
+       ("perl-test-notabs" ,perl-test-notabs)))
+    (inputs
+     `(("perl-html-parser" ,perl-html-parser)))
+    (home-page
+     "http://search.cpan.org/dist/HTML-Scrubber")
+    (synopsis
+     "Perl extension for scrubbing/sanitizing html")
+    (description
+     "@code{HTML::Scrubber} Perl extension for scrubbing/sanitizing HTML.")
+    (license l:perl-license)))
+
 (define-public perl-html-lint
   (package
     (name "perl-html-lint")
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 10/12] gnu: Add perl-yaml-libyaml.
  2017-09-12 21:38 ` Christopher Baines
                     ` (7 preceding siblings ...)
  2017-09-12 21:39   ` [bug#28177] [PATCH 09/12] gnu: Add perl-html-scrubber Christopher Baines
@ 2017-09-12 21:39   ` Christopher Baines
  2017-09-12 21:39   ` [bug#28177] [PATCH 11/12] gnu: Add perl-cgi-session Christopher Baines
                     ` (2 subsequent siblings)
  11 siblings, 0 replies; 33+ messages in thread
From: Christopher Baines @ 2017-09-12 21:39 UTC (permalink / raw)
  To: 28177

* gnu/packages/perl.scm (perl-yaml-libyaml): New variable.
---
 gnu/packages/perl.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index cef680e27..38168b889 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -8529,6 +8529,30 @@ neither visible nor modifiable from Perl space).")
 on the YAML 1.0 specification.")
     (license (package-license perl))))
 
+(define-public perl-yaml-libyaml
+  (package
+    (name "perl-yaml-libyaml")
+    (version "0.65")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/T/TI/TINITA/YAML-LibYAML-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "0izhvz8f29x1f50hhwfgm0iq1lz7apjjvg77lmky949jr07hnwfv"))))
+    (build-system perl-build-system)
+    (home-page
+     "http://search.cpan.org/dist/YAML-LibYAML")
+    (synopsis
+     "Perl YAML Serialization using XS and libyaml")
+    (description
+     "@code{YAML::XS} is a Perl XS binding to libyaml which offers Perl the
+best YAML support to date.")
+    (license perl-license)))
+
 (define-public perl-yaml-tiny
   (package
     (name "perl-yaml-tiny")
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 11/12] gnu: Add perl-cgi-session.
  2017-09-12 21:38 ` Christopher Baines
                     ` (8 preceding siblings ...)
  2017-09-12 21:39   ` [bug#28177] [PATCH 10/12] gnu: Add perl-yaml-libyaml Christopher Baines
@ 2017-09-12 21:39   ` Christopher Baines
  2017-09-12 21:39   ` [bug#28177] [PATCH 12/12] gnu: Add ikiwiki Christopher Baines
  2017-09-13  8:17   ` [bug#28177] [PATCH 01/12] gnu: Add discount Ludovic Courtès
  11 siblings, 0 replies; 33+ messages in thread
From: Christopher Baines @ 2017-09-12 21:39 UTC (permalink / raw)
  To: 28177

* gnu/packages/web.scm (perl-cgi-session): New variable.
---
 gnu/packages/web.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 5f255abf1..393e36e16 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -1913,6 +1913,33 @@ string generation and manipulation, and processing and preparing HTTP
 headers.")
     (license l:perl-license)))
 
+(define-public perl-cgi-session
+  (package
+    (name "perl-cgi-session")
+    (version "4.48")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/M/MA/MARKSTOS/CGI-Session-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "1xsl2pz1jrh127pq0b01yffnj4mnp9nvkp88h5mndrscq9hn8xa6"))))
+    (build-system perl-build-system)
+    (native-inputs
+     `(("perl-module-build" ,perl-module-build)))
+    (inputs `(("perl-cgi" ,perl-cgi)))
+    (home-page
+     "http://search.cpan.org/dist/CGI-Session")
+    (synopsis
+     "Persistent session data in CGI applications")
+    (description
+     "@code{CGI::Session} provides modular session management system across
+HTTP requests.")
+    (license l:perl-license)))
+
 (define-public perl-cgi-simple
   (package
     (name "perl-cgi-simple")
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 12/12] gnu: Add ikiwiki.
  2017-09-12 21:38 ` Christopher Baines
                     ` (9 preceding siblings ...)
  2017-09-12 21:39   ` [bug#28177] [PATCH 11/12] gnu: Add perl-cgi-session Christopher Baines
@ 2017-09-12 21:39   ` Christopher Baines
  2017-09-13  8:17   ` [bug#28177] [PATCH 01/12] gnu: Add discount Ludovic Courtès
  11 siblings, 0 replies; 33+ messages in thread
From: Christopher Baines @ 2017-09-12 21:39 UTC (permalink / raw)
  To: 28177

* gnu/packages/web.scm (ikiwiki): New variable.
---
 gnu/packages/web.scm | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 72 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 393e36e16..72892ffe2 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -76,9 +76,11 @@
   #:use-module (gnu packages java)
   #:use-module (gnu packages javascript)
   #:use-module (gnu packages image)
+  #:use-module (gnu packages imagemagick)
   #:use-module (gnu packages libidn)
   #:use-module (gnu packages libunistring)
   #:use-module (gnu packages lua)
+  #:use-module (gnu packages markup)
   #:use-module (gnu packages ncurses)
   #:use-module (gnu packages base)
   #:use-module (gnu packages perl)
@@ -92,7 +94,8 @@
   #:use-module (gnu packages texinfo)
   #:use-module (gnu packages textutils)
   #:use-module (gnu packages tls)
-  #:use-module (gnu packages statistics))
+  #:use-module (gnu packages statistics)
+  #:use-module (gnu packages version-control))
 
 (define-public httpd
   (package
@@ -4069,6 +4072,74 @@ parse both valid and invalid web content.  It is developed as part of the
 NetSurf project.")
     (license l:expat)))
 
+(define-public ikiwiki
+  (package
+    (name "ikiwiki")
+    (version "3.20170111")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "http://snapshot.debian.org/archive/debian/"
+                           "20170111T215449Z/pool/main/i/ikiwiki/ikiwiki_"
+                           version ".tar.xz"))
+       (sha256
+        (base32
+         "00d7yzv426fvqbhvzyafddv7fa6b4j2647b0wi371wd5yjj9j3sz"))))
+    (build-system perl-build-system)
+    (arguments
+     `(;; Image tests fail
+       ;;
+       ;; Test Summary Report
+       ;; -------------------
+       ;; t/img.t                      (Wstat: 2304 Tests: 62 Failed: 9)
+       ;;   Failed tests:  21, 27-28, 30-35
+       ;;   Non-zero exit status: 9
+       #:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'wrap-programs
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out  (assoc-ref outputs "out"))
+                    (bin  (string-append out "/bin/"))
+                    (path (getenv "PERL5LIB")))
+               (for-each (lambda (file)
+                           (wrap-program file
+                             `("PERL5LIB" ":" prefix (,path))))
+                         (find-files bin))
+               #t))))))
+    (native-inputs
+     `(("which" ,which)
+       ("perl-html-tagset" ,perl-html-tagset)
+       ("perl-timedate" ,perl-timedate)
+       ("perl-xml-sax" ,perl-xml-sax)
+       ("perl-xml-simple" ,perl-xml-simple)
+       ("gettext" ,gettext-minimal)
+       ("subversion" ,subversion)
+       ("git" ,git)
+       ("bazaar" ,bazaar)
+       ("cvs" ,cvs)
+       ("mercurial" ,mercurial)))
+    (inputs
+     `(("python" ,python-wrapper)
+       ("perl-cgi-session" ,perl-cgi-session)
+       ("perl-cgi-simple" ,perl-cgi-simple)
+       ("perl-json" ,perl-json)
+       ("perl-image-magick" ,perl-image-magick)
+       ("perl-uri" ,perl-uri)
+       ("perl-html-parser" ,perl-html-parser)
+       ("perl-uri" ,perl-uri)
+       ("perl-text-markdown-discount" ,perl-text-markdown-discount)
+       ("perl-html-scrubber" ,perl-html-scrubber)
+       ("perl-html-template" ,perl-html-template)
+       ("perl-yaml-libyaml" ,perl-yaml-libyaml)))
+    (home-page "https://ikiwiki.info/")
+    (synopsis "Wiki compiler, capable of generating HTML")
+    (description
+     "Ikiwiki is a wiki compiler, capable of generating a static set of web
+pages, but also incorporating dynamic features like a web based editor and
+commenting.")
+    (license l:gpl2+)))
+
 (define-public libwapcaplet
   (package
     (name "libwapcaplet")
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 33+ messages in thread

* [bug#28177] [PATCH 01/12] gnu: Add discount.
  2017-09-12 21:38 ` Christopher Baines
                     ` (10 preceding siblings ...)
  2017-09-12 21:39   ` [bug#28177] [PATCH 12/12] gnu: Add ikiwiki Christopher Baines
@ 2017-09-13  8:17   ` Ludovic Courtès
  2017-09-13 17:21     ` bug#28177: " Christopher Baines
  11 siblings, 1 reply; 33+ messages in thread
From: Ludovic Courtès @ 2017-09-13  8:17 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 28177

Hi Christopher,

Christopher Baines <mail@cbaines.net> skribis:

> This is required by perl-text-markdown-discount, which is required by ikiwiki.
>
> * gnu/packages/markdown.scm (discount) New variable.

LGTM.

Nothing to add to the other patches.

Thank you!

Ludo’.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#28177: [PATCH 01/12] gnu: Add discount.
  2017-09-13  8:17   ` [bug#28177] [PATCH 01/12] gnu: Add discount Ludovic Courtès
@ 2017-09-13 17:21     ` Christopher Baines
  0 siblings, 0 replies; 33+ messages in thread
From: Christopher Baines @ 2017-09-13 17:21 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 28177-done

[-- Attachment #1: Type: text/plain, Size: 420 bytes --]

On Wed, 13 Sep 2017 10:17:33 +0200
ludo@gnu.org (Ludovic Courtès) wrote:

> Hi Christopher,
> 
> Christopher Baines <mail@cbaines.net> skribis:
> 
> > This is required by perl-text-markdown-discount, which is required
> > by ikiwiki.
> >
> > * gnu/packages/markdown.scm (discount) New variable.  
> 
> LGTM.
> 
> Nothing to add to the other patches.
> 
> Thank you!

Awesome, I've pushed this now :)

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 963 bytes --]

^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2017-09-13 17:22 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-21 18:04 [bug#28177] [PATCH] Add ikiwiki and dependencies Christopher Baines
2017-08-21 18:08 ` [bug#28177] [PATCH 01/12] gnu: Add discount Christopher Baines
2017-08-21 18:08   ` [bug#28177] [PATCH 02/12] gnu: Add perl-text-markdown-discount Christopher Baines
2017-08-21 18:08   ` [bug#28177] [PATCH 03/12] gnu: Add perl-test-cpan-meta-json Christopher Baines
2017-08-21 18:08   ` [bug#28177] [PATCH 04/12] gnu: Add perl-test-cpan-meta Christopher Baines
2017-08-21 18:08   ` [bug#28177] [PATCH 05/12] gnu: Add perl-devel-cycle Christopher Baines
2017-08-21 18:08   ` [bug#28177] [PATCH 06/12] gnu: Add perl-test-memory-cycle Christopher Baines
2017-08-21 18:08   ` [bug#28177] [PATCH 07/12] gnu: Add perl-test-notabs Christopher Baines
2017-08-21 18:08   ` [bug#28177] [PATCH 08/12] gnu: Add perl-test-eol Christopher Baines
2017-08-21 18:08   ` [bug#28177] [PATCH 09/12] gnu: Add perl-html-scrubber Christopher Baines
2017-09-10 13:25     ` Ludovic Courtès
2017-09-12 21:36       ` Christopher Baines
2017-08-21 18:08   ` [bug#28177] [PATCH 10/12] gnu: Add perl-yaml-libyaml Christopher Baines
2017-08-21 18:08   ` [bug#28177] [PATCH 11/12] gnu: Add perl-cgi-session Christopher Baines
2017-08-21 18:08   ` [bug#28177] [PATCH 12/12] gnu: Add ikiwiki Christopher Baines
2017-09-10 13:27     ` Ludovic Courtès
2017-09-12 21:38       ` Christopher Baines
2017-09-10 13:23   ` [bug#28177] [PATCH 01/12] gnu: Add discount Ludovic Courtès
2017-09-12 20:57     ` Christopher Baines
2017-09-12 21:38 ` Christopher Baines
2017-09-12 21:38   ` [bug#28177] [PATCH 02/12] gnu: Add perl-text-markdown-discount Christopher Baines
2017-09-12 21:38   ` [bug#28177] [PATCH 03/12] gnu: Add perl-test-cpan-meta-json Christopher Baines
2017-09-12 21:38   ` [bug#28177] [PATCH 04/12] gnu: Add perl-test-cpan-meta Christopher Baines
2017-09-12 21:38   ` [bug#28177] [PATCH 05/12] gnu: Add perl-devel-cycle Christopher Baines
2017-09-12 21:38   ` [bug#28177] [PATCH 06/12] gnu: Add perl-test-memory-cycle Christopher Baines
2017-09-12 21:38   ` [bug#28177] [PATCH 07/12] gnu: Add perl-test-notabs Christopher Baines
2017-09-12 21:39   ` [bug#28177] [PATCH 08/12] gnu: Add perl-test-eol Christopher Baines
2017-09-12 21:39   ` [bug#28177] [PATCH 09/12] gnu: Add perl-html-scrubber Christopher Baines
2017-09-12 21:39   ` [bug#28177] [PATCH 10/12] gnu: Add perl-yaml-libyaml Christopher Baines
2017-09-12 21:39   ` [bug#28177] [PATCH 11/12] gnu: Add perl-cgi-session Christopher Baines
2017-09-12 21:39   ` [bug#28177] [PATCH 12/12] gnu: Add ikiwiki Christopher Baines
2017-09-13  8:17   ` [bug#28177] [PATCH 01/12] gnu: Add discount Ludovic Courtès
2017-09-13 17:21     ` bug#28177: " Christopher Baines

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.