From d0041a4fc40bb18b49160ca2499523745aa15754 Mon Sep 17 00:00:00 2001 From: "Daisuke Fujimura (fd0)" Date: Sat, 11 Jan 2025 22:45:58 +0900 Subject: [PATCH] ipcgull-0.1 (untested) --- ipcgull/README | 76 ++++++++++++++++++++++++++++++ ipcgull/ipcgull-0.1-1bl1.cygport | 40 ++++++++++++++++ ipcgull/ipcgull-0.1-1bl1.src.patch | 39 +++++++++++++++ 3 files changed, 155 insertions(+) create mode 100644 ipcgull/README create mode 100644 ipcgull/ipcgull-0.1-1bl1.cygport create mode 100644 ipcgull/ipcgull-0.1-1bl1.src.patch diff --git a/ipcgull/README b/ipcgull/README new file mode 100644 index 000000000..074694660 --- /dev/null +++ b/ipcgull/README @@ -0,0 +1,76 @@ +ipcgull +------------------------------------------ +Ipcgull is a C++ IPC library that takes advantage of modern C++17 features to +provide a simple interface for developers to handle IPC. + +Runtime requirements: + cygwin-3.5.4-1 + libgcc1-12.4.0-3 + libglib2.0_0-2.64.6-1 + libipcgull-devel-0.1-1bl1 + libipcgull0-0.1-1bl1 + libstdc++6-12.4.0-3 + pkg-config-2.3.0-1 + +Build requirements: +(besides corresponding -devel packages) + binutils-2.43.1-1 + cmake-3.28.3-1 + cygport-0.36.9-1 + gcc-core-12.4.0-3 + gcc-g++-12.4.0-3 + libglib2.0-devel-2.64.6-1 + ninja-1.12.0-1 + +Canonical website: + https://github.com/PixlOne/ipcgull + +Canonical download: + https://github.com/PixlOne/ipcgull/archive/refs/tags/v0.1.tar.gz + +------------------------------------------- + +Build instructions: + 1. unpack ipcgull-0.1-X-src.tar.xz + 2. if you use setup to install this src package, + it will be unpacked under /usr/src automatically + % cd /usr/src + % cygport ./ipcgull-0.1-X.cygport all + +This will create: + /usr/src/ipcgull-0.1-X-src.tar.xz + /usr/src/ipcgull-0.1-X.tar.xz + /usr/src/libipcgull0-0.1-X.tar.xz + /usr/src/libipcgull-devel-0.1-X.tar.xz + +------------------------------------------- + +Files included in the binary package: + +(ipcgull) + /usr/share/doc/Cygwin/ipcgull.README + /usr/share/doc/ipcgull/LICENSE + /usr/share/doc/ipcgull/README.md + +(libipcgull0) + /usr/bin/cygipcgull-0.dll + +(libipcgull-devel) + /usr/include/ipcgull/connection.h + /usr/include/ipcgull/exception.h + /usr/include/ipcgull/function.h + /usr/include/ipcgull/interface.h + /usr/include/ipcgull/node.h + /usr/include/ipcgull/property.h + /usr/include/ipcgull/server.h + /usr/include/ipcgull/signal.h + /usr/include/ipcgull/variant.h + /usr/lib/libipcgull.dll.a + /usr/lib/pkgconfig/ipcgull.pc + +------------------ + +Port Notes: + +----- version 0.1-1bl1 ----- +Initial release by fd0 diff --git a/ipcgull/ipcgull-0.1-1bl1.cygport b/ipcgull/ipcgull-0.1-1bl1.cygport new file mode 100644 index 000000000..a88314852 --- /dev/null +++ b/ipcgull/ipcgull-0.1-1bl1.cygport @@ -0,0 +1,40 @@ +HOMEPAGE="https://github.com/PixlOne/${PN}" +SRC_URI="https://github.com/PixlOne/${PN}/archive/refs/tags/v${PV}.tar.gz" + +CATEGORY="Libs" +SUMMARY="GDBus-based IPC library for modern C++" +DESCRIPTION="Ipcgull is a C++ IPC library that takes advantage of modern C++17 features to +provide a simple interface for developers to handle IPC." + +LICENSE="GPL-3.0-or-later" +LICENSE_SPDX="SPDX-License-Identifier: GPL-3.0-or-later" +LICENSE_URI="LICENSE" + +BUILD_REQUIRES="libglib2.0-devel" + +inherit cmake + +CYGCMAKE_ARGS=" + -DBUILD_SHARED_LIBS:BOOL=ON + -DSOVERSION:STRING=${PV[1]} + -DVERSION:STRING=${PV} +" + +PKG_NAMES=" + ipcgull + libipcgull0 + libipcgull-devel +" +ipcgull_CONTENTS=" + usr/share +" +libipcgull0_CONTENTS=" + usr/bin/cyg*-0.dll +" +libipcgull_devel_CONTENTS=" + usr/include + usr/lib +" +ipcgull_SUMMARY="${SUMMARY} (licensing & readmes)" +libipcgull0_SUMMARY="${SUMMARY} (runtime)" +libipcgull_devel_SUMMARY="${SUMMARY} (development)" diff --git a/ipcgull/ipcgull-0.1-1bl1.src.patch b/ipcgull/ipcgull-0.1-1bl1.src.patch new file mode 100644 index 000000000..30766cb2c --- /dev/null +++ b/ipcgull/ipcgull-0.1-1bl1.src.patch @@ -0,0 +1,39 @@ +--- origsrc/ipcgull-0.1/CMakeLists.txt 2023-05-02 14:14:50.000000000 +0900 ++++ src/ipcgull-0.1/CMakeLists.txt 2025-01-11 22:43:12.540657200 +0900 +@@ -27,6 +27,23 @@ add_library(ipcgull + ${IPCGULL_BACKEND_SRC}) + target_link_libraries(ipcgull ${IPCGULL_BACKEND_LIBRARIES}) + ++if (DEFINED SOVERSION) ++ set_target_properties(ipcgull PROPERTIES SOVERSION "${SOVERSION}") ++endif() ++ ++install(TARGETS ipcgull ++ ARCHIVE DESTINATION lib ++ RUNTIME DESTINATION bin) ++file(GLOB HEADERS src/include/ipcgull/*.h) ++install(FILES ${HEADERS} DESTINATION include/ipcgull) ++ + if(${BUILD_TESTS}) + add_subdirectory(tests/server_test) + endif() ++ ++set(prefix ${CMAKE_INSTALL_PREFIX}) ++set(exec_prefix ${CMAKE_INSTALL_PREFIX}) ++set(libdir ${CMAKE_INSTALL_PREFIX}/lib) ++set(includedir ${CMAKE_INSTALL_PREFIX}/include) ++configure_file(${CMAKE_SOURCE_DIR}/ipcgull.pc.in ${CMAKE_BINARY_DIR}/ipcgull.pc @ONLY) ++install(FILES ${CMAKE_BINARY_DIR}/ipcgull.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig) +--- origsrc/ipcgull-0.1/ipcgull.pc.in 1970-01-01 09:00:00.000000000 +0900 ++++ src/ipcgull-0.1/ipcgull.pc.in 2025-01-11 22:42:12.990366200 +0900 +@@ -0,0 +1,10 @@ ++prefix=@prefix@ ++exec_prefix=@exec_prefix@ ++libdir=@libdir@ ++includedir=@includedir@ ++ ++Name: ipcgull ++Description: GDBus-based IPC library for modern C++ ++Version: @VERSION@ ++Libs: -L${libdir} -lipcgull ++Cflags: -I${includedir}