aboutsummaryrefslogtreecommitdiff
path: root/ports/libmodman
diff options
context:
space:
mode:
authorYuval Gross <52262536+yuvalg-MSFT@users.noreply.github.com>2019-12-03 11:18:49 -0800
committerVictor Romero <romerosanchezv@gmail.com>2019-12-03 11:18:49 -0800
commite9267ac7c40d990c8368861189031bcd5eb77189 (patch)
treec8f3316fddb74b8d01ae36fd0bae3a99b271bc2d /ports/libmodman
parent227d05535901da3372dac2f5fdf4af42cd4e0477 (diff)
downloadvcpkg-e9267ac7c40d990c8368861189031bcd5eb77189.tar.gz
vcpkg-e9267ac7c40d990c8368861189031bcd5eb77189.zip
[proxywrapper] Add new port (#8916)
* adding proxywrapper package * resolving review comments * restrict Linux only * [proxywrapper] Only static library * [libmodman] Move building of tests to a non-default feature * [libproxy] Move tests to a non-default feature * [libproxy] Add features for language bindings * [proxywrapper] Require C++ 11 standard
Diffstat (limited to 'ports/libmodman')
-rw-r--r--ports/libmodman/CONTROL8
-rw-r--r--ports/libmodman/portfile.cmake7
2 files changed, 12 insertions, 3 deletions
diff --git a/ports/libmodman/CONTROL b/ports/libmodman/CONTROL
index 70cb9d811..c1fd4cd49 100644
--- a/ports/libmodman/CONTROL
+++ b/ports/libmodman/CONTROL
@@ -1,4 +1,8 @@
Source: libmodman
-Version: 2.0.1
+Version: 2.0.1-1
Homepage: https://code.google.com/p/libmodman
-Description: a simple library for managing modules \ No newline at end of file
+Description: a simple library for managing modules
+
+Feature: tests
+Description: Build libmodman tests
+Build-Depends: zlib
diff --git a/ports/libmodman/portfile.cmake b/ports/libmodman/portfile.cmake
index b2f32cb0c..35bedf907 100644
--- a/ports/libmodman/portfile.cmake
+++ b/ports/libmodman/portfile.cmake
@@ -2,7 +2,7 @@ vcpkg_fail_port_install(ON_TARGET "UWP")
# Enable static build in UNIX
if (VCPKG_TARGET_IS_WINDOWS)
- vcpkg_fail_port_install(ON_LIBRARY_LINKAGE "static")
+ vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
endif()
set(LIBMODMAN_VER 2.0.1)
@@ -13,6 +13,10 @@ vcpkg_download_distfile(ARCHIVE
SHA512 1fecc0fa3637c4aa86d114f5bc991605172d39183fa0f39d8c7858ef5d0d894152025bd426de4dd017a41372d800bf73f53b2328c57b77352a508e12792729fa
)
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ tests BUILD_TESTING
+)
+
vcpkg_extract_source_archive_ex(
ARCHIVE ${ARCHIVE}
OUT_SOURCE_PATH SOURCE_PATH
@@ -24,6 +28,7 @@ vcpkg_extract_source_archive_ex(
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
+ OPTIONS ${FEATURE_OPTIONS}
)
vcpkg_install_cmake()