Update to 4.0

This commit is contained in:
Kevin Lo 2016-09-09 06:00:31 +00:00
parent 151921b15d
commit 087c3ccea9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=421596
5 changed files with 11 additions and 54 deletions

View file

@ -2,19 +2,21 @@
# $FreeBSD$
PORTNAME= iniparser
PORTVERSION= 3.1
PORTVERSION= 4.0
DISTVERSIONPREFIX= v
CATEGORIES= devel
MASTER_SITES= http://ndevilla.free.fr/iniparser/
MAINTAINER= kevlo@FreeBSD.org
COMMENT= Free stand-alone ini file parsing library
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USE_LDCONFIG= yes
MAKE_ARGS= CC="${CC}"
USES= gmake
ALL_TARGET=
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_GITHUB= yes
GH_ACCOUNT= ndevilla
PLIST_FILES= include/dictionary.h include/iniparser.h lib/libiniparser.a \
lib/libiniparser.so lib/libiniparser.so.0

View file

@ -1,2 +1,3 @@
SHA256 (iniparser-3.1.tar.gz) = aedf23881b834519aea5e861b2400606d211da049cd59d3cfb4568e0d9eff5c5
SIZE (iniparser-3.1.tar.gz) = 39097
TIMESTAMP = 1473390159
SHA256 (ndevilla-iniparser-v4.0_GH0.tar.gz) = e0bbd664bb3f0d64c21ac2d67a843b1c7a3a9710e96393344d170ab8b33e92ba
SIZE (ndevilla-iniparser-v4.0_GH0.tar.gz) = 41188

View file

@ -1,24 +0,0 @@
--- src/dictionary.c.orig 2011-07-01 17:03:46.000000000 +0800
+++ src/dictionary.c 2011-07-01 17:04:55.000000000 +0800
@@ -39,6 +39,10 @@
Private functions
---------------------------------------------------------------------------*/
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Doubles the allocated size associated to a pointer */
/* 'size' is the current allocated size. */
static void * mem_double(void * ptr, int size)
@@ -401,5 +405,10 @@
dictionary_del(d);
return 0 ;
}
+
+#ifdef __cplusplus
+}
+#endif
+
#endif
/* vim: set ts=4 et sw=4 tw=75 */

View file

@ -1,22 +0,0 @@
--- src/iniparser.h.orig 2011-03-29 22:36:06.000000000 +0800
+++ src/iniparser.h 2011-07-01 17:36:39.000000000 +0800
@@ -34,6 +34,10 @@
#include "dictionary.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*-------------------------------------------------------------------------*/
/**
@brief Get number of sections in a dictionary
@@ -270,4 +274,8 @@
/*--------------------------------------------------------------------------*/
void iniparser_freedict(dictionary * d);
+#ifdef __cplusplus
+}
+#endif
+
#endif

View file

@ -3,4 +3,4 @@ The library is pretty small (less than 1500 lines of C) and robust, and
does not depend on any other external library to compile. It is written
in ANSI C and should compile on most platforms without difficulty.
WWW: http://ndevilla.free.fr/iniparser/
WWW: https://github.com/ndevilla/iniparser