mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 19:17:10 +01:00
[sol2] rename port sol to sol2 and fix the full port (#3766)
* [sol2] rename port sol to sol2 and fix the full port * [sol2] Simplification and cleanup. Don't remove upstream's include directory.
This commit is contained in:
parent
1ab58d7315
commit
bb5303c6e1
@ -1,14 +0,0 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO ThePhD/sol2
|
||||
REF f8ee7abe527a9e8414fc4965e5cbd0f8395fbeae
|
||||
SHA512 6bf090deb3b664e9585672b8f85275b76c53eddc7fe206ceec943522195bb726e976c946b59cc23863bc7e0feab36f4fe1a6a7a5dae3f9c2ec5c64060014afbf
|
||||
HEAD_REF develop
|
||||
)
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/single/sol/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/)
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/sol RENAME copyright)
|
@ -1,3 +1,3 @@
|
||||
Source: sol
|
||||
Version: 2.20.0-1
|
||||
Source: sol2
|
||||
Version: 2.20.3-1
|
||||
Description: Sol v2.0 - a C++ <-> Lua API wrapper with advanced features and top notch performance - is here, and it's great
|
25
ports/sol2/portfile.cmake
Normal file
25
ports/sol2/portfile.cmake
Normal file
@ -0,0 +1,25 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO ThePhD/sol2
|
||||
REF v2.20.3
|
||||
SHA512 f1d39a6762c7c9c40bffd08129a80c4c8dd70ffcaadc195cbcd681471e6978176d0ae06d4b8db6aabc05b0ae2670c10bd287b9e859ec7810f2441c3c6c8fe521
|
||||
HEAD_REF develop
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/sol2_fix_targets.patch
|
||||
${CMAKE_CURRENT_LIST_DIR}/sol2_fix_install_interface.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/sol2)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/sol2 RENAME copyright)
|
22
ports/sol2/sol2_fix_install_interface.patch
Normal file
22
ports/sol2/sol2_fix_install_interface.patch
Normal file
@ -0,0 +1,22 @@
|
||||
From d72b243c717159b2e44f2dc12d25752be578e2ec Mon Sep 17 00:00:00 2001
|
||||
From: Roman Sztergbaum <roman.sztergbaum@epitech.eu>
|
||||
Date: Sat, 23 Jun 2018 10:43:51 +0200
|
||||
Subject: [PATCH] fix install interface
|
||||
|
||||
---
|
||||
CMakeLists.txt | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index abd298f8..ba52ded8 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -141,7 +141,7 @@ CMAKE_DEPENDENT_OPTION(TESTS_DYNAMIC_LOADING_EXAMPLES "Enable build of dynamic l
|
||||
add_library(sol2 INTERFACE)
|
||||
target_include_directories(sol2 INTERFACE
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
||||
- $<INSTALL_INTERFACE:include/sol>)
|
||||
+ $<INSTALL_INTERFACE:include/sol> $<INSTALL_INTERFACE:include>)
|
||||
|
||||
# # Version configurations
|
||||
configure_package_config_file(
|
39
ports/sol2/sol2_fix_targets.patch
Normal file
39
ports/sol2/sol2_fix_targets.patch
Normal file
@ -0,0 +1,39 @@
|
||||
From c53fa6d2b5f59d737b830021eb0872622b2058a2 Mon Sep 17 00:00:00 2001
|
||||
From: Roman Sztergbaum <roman.sztergbaum@epitech.eu>
|
||||
Date: Fri, 22 Jun 2018 22:02:11 +0200
|
||||
Subject: [PATCH] fix sol2-config.cmake.in
|
||||
|
||||
---
|
||||
cmake/sol2-config.cmake.in | 21 ++++++++++++---------
|
||||
1 file changed, 12 insertions(+), 9 deletions(-)
|
||||
|
||||
diff --git a/cmake/sol2-config.cmake.in b/cmake/sol2-config.cmake.in
|
||||
index 9c69beb4..c15c0e5d 100644
|
||||
--- a/cmake/sol2-config.cmake.in
|
||||
+++ b/cmake/sol2-config.cmake.in
|
||||
@@ -26,13 +26,16 @@ include("${CMAKE_CURRENT_LIST_DIR}/sol2-targets.cmake")
|
||||
|
||||
MESSAGE(STATUS ${CMAKE_CURRENT_LIST_DIR})
|
||||
|
||||
-get_target_property(SOL_INCLUDE_DIRS
|
||||
- sol2 INTERFACE_INCLUDE_DIRECTORIES)
|
||||
+if (TARGET sol2)
|
||||
+ get_target_property(SOL2_INCLUDE_DIRS
|
||||
+ sol2 INTERFACE_INCLUDE_DIRECTORIES)
|
||||
+ set_and_check(SOL2_INCLUDE_DIRS "${SOL2_INCLUDE_DIRS}")
|
||||
+ set(SOL2_LIBRARIES sol2)
|
||||
+endif()
|
||||
|
||||
-get_target_property(SOL_SINGLE_INCLUDE_DIRS
|
||||
- sol2_single INTERFACE_INCLUDE_DIRECTORIES)
|
||||
-
|
||||
-set_and_check(SOL2_INCLUDE_DIRS "${SOL2_INCLUDE_DIRS}")
|
||||
-set_and_check(SOL2_INCLUDE_DIRS "${SOL2_SINGLE_INCLUDE_DIRS}")
|
||||
-set(SOL2_LIBRARIES sol2)
|
||||
-set(SOL2_LIBRARIES_SINGLE sol2_single)
|
||||
+if(TARGET sol2_single)
|
||||
+ get_target_property(SOL_SINGLE_INCLUDE_DIRS
|
||||
+ sol2_single INTERFACE_INCLUDE_DIRECTORIES)
|
||||
+ set_and_check(SOL2_INCLUDE_DIRS "${SOL2_SINGLE_INCLUDE_DIRS}")
|
||||
+ set(SOL2_LIBRARIES_SINGLE sol2_single)
|
||||
+endif()
|
Loading…
x
Reference in New Issue
Block a user