mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 22:01:37 +08:00
[sassc] Exclude dependency getopt (#40757)
This commit is contained in:
parent
36f13fd199
commit
5d0bbe89ea
@ -1,7 +1,9 @@
|
|||||||
|
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
|
||||||
|
|
||||||
vcpkg_from_github(
|
vcpkg_from_github(
|
||||||
OUT_SOURCE_PATH SOURCE_PATH
|
OUT_SOURCE_PATH SOURCE_PATH
|
||||||
REPO sass/sassc
|
REPO sass/sassc
|
||||||
REF 3.6.2
|
REF "${VERSION}"
|
||||||
SHA512 fff3995ce8608bdaed5f4f1352ae4f1f882de58663b932c598d6168df421e4dbf907ec0f8caebb1e56490a71ca11105726f291b475816dd53e705bc53121969f
|
SHA512 fff3995ce8608bdaed5f4f1352ae4f1f882de58663b932c598d6168df421e4dbf907ec0f8caebb1e56490a71ca11105726f291b475816dd53e705bc53121969f
|
||||||
HEAD_REF master
|
HEAD_REF master
|
||||||
PATCHES remove_compiler_flags.patch
|
PATCHES remove_compiler_flags.patch
|
||||||
@ -9,26 +11,23 @@ vcpkg_from_github(
|
|||||||
|
|
||||||
find_library(LIBSASS_DEBUG sass PATHS "${CURRENT_INSTALLED_DIR}/debug/lib/" NO_DEFAULT_PATH)
|
find_library(LIBSASS_DEBUG sass PATHS "${CURRENT_INSTALLED_DIR}/debug/lib/" NO_DEFAULT_PATH)
|
||||||
find_library(LIBSASS_RELEASE sass PATHS "${CURRENT_INSTALLED_DIR}/lib/" NO_DEFAULT_PATH)
|
find_library(LIBSASS_RELEASE sass PATHS "${CURRENT_INSTALLED_DIR}/lib/" NO_DEFAULT_PATH)
|
||||||
if(VCPKG_TARGET_IS_WINDOWS)
|
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
||||||
set(ENV{LIBS} "$ENV{LIBS} -lgetopt")
|
set(ENV{LIBS} "$ENV{LIBS} -lgetopt")
|
||||||
endif()
|
endif()
|
||||||
vcpkg_configure_make(
|
vcpkg_configure_make(
|
||||||
SOURCE_PATH "${SOURCE_PATH}"
|
SOURCE_PATH "${SOURCE_PATH}"
|
||||||
AUTOCONFIG
|
AUTOCONFIG
|
||||||
OPTIONS
|
OPTIONS
|
||||||
--with-libsass-include='${CURRENT_INSTALLED_DIR}/include'
|
"--with-libsass-include='${CURRENT_INSTALLED_DIR}/include'"
|
||||||
OPTIONS_DEBUG
|
OPTIONS_DEBUG
|
||||||
--with-libsass-lib='${LIBSASS_DEBUG}'
|
"--with-libsass-lib='${LIBSASS_DEBUG}'"
|
||||||
OPTIONS_RELEASE
|
OPTIONS_RELEASE
|
||||||
--with-libsass-lib='${LIBSASS_RELEASE}'
|
"--with-libsass-lib='${LIBSASS_RELEASE}'"
|
||||||
)
|
)
|
||||||
vcpkg_install_make(MAKEFILE GNUmakefile)
|
vcpkg_install_make(MAKEFILE GNUmakefile)
|
||||||
vcpkg_fixup_pkgconfig()
|
vcpkg_fixup_pkgconfig()
|
||||||
vcpkg_copy_pdbs()
|
vcpkg_copy_pdbs()
|
||||||
|
|
||||||
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin")
|
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin")
|
||||||
# Handle copyright
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
||||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
||||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
||||||
|
|
||||||
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
|
|
@ -1,10 +1,14 @@
|
|||||||
{
|
{
|
||||||
"name": "sassc",
|
"name": "sassc",
|
||||||
"version": "3.6.2",
|
"version": "3.6.2",
|
||||||
|
"port-version": 1,
|
||||||
"description": "SassC is a wrapper around libsass (http://github.com/sass/libsass) used to generate a useful command-line application that can be installed and packaged for several operating systems.",
|
"description": "SassC is a wrapper around libsass (http://github.com/sass/libsass) used to generate a useful command-line application that can be installed and packaged for several operating systems.",
|
||||||
"homepage": "https://github.com/sass/sassc",
|
"homepage": "https://github.com/sass/sassc",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
"getopt",
|
{
|
||||||
|
"name": "getopt",
|
||||||
|
"platform": "windows & !mingw"
|
||||||
|
},
|
||||||
"libsass"
|
"libsass"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -8010,7 +8010,7 @@
|
|||||||
},
|
},
|
||||||
"sassc": {
|
"sassc": {
|
||||||
"baseline": "3.6.2",
|
"baseline": "3.6.2",
|
||||||
"port-version": 0
|
"port-version": 1
|
||||||
},
|
},
|
||||||
"saucer": {
|
"saucer": {
|
||||||
"baseline": "2.3.0",
|
"baseline": "2.3.0",
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "937f959ed298caa217edd7352d5743b073ff27f7",
|
||||||
|
"version": "3.6.2",
|
||||||
|
"port-version": 1
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"git-tree": "ac068d38115fa4710289d76d3a02a1b6c2650785",
|
"git-tree": "ac068d38115fa4710289d76d3a02a1b6c2650785",
|
||||||
"version": "3.6.2",
|
"version": "3.6.2",
|
||||||
|
Loading…
Reference in New Issue
Block a user