aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>2019-08-02 10:29:18 -0700
committerPhil Christensen <philc@microsoft.com>2019-08-02 10:29:18 -0700
commit995ab878608e9e2f660e674da29e88ec25bd14aa (patch)
tree590ddc7cf5fa83010de50207428cd00c0d24d344
parent3fe2ec61d3089b8ec6d465f11d7a081c2a971e80 (diff)
downloadvcpkg-995ab878608e9e2f660e674da29e88ec25bd14aa.tar.gz
vcpkg-995ab878608e9e2f660e674da29e88ec25bd14aa.zip
[brigand] Add new port (#7518)
-rw-r--r--ports/brigand/CONTROL6
-rw-r--r--ports/brigand/fix-install-targets.patch14
-rw-r--r--ports/brigand/portfile.cmake29
3 files changed, 49 insertions, 0 deletions
diff --git a/ports/brigand/CONTROL b/ports/brigand/CONTROL
new file mode 100644
index 000000000..2fba63f77
--- /dev/null
+++ b/ports/brigand/CONTROL
@@ -0,0 +1,6 @@
+Source: brigand
+Version: 1.3.0
+Homepage: https://github.com/edouarda/brigand
+Description: Brigand is a light-weight, fully functional, instant-compile time C++ 11 meta-programming library.
+Build-Depends: boost
+
diff --git a/ports/brigand/fix-install-targets.patch b/ports/brigand/fix-install-targets.patch
new file mode 100644
index 000000000..248948ab1
--- /dev/null
+++ b/ports/brigand/fix-install-targets.patch
@@ -0,0 +1,14 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 13ea689..9d20700 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -292,3 +292,9 @@ install(DIRECTORY ${PROJECT_SOURCE_DIR}/brigand
+ install(FILES ${CMAKE_BINARY_DIR}/libbrigand.pc
+ DESTINATION lib/pkgconfig
+ )
++
++install(TARGETS brigand
++ RUNTIME DESTINATION bin
++ LIBRARY DESTINATION lib
++ ARCHIVE DESTINATION lib
++)
diff --git a/ports/brigand/portfile.cmake b/ports/brigand/portfile.cmake
new file mode 100644
index 000000000..c7c17907f
--- /dev/null
+++ b/ports/brigand/portfile.cmake
@@ -0,0 +1,29 @@
+include(vcpkg_common_functions)
+
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO edouarda/brigand
+ REF 1.3.0
+ SHA512 538d288d84265cc9a4563f1e84d55a174db461ffd1e4f510bfdaef04af9fbf8e7ca79817f9118378bf7d58d578699aae3072bbffa3fd727b2d93ee783337aea6
+ HEAD_REF master
+ PATCHES fix-install-targets.patch
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/pkgconfig)
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
+
+# Handle copyright
+file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
+