From nobody Thu Aug 04 21:01:40 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4LzLkY21JZz4Xwfy; Thu, 4 Aug 2022 21:01:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LzLkY1Jymz3tcK; Thu, 4 Aug 2022 21:01:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659646901; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NDO7LZY4/IxnuDKZUTcFdhHwdSG+RTANlYkpCGSWiKQ=; b=axABqAqQidAGiBgfLO7MV2CVWAN4qDT89gooU3tDIu/NHT0lSIWqr9OEciAyITXjbH9EXA QDwkE+a9xFevg7cvuWmMfxTb8g3g2uIklZvV6BJ70iqDfF0z/iWfv4k/p0J7wmo5yZQRPT K5qgqYOrMqmEQyPoSVdazj6I9gDuBvovYNS7Ivgvmeai18MrjWV+jTEE0X9jbaMOOJFFjW 6TkLs31MJaKApw3mIVBZ32pXp2VlsKcL1YppitvRefl8BDy5KZC0T9JJv43rxsOiqMiI8P kIyCytP0qShq99qt9Wv23ukSWhteUlKU9XUyOdWEkNffiCdxE2sVMqxu0pEVXA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4LzLkY0MTQzTc7; Thu, 4 Aug 2022 21:01:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 274L1eqi036938; Thu, 4 Aug 2022 21:01:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 274L1elB036937; Thu, 4 Aug 2022 21:01:40 GMT (envelope-from git) Date: Thu, 4 Aug 2022 21:01:40 GMT Message-Id: <202208042101.274L1elB036937@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dmitry Marakasov Subject: git: ded99a3d1d9f - main - devel/simpleini: new port: C++ library providing a simple API to INI-style configuration files List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: amdmi3 X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ded99a3d1d9f76f965fece3ec2425dce3df6f166 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659646901; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NDO7LZY4/IxnuDKZUTcFdhHwdSG+RTANlYkpCGSWiKQ=; b=lxW22DLoP6VPAIXn45GHHuFyC/cpLeM4EZPsd44AUzXYnm/EzWPtiXwtXzafvxOxFsknV1 NtjzZWbReiD9ke8wlVobgrPMX30RYr17byuoKR6/6uuKRo5kYe0fV+CuOVPwMKb+ugNSql 889WjP65HTfjSOzXZ2TiHGuVoP3V8tU4b7YcdYbRegXJWhupjs7YW2E/qwipsmwOxwzOEQ BoHHotRQzcz2Q+ueYble8kYDaMfJUkvBXL5JK3KnS1hHrnxWRBt76cNBFIQYt7g9xYwjpj R0FSojU/Se79qpWVoJCgodA28oKFaIe+fFYicFNZLfHXq5aJIOKb1JnHDpry2g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659646901; a=rsa-sha256; cv=none; b=vtq/2nSiyVR2UlGKZa2u1nou6/GCstb4WImVkc7iNIBhx6jzBHiNLgvoB80DNrUXI18Ye6 vY9wBgu05/VIUXV+BoorXqOQ3B3ZWjHDw2Gg4N+mOVOCX9spXB1/WbKQszRmOY9OlWUGAc 5wmYiGawYCcxj+AK6T3ds6B5M3La4VEig0HofDbw5hNz3D0kYVQv/xlbdWUWpkhJ1PcKrS njY8sU+WPxnpZeQpnKTl/qOFOA8yGr72x4elW5GeTuDYozRTJN2gLDCm6BFX+2jepmloHq sK83bHQ3EJ28aDbBnmh2xb7FqjpUhB7lcsIHkqOngqcHR9y41wp+ggOhq1p4bA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by amdmi3: URL: https://cgit.FreeBSD.org/ports/commit/?id=ded99a3d1d9f76f965fece3ec2425dce3df6f166 commit ded99a3d1d9f76f965fece3ec2425dce3df6f166 Author: Dmitry Marakasov AuthorDate: 2022-08-04 12:45:22 +0000 Commit: Dmitry Marakasov 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 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