aboutsummaryrefslogtreecommitdiff
path: root/ports/oniguruma
diff options
context:
space:
mode:
authormyd7349 <myd7349@gmail.com>2019-06-29 01:17:39 +0800
committerCurtis J Bezault <curtbezault@gmail.com>2019-06-28 10:17:39 -0700
commitb4675fd65a5baebe93d0e60e082ae43013ed246f (patch)
tree33a18d50181b38e0805c4ad7f032d32d5e6b9ae5 /ports/oniguruma
parent5b6b66512b84267c1b93ef577dea3a811a255c82 (diff)
downloadvcpkg-b4675fd65a5baebe93d0e60e082ae43013ed246f.tar.gz
vcpkg-b4675fd65a5baebe93d0e60e082ae43013ed246f.zip
[vcpkg] Add vcpkg_check_features (#6958)
* [vcpkg] Add vcpkg_check_feature, vcpkg_check_features * [vcpkg] Remove vcpkg_check_feature * [oniguruma,xtensor] Use vcpkg_check_features
Diffstat (limited to 'ports/oniguruma')
-rw-r--r--ports/oniguruma/CONTROL3
-rw-r--r--ports/oniguruma/portfile.cmake6
2 files changed, 3 insertions, 6 deletions
diff --git a/ports/oniguruma/CONTROL b/ports/oniguruma/CONTROL
index 1780b4505..7eb4e6173 100644
--- a/ports/oniguruma/CONTROL
+++ b/ports/oniguruma/CONTROL
@@ -1,6 +1,7 @@
Source: oniguruma
-Version: 6.9.2
+Version: 6.9.2-1
Description: Modern and flexible regular expressions library
+Homepage: https://github.com/kkos/oniguruma
Feature: non-posix
Description: Disable POSIX API
diff --git a/ports/oniguruma/portfile.cmake b/ports/oniguruma/portfile.cmake
index 586bfbe07..28f489926 100644
--- a/ports/oniguruma/portfile.cmake
+++ b/ports/oniguruma/portfile.cmake
@@ -8,11 +8,7 @@ vcpkg_from_github(
HEAD_REF master
)
-if("non-posix" IN_LIST FEATURES)
- set(ENABLE_POSIX_API OFF)
-else()
- set(ENABLE_POSIX_API ON)
-endif()
+vcpkg_check_features(non-posix ENABLE_POSIX_API)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}