summaryrefslogtreecommitdiff
path: root/dev-cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dev-cpp')
-rw-r--r--dev-cpp/Manifest.gzbin13773 -> 14110 bytes
-rw-r--r--dev-cpp/cppgir/Manifest6
-rw-r--r--dev-cpp/cppgir/cppgir-0_p20230606.ebuild43
-rw-r--r--dev-cpp/cppgir/files/cppgir-0_p20230606-fix-install-paths.patch13
-rw-r--r--dev-cpp/cppgir/files/cppgir-0_p20230606-prevent-automagic.patch42
-rw-r--r--dev-cpp/cppgir/files/cppgir-0_p20230606-system-expected-lite.patch37
-rw-r--r--dev-cpp/cppgir/metadata.xml16
-rw-r--r--dev-cpp/expected-lite/Manifest3
-rw-r--r--dev-cpp/expected-lite/expected-lite-0.6.3.ebuild25
-rw-r--r--dev-cpp/expected-lite/metadata.xml17
10 files changed, 202 insertions, 0 deletions
diff --git a/dev-cpp/Manifest.gz b/dev-cpp/Manifest.gz
index b4e5175b6c07..c7d622c3216a 100644
--- a/dev-cpp/Manifest.gz
+++ b/dev-cpp/Manifest.gz
Binary files differ
diff --git a/dev-cpp/cppgir/Manifest b/dev-cpp/cppgir/Manifest
new file mode 100644
index 000000000000..8e7aa7c30732
--- /dev/null
+++ b/dev-cpp/cppgir/Manifest
@@ -0,0 +1,6 @@
+AUX cppgir-0_p20230606-fix-install-paths.patch 568 BLAKE2B 28a112093185d321ca7f3da3ff03ca4c61bb8bdce5a52d3264a6eb6c262bccfc5ced9f99def9c67815e175ffdb9f85ba2a31b87fb10b59ca001db457fd48d795 SHA512 8cc170277575230598553efa0a7bc99ad7fe4ae67d2ca78601c477ebdb8acc9adba50491a222e1a9dd66395bfce98f64a0c8bfe5238af1586289ee1ea11b8a31
+AUX cppgir-0_p20230606-prevent-automagic.patch 1428 BLAKE2B 0ecde5f934ad3b5f015ad83b2b995faecfdf5944e9fb30d935817d2ec4357db3ac4dda334d2b407cda5e8a8ce2ee4f59535f8c5c61f12a21fb4ce155a754af61 SHA512 97d52877a14753a1e6ab4b8aceb70e04ba44207cf16cfcbd44235190087677201189b5bd5528db912628dd62c909a7fba5933611014dcd3bf159ea0facf83f24
+AUX cppgir-0_p20230606-system-expected-lite.patch 1397 BLAKE2B 2c6996525fcaba5718aa5959f43838bbc9a3429057722fd6b0c74723c02c1b2e74c0026db9f0334768288d406465f86b75dd9049c912e3567ae6cb53766b8739 SHA512 92b3fb8041f1283c3d8a000c914597b56871f0f69c73738baa9fd2588e55d925f6284646701adc0ca2c1ed9b126615fd34280e4e36f7cbddc7ac3228f7432b54
+DIST cppgir-0_p20230606.tar.bz2 92576 BLAKE2B 47d43405eee8cebb782a3021e8398ce61ced23094424ced9f1bfaf390bfd83b7fa6e6fe5e0689886857cef3c992f9318de99d9e38362c2777a409cf597b55f7a SHA512 832c99379b0203db9b2cfefa530fc8f68411da5b0f121a37ab1b60dfa39e929a0d95971c4161a744dc5b3ddbb92848f1bbce9b265f9d4d5724084c08ab8fd4f4
+EBUILD cppgir-0_p20230606.ebuild 928 BLAKE2B f1fe2d649637308ed20396cb7b97b8a432e952af0e864bc89dabd42250d6737857f026883538524a961d7ea4f5260992d3aeb7feded8838c05713055c7bcac84 SHA512 5c4bbe0b83025d5f7791e1a1073ef017d2f084cc61766d0ba15d0971137357fa4aa66733afacb190b83c5ad7cbce8ebfd409d26b72271d3ce9d484f6750fcea5
+MISC metadata.xml 567 BLAKE2B 0684a8a7347f840ff2d683d32ccf4fd37e0c617be78600dde97ad5f1bf5e897b01fbf40474eeaf3bd14a4efd99642dd7e062b05a61fc2a2f15722996b5422673 SHA512 fcd0bfcbaa4a4d684ab29bdc6ef3d251bc17206d548ce15644efa0a5b6cfc7e072c04c6a7e882307e73eb74347e971389fdb01462be28e5bbd9bb8c0ec8934e9
diff --git a/dev-cpp/cppgir/cppgir-0_p20230606.ebuild b/dev-cpp/cppgir/cppgir-0_p20230606.ebuild
new file mode 100644
index 000000000000..14ebc607d6c0
--- /dev/null
+++ b/dev-cpp/cppgir/cppgir-0_p20230606.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="GObject-Introspection C++ binding wrapper generator"
+HOMEPAGE="https://gitlab.com/mnauw/cppgir"
+
+MY_PV="960fe054ffaab7cf55722fea6094c56a8ee8f18e"
+SRC_URI="https://gitlab.com/mnauw/cppgir/-/archive/${MY_PV}/cppgir-${MY_PV}.tar.bz2 -> ${P}.tar.bz2"
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ dev-cpp/expected-lite
+ dev-libs/boost:=
+ dev-libs/libfmt:=
+"
+BDEPEND="
+ doc? ( app-text/ronn-ng )
+"
+
+PATCHES=(
+ "${FILESDIR}/cppgir-0_p20230606-system-expected-lite.patch"
+ "${FILESDIR}/cppgir-0_p20230606-fix-install-paths.patch"
+ "${FILESDIR}/cppgir-0_p20230606-prevent-automagic.patch"
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_DOC=$(usex doc)
+ -DBUILD_TESTING=$(usex test)
+ )
+
+ cmake_src_configure
+}
diff --git a/dev-cpp/cppgir/files/cppgir-0_p20230606-fix-install-paths.patch b/dev-cpp/cppgir/files/cppgir-0_p20230606-fix-install-paths.patch
new file mode 100644
index 000000000000..c27d1e9f29b0
--- /dev/null
+++ b/dev-cpp/cppgir/files/cppgir-0_p20230606-fix-install-paths.patch
@@ -0,0 +1,13 @@
+Install cmake targets in correct directory
+
+--- cppgir-960fe054ffaab7cf55722fea6094c56a8ee8f18e.orig/CMakeLists.txt
++++ cppgir-960fe054ffaab7cf55722fea6094c56a8ee8f18e/CMakeLists.txt
+@@ -259,7 +259,7 @@
+ DESTINATION ${GI_IGNORE_FILE_INSTALL_DIR})
+
+ # cmake EXPORTS
+-set(CONFIG_PACKAGE_LOCATION lib/cmake/${PROJECT_NAME})
++set(CONFIG_PACKAGE_LOCATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})
+ set(CONFIG_VERSION_NAME ${PROJECT_NAME}-config-version.cmake)
+ set(CONFIG_TARGETS_NAME ${PROJECT_NAME}-targets.cmake)
+ set(CONFIG_NAME ${PROJECT_NAME}-config.cmake)
diff --git a/dev-cpp/cppgir/files/cppgir-0_p20230606-prevent-automagic.patch b/dev-cpp/cppgir/files/cppgir-0_p20230606-prevent-automagic.patch
new file mode 100644
index 000000000000..8bb3ab5c4496
--- /dev/null
+++ b/dev-cpp/cppgir/files/cppgir-0_p20230606-prevent-automagic.patch
@@ -0,0 +1,42 @@
+Remove checks for libraries that are completely unnecessary
+
+--- cppgir-960fe054ffaab7cf55722fea6094c56a8ee8f18e.orig/CMakeLists.txt
++++ cppgir-960fe054ffaab7cf55722fea6094c56a8ee8f18e/CMakeLists.txt
+@@ -79,15 +79,14 @@
+ find_package(expected-lite REQUIRED)
+ target_link_libraries(gi PUBLIC expected-lite)
+
+-include(FindPkgConfig)
+-pkg_check_modules(GOBJECT gobject-2.0)
+-pkg_check_modules(GIO gio-2.0 gio-unix-2.0)
+-pkg_check_modules(GST gstreamer-1.0)
+-pkg_check_modules(GTK gtk+-3.0)
++if (BUILD_TESTING)
++ include(FindPkgConfig REQUIRED)
++ pkg_check_modules(GOBJECT gobject-2.0 REQUIRED)
++endif()
+
+ ## TEST ##
+
+-if (BUILD_TESTING AND GOBJECT_FOUND)
++if (BUILD_TESTING)
+ add_executable(gi-test test/main.cpp
+ test/test_object.c test/test_object.h test/test_boxed.c test/test_boxed.h)
+ target_include_directories(gi-test PRIVATE "gi" "override")
+@@ -113,7 +112,7 @@
+ set(EXAMPLE_TARGETS "")
+ set(EXAMPLE_NS "")
+
+-if (GOBJECT_FOUND)
++if (FALSE)
+ add_executable(example-gobject EXCLUDE_FROM_ALL examples/gobject.cpp)
+ target_compile_options(example-gobject PRIVATE ${GOBJECT_CFLAGS})
+ target_link_libraries(example-gobject PRIVATE ${GOBJECT_LDFLAGS})
+@@ -179,7 +178,6 @@
+ endif ()
+
+ # optional Qt example
+-find_package(Qt5Core 5.9)
+ if (Qt5Core_FOUND AND GIO_FOUND)
+ set(CMAKE_INCLUDE_CURRENT_DIR ON)
+ add_executable(example-gio-qt-async EXCLUDE_FROM_ALL examples/gio-qt-async.cpp)
diff --git a/dev-cpp/cppgir/files/cppgir-0_p20230606-system-expected-lite.patch b/dev-cpp/cppgir/files/cppgir-0_p20230606-system-expected-lite.patch
new file mode 100644
index 000000000000..096ed39dc03b
--- /dev/null
+++ b/dev-cpp/cppgir/files/cppgir-0_p20230606-system-expected-lite.patch
@@ -0,0 +1,37 @@
+Use system-wide copy of expected-lite
+
+--- cppgir-960fe054ffaab7cf55722fea6094c56a8ee8f18e.orig/CMakeLists.txt
++++ cppgir-960fe054ffaab7cf55722fea6094c56a8ee8f18e/CMakeLists.txt
+@@ -76,14 +76,8 @@
+ "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}/override>"
+ )
+
+-set(EXPECTED_LITE_INCLUDE "expected-lite/include")
+-if (EXISTS ${CMAKE_CURRENT_LIST_DIR}/${EXPECTED_LITE_INCLUDE}/nonstd/expected.hpp)
+- target_include_directories(gi INTERFACE
+- "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/${EXPECTED_LITE_INCLUDE}>"
+- )
+-else ()
+- message (FATAL_ERROR "missing submodule expected-lite")
+-endif ()
++find_package(expected-lite REQUIRED)
++target_link_libraries(gi INTERFACE nonstd::expected-lite)
+
+ include(FindPkgConfig)
+ pkg_check_modules(GOBJECT gobject-2.0)
+@@ -241,8 +235,6 @@
+ # headers
+ install(DIRECTORY gi override
+ DESTINATION ${CMAKE_INSTALL_FULL_INCLUDEDIR}/${PROJECT_NAME})
+-install(DIRECTORY ${EXPECTED_LITE_INCLUDE}/nonstd
+- DESTINATION ${CMAKE_INSTALL_FULL_INCLUDEDIR}/${PROJECT_NAME}/gi)
+
+ # doc
+ install(FILES README.md docs/cppgir.md
+--- cppgir-960fe054ffaab7cf55722fea6094c56a8ee8f18e.orig/cmake/cppgir-config.cmake
++++ cppgir-960fe054ffaab7cf55722fea6094c56a8ee8f18e/cmake/cppgir-config.cmake
+@@ -1 +1,4 @@
++include(CMakeFindDependencyMacro)
++find_dependency(expected-lite)
++
+ include("${CMAKE_CURRENT_LIST_DIR}/cppgir-targets.cmake")
diff --git a/dev-cpp/cppgir/metadata.xml b/dev-cpp/cppgir/metadata.xml
new file mode 100644
index 000000000000..8337d9d2c2da
--- /dev/null
+++ b/dev-cpp/cppgir/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person" proxied="yes">
+ <email>esteve.varela@gmail.com</email>
+ <name>Esteve Varela Colominas</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="gitlab">mnauw/cppgir</remote-id>
+ <bugs-to>https://gitlab.com/mnauw/cppgir/-/issues</bugs-to>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-cpp/expected-lite/Manifest b/dev-cpp/expected-lite/Manifest
new file mode 100644
index 000000000000..0d0c97a49e6f
--- /dev/null
+++ b/dev-cpp/expected-lite/Manifest
@@ -0,0 +1,3 @@
+DIST expected-lite-0.6.3.tar.gz 51878 BLAKE2B 7b9eb948d674d4fb4904c6deb4f2c8c2d578d73d8401dc386a49c5f09cc75c6fd70e0c6aa72cd1e1fb9d82cf55917c8a6d60868190ba063340eda4f3191ebc56 SHA512 d6a4f30f90494dda002ad27d227f17ce0201752178418d7dfada26441e853590d46816c88922e7d458dda68ad4414ddfe6b7fa4ed2a5854e4e3b22675b13f92a
+EBUILD expected-lite-0.6.3.ebuild 575 BLAKE2B 7e64374fc7812972d8c67ff2cff5d00d707a1beb6114079798a7b47abe1d998cdf9e6d243254d1358db37cce8bffa7589d57ae40f72b44f3c7e4af13473cc525 SHA512 0e6e10b11f8f01228fe0437f767f9dc5d05244650dac78e00732053032c9a0e650a2ba2293b1821b6981618eefc1e41af4bf80dbf0254d8ef8da97bc26d73943
+MISC metadata.xml 672 BLAKE2B b93933b2822b6c6e1234a617c895d75e95d725dcb80f9bee1785dd4237e215e95f365912b14aba9aa0827b5851e4b0b7e96ef1f1502bc7454b21278ba17c42fd SHA512 2b0d59165fd114a2239f6b9f0b9bd65bbcbe2b8fc955ea419940856a57479eb15ab93ba0eabd4b112cab5f105c1f7784ad485fc47e2048b69bc73b38b1c4857e
diff --git a/dev-cpp/expected-lite/expected-lite-0.6.3.ebuild b/dev-cpp/expected-lite/expected-lite-0.6.3.ebuild
new file mode 100644
index 000000000000..6ee9aecf0708
--- /dev/null
+++ b/dev-cpp/expected-lite/expected-lite-0.6.3.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Expected objects in C++11 and later in a single-file header-only library"
+HOMEPAGE="https://github.com/martinmoene/expected-lite"
+
+SRC_URI="https://github.com/martinmoene/expected-lite/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Boost-1.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+src_configure() {
+ local mycmakeargs=(
+ -DEXPECTED_LITE_OPT_BUILD_TESTS=$(usex test)
+ )
+
+ cmake_src_configure
+}
diff --git a/dev-cpp/expected-lite/metadata.xml b/dev-cpp/expected-lite/metadata.xml
new file mode 100644
index 000000000000..5ae6bb2ec249
--- /dev/null
+++ b/dev-cpp/expected-lite/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person" proxied="yes">
+ <email>esteve.varela@gmail.com</email>
+ <name>Esteve Varela Colominas</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">martinmoene/expected-lite</remote-id>
+ <bugs-to>https://github.com/martinmoene/expected-lite/issues</bugs-to>
+ <changelog>https://github.com/martinmoene/expected-lite/releases</changelog>
+ </upstream>
+</pkgmetadata>