diff --git a/databases/kyotocabinet/Makefile b/databases/kyotocabinet/Makefile index cd5f853979b1..dd4080c16c82 100644 --- a/databases/kyotocabinet/Makefile +++ b/databases/kyotocabinet/Makefile @@ -1,32 +1,32 @@ PORTNAME= kyotocabinet PORTVERSION= 1.2.80 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= databases MASTER_SITES= https://dbmx.net/kyotocabinet/pkg/ \ LOCAL/sunpoet MAINTAINER= sunpoet@FreeBSD.org COMMENT= Straightforward implementation of DBM WWW= https://dbmx.net/kyotocabinet/ LICENSE= GPLv3 USES= compiler:c++11-lang gmake CPPFLAGS+= -fPIC GNU_CONFIGURE= yes INSTALL_TARGET= install-strip MAKE_ARGS= PCDIR=${PREFIX}/libdata/pkgconfig TEST_TARGET= check USE_LDCONFIG= yes OPTIONS_DEFINE= DOCS post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libkyotocabinet.so post-install-DOCS-on: ${FIND} ${STAGEDIR}${DOCSDIR}/ -type d -exec ${CHMOD} ${BINMODE} {} + ${FIND} ${STAGEDIR}${DOCSDIR}/ -type f -exec ${CHMOD} ${DOCMODE} {} + .include diff --git a/databases/kyotocabinet/files/patch-kclangc.h b/databases/kyotocabinet/files/patch-kclangc.h new file mode 100644 index 000000000000..4964f27e633c --- /dev/null +++ b/databases/kyotocabinet/files/patch-kclangc.h @@ -0,0 +1,28 @@ +--- kclangc.h.orig 2023-04-13 18:22:12 UTC ++++ kclangc.h +@@ -258,14 +258,14 @@ size_t kclevdist(const void* abuf, size_t asiz, const + * Get the quiet Not-a-Number value. + * @return the quiet Not-a-Number value. + */ +-double kcnan(); ++double kcnan(void); + + + /** + * Get the positive infinity value. + * @return the positive infinity value. + */ +-double kcinf(); ++double kcinf(void); + + + /** +@@ -1522,7 +1522,7 @@ typedef struct { + * @note The object of the return value should be released with the kclistdel function when it is + * no longer in use. + */ +-KCLIST* kclistnew(); ++KCLIST* kclistnew(void); + + + /** diff --git a/databases/kyotocabinet/files/patch-kclangctest.c b/databases/kyotocabinet/files/patch-kclangctest.c new file mode 100644 index 000000000000..dee338785487 --- /dev/null +++ b/databases/kyotocabinet/files/patch-kclangctest.c @@ -0,0 +1,11 @@ +--- kclangctest.c.orig 2012-05-24 11:32:00 UTC ++++ kclangctest.c +@@ -91,7 +91,7 @@ int main(int argc, char **argv) { + + + /* print the usage and exit */ +-static void usage() { ++static void usage(void) { + eprintf("%s: test cases of the C binding of Kyoto Cabinet\n", g_progname); + eprintf("\n"); + eprintf("usage:\n");