Mon Jan 9 18:16:14 2023 UTC ()
json-c: introduce an option to build the documentation

The option is left off by default; hence no functional change nor
PKGREVISION bump necessary.

Tested on NetBSD/amd64.


(khorben)
diff -r1.18 -r1.19 pkgsrc/textproc/json-c/Makefile
diff -r1.8 -r1.9 pkgsrc/textproc/json-c/PLIST
diff -r0 -r1.1 pkgsrc/textproc/json-c/options.mk

cvs diff -r1.18 -r1.19 pkgsrc/textproc/json-c/Makefile (expand / switch to unified diff)

--- pkgsrc/textproc/json-c/Makefile 2022/04/20 20:32:32 1.18
+++ pkgsrc/textproc/json-c/Makefile 2023/01/09 18:16:14 1.19
@@ -1,20 +1,21 @@ @@ -1,20 +1,21 @@
1# $NetBSD: Makefile,v 1.18 2022/04/20 20:32:32 wiz Exp $ 1# $NetBSD: Makefile,v 1.19 2023/01/09 18:16:14 khorben Exp $
2 2
3DISTNAME= json-c-0.16 3DISTNAME= json-c-0.16
4CATEGORIES= textproc 4CATEGORIES= textproc
5MASTER_SITES= https://s3.amazonaws.com/json-c_releases/releases/ 5MASTER_SITES= https://s3.amazonaws.com/json-c_releases/releases/
6 6
7MAINTAINER= ryoon@NetBSD.org 7MAINTAINER= ryoon@NetBSD.org
8HOMEPAGE= https://github.com/json-c/json-c/wiki 8HOMEPAGE= https://github.com/json-c/json-c/wiki
9COMMENT= JSON library in C 9COMMENT= JSON library in C
10LICENSE= mit 10LICENSE= mit
11 11
12USE_CMAKE= yes 12USE_CMAKE= yes
13 13
14CMAKE_ARGS+= -DCMAKE_BUILD_TYPE="Release" 14CMAKE_ARGS+= -DCMAKE_BUILD_TYPE="Release"
15CMAKE_ARGS+= -DBUILD_DOCUMENTATION=OFF 
16CMAKE_ARGS+= -DDISABLE_WERROR=ON 15CMAKE_ARGS+= -DDISABLE_WERROR=ON
17 16
18PKGCONFIG_OVERRIDE+= json-c.pc.in 17PKGCONFIG_OVERRIDE+= json-c.pc.in
19 18
 19.include "options.mk"
 20
20.include "../../mk/bsd.pkg.mk" 21.include "../../mk/bsd.pkg.mk"

cvs diff -r1.8 -r1.9 pkgsrc/textproc/json-c/PLIST (expand / switch to unified diff)

