pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/hs-doctemplates Update to doctemplates-0.9



details:   https://anonhg.NetBSD.org/pkgsrc/rev/37fbe5db6ea5
branches:  trunk
changeset: 451124:37fbe5db6ea5
user:      pho <pho%pkgsrc.org@localhost>
date:      Sat Apr 24 15:28:11 2021 +0000

description:
Update to doctemplates-0.9

0.9
* Add BoolVal constructor to Val. This gives a smoother interface with
  JSON and YAML. [API change]
* Remove overlapping instances by generalizing ToContext String String
  and FromContext String String to TemplateTarget [a] => ToContext [a]
  [a] and TemplateTarget [a] => FromContext [a] [a]. Remove the
  instance ToContext String (Doc String). Remove redundant
  constraints. (#9, favonia) [API change]

0.8.3
* Properly handle nested loops (#15). Previously "it" was always used
  for the variable in a loop, and in a nested loop there was no way to
  distinguish the value of the inner iteration from the value of the
  outer one. Now we assign the iterated value to both "it" and to the
  original variable name (e.g. "foo.bar"). This probably has a small
  negative performance impact. Note that this change also affects the
  output of the template parser: original variable names are now
  retained instead of being replaced by "it".
* Remove duplicate IsString constraint (#14, Mario Lang).
* Update haddocks from README (#10).
* Minor code clean-ups (#7, favonia).
* Add hsyaml >= 0.2 constraint (#6).

0.8.2
* Add filters: first, rest, last, allbutlast.
* New constructors for Filter: FirstItem, LastItem, Rest, AllButLast
  [API change].

diffstat:

 textproc/hs-doctemplates/Makefile      |   5 +-
 textproc/hs-doctemplates/PLIST         |  52 +++++++++++++++++-----------------
 textproc/hs-doctemplates/buildlink3.mk |   7 ++-
 textproc/hs-doctemplates/distinfo      |  10 +++---
 4 files changed, 38 insertions(+), 36 deletions(-)

diffs (120 lines):

diff -r ee92a448a07b -r 37fbe5db6ea5 textproc/hs-doctemplates/Makefile
--- a/textproc/hs-doctemplates/Makefile Sat Apr 24 15:24:23 2021 +0000
+++ b/textproc/hs-doctemplates/Makefile Sat Apr 24 15:28:11 2021 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.1 2020/01/15 11:35:54 pho Exp $
+# $NetBSD: Makefile,v 1.2 2021/04/24 15:28:11 pho Exp $
 
-DISTNAME=      doctemplates-0.8.1
+DISTNAME=      doctemplates-0.9
 CATEGORIES=    textproc
 
 MAINTAINER=    pho%cielonegro.org@localhost
@@ -14,5 +14,6 @@
 .include "../../math/hs-scientific/buildlink3.mk"
 .include "../../converters/hs-text-conversions/buildlink3.mk"
 .include "../../devel/hs-unordered-containers/buildlink3.mk"
+.include "../../devel/hs-vector/buildlink3.mk"
 .include "../../mk/haskell.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r ee92a448a07b -r 37fbe5db6ea5 textproc/hs-doctemplates/PLIST
--- a/textproc/hs-doctemplates/PLIST    Sat Apr 24 15:24:23 2021 +0000
+++ b/textproc/hs-doctemplates/PLIST    Sat Apr 24 15:28:11 2021 +0000
@@ -1,29 +1,29 @@
-@comment $NetBSD: PLIST,v 1.1 2020/05/11 17:52:15 rillig Exp $
-${HS_INTF}/package-description
-${HS_INTF}/package-id
-${HS_IMPL}/Text/DocTemplates.dyn_hi
-${HS_IMPL}/Text/DocTemplates.hi
-${HS_IMPL}/Text/DocTemplates.p_hi
-${HS_IMPL}/Text/DocTemplates/Internal.dyn_hi
-${HS_IMPL}/Text/DocTemplates/Internal.hi
-${HS_IMPL}/Text/DocTemplates/Internal.p_hi
-${HS_IMPL}/Text/DocTemplates/Parser.dyn_hi
-${HS_IMPL}/Text/DocTemplates/Parser.hi
-${HS_IMPL}/Text/DocTemplates/Parser.p_hi
-${HS_IMPL}/libHS${HS_PKGID}.a
-${HS_IMPL}/libHS${HS_PKGID}_p.a
+@comment $NetBSD: PLIST,v 1.2 2021/04/24 15:28:11 pho Exp $
+lib/doctemplates-${PKGVERSION}/${HS_VERSION}/package-description
+lib/doctemplates-${PKGVERSION}/${HS_VERSION}/package-id
+lib/${HS_PLATFORM}/${HS_PKGID}/Text/DocTemplates.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Text/DocTemplates.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Text/DocTemplates.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Text/DocTemplates/Internal.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Text/DocTemplates/Internal.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Text/DocTemplates/Internal.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Text/DocTemplates/Parser.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Text/DocTemplates/Parser.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Text/DocTemplates/Parser.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}.a
+lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}_p.a
 lib/${HS_PLATFORM}/libHS${HS_PKGID}-${HS_VER}.so
-${HS_DOCS}/LICENSE
-${HS_DOCS}/html/Text-DocTemplates-Internal.html
-${HS_DOCS}/html/Text-DocTemplates-Parser.html
-${HS_DOCS}/html/Text-DocTemplates.html
-${HS_DOCS}/html/doc-index.html
-${HS_DOCS}/html/doctemplates.haddock
-${HS_DOCS}/html/haddock-bundle.min.js
-${HS_DOCS}/html/index.html
-${HS_DOCS}/html/linuwial.css
-${HS_DOCS}/html/meta.json
-${HS_DOCS}/html/quick-jump.css
-${HS_DOCS}/html/synopsis.png
+share/doc/${HS_PLATFORM}/doctemplates-${PKGVERSION}/LICENSE
+share/doc/${HS_PLATFORM}/doctemplates-${PKGVERSION}/html/Text-DocTemplates-Internal.html
+share/doc/${HS_PLATFORM}/doctemplates-${PKGVERSION}/html/Text-DocTemplates-Parser.html
+share/doc/${HS_PLATFORM}/doctemplates-${PKGVERSION}/html/Text-DocTemplates.html
+share/doc/${HS_PLATFORM}/doctemplates-${PKGVERSION}/html/doc-index.html
+share/doc/${HS_PLATFORM}/doctemplates-${PKGVERSION}/html/doctemplates.haddock
+share/doc/${HS_PLATFORM}/doctemplates-${PKGVERSION}/html/haddock-bundle.min.js
+share/doc/${HS_PLATFORM}/doctemplates-${PKGVERSION}/html/index.html
+share/doc/${HS_PLATFORM}/doctemplates-${PKGVERSION}/html/linuwial.css
+share/doc/${HS_PLATFORM}/doctemplates-${PKGVERSION}/html/meta.json
+share/doc/${HS_PLATFORM}/doctemplates-${PKGVERSION}/html/quick-jump.css
+share/doc/${HS_PLATFORM}/doctemplates-${PKGVERSION}/html/synopsis.png
 share/${HS_PLATFORM}/doctemplates-${PKGVERSION}/README.md
 share/${HS_PLATFORM}/doctemplates-${PKGVERSION}/changelog.md
diff -r ee92a448a07b -r 37fbe5db6ea5 textproc/hs-doctemplates/buildlink3.mk
--- a/textproc/hs-doctemplates/buildlink3.mk    Sat Apr 24 15:24:23 2021 +0000
+++ b/textproc/hs-doctemplates/buildlink3.mk    Sat Apr 24 15:28:11 2021 +0000
@@ -1,12 +1,12 @@
-# $NetBSD: buildlink3.mk,v 1.1 2020/01/15 11:35:54 pho Exp $
+# $NetBSD: buildlink3.mk,v 1.2 2021/04/24 15:28:11 pho Exp $
 
 BUILDLINK_TREE+=       hs-doctemplates
 
 .if !defined(HS_DOCTEMPLATES_BUILDLINK3_MK)
 HS_DOCTEMPLATES_BUILDLINK3_MK:=
 
-BUILDLINK_API_DEPENDS.hs-doctemplates+=        hs-doctemplates>=0.8.1
-BUILDLINK_ABI_DEPENDS.hs-doctemplates+=        hs-doctemplates>=0.8.1
+BUILDLINK_API_DEPENDS.hs-doctemplates+=        hs-doctemplates>=0.9
+BUILDLINK_ABI_DEPENDS.hs-doctemplates+=        hs-doctemplates>=0.9
 BUILDLINK_PKGSRCDIR.hs-doctemplates?=  ../../textproc/hs-doctemplates
 
 .include "../../converters/hs-aeson/buildlink3.mk"
@@ -16,6 +16,7 @@
 .include "../../math/hs-scientific/buildlink3.mk"
 .include "../../converters/hs-text-conversions/buildlink3.mk"
 .include "../../devel/hs-unordered-containers/buildlink3.mk"
+.include "../../devel/hs-vector/buildlink3.mk"
 .endif # HS_DOCTEMPLATES_BUILDLINK3_MK
 
 BUILDLINK_TREE+=       -hs-doctemplates
diff -r ee92a448a07b -r 37fbe5db6ea5 textproc/hs-doctemplates/distinfo
--- a/textproc/hs-doctemplates/distinfo Sat Apr 24 15:24:23 2021 +0000
+++ b/textproc/hs-doctemplates/distinfo Sat Apr 24 15:28:11 2021 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1 2020/01/15 11:35:54 pho Exp $
+$NetBSD: distinfo,v 1.2 2021/04/24 15:28:11 pho Exp $
 
-SHA1 (doctemplates-0.8.1.tar.gz) = 54159357b3a23ffdeb7d89ea9aae6b08a50f3bd4
-RMD160 (doctemplates-0.8.1.tar.gz) = d5baf799d38e8c7eec0f9a163d3867f90871a4af
-SHA512 (doctemplates-0.8.1.tar.gz) = eb733421ff884e19a5c0c637fe1eaa3d0fcee9b6382939b148a0f9b493dc7b5c27344411bb542b7244a96fe613d8a587074936ff81ec367027364c98d338d6f6
-Size (doctemplates-0.8.1.tar.gz) = 26476 bytes
+SHA1 (doctemplates-0.9.tar.gz) = 24af93320be556c02b91ac1bd9612a83540967f3
+RMD160 (doctemplates-0.9.tar.gz) = 37b103a8b73faf0325a44bfcaa4085c20a6097d1
+SHA512 (doctemplates-0.9.tar.gz) = 3216fc7ef4e2a45230a2854c22c2a8622774bc834bbf59d34134912b3942df2a541230bd91324995e13e19098a0fa0bf7057c7d55ca35ec75da7840fddd61a37
+Size (doctemplates-0.9.tar.gz) = 27366 bytes



Home | Main Index | Thread Index | Old Index