Date: Thu, 4 Aug 2022 21:01:40 GMT From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: ded99a3d1d9f - main - devel/simpleini: new port: C++ library providing a simple API to INI-style configuration files Message-ID: <202208042101.274L1elB036937@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by amdmi3: URL: https://cgit.FreeBSD.org/ports/commit/?id=ded99a3d1d9f76f965fece3ec2425dce3df6f166 commit ded99a3d1d9f76f965fece3ec2425dce3df6f166 Author: Dmitry Marakasov <amdmi3@FreeBSD.org> AuthorDate: 2022-08-04 12:45:22 +0000 Commit: Dmitry Marakasov <amdmi3@FreeBSD.org> CommitDate: 2022-08-04 21:00:46 +0000 devel/simpleini: new port: C++ library providing a simple API to INI-style configuration files A cross-platform library that provides a simple API to read and write INI-style configuration files. It supports data files in ASCII, MBCS and Unicode. It is designed explicitly to be portable to any platform and has been tested on Windows, WinCE and Linux. WWW: https://github.com/brofield/simpleini --- devel/Makefile | 1 + devel/simpleini/Makefile | 36 ++++++++++++++++++++++++++++++ devel/simpleini/distinfo | 3 +++ devel/simpleini/files/patch-tests_Makefile | 22 ++++++++++++++++++ devel/simpleini/pkg-descr | 6 +++++ 5 files changed, 68 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index d069fa8879a1..4404e8753169 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -7111,6 +7111,7 @@ SUBDIR += simdjson SUBDIR += simgear SUBDIR += simian + SUBDIR += simpleini SUBDIR += sjasmplus SUBDIR += skalibs SUBDIR += skypat diff --git a/devel/simpleini/Makefile b/devel/simpleini/Makefile new file mode 100644 index 000000000000..87c3bde0cbcc --- /dev/null +++ b/devel/simpleini/Makefile @@ -0,0 +1,36 @@ +PORTNAME= simpleini +PORTVERSION= 4.19 +CATEGORIES= devel + +MAINTAINER= amdmi3@FreeBSD.org +COMMENT= C++ library providing a simple API to INI-style configuration files + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENCE.txt + +USE_GITHUB= yes +GH_ACCOUNT= brofield +NO_BUILD= yes +NO_ARCH= yes + +PORTDOCS= * + +PLIST_FILES= include/SimpleIni.h + +OPTIONS_DEFINE= TEST DOCS + +TEST_USES= pkgconfig +TEST_BUILD_DEPENDS= googletest>=0:devel/googletest + +do-install: + ${INSTALL_DATA} ${WRKSRC}/SimpleIni.h ${STAGEDIR}${PREFIX}/include + +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/ + +do-test-TEST-on: + cd ${WRKSRC}/tests && ${SETENV} ${MAKE_ENV} ${TEST_ENV} \ + ${MAKE_CMD} ${_MAKE_JOBS} ${MAKE_ARGS} test + +.include <bsd.port.mk> diff --git a/devel/simpleini/distinfo b/devel/simpleini/distinfo new file mode 100644 index 000000000000..31c0a25a4435 --- /dev/null +++ b/devel/simpleini/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1659547325 +SHA256 (brofield-simpleini-4.19_GH0.tar.gz) = dc10df3fa363be2c57627d52cbb1b5ddd0689d474bf13908e822c1522df8377e +SIZE (brofield-simpleini-4.19_GH0.tar.gz) = 62793 diff --git a/devel/simpleini/files/patch-tests_Makefile b/devel/simpleini/files/patch-tests_Makefile new file mode 100644 index 000000000000..943dd9682db2 --- /dev/null +++ b/devel/simpleini/files/patch-tests_Makefile @@ -0,0 +1,22 @@ +--- tests/Makefile.orig 2022-03-15 20:36:43 UTC ++++ tests/Makefile +@@ -1,14 +1,13 @@ +-CC=g++ +-CFLAGS=-Wall -std=c++11 +-CPPFLAGS=-Wall -std=c++11 +-LDFLAGS=-lpthread -lgtest -lgtest_main -lpthread -L/usr/lib -L/usr/lib/x86_64-linux-gnu ++CXX?=g++ ++CXXFLAGS+=-Wall -std=c++11 `pkg-config --cflags gtest_main` ++LDFLAGS=`pkg-config --libs gtest_main` + + OBJS=ts-roundtrip.o ts-snippets.o ts-utf8.o ts-bugfix.o ts-quotes.o ts-noconvert.o + + BIN=./tests + +-all: $(OBJS) +- $(CC) -o $(BIN) $(OBJS) $(LDFLAGS) ++$(BIN): $(OBJS) ++ $(CXX) -o $(BIN) $(OBJS) $(LDFLAGS) + + clean: + rm -f core $(OBJS) $(BIN) diff --git a/devel/simpleini/pkg-descr b/devel/simpleini/pkg-descr new file mode 100644 index 000000000000..4589eec7de4c --- /dev/null +++ b/devel/simpleini/pkg-descr @@ -0,0 +1,6 @@ +A cross-platform library that provides a simple API to read and +write INI-style configuration files. It supports data files in +ASCII, MBCS and Unicode. It is designed explicitly to be portable +to any platform and has been tested on Windows, WinCE and Linux. + +WWW: https://github.com/brofield/simpleini
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202208042101.274L1elB036937>