--- pkgsrc/textproc/json-c/PLIST 2022/04/20 20:32:32 1.8
+++ pkgsrc/textproc/json-c/PLIST 2023/01/09 18:16:14 1.9
@@ -1,24 +1,130 @@ @@ -1,24 +1,130 @@
1@comment $NetBSD: PLIST,v 1.8 2022/04/20 20:32:32 wiz Exp $ 1@comment $NetBSD: PLIST,v 1.9 2023/01/09 18:16:14 khorben Exp $
2include/json-c/arraylist.h 2include/json-c/arraylist.h
3include/json-c/debug.h 3include/json-c/debug.h
4include/json-c/json.h 4include/json-c/json.h
5include/json-c/json_c_version.h 5include/json-c/json_c_version.h
6include/json-c/json_config.h 6include/json-c/json_config.h
7include/json-c/json_inttypes.h 7include/json-c/json_inttypes.h
8include/json-c/json_object.h 8include/json-c/json_object.h
9include/json-c/json_object_iterator.h 9include/json-c/json_object_iterator.h
10include/json-c/json_pointer.h 10include/json-c/json_pointer.h
11include/json-c/json_tokener.h 11include/json-c/json_tokener.h
12include/json-c/json_types.h 12include/json-c/json_types.h
13include/json-c/json_util.h 13include/json-c/json_util.h
14include/json-c/json_visit.h 14include/json-c/json_visit.h
15include/json-c/linkhash.h 15include/json-c/linkhash.h
16include/json-c/printbuf.h 16include/json-c/printbuf.h
17lib/cmake/json-c/json-c-config.cmake 17lib/cmake/json-c/json-c-config.cmake
18lib/cmake/json-c/json-c-targets-release.cmake 18lib/cmake/json-c/json-c-targets-release.cmake
19lib/cmake/json-c/json-c-targets.cmake 19lib/cmake/json-c/json-c-targets.cmake
20lib/libjson-c.a 20lib/libjson-c.a
21lib/libjson-c.so 21lib/libjson-c.so
22lib/libjson-c.so.5 22lib/libjson-c.so.5
23lib/libjson-c.so.5.2.0 23lib/libjson-c.so.5.2.0
24lib/pkgconfig/json-c.pc 24lib/pkgconfig/json-c.pc
 25${PLIST.doc}share/doc/json-c/html/README_8md.html
 26${PLIST.doc}share/doc/json-c/html/annotated.html
 27${PLIST.doc}share/doc/json-c/html/arraylist_8h.html
 28${PLIST.doc}share/doc/json-c/html/bc_s.png
 29${PLIST.doc}share/doc/json-c/html/bc_sd.png
 30${PLIST.doc}share/doc/json-c/html/bdwn.png
 31${PLIST.doc}share/doc/json-c/html/classes.html
 32${PLIST.doc}share/doc/json-c/html/closed.png
 33${PLIST.doc}share/doc/json-c/html/deprecated.html
 34${PLIST.doc}share/doc/json-c/html/dir_b62156a74b5a818be0c2ef9f85294b95.html
 35${PLIST.doc}share/doc/json-c/html/doc.png
 36${PLIST.doc}share/doc/json-c/html/docd.png
 37${PLIST.doc}share/doc/json-c/html/doxygen.css
 38${PLIST.doc}share/doc/json-c/html/doxygen.png
 39${PLIST.doc}share/doc/json-c/html/doxygen.svg
 40${PLIST.doc}share/doc/json-c/html/dynsections.js
 41${PLIST.doc}share/doc/json-c/html/files.html
 42${PLIST.doc}share/doc/json-c/html/folderclosed.png
 43${PLIST.doc}share/doc/json-c/html/folderopen.png
 44${PLIST.doc}share/doc/json-c/html/ftv2blank.png
 45${PLIST.doc}share/doc/json-c/html/ftv2cl.png
 46${PLIST.doc}share/doc/json-c/html/ftv2doc.png
 47${PLIST.doc}share/doc/json-c/html/ftv2folderclosed.png
 48${PLIST.doc}share/doc/json-c/html/ftv2folderopen.png
 49${PLIST.doc}share/doc/json-c/html/ftv2lastnode.png
 50${PLIST.doc}share/doc/json-c/html/ftv2link.png
 51${PLIST.doc}share/doc/json-c/html/ftv2mlastnode.png
 52${PLIST.doc}share/doc/json-c/html/ftv2mnode.png
 53${PLIST.doc}share/doc/json-c/html/ftv2mo.png
 54${PLIST.doc}share/doc/json-c/html/ftv2node.png
 55${PLIST.doc}share/doc/json-c/html/ftv2ns.png
 56${PLIST.doc}share/doc/json-c/html/ftv2plastnode.png
 57${PLIST.doc}share/doc/json-c/html/ftv2pnode.png
 58${PLIST.doc}share/doc/json-c/html/ftv2splitbar.png
 59${PLIST.doc}share/doc/json-c/html/ftv2vertline.png
 60${PLIST.doc}share/doc/json-c/html/functions.html
 61${PLIST.doc}share/doc/json-c/html/functions_vars.html
 62${PLIST.doc}share/doc/json-c/html/globals.html
 63${PLIST.doc}share/doc/json-c/html/globals_0x6a.html
 64${PLIST.doc}share/doc/json-c/html/globals_0x6c.html
 65${PLIST.doc}share/doc/json-c/html/globals_0x70.html
 66${PLIST.doc}share/doc/json-c/html/globals_0x73.html
 67${PLIST.doc}share/doc/json-c/html/globals_defs.html
 68${PLIST.doc}share/doc/json-c/html/globals_enum.html
 69${PLIST.doc}share/doc/json-c/html/globals_eval.html
 70${PLIST.doc}share/doc/json-c/html/globals_func.html
 71${PLIST.doc}share/doc/json-c/html/globals_j.html
 72${PLIST.doc}share/doc/json-c/html/globals_l.html
 73${PLIST.doc}share/doc/json-c/html/globals_p.html
 74${PLIST.doc}share/doc/json-c/html/globals_s.html
 75${PLIST.doc}share/doc/json-c/html/globals_type.html
 76${PLIST.doc}share/doc/json-c/html/globals_vars.html
 77${PLIST.doc}share/doc/json-c/html/index.html
 78${PLIST.doc}share/doc/json-c/html/issues__closed__for__0_813_8md.html
 79${PLIST.doc}share/doc/json-c/html/issues__closed__for__0_814_8md.html
 80${PLIST.doc}share/doc/json-c/html/issues__closed__for__0_815_8md.html
 81${PLIST.doc}share/doc/json-c/html/issues__closed__for__0_816_8md.html
 82${PLIST.doc}share/doc/json-c/html/jquery.js
 83${PLIST.doc}share/doc/json-c/html/json_8h.html
 84${PLIST.doc}share/doc/json-c/html/json__c__version_8h.html
 85${PLIST.doc}share/doc/json-c/html/json__inttypes_8h.html
 86${PLIST.doc}share/doc/json-c/html/json__object_8h.html
 87${PLIST.doc}share/doc/json-c/html/json__object__iterator_8h.html
 88${PLIST.doc}share/doc/json-c/html/json__pointer_8h.html
 89${PLIST.doc}share/doc/json-c/html/json__tokener_8h.html
 90${PLIST.doc}share/doc/json-c/html/json__types_8h.html
 91${PLIST.doc}share/doc/json-c/html/json__util_8h.html
 92${PLIST.doc}share/doc/json-c/html/json__visit_8h.html
 93${PLIST.doc}share/doc/json-c/html/linkhash_8h.html
 94${PLIST.doc}share/doc/json-c/html/md_README.html
 95${PLIST.doc}share/doc/json-c/html/md_issues_closed_for_0.html
 96${PLIST.doc}share/doc/json-c/html/md_issues_closed_for_0_13.html
 97${PLIST.doc}share/doc/json-c/html/md_issues_closed_for_0_14.html
 98${PLIST.doc}share/doc/json-c/html/md_issues_closed_for_0_15.html
 99${PLIST.doc}share/doc/json-c/html/md_issues_closed_for_0_16.html
 100${PLIST.doc}share/doc/json-c/html/menu.js
 101${PLIST.doc}share/doc/json-c/html/menudata.js
 102${PLIST.doc}share/doc/json-c/html/nav_f.png
 103${PLIST.doc}share/doc/json-c/html/nav_fd.png
 104${PLIST.doc}share/doc/json-c/html/nav_g.png
 105${PLIST.doc}share/doc/json-c/html/nav_h.png
 106${PLIST.doc}share/doc/json-c/html/nav_hd.png
 107${PLIST.doc}share/doc/json-c/html/open.png
 108${PLIST.doc}share/doc/json-c/html/pages.html
 109${PLIST.doc}share/doc/json-c/html/printbuf_8h.html
 110${PLIST.doc}share/doc/json-c/html/splitbar.png
 111${PLIST.doc}share/doc/json-c/html/splitbard.png
 112${PLIST.doc}share/doc/json-c/html/structarray__list.html
 113${PLIST.doc}share/doc/json-c/html/structjson__object__iter.html
 114${PLIST.doc}share/doc/json-c/html/structjson__object__iterator.html
 115${PLIST.doc}share/doc/json-c/html/structjson__tokener.html
 116${PLIST.doc}share/doc/json-c/html/structjson__tokener__srec.html
 117${PLIST.doc}share/doc/json-c/html/structlh__entry.html
 118${PLIST.doc}share/doc/json-c/html/structlh__table.html
 119${PLIST.doc}share/doc/json-c/html/structprintbuf.html
 120${PLIST.doc}share/doc/json-c/html/sync_off.png
 121${PLIST.doc}share/doc/json-c/html/sync_on.png
 122${PLIST.doc}share/doc/json-c/html/tab_a.png
 123${PLIST.doc}share/doc/json-c/html/tab_ad.png
 124${PLIST.doc}share/doc/json-c/html/tab_b.png
 125${PLIST.doc}share/doc/json-c/html/tab_bd.png
 126${PLIST.doc}share/doc/json-c/html/tab_h.png
 127${PLIST.doc}share/doc/json-c/html/tab_hd.png
 128${PLIST.doc}share/doc/json-c/html/tab_s.png
 129${PLIST.doc}share/doc/json-c/html/tab_sd.png
 130${PLIST.doc}share/doc/json-c/html/tabs.css

File Added: pkgsrc/textproc/json-c/options.mk
# $NetBSD: options.mk,v 1.1 2023/01/09 18:16:14 khorben Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.json-c
PKG_SUPPORTED_OPTIONS=	doc
PLIST_VARS+=		doc

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Mdoc)
USE_TOOLS+=		pax:build
DEPENDS+=		doxygen>=1.8.13:../../devel/doxygen
BUILD_TARGET+=		doc
PLIST.doc=		yes

INSTALLATION_DIRS+=	share/doc/json-c

post-install:
	cd ${WRKSRC}/doc; ${PAX} -rw html ${DESTDIR}${PREFIX}/share/doc/json-c
.endif