-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* new port for libical * ports/libical/portfile.cmake - cleanup * [libical] implement fixes from pull request * [libical] update to 3.0.11, modernize port file * [libical] make rscale a default feature * [libical] update versions * [libical] don't make rscale deault for now, disable on static * [libical] update versions Co-authored-by: Allen Winter <[email protected]>
- Loading branch information
Showing
4 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
vcpkg_from_github( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
REPO libical/libical | ||
REF v3.0.11 | ||
SHA512 cdee86c50edc2373ab2024d7d4ae26dd4b9a728dbc13083472c4923c67f61ff3cef7d43edca762c6a11979d2040fc1576a033eaa23a19e58af8f14a7d67fc139 | ||
) | ||
|
||
vcpkg_find_acquire_program(PERL) | ||
get_filename_component(PERL_PATH ${PERL} DIRECTORY) | ||
vcpkg_add_to_path(${PERL_PATH}) | ||
|
||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS | ||
INVERTED_FEATURES | ||
"rscale" CMAKE_DISABLE_FIND_PACKAGE_ICU | ||
) | ||
|
||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") | ||
list(APPEND FEATURE_OPTIONS -DSTATIC_ONLY=ON) | ||
else() | ||
list(APPEND FEATURE_OPTIONS -DSHARED_ONLY=ON) | ||
endif() | ||
|
||
vcpkg_cmake_configure( | ||
SOURCE_PATH "${SOURCE_PATH}" | ||
OPTIONS | ||
-DCMAKE_DISABLE_FIND_PACKAGE_BDB=ON | ||
-DUSE_BUILTIN_TZDATA=ON | ||
-DICAL_GLIB=OFF | ||
-DICAL_BUILD_DOCS=OFF | ||
-DLIBICAL_BUILD_TESTING=OFF | ||
${FEATURE_OPTIONS} | ||
) | ||
|
||
vcpkg_cmake_install() | ||
vcpkg_copy_pdbs() | ||
vcpkg_cmake_config_fixup(PACKAGE_NAME LibIcal CONFIG_PATH CONFIG_PATH lib/cmake/LibIcal) | ||
|
||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") | ||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") | ||
|
||
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "libical", | ||
"version": "3.0.11", | ||
"description": "Reference implementation of the iCalendar data type and serialization format", | ||
"homepage": "https://github.com/libical/libical", | ||
"dependencies": [ | ||
{ | ||
"name": "vcpkg-cmake", | ||
"host": true | ||
}, | ||
{ | ||
"name": "vcpkg-cmake-config", | ||
"host": true | ||
} | ||
], | ||
"features": { | ||
"rscale": { | ||
"description": "Support for RSCALE element", | ||
"supports": "!static", | ||
"dependencies": [ | ||
"icu" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"versions": [ | ||
{ | ||
"git-tree": "f4ab3492c90b3d683702cacb90aaea839cfc3d8f", | ||
"version": "3.0.11", | ||
"port-version": 0 | ||
} | ||
] | ||
} |