summaryrefslogtreecommitdiff
path: root/dev-cpp/cppdap/cppdap-0_pre20240802.ebuild
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-08-03 03:53:41 +0100
committerSam James <sam@gentoo.org>2024-08-03 03:53:41 +0100
commit7143daf875f4eadebb4f5789377af6fb79a14c97 (patch)
tree57929da0c95e98f4827621734d184ec32dcc5888 /dev-cpp/cppdap/cppdap-0_pre20240802.ebuild
parentb341eb04555e08004865595997fbc96518c99906 (diff)
downloadgentoo-7143daf875f4eadebb4f5789377af6fb79a14c97.tar.gz
gentoo-7143daf875f4eadebb4f5789377af6fb79a14c97.tar.bz2
gentoo-7143daf875f4eadebb4f5789377af6fb79a14c97.zip
dev-cpp/cppdap: add 0_pre20240802
Fixes build w/ GCC 15. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-cpp/cppdap/cppdap-0_pre20240802.ebuild')
-rw-r--r--dev-cpp/cppdap/cppdap-0_pre20240802.ebuild45
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-cpp/cppdap/cppdap-0_pre20240802.ebuild b/dev-cpp/cppdap/cppdap-0_pre20240802.ebuild
new file mode 100644
index 000000000000..a590a1f1bc61
--- /dev/null
+++ b/dev-cpp/cppdap/cppdap-0_pre20240802.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+# See https://github.com/google/cppdap/issues/113 re no release
+CPPDAP_COMMIT="c69444ed76f7468b232ac4f989cb8f2bdc100185"
+
+DESCRIPTION="C++ library for the Debug Adapter Protocol"
+HOMEPAGE="https://github.com/google/cppdap"
+SRC_URI="https://github.com/google/cppdap/archive/${CPPDAP_COMMIT}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}"/${PN}-${CPPDAP_COMMIT}
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="dev-cpp/nlohmann_json"
+DEPEND="
+ ${RDEPEND}
+ test? ( dev-cpp/gtest )
+"
+
+src_configure() {
+ local mycmakeargs=(
+ # Per README, could use rapidjson or jsoncpp instead.
+ -DCPPDAP_USE_EXTERNAL_NLOHMANN_JSON_PACKAGE=ON
+ -DCPPDAP_USE_EXTERNAL_RAPIDJSON_PACKAGE=OFF
+ -DCPPDAP_USE_EXTERNAL_JSONCPP_PACKAGE=OFF
+
+ -DCPPDAP_BUILD_TESTS=$(usex test)
+ -DCPPDAP_USE_EXTERNAL_GTEST_PACKAGE=ON
+ )
+
+ cmake_src_configure
+}
+
+src_test() {
+ cd "${BUILD_DIR}" || die
+ ./cppdap-unittests || die
+}