aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/brigand
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/brigand')
-rw-r--r--vcpkg/ports/brigand/portfile.cmake20
-rw-r--r--vcpkg/ports/brigand/remove-tests.patch55
-rw-r--r--vcpkg/ports/brigand/vcpkg.json15
3 files changed, 90 insertions, 0 deletions
diff --git a/vcpkg/ports/brigand/portfile.cmake b/vcpkg/ports/brigand/portfile.cmake
new file mode 100644
index 0000000..1e50b92
--- /dev/null
+++ b/vcpkg/ports/brigand/portfile.cmake
@@ -0,0 +1,20 @@
+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
+ remove-tests.patch
+)
+
+vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
+vcpkg_cmake_install()
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/brigand/remove-tests.patch b/vcpkg/ports/brigand/remove-tests.patch
new file mode 100644
index 0000000..a50f4b0
--- /dev/null
+++ b/vcpkg/ports/brigand/remove-tests.patch
@@ -0,0 +1,55 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 13ea689..e723f85 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -24,11 +24,6 @@ else()
+ endif()
+
+ # Install pre-commit git hook
+-execute_process(COMMAND ${CMAKE_COMMAND} -E copy
+- ${PROJECT_SOURCE_DIR}/script/pre-commit
+- ${PROJECT_SOURCE_DIR}/.git/hooks
+- )
+-
+ set ( STANDALONE_GROUP
+ script/embed.py
+ )
+@@ -204,17 +199,6 @@ source_group(brigand\\sequences FILES ${SEQUENCES_GROUP})
+ source_group(brigand\\types FILES ${TYPES_GROUP})
+ source_group(placeholder FILES ${PLACEHOLDER_GROUP})
+
+-add_library(brigand
+- ${BRIGAND_GROUP}
+- ${ADAPTED_GROUP}
+- ${ALGORITHMS_GROUP}
+- ${ALGORITHMS_DETAIL_GROUP}
+- ${FUNCTIONS_GROUPS}
+- ${SEQUENCES_GROUP}
+- ${TYPES_GROUP}
+- ${PLACEHOLDER_GROUP}
+-)
+-
+ set(test_files
+ test/always.cpp
+ test/apply.cpp
+@@ -276,10 +260,6 @@ endif()
+
+ source_group(tests FILES ${test_files})
+
+-add_executable(brigand_test ${test_files})
+-
+-add_test(brigand brigand_test)
+-
+ configure_file(libbrigand.pc.in
+ libbrigand.pc
+ @ONLY
+diff --git a/libbrigand.pc.in b/libbrigand.pc.in
+index 2ed570e..218215b 100644
+--- a/libbrigand.pc.in
++++ b/libbrigand.pc.in
+@@ -6,5 +6,4 @@ Name: Brigand
+ Description: Light-weight, fully functional, instant-compile time C++ 11 meta-programming library
+ URL: https://github.com/edouarda/brigand
+ Version: 1.2.0
+-Libs:
+ Cflags: -I${includedir}
diff --git a/vcpkg/ports/brigand/vcpkg.json b/vcpkg/ports/brigand/vcpkg.json
new file mode 100644
index 0000000..a8f65f7
--- /dev/null
+++ b/vcpkg/ports/brigand/vcpkg.json
@@ -0,0 +1,15 @@
+{
+ "name": "brigand",
+ "version": "1.3.0",
+ "port-version": 3,
+ "description": "Brigand is a light-weight, fully functional, instant-compile time C++ 11 meta-programming library.",
+ "homepage": "https://github.com/edouarda/brigand",
+ "dependencies": [
+ "boost-fusion",
+ "boost-variant",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ]
+}