dev-cpp/properties-cpp: treeclean
Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
parent
a51c23293b
commit
f444b3d13b
@ -1 +0,0 @@
|
||||
DIST properties-cpp-0_pre20180409.tar.gz 41134 BLAKE2B 982b11a3c742547caf141dbaa341c56efc7f76b40e3da0fa8b74e5ebcdb40a3f493dcd1a80274e4f9314cab6e947d655e599d5eb0527d95c90186a0b933fb02b SHA512 5697b9acacb63b801ef531a3741655e67896604c5150a754d9e11f87898ee564a2707fcb8346119b7081ae725e8bbfa671e537e4985a061da7161ff7b12d5985
|
@ -1,17 +0,0 @@
|
||||
include(FindPackageHandleStandardArgs)
|
||||
|
||||
find_path(GTEST_INCLUDE_DIR gtest/gtest.h)
|
||||
find_path(GMOCK_INCLUDE_DIR gmock/gmock.h)
|
||||
|
||||
find_library(GMOCK_LIBRARY libgmock.so)
|
||||
find_library(GMOCK_MAIN_LIBRARY libgmock_main.so)
|
||||
find_library(GTEST_LIBRARY libgtest.so)
|
||||
find_library(GTEST_MAIN_LIBRARY libgtest_main.so)
|
||||
|
||||
set(GMOCK_BOTH_LIBRARIES ${GMOCK_LIBRARY} ${GMOCK_MAIN_LIBRARY})
|
||||
set(GTEST_BOTH_LIBRARIES ${GTEST_LIBRARY} ${GTEST_MAIN_LIBRARY})
|
||||
set(GTEST_LIBRARIES ${GTEST_BOTH_LIBRARIES} ${GMOCK_BOTH_LIBRARIES})
|
||||
|
||||
find_package_handle_standard_args(Gtest DEFAULT_MSG
|
||||
GMOCK_INCLUDE_DIR
|
||||
GTEST_INCLUDE_DIR)
|
@ -1,22 +0,0 @@
|
||||
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
|
||||
index 180498f..ac5e66c 100644
|
||||
--- a/tests/CMakeLists.txt
|
||||
+++ b/tests/CMakeLists.txt
|
||||
@@ -1,3 +1,11 @@
|
||||
+option(
|
||||
+ PROPERTIES_CPP_BUILD_TESTS
|
||||
+ "Build tests"
|
||||
+ ON
|
||||
+)
|
||||
+
|
||||
+if (PROPERTIES_CPP_BUILD_TESTS)
|
||||
+
|
||||
set (OLD_CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
|
||||
# Don't treat warnings as errors in 3rd_party/{gmock,cucumber-cpp}
|
||||
string (REPLACE " -Werror " " " CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
|
||||
@@ -31,3 +39,5 @@ target_link_libraries(
|
||||
|
||||
add_test(properties_test ${CMAKE_CURRENT_BINARY_DIR}/properties_test)
|
||||
add_test(signals_test ${CMAKE_CURRENT_BINARY_DIR}/signals_test)
|
||||
+
|
||||
+endif (PROPERTIES_CPP_BUILD_TESTS)
|
@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>parona@protonmail.com</email>
|
||||
<name>Alfred Wingate</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">lib-cpp/properties-cpp</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,49 +0,0 @@
|
||||
# Copyright 2020-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
CMAKE_REMOVE_MODULES_LIST=( "FindGtest" )
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="A very simple convenience library for handling properties and signals in C++11"
|
||||
HOMEPAGE="https://github.com/lib-cpp/properties-cpp"
|
||||
|
||||
if [[ "${PV}" == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/lib-cpp/properties-cpp"
|
||||
else
|
||||
COMMIT="45863e849b39c4921d6553e6d27e267a96ac7d77" # 9.4.2018
|
||||
SRC_URI="https://github.com/lib-cpp/properties-cpp/archive/"${COMMIT}".tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${COMMIT}"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
IUSE="doc test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="
|
||||
doc? ( app-doc/doxygen )
|
||||
test? ( dev-cpp/gtest )
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/optional_tests.patch" )
|
||||
|
||||
src_prepare() {
|
||||
# Provided FindGtest tries (and fails) to build its own version of gtest rather than actually search for it on the system
|
||||
#cp "${FILESDIR}"/FindGtest.cmake cmake/FindGtest.cmake || die
|
||||
sed -i 's/Gtest/GTest/' tests/CMakeLists.txt || die
|
||||
sed -i 's/${GMOCK_INCLUDE_DIR}/GTest::gmock/' tests/CMakeLists.txt || die
|
||||
sed -i 's/${GTEST_INCLUDE_DIR}/GTest::gtest/' tests/CMakeLists.txt || die
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DPROPERTIES_CPP_ENABLE_DOC_GENERATION=$(usex doc)
|
||||
-DPROPERTIES_CPP_BUILD_TESTS=$(usex test)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
@ -1,41 +0,0 @@
|
||||
# Copyright 2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="A very simple convenience library for handling properties and signals in C++11"
|
||||
HOMEPAGE="https://github.com/lib-cpp/properties-cpp"
|
||||
|
||||
if [[ "${PV}" == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/lib-cpp/properties-cpp"
|
||||
else
|
||||
COMMIT="45863e849b39c4921d6553e6d27e267a96ac7d77" # 9.4.2018
|
||||
SRC_URI="https://github.com/lib-cpp/properties-cpp/archive/"${COMMIT}".tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${COMMIT}"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
IUSE="doc"
|
||||
|
||||
DEPEND="
|
||||
doc? ( app-doc/doxygen )
|
||||
dev-cpp/gtest
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
# Provided FindGtest tries (and fails) to build its own version of gtest rather than actually search for it on the system
|
||||
cp "${FILESDIR}"/FindGtest.cmake cmake/FindGtest.cmake || die
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DPROPERTIES_CPP_ENABLE_DOC_GENERATION=$(usex doc)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
Loading…
Reference in New Issue
Block a user