diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/attr | |
Diffstat (limited to 'vcpkg/ports/attr')
| -rw-r--r-- | vcpkg/ports/attr/portfile.cmake | 35 | ||||
| -rw-r--r-- | vcpkg/ports/attr/vcpkg.json | 23 |
2 files changed, 58 insertions, 0 deletions
diff --git a/vcpkg/ports/attr/portfile.cmake b/vcpkg/ports/attr/portfile.cmake new file mode 100644 index 0000000..393e64d --- /dev/null +++ b/vcpkg/ports/attr/portfile.cmake @@ -0,0 +1,35 @@ +vcpkg_download_distfile(ARCHIVE + URLS "https://download.savannah.nongnu.org/releases/attr/attr-${VERSION}.tar.xz" + "https://www.mirrorservice.org/sites/download.savannah.gnu.org/releases/attr/attr-${VERSION}.tar.xz" + FILENAME "attr-${VERSION}.tar.xz" + SHA512 f587ea544effb7cfed63b3027bf14baba2c2dbe3a9b6c0c45fc559f7e8cb477b3e9a4a826eae30f929409468c50d11f3e7dc6d2500f41e1af8662a7e96a30ef3 +) + +vcpkg_extract_source_archive( + SOURCE_PATH + 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/etc") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/doc/COPYING.LGPL") diff --git a/vcpkg/ports/attr/vcpkg.json b/vcpkg/ports/attr/vcpkg.json new file mode 100644 index 0000000..e21ee4a --- /dev/null +++ b/vcpkg/ports/attr/vcpkg.json @@ -0,0 +1,23 @@ +{ + "name": "attr", + "version-semver": "2.5.2", + "description": "Commands for Manipulating Filesystem Extended Attributes", + "homepage": "http://savannah.nongnu.org/projects/attr", + "license": "LGPL-2.1-or-later", + "supports": "linux", + "features": { + "nls": { + "description": "Enable native language support", + "dependencies": [ + { + "name": "gettext", + "host": true, + "features": [ + "tools" + ] + }, + "gettext-libintl" + ] + } + } +} |