vcpkg/ports/libjuice/portfile.cmake
crisboarna 04345f9fea
[libjuice] update version to 1.0.4 (#26631)
* feat(libjuice): update to 1.0.4

* feat(libjuice): update to 1.0.4 port

* feat(libjuice): update to 1.0.4 port 2

* feat(libjuice): update to 1.0.4 port 3

* feat(libjuice): update to 1.0.4 port 4

* feat(libjuice): update to 1.0.4 port 5
2022-09-02 10:36:57 -07:00

30 lines
890 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO paullouisageneau/libjuice
REF 06bbfe93ab344e95797220d89b55c7204c3ffa9d #v1.0.4
SHA512 9768942cc9a2938a70a159914eabd548a38afb525806b6967dd73288ec32f390ab42b9146586160f98955a26162d350277058bc69bf2c2a60fffa03da79684e2
HEAD_REF master
PATCHES
fix-for-vcpkg.patch
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
nettle USE_NETTLE
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
${FEATURE_OPTIONS}
-DNO_TESTS=ON
)
vcpkg_cmake_install()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_cmake_config_fixup(PACKAGE_NAME LibJuice CONFIG_PATH lib/cmake/LibJuice)
vcpkg_fixup_pkgconfig()
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)