docbook2mdoc: update to 1.1.0

This version requires bsd/sys/queue.h
Link to bsd library to fix 'undefined reference to strtonum
This commit is contained in:
Nathan Owens 2019-11-04 10:15:52 -06:00 committed by Helmut Pozimski
parent 5ca290d141
commit 80716bf49f
2 changed files with 7 additions and 26 deletions

View file

@ -1,21 +0,0 @@
--- extern.h
+++ extern.h
@@ -119,12 +119,16 @@ enum attrval {
ATTRVAL__MAX
};
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
int isattrkey(enum nodeid node, enum attrkey key);
int isattrval(enum attrkey key, enum attrval val);
int isparent(enum nodeid node, enum nodeid parent);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif

View file

@ -1,17 +1,19 @@
# Template file for 'docbook2mdoc'
pkgname=docbook2mdoc
version=0.0.9
revision=2
version=1.1.0
revision=1
build_style=gnu-makefile
makedepends="expat-devel"
short_desc="A converter from DocBook V4.x and v5.x XML into mdoc"
makedepends="libbsd-devel"
short_desc="Converter from DocBook V4.x and v5.x XML into mdoc"
maintainer="Orphaned <orphan@voidlinux.org>"
license="ISC"
homepage="http://mdocml.bsd.lv/docbook2mdoc"
distfiles="http://mdocml.bsd.lv/docbook2mdoc/snapshots/${pkgname}-${version}.tgz"
checksum=93320aa42cbcc2a8e43aceff3ef97af83ba65a87c6e745aa37ae27f43440341e
checksum=9fc6411cf041ff10e76f19a50a142075a8df9d343f248e20d8fc98bf8e547c71
LDFLAGS="-lbsd"
post_extract() {
sed -i '/CC.*-o/s/$/ $(LDFLAGS)/' Makefile
sed -i 's,/man/man1,/share/man/man1,g' Makefile
vsed -e 's:sys/queue.h:bsd/sys/queue.h:' -i node.h
}