pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/ikiwiki Add upstream patch to give graph an option...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a888764ee9a7
branches:  trunk
changeset: 386505:a888764ee9a7
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Mon Oct 22 04:33:25 2018 +0000

description:
Add upstream patch to give graph an optional "file" param, like table's.
Bump PKGREVISION.

diffstat:

 www/ikiwiki/Makefile                                       |   4 +-
 www/ikiwiki/distinfo                                       |   4 ++-
 www/ikiwiki/patches/patch-IkiWiki_Plugin_graphviz.pm       |  21 ++++++++++++++
 www/ikiwiki/patches/patch-doc_ikiwiki_directive_graph.mdwn |  14 +++++++++
 4 files changed, 40 insertions(+), 3 deletions(-)

diffs (73 lines):

diff -r 8120c5b6b6bf -r a888764ee9a7 www/ikiwiki/Makefile
--- a/www/ikiwiki/Makefile      Sun Oct 21 21:23:18 2018 +0000
+++ b/www/ikiwiki/Makefile      Mon Oct 22 04:33:25 2018 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.158 2018/08/29 08:03:37 schmonz Exp $
+# $NetBSD: Makefile,v 1.159 2018/10/22 04:33:25 schmonz Exp $
 #
 
 DISTNAME=              ikiwiki_3.20180311.orig
 PKGNAME=               ${DISTNAME:S/_/-/:S/.orig//}
-PKGREVISION=           3
+PKGREVISION=           4
 CATEGORIES=            www textproc
 MASTER_SITES=          ${MASTER_SITE_DEBIAN:=pool/main/i/ikiwiki/}
 EXTRACT_SUFX=          .tar.xz
diff -r 8120c5b6b6bf -r a888764ee9a7 www/ikiwiki/distinfo
--- a/www/ikiwiki/distinfo      Sun Oct 21 21:23:18 2018 +0000
+++ b/www/ikiwiki/distinfo      Mon Oct 22 04:33:25 2018 +0000
@@ -1,8 +1,10 @@
-$NetBSD: distinfo,v 1.129 2018/08/29 08:03:37 schmonz Exp $
+$NetBSD: distinfo,v 1.130 2018/10/22 04:33:25 schmonz Exp $
 
 SHA1 (ikiwiki_3.20180311.orig.tar.xz) = 9c567bb9f46e8a86a41ddc2358d0426248934e33
 RMD160 (ikiwiki_3.20180311.orig.tar.xz) = 22a2f1963e73fae82a7a6a29c84488c898c7c4fa
 SHA512 (ikiwiki_3.20180311.orig.tar.xz) = 12042d90217995eb43d47df1e81cbced825fc2b2262893680447448abac88ef5279bcddd6c438613b41c4f35308a4f1e8d23157e018bb99d883bc0941af1d469
 Size (ikiwiki_3.20180311.orig.tar.xz) = 2639052 bytes
+SHA1 (patch-IkiWiki_Plugin_graphviz.pm) = 7fb033dfa46a3cdffd591fcf6af338399107572b
 SHA1 (patch-IkiWiki_Wrapper.pm) = 68a9c4c64b5e95bbb6dec721ea95dc27cecb1bc9
+SHA1 (patch-doc_ikiwiki_directive_graph.mdwn) = 78e3a7e2151ab122fe770b3a0d75759a00e978a2
 SHA1 (patch-ikiwiki-mass-rebuild) = b8d5785d77736508de9cfc0f059cc36e0e607bce
diff -r 8120c5b6b6bf -r a888764ee9a7 www/ikiwiki/patches/patch-IkiWiki_Plugin_graphviz.pm
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ikiwiki/patches/patch-IkiWiki_Plugin_graphviz.pm      Mon Oct 22 04:33:25 2018 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-IkiWiki_Plugin_graphviz.pm,v 1.1 2018/10/22 04:33:25 schmonz Exp $
+
+Add upstream patch to give graph an optional "file" param, like table's.
+
+--- IkiWiki/Plugin/graphviz.pm.orig    2018-03-11 15:54:34.000000000 +0000
++++ IkiWiki/Plugin/graphviz.pm
+@@ -95,6 +95,14 @@ sub render_graph (\%) {
+ sub graph (@) {
+       my %params=@_;
+ 
++      if (exists $params{file}) {
++              if (! exists $pagesources{$params{file}}) {
++                      error gettext("cannot find file");
++              }
++              $params{src} = readfile(srcfile($params{file}));
++              add_depends($params{page}, $params{file});
++      }
++
+       # Support wikilinks in the graph source.
+       my $src=$params{src};
+       $src="" unless defined $src;
diff -r 8120c5b6b6bf -r a888764ee9a7 www/ikiwiki/patches/patch-doc_ikiwiki_directive_graph.mdwn
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ikiwiki/patches/patch-doc_ikiwiki_directive_graph.mdwn        Mon Oct 22 04:33:25 2018 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-doc_ikiwiki_directive_graph.mdwn,v 1.1 2018/10/22 04:33:25 schmonz Exp $
+
+Add upstream patch to give graph an optional "file" param, like table's.
+
+--- doc/ikiwiki/directive/graph.mdwn.orig      2018-03-11 15:54:34.000000000 +0000
++++ doc/ikiwiki/directive/graph.mdwn
+@@ -21,6 +21,7 @@ ikiwiki, [[WikiLinks|ikiwiki/wikilink]] 
+ The `graph` directive supports the following parameters:
+ 
+ - `src` - The graphviz source to render.
++* `file` - A file in the wiki containing the graphviz source.
+ - `type` - The type of graph to render: `graph` or `digraph`.  Defaults to
+   `digraph`.
+ - `prog` - The graphviz program to render with: `dot`, `neato`, `fdp`, `twopi`,



Home | Main Index | Thread Index | Old Index