pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Add inicpp version 1.2.0 to pkgsrc-wip
Module Name: pkgsrc-wip
Committed By: Niclas Rosenvik <nros%pkgsrc.org@localhost>
Pushed By: nros
Date: Sat Apr 23 10:37:29 2022 +0200
Changeset: 70b85f57e22528aa033664248067d31afabbb727
Modified Files:
Makefile
Added Files:
inicpp/DESCR
inicpp/Makefile
inicpp/PLIST
inicpp/buildlink3.mk
inicpp/distinfo
inicpp/patches/patch-CMakeLists.txt
inicpp/patches/patch-inicpp.pc.in
Log Message:
Add inicpp version 1.2.0 to pkgsrc-wip
Add inicpp version 1.2.0 to pkgsrc-wip.
C++ parser for INI files with schema validation.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=70b85f57e22528aa033664248067d31afabbb727
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
inicpp/DESCR | 1 +
inicpp/Makefile | 29 +++++++++++++++++++++++++++++
inicpp/PLIST | 17 +++++++++++++++++
inicpp/buildlink3.mk | 12 ++++++++++++
inicpp/distinfo | 7 +++++++
inicpp/patches/patch-CMakeLists.txt | 33 +++++++++++++++++++++++++++++++++
inicpp/patches/patch-inicpp.pc.in | 16 ++++++++++++++++
8 files changed, 116 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index b8c26fec6c..e6c29a580a 100644
--- a/Makefile
+++ b/Makefile
@@ -1787,6 +1787,7 @@ SUBDIR+= inetdxtra
SUBDIR+= influxdb
SUBDIR+= info2man
SUBDIR+= infraarcana
+SUBDIR+= inicpp
SUBDIR+= initware-git
SUBDIR+= input-mono-ttf
SUBDIR+= intel-gpu-tools
diff --git a/inicpp/DESCR b/inicpp/DESCR
new file mode 100644
index 0000000000..15d69a1ff2
--- /dev/null
+++ b/inicpp/DESCR
@@ -0,0 +1 @@
+C++ parser for INI files with schema validation.
diff --git a/inicpp/Makefile b/inicpp/Makefile
new file mode 100644
index 0000000000..3b5ec6ce06
--- /dev/null
+++ b/inicpp/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD$
+
+DISTNAME= inicpp-1.2.0
+CATEGORIES= textproc
+MASTER_SITES= ${MASTER_SITE_GITHUB:=SemaiCZE/}
+GITHUB_TAG= refs/tags/v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/SemaiCZE/inicpp/
+COMMENT= C++ ini parser with schema validation
+LICENSE= mit
+
+WRKSRC= ${WRKDIR}/${DISTNAME}
+
+USE_CMAKE= yes
+USE_LANGUAGES= c c++
+
+CMAKE_ARGS+= -DINICPP_BUILD_SHARED:BOOL=ON
+CMAKE_ARGS+= -DINICPP_BUILD_EXAMPLES:BOOL=ON
+CMAKE_ARGS+= -DINICPP_BUILD_TESTS:BOOL=ON
+CMAKE_ARGS+= -DNO_GOOGLE_TEST:BOOL=ON
+
+TEST_ENV+= LD_LIBRARY_PATH=${WRKSRC}
+TEST_TARGET= test
+
+PKGCONFIG_OVERRIDE= inicpp.pc.in
+
+.include "../../devel/googletest/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/inicpp/PLIST b/inicpp/PLIST
new file mode 100644
index 0000000000..3441af222f
--- /dev/null
+++ b/inicpp/PLIST
@@ -0,0 +1,17 @@
+@comment $NetBSD$
+include/inicpp/config.h
+include/inicpp/dll.h
+include/inicpp/exception.h
+include/inicpp/inicpp.h
+include/inicpp/option.h
+include/inicpp/option_schema.h
+include/inicpp/parser.h
+include/inicpp/schema.h
+include/inicpp/section.h
+include/inicpp/section_schema.h
+include/inicpp/string_utils.h
+include/inicpp/types.h
+lib/cmake/inicpp/inicppConfig-noconfig.cmake
+lib/cmake/inicpp/inicppConfig.cmake
+lib/libinicpp.so
+lib/pkgconfig/inicpp.pc
diff --git a/inicpp/buildlink3.mk b/inicpp/buildlink3.mk
new file mode 100644
index 0000000000..70038172de
--- /dev/null
+++ b/inicpp/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD$
+
+BUILDLINK_TREE+= inicpp
+
+.if !defined(INICPP_BUILDLINK3_MK)
+INICPP_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.inicpp+= inicpp>=1.2.0
+BUILDLINK_PKGSRCDIR.inicpp?= ../../wip/inicpp
+.endif # INICPP_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -inicpp
diff --git a/inicpp/distinfo b/inicpp/distinfo
new file mode 100644
index 0000000000..bb5d8a418a
--- /dev/null
+++ b/inicpp/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+BLAKE2s (inicpp-1.2.0.tar.gz) = 6d80d6df72544abb841a148536730dde8cc1d7b7b9f021a3699bfb905142eec8
+SHA512 (inicpp-1.2.0.tar.gz) = c843951723b611bb02be322f5abd0e373006541ab2c110e114b8890add7cb70f8c38c1031ce733c60a1dc43b88e7b3ff64124a6cd7c7f0b876101470d0c962e5
+Size (inicpp-1.2.0.tar.gz) = 64068 bytes
+SHA1 (patch-CMakeLists.txt) = 027a7b5d7c0ac3ec3922b30511700f22b65e14a1
+SHA1 (patch-inicpp.pc.in) = 85db9786a1ce3b802cdce11ccb388ed8b1194fe0
diff --git a/inicpp/patches/patch-CMakeLists.txt b/inicpp/patches/patch-CMakeLists.txt
new file mode 100644
index 0000000000..c39ce8c8d3
--- /dev/null
+++ b/inicpp/patches/patch-CMakeLists.txt
@@ -0,0 +1,33 @@
+$NetBSD$
+
+Install pkg-config and cmake package files
+Applied upstream: https://gitub.com/SemaiCZE/inicpp/pull/16
+
+--- CMakeLists.txt.orig 2021-02-04 20:25:05.000000000 +0000
++++ CMakeLists.txt
+@@ -1,5 +1,6 @@
+ cmake_minimum_required(VERSION 3.1)
+-project(inicpp)
++project(inicpp
++ VERSION 1.2.0)
+
+ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
+ set(INICPP_SRC_DIR src)
+@@ -86,12 +87,17 @@ endif()
+ include(GNUInstallDirs)
+ include(InstallRequiredSystemLibraries)
+ if(UNIX)
++ target_include_directories(${PROJECT_NAME} INTERFACE $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}>)
++ install(TARGETS ${PROJECT_NAME} ${PROJECT_NAME}_public_options ${PROJECT_NAME}_private_options EXPORT ${PROJECT_NAME}Config)
+ install(DIRECTORY ${INICPP_INCLUDE_DIR} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+ if(INICPP_BUILD_SHARED)
+ install(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT library)
+ else()
+ install(TARGETS ${PROJECT_NAME} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT library)
+ endif()
++ configure_file(inicpp.pc.in inicpp.pc @ONLY)
++ install(FILES ${CMAKE_BINARY_DIR}/inicpp.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
++ install(EXPORT ${PROJECT_NAME}Config DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME} NAMESPACE ${PROJECT_NAME}::)
+ elseif(WIN32)
+ install(DIRECTORY ${INICPP_INCLUDE_DIR} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+ install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT library)
diff --git a/inicpp/patches/patch-inicpp.pc.in b/inicpp/patches/patch-inicpp.pc.in
new file mode 100644
index 0000000000..01c70acfe2
--- /dev/null
+++ b/inicpp/patches/patch-inicpp.pc.in
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Install pkg-config and cmake package files
+Applied upstream: https://gitub.com/SemaiCZE/inicpp/pull/16
+
+--- inicpp.pc.in.orig 2022-04-23 08:22:00.639992818 +0000
++++ inicpp.pc.in
+@@ -0,0 +1,8 @@
++includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
++libdir=@CMAKE_INSTALL_FULL_LIBDIR@
++
++Name: inicpp
++Description: C++ parser of INI files with schema validation
++Version: @inicpp_VERSION@
++Cflags: -I${includedir}/inicpp
++Libs: -L${libdir} -linicpp
Home |
Main Index |
Thread Index |
Old Index