diff options
Diffstat (limited to 'dev-cpp/rttr')
-rw-r--r-- | dev-cpp/rttr/Manifest | 7 | ||||
-rw-r--r-- | dev-cpp/rttr/files/rttr-0.9.6-cmake.patch | 25 | ||||
-rw-r--r-- | dev-cpp/rttr/files/rttr-0.9.6-permission.patch | 13 | ||||
-rw-r--r-- | dev-cpp/rttr/files/rttr-0.9.6-tests.patch | 30 | ||||
-rw-r--r-- | dev-cpp/rttr/files/rttr-0.9.6-werror.patch | 18 | ||||
-rw-r--r-- | dev-cpp/rttr/metadata.xml | 10 | ||||
-rw-r--r-- | dev-cpp/rttr/rttr-0.9.6.ebuild | 36 |
7 files changed, 139 insertions, 0 deletions
diff --git a/dev-cpp/rttr/Manifest b/dev-cpp/rttr/Manifest new file mode 100644 index 000000000000..5c3655fd4719 --- /dev/null +++ b/dev-cpp/rttr/Manifest @@ -0,0 +1,7 @@ +AUX rttr-0.9.6-cmake.patch 868 BLAKE2B cd7fbd60b03c4f0d3d20a8b849831d385c5fc85f66a55553032237dc61e1dbbf99f317a78f678c30058e4b8d47e67145843be41e17b41fb891b737d7b5694d2d SHA512 1ab892f283e0c0f596996fde055c86e175f5e5c1a8a999ea04891bf34d629cc4fb29b04f755b104c3d434c3e779033b21ad710b4180f7a8da58f1860a4d73f10 +AUX rttr-0.9.6-permission.patch 559 BLAKE2B 9ac9ab0ca00da6b6d4061c1bc3f356f18dc31d7e057746721ef0e96df081384b391d856a673012a2347a9e0884098d9baa58e57eca36793bec1ad5a49a6c1b8c SHA512 5bd959bf2741739aa34732768d78e2fd7694278e04cde0eba5e2b2fe8817910e1727834f60b8114edc77100f5dbf3059ccb882553dfa7484218fc5d9fb3cdbe5 +AUX rttr-0.9.6-tests.patch 991 BLAKE2B ae1fe61043840d7355106ee2b5b88c60a5b35eb9903a9c1639f38731eb9ace539dab29db751751b4ddd79d1647d5d2938d86c04c5afd76112f8a40f3742652ec SHA512 0e574432c329dd78f3dcea6072b3ce227cff990229a6bbbf9b928ac2da61e7586463a4805d08bef4d26bef9018c42bfd1c6cfddc99db6d27ad76e38841cd21b1 +AUX rttr-0.9.6-werror.patch 609 BLAKE2B 1c2911bbe3339a4891d83c1e5e09795fd890aae970c8fafa9a055e7e2cf3ec66bd4b0b6a7e04de7ae146cb11c6908abd4344cabdf23d8703d0f69f3c2c48aca2 SHA512 9eaa9068618e1d084c32dd23a6c9962bb4f18a73340d194ac88c57acf5d74666417785ca68564e4a9cfb7d2e812fba0e346c96bf5ff62c15ac580cd55544461e +DIST rttr-0.9.6-src.tar.gz 1137269 BLAKE2B 53bb4ed75e20a82d2bd2e6c5667efe1ba6b6f2d8a83a3bd486870daeae57a36cdcb9f2acb6d47a6d1b2f36f00a262170efa4e321f6e7faf8d2c35c431bf47133 SHA512 7e0d4fa87f83feda0b926d4d0e52aaf0f369f25fe7e23e5ffe86c0bba159e8353cef44eed37611a81e8ccc8d6facb36942f940d0d0b965f873177d7078f91cf4 +EBUILD rttr-0.9.6.ebuild 714 BLAKE2B 558e2b9942320ddd8f422c552d2bb118a1ca912c6871f14edaa2a4726c4a085fbfee17b19a4d8c5f90410f6c062b45ed5c7f0e302ffc4546c21b1206dafea289 SHA512 6a747f0b261833050b1398ba5ffd735f1da7f29cf54170419e33b7ef5951e26d453301fe0ae74128ad704bfdcbc6104167cd40732bd0ad8d7011e9ec072678d3 +MISC metadata.xml 292 BLAKE2B 2e7da24d451c6fa237bc7b69c2557872d42ee947009c100402ad719dbde2f71d713efbfff9b74b68f41b2de8f23278a2a41a1097c12b14c378a802779080dfa1 SHA512 98fa9cd44b8eee9d768bd28e8ad56fd4fcbc229af032fc3f0c85cf5707ac47544662fe6c3ec74f0ff6f5047653e46a654ced163bd3f6a0487dd1e92b121a70e9 diff --git a/dev-cpp/rttr/files/rttr-0.9.6-cmake.patch b/dev-cpp/rttr/files/rttr-0.9.6-cmake.patch new file mode 100644 index 000000000000..e313014d70a5 --- /dev/null +++ b/dev-cpp/rttr/files/rttr-0.9.6-cmake.patch @@ -0,0 +1,25 @@ +Install cmake files to the correct directory. + +Avoid installing docs to the wrong directory (will be installed by the ebuild instead). + +--- a/CMake/config.cmake ++++ b/CMake/config.cmake +@@ -69,7 +69,7 @@ + + set(RTTR_INSTALL_FULL_LIBDIR "${CMAKE_INSTALL_FULL_LIBDIR}") + +- set(RTTR_CMAKE_CONFIG_INSTALL_DIR "${CMAKE_INSTALL_DATADIR}/rttr/cmake") ++ set(RTTR_CMAKE_CONFIG_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/rttr") + set(RTTR_ADDITIONAL_FILES_INSTALL_DIR "${CMAKE_INSTALL_DATADIR}/rttr") + + elseif(WIN32) +@@ -169,8 +169,4 @@ + install(FILES "${CMAKE_CURRENT_BINARY_DIR}/CMake/rttr-config-version.cmake" + DESTINATION ${RTTR_CMAKE_CONFIG_INSTALL_DIR} + COMPONENT Devel) +- +- install(FILES "${LICENSE_FILE}" "${README_FILE}" +- DESTINATION ${RTTR_ADDITIONAL_FILES_INSTALL_DIR} +- PERMISSIONS OWNER_READ) + endif() + diff --git a/dev-cpp/rttr/files/rttr-0.9.6-permission.patch b/dev-cpp/rttr/files/rttr-0.9.6-permission.patch new file mode 100644 index 000000000000..bec7ac36bfc9 --- /dev/null +++ b/dev-cpp/rttr/files/rttr-0.9.6-permission.patch @@ -0,0 +1,13 @@ +Avoid installing headers with mode 700. + +--- a/CMake/utility.cmake ++++ b/CMake/utility.cmake +@@ -165,7 +165,7 @@ + getNameOfDir(CMAKE_CURRENT_SOURCE_DIR DIRNAME) + if (${shouldInstall}) + if (NOT ${FULL_HEADER_PATH} MATCHES ".*_p.h$") # we don't want to install header files which are marked as private +- install(FILES ${FULL_HEADER_PATH} DESTINATION "include/${DIRNAME}/${REL_PATH}" PERMISSIONS OWNER_READ) ++ install(FILES ${FULL_HEADER_PATH} DESTINATION "include/${DIRNAME}/${REL_PATH}") + endif() + endif() + endforeach() diff --git a/dev-cpp/rttr/files/rttr-0.9.6-tests.patch b/dev-cpp/rttr/files/rttr-0.9.6-tests.patch new file mode 100644 index 000000000000..bd966c3d327d --- /dev/null +++ b/dev-cpp/rttr/files/rttr-0.9.6-tests.patch @@ -0,0 +1,30 @@ +Avoid running a custom testsuite unconditionally. + +--- a/src/unit_tests/CMakeLists.txt ++++ b/src/unit_tests/CMakeLists.txt +@@ -54,17 +54,17 @@ + endif() + + # run tests +-add_custom_target(run_tests ALL +- COMMAND "$<TARGET_FILE:unit_tests>" +- DEPENDS unit_tests +- COMMENT "Running unit_tests") ++#add_custom_target(run_tests ALL ++# COMMAND "$<TARGET_FILE:unit_tests>" ++# DEPENDS unit_tests ++# COMMENT "Running unit_tests") + +-set_target_properties(run_tests PROPERTIES +- FOLDER "Testing") ++#set_target_properties(run_tests PROPERTIES ++# FOLDER "Testing") + + add_subdirectory(plugin) + + add_dependencies(unit_tests unit_test_plugin) + + message(STATUS "Scanning " ${PROJECT_NAME} " module finished!") +-message(STATUS "") +\ No newline at end of file ++message(STATUS "") diff --git a/dev-cpp/rttr/files/rttr-0.9.6-werror.patch b/dev-cpp/rttr/files/rttr-0.9.6-werror.patch new file mode 100644 index 000000000000..04c65203ac91 --- /dev/null +++ b/dev-cpp/rttr/files/rttr-0.9.6-werror.patch @@ -0,0 +1,18 @@ +This causes build failures with modern GCC, and is against Gentoo policy in any case. + +--- a/CMake/utility.cmake ++++ b/CMake/utility.cmake +@@ -392,11 +392,9 @@ + #################################################################################### + function( set_compiler_warnings target) + if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") +- set(WARNINGS "-Werror" +- "-Wall") ++ set(WARNINGS "-Wall") + elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang") +- set(WARNINGS "-Werror" +- "-Wall") ++ set(WARNINGS "-Wall") + elseif(MSVC) + set(WARNINGS "/WX" + "/W4") diff --git a/dev-cpp/rttr/metadata.xml b/dev-cpp/rttr/metadata.xml new file mode 100644 index 000000000000..2fb187146ee7 --- /dev/null +++ b/dev-cpp/rttr/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>kde@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="github">rttrorg/rttr</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-cpp/rttr/rttr-0.9.6.ebuild b/dev-cpp/rttr/rttr-0.9.6.ebuild new file mode 100644 index 000000000000..df812c944e7f --- /dev/null +++ b/dev-cpp/rttr/rttr-0.9.6.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake-utils + +DESCRIPTION="Run Time Type Reflection - library adding reflection to C++" +HOMEPAGE="https://www.rttr.org/" +SRC_URI="https://github.com/rttrorg/${PN}/releases/download/v${PV}/${P}-src.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="" + +RESTRICT="test" + +PATCHES=( + "${FILESDIR}/${P}-cmake.patch" + "${FILESDIR}/${P}-permission.patch" + "${FILESDIR}/${P}-tests.patch" + "${FILESDIR}/${P}-werror.patch" +) + +src_configure() { + local mycmakeargs=( + -DBUILD_DOCUMENTATION=off #broken + ) + + cmake-utils_src_configure +} + +src_test() { + "${BUILD_DIR}"/bin/unit_tests || die +} |