diff options
| author | NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> | 2019-09-13 13:16:49 -0700 |
|---|---|---|
| committer | dan-shaw <51385773+dan-shaw@users.noreply.github.com> | 2019-09-13 13:16:49 -0700 |
| commit | 5b42adda63adc6cb75c99d793f9a7d3901b2b72b (patch) | |
| tree | 8f9fd8b2038a562d25215b910b1afdd15d8da61e | |
| parent | 51b20ded1c67a066bbd63453ec43f597d58fa3c6 (diff) | |
| download | vcpkg-5b42adda63adc6cb75c99d793f9a7d3901b2b72b.tar.gz vcpkg-5b42adda63adc6cb75c99d793f9a7d3901b2b72b.zip | |
[grppi] Add new port (#8125)
* [grppi] Add new port
* Update the version
| -rw-r--r-- | ports/grppi/CONTROL | 4 | ||||
| -rw-r--r-- | ports/grppi/fix-build-error.patch | 13 | ||||
| -rw-r--r-- | ports/grppi/fix-support-other-compilers.patch | 44 | ||||
| -rw-r--r-- | ports/grppi/portfile.cmake | 27 |
4 files changed, 88 insertions, 0 deletions
diff --git a/ports/grppi/CONTROL b/ports/grppi/CONTROL new file mode 100644 index 000000000..c638ad212 --- /dev/null +++ b/ports/grppi/CONTROL @@ -0,0 +1,4 @@ +Source: grppi
+Version: 0.4.0
+Homepage: https://github.com/arcosuc3m/grppi
+Description: GrPPI is an open source generic and reusable parallel pattern programming interface developed at University Carlos III of Madrid.
\ No newline at end of file diff --git a/ports/grppi/fix-build-error.patch b/ports/grppi/fix-build-error.patch new file mode 100644 index 000000000..edbdc3ad5 --- /dev/null +++ b/ports/grppi/fix-build-error.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 09f1f9b..9ef62e9 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -13,7 +13,7 @@ message(STATUS "CMAKE_CXX_COMPILER_ID: " ${CMAKE_CXX_COMPILER_ID} )
+
+ set(CMAKE_CXX_STANDARD 14)
+
+-add_compile_options(-Wall -Werror -pedantic -pedantic-errors -Wextra -Weffc++)
++add_compile_options(-Wall -Werror -pedantic -pedantic-errors -Wextra)
+
+ # Set specific options depending on compiler
+ if ( ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" )
diff --git a/ports/grppi/fix-support-other-compilers.patch b/ports/grppi/fix-support-other-compilers.patch new file mode 100644 index 000000000..d347b2674 --- /dev/null +++ b/ports/grppi/fix-support-other-compilers.patch @@ -0,0 +1,44 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 09f1f9b..e7b562b 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -20,22 +20,19 @@ if ( ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" )
+ if(NOT(${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER 3.9.0))
+ message(FATAL_ERROR "Clang version " ${CMAKE_CXX_COMPILER_VERSION}
+ " not supported. Upgrade to 3.9 or above.")
+- else()
+- message( STATUS "C++ Compiler is Clang" )
+ endif()
+ elseif(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
+ if(NOT(${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER 6.0))
+ message(FATAL_ERROR "g++ version " ${CMAKE_CXX_COMPILER_VERSION}
+ " not supported. Upgrade to 6.0 or above.")
+ else()
+- message( STATUS "C++ Compiler is GNU")
+ if (${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER 7.0)
+ #g++ 7 warns in non C++17 for over-aligned new otherwise
+ add_compile_options(-faligned-new)
+ endif()
+ endif()
+ elseif ( ${CMAKE_CXX_COMPILER_ID} STREQUAL "Intel" )
+- message(FATAL_ERROR "Intel compiler is not currently supported")
++ message(WARNING "Intel compiler is not currently supported")
+ # if(NOT(${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER 16.0))
+ # message( FATAL_ERROR "Intel version " ${CMAKE_CXX_COMPILER_VERSION}
+ # " not supported. Upgrade to 16.0 or above.")
+@@ -43,12 +40,11 @@ elseif ( ${CMAKE_CXX_COMPILER_ID} STREQUAL "Intel" )
+ # message( STATUS "C++ Compiler is Intel" )
+ # message( WARNING "WARNING: GrPPI has not been fully tested with Intel compiler." )
+ # endif()
+-else()
+- message( FATAL_ERROR "Unsupported compiler: "
+- ${CMAKE_CXX_COMPILER_ID}
+- ${CMAKE_CXX_COMPILER_VERSION})
+ endif()
+
++message(STATUS "C++ Compiler is " ${CMAKE_CXX_COMPILER_ID}
++ " version " ${CMAKE_CXX_COMPILER_VERSION})
++
+ # GrPPI library
+ include_directories("${CMAKE_SOURCE_DIR}/include")
+
diff --git a/ports/grppi/portfile.cmake b/ports/grppi/portfile.cmake new file mode 100644 index 000000000..6b1895d0f --- /dev/null +++ b/ports/grppi/portfile.cmake @@ -0,0 +1,27 @@ +include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO arcosuc3m/grppi
+ REF v0.4.0
+ SHA512 f8235af6832958de420a68d4465a6c63701ab4385f3430d32f77c1d5e8212001262aad1a8aae04261ba889d592798cd3963843b190d325bddc1fe7dcc4aebd7d
+ HEAD_REF master
+ PATCHES
+ fix-build-error.patch
+ fix-support-other-compilers.patch
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DGRPPI_DOXY_ENABLE=OFF
+ -DGRPPI_EXAMPLE_APPLICATIONS_ENABLE=OFF
+ -DGRPPI_UNIT_TEST_ENABLE=OFF
+)
+
+vcpkg_install_cmake()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
+
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
