Skip to content

Commit c3cfb02

Browse files
authored
[libusbmuxd berkeleydb cppcms activemq-cpp] Add Supports and failure message (#11589)
* [libusbmuxd berkeleydb cppcms] Add Supports and failure message * Add Supports for activemq-cpp
1 parent 6a40038 commit c3cfb02

File tree

8 files changed

+18
-28
lines changed

8 files changed

+18
-28
lines changed

ports/activemq-cpp/CONTROL

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Source: activemq-cpp
2-
Version: 3.9.5-1
2+
Version: 3.9.5-2
33
Build-Depends: apr
44
Description: Apache ActiveMQ is the most popular and powerful open source messaging and Integration Patterns server.
5-
Supports: !uwp
5+
Supports: !(uwp|linux|osx)

ports/activemq-cpp/portfile.cmake

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
include(vcpkg_common_functions)
2-
3-
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
4-
message(FATAL_ERROR "${PORT} does not currently support UWP")
5-
endif()
1+
vcpkg_fail_port_install( ON_TARGET "uwp" "linux" "osx")
62

73
set(VERSION 3.9.5)
84

@@ -42,10 +38,7 @@ vcpkg_build_msbuild(
4238

4339
vcpkg_copy_pdbs()
4440

45-
# Handle copyright
46-
file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/activemq-cpp)
47-
file(RENAME ${CURRENT_PACKAGES_DIR}/share/activemq-cpp/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/activemq-cpp/copyright)
48-
41+
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
4942

5043
file(
5144
COPY

ports/berkeleydb/CONTROL

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Source: berkeleydb
2-
Version: 4.8.30-3
2+
Version: 4.8.30-4
33
Homepage: https://download.oracle.com/
44
Description: BDB - A high-performance embedded database for key/value data.
5-
Supports: !uwp
5+
Supports: !(uwp|linux|osx)

ports/berkeleydb/portfile.cmake

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
2-
message(FATAL_ERROR "${PORT} does not currently support UWP")
3-
endif()
4-
5-
include(vcpkg_common_functions)
1+
vcpkg_fail_port_install( ON_TARGET "uwp" "linux" "osx")
62

73
vcpkg_download_distfile(ARCHIVE
84
URLS "http://download.oracle.com/berkeley-db/db-4.8.30.NC.zip"
@@ -25,5 +21,4 @@ vcpkg_configure_cmake(
2521

2622
vcpkg_install_cmake()
2723

28-
# Handle copyright
29-
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/berkeleydb RENAME copyright)
24+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)

ports/cppcms/CONTROL

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Source: cppcms
2-
Version: 1.2.1
2+
Version: 1.2.1-1
33
Homepage: https://github.com/artyom-beilis/cppcms
44
Description: CppCMS is a Free High Performance Web Development Framework (not a CMS) aimed at Rapid Web Application Development
55
Build-Depends: icu, pcre, openssl, zlib
6+
Supports: !(linux|osx)

ports/cppcms/portfile.cmake

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
include(vcpkg_common_functions)
1+
vcpkg_fail_port_install( ON_TARGET "linux" "osx")
22

33
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY ONLY_DYNAMIC_CRT)
44

55
vcpkg_from_github(
66
OUT_SOURCE_PATH SOURCE_PATH
77
REPO artyom-beilis/cppcms
88
REF b72b19915794d1af63c9a9e9bea58e20a4ad93d4
9-
SHA512 e99d34d14fbde22be725ac2c0bec069fb584e45c66767af75efaf454ca61a7a5e57434bf86109f910884c72202b8cf98fe16505e7d3d30d9218abd4d8b27d5df
9+
SHA512 e99d34d14fbde22be725ac2c0bec069fb584e45c66767af75efaf454ca61a7a5e57434bf86109f910884c72202b8cf98fe16505e7d3d30d9218abd4d8b27d5df
1010
)
1111

1212
vcpkg_find_acquire_program(PYTHON2)
@@ -15,7 +15,7 @@ get_filename_component(PYTHON2_DIR ${PYTHON2} DIRECTORY)
1515
vcpkg_configure_cmake(
1616
SOURCE_PATH ${SOURCE_PATH}
1717
PREFER_NINJA
18-
OPTIONS -DCMAKE_PROGRAM_PATH=${PYTHON2_DIR} -DUSE_WINDOWS6_API=ON
18+
OPTIONS -DCMAKE_PROGRAM_PATH=${PYTHON2_DIR} -DUSE_WINDOWS6_API=ON
1919
)
2020

2121
vcpkg_install_cmake()
@@ -26,6 +26,4 @@ file(REMOVE ${EXE_DEBUG_FILES})
2626
file(GLOB EXE_FILES ${CURRENT_PACKAGES_DIR}/bin/*.exe)
2727
file(REMOVE ${EXE_FILES})
2828

29-
# Handle copyright
30-
file(COPY ${SOURCE_PATH}/MIT.TXT DESTINATION ${CURRENT_PACKAGES_DIR}/share/cppcms)
31-
file(RENAME ${CURRENT_PACKAGES_DIR}/share/cppcms/MIT.TXT ${CURRENT_PACKAGES_DIR}/share/cppcms/copyright)
29+
file(INSTALL ${SOURCE_PATH}/MIT.TXT DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)

ports/libusbmuxd/CONTROL

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Source: libusbmuxd
2-
Version: 1.2.185
2+
Version: 1.2.185-1
33
Description: A client library to multiplex connections from and to iOS devices
44
Build-Depends: libplist
5+
Supports: !(uwp|linux|osx)

ports/libusbmuxd/portfile.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
vcpkg_fail_port_install( ON_TARGET "uwp" "linux" "osx")
2+
13
vcpkg_from_github(
24
OUT_SOURCE_PATH SOURCE_PATH
35
REPO libimobiledevice-win32/libusbmuxd

0 commit comments

Comments
 (0)