mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-16 22:27:02 +02:00
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:
parent
5ca290d141
commit
80716bf49f
2 changed files with 7 additions and 26 deletions
|
@ -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
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue