aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/acl
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/acl')
-rw-r--r--vcpkg/ports/acl/portfile.cmake35
-rw-r--r--vcpkg/ports/acl/vcpkg.json26
2 files changed, 61 insertions, 0 deletions
diff --git a/vcpkg/ports/acl/portfile.cmake b/vcpkg/ports/acl/portfile.cmake
new file mode 100644
index 0000000..4e4e102
--- /dev/null
+++ b/vcpkg/ports/acl/portfile.cmake
@@ -0,0 +1,35 @@
+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 c2d061dbfd28c00cecbc1ae614d67f3138202bf4d39b383f2df4c6a8b10b830f33acec620fb211f268478737dde4037d338a5823af445253cb088c48a135099b
+)
+
+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/share")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/doc/COPYING.LGPL")
diff --git a/vcpkg/ports/acl/vcpkg.json b/vcpkg/ports/acl/vcpkg.json
new file mode 100644
index 0000000..591f32b
--- /dev/null
+++ b/vcpkg/ports/acl/vcpkg.json
@@ -0,0 +1,26 @@
+{
+ "name": "acl",
+ "version-semver": "2.3.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"
+ ]
+ }
+ }
+}