mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 06:43:11 +08:00
[acl] Add feature nls for gettext dependency (#36269)
This commit is contained in:
parent
ed831b1e4a
commit
2b66d082f4
@ -1,7 +1,7 @@
|
||||
vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "http://download.savannah.nongnu.org/releases/acl/acl-${VERSION}.tar.xz"
|
||||
"https://www.mirrorservice.org/sites/download.savannah.gnu.org/releases/acl/acl-${VERSION}.tar.xz"
|
||||
|
||||
FILENAME "acl-${VERSION}.tar.xz"
|
||||
SHA512 7d02f05d17305f8587ab485395b00c7fdb8e44c1906d0d04b70a43a3020803e8b2b8c707abb6147f794867dfa87bd51769c2d3e11a3db55ecbd2006a6e6231dc
|
||||
)
|
||||
@ -11,15 +11,25 @@ vcpkg_extract_source_archive(
|
||||
ARCHIVE ${ARCHIVE}
|
||||
)
|
||||
|
||||
vcpkg_list(SET options)
|
||||
if("nls" IN_LIST FEATURES)
|
||||
vcpkg_list(APPEND options "--enable-nls")
|
||||
vcpkg_add_to_path(PREPEND "${CURRENT_HOST_INSTALLED_DIR}/tools/gettext/bin")
|
||||
else()
|
||||
set(ENV{AUTOPOINT} true) # true, the program
|
||||
vcpkg_list(APPEND options "--disable-nls")
|
||||
endif()
|
||||
|
||||
vcpkg_configure_make(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
AUTOCONFIG
|
||||
OPTIONS
|
||||
${options}
|
||||
)
|
||||
|
||||
vcpkg_install_make()
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/doc/COPYING.LGPL")
|
||||
|
@ -1,12 +1,27 @@
|
||||
{
|
||||
"name": "acl",
|
||||
"version-semver": "2.3.1",
|
||||
"port-version": 1,
|
||||
"port-version": 2,
|
||||
"description": "Commands for Manipulating POSIX Access Control Lists",
|
||||
"homepage": "https://savannah.nongnu.org/projects/acl",
|
||||
"license": "LGPL-2.1-or-later",
|
||||
"supports": "linux",
|
||||
"dependencies": [
|
||||
"attr"
|
||||
]
|
||||
],
|
||||
"features": {
|
||||
"nls": {
|
||||
"description": "Enable native language support",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "gettext",
|
||||
"host": true,
|
||||
"features": [
|
||||
"tools"
|
||||
]
|
||||
},
|
||||
"gettext-libintl"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "2d8c536397cb3a1f7c8979db3df870ae53a439cf",
|
||||
"version-semver": "2.3.1",
|
||||
"port-version": 2
|
||||
},
|
||||
{
|
||||
"git-tree": "4c930bf34406e76819ad7b83ff26536e64ad09f0",
|
||||
"version-semver": "2.3.1",
|
||||
|
@ -30,7 +30,7 @@
|
||||
},
|
||||
"acl": {
|
||||
"baseline": "2.3.1",
|
||||
"port-version": 1
|
||||
"port-version": 2
|
||||
},
|
||||
"activemq-cpp": {
|
||||
"baseline": "3.9.5",
|
||||
|
Loading…
Reference in New Issue
Block a user