aboutsummaryrefslogtreecommitdiff
path: root/ports/libassuan
diff options
context:
space:
mode:
authorDawid Wróbel <me@dawidwrobel.com>2020-12-23 02:19:18 -0500
committerGitHub <noreply@github.com>2020-12-22 23:19:18 -0800
commit4cf45e80e3eab2eece9b89e11015920da3a50580 (patch)
tree57065b177c56fe8dec6335dff68354b5357c1b9b /ports/libassuan
parent229f537c9414da5a577484b467a1f7ab0f4d8f34 (diff)
downloadvcpkg-4cf45e80e3eab2eece9b89e11015920da3a50580.tar.gz
vcpkg-4cf45e80e3eab2eece9b89e11015920da3a50580.zip
[many ports] add GnuPG libraries (#13950)
Diffstat (limited to 'ports/libassuan')
-rw-r--r--ports/libassuan/CONTROL6
-rw-r--r--ports/libassuan/fix-pkgconfig.patch11
-rw-r--r--ports/libassuan/portfile.cmake27
3 files changed, 44 insertions, 0 deletions
diff --git a/ports/libassuan/CONTROL b/ports/libassuan/CONTROL
new file mode 100644
index 000000000..e6bb54b5f
--- /dev/null
+++ b/ports/libassuan/CONTROL
@@ -0,0 +1,6 @@
+Source: libassuan
+Version: 2.5.3
+Homepage: https://gnupg.org/software/libassuan/index.html
+Description: A library implementing the so-called Assuan protocol
+Build-Depends: libgpg-error
+Supports: !windows
diff --git a/ports/libassuan/fix-pkgconfig.patch b/ports/libassuan/fix-pkgconfig.patch
new file mode 100644
index 000000000..8b8672e03
--- /dev/null
+++ b/ports/libassuan/fix-pkgconfig.patch
@@ -0,0 +1,11 @@
+diff --git a/src/libassuan.pc.in b/src/libassuan.pc.in
+index 4e952d7..83ba872 100644
+--- a/src/libassuan.pc.in
++++ b/src/libassuan.pc.in
+@@ -10,5 +10,5 @@ Description: IPC library for the GnuPG components
+ Requires: gpg-error
+ Version: @PACKAGE_VERSION@
+ Cflags: @LIBASSUAN_CONFIG_CFLAGS@
+-Libs: @LIBASSUAN_CONFIG_LIBS@
++Libs: -L${libdir} @LIBASSUAN_CONFIG_LIBS@
+ URL: https://www.gnupg.org/related_software/libassuan/index.html
diff --git a/ports/libassuan/portfile.cmake b/ports/libassuan/portfile.cmake
new file mode 100644
index 000000000..50f26d494
--- /dev/null
+++ b/ports/libassuan/portfile.cmake
@@ -0,0 +1,27 @@
+vcpkg_fail_port_install(MESSAGE "${PORT} currently only supports unix platform" ON_TARGET "Windows")
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO gpg/libassuan
+ REF libassuan-2.5.3
+ SHA512 5ec896eca6d9d7bec83aa400c8e2dc6f2b09c013050efb2125e2f2a4bd00f179723254483637ca4b7bc30bba951fc985e7ba7db98081606bb106caa7a2622dbe
+ HEAD_REF master
+ PATCHES
+ fix-pkgconfig.patch
+)
+
+vcpkg_configure_make(
+ AUTOCONFIG
+ SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS
+ --disable-doc
+ --disable-silent-rules
+ --with-libgpg-error-prefix=${CURRENT_INSTALLED_DIR}/tools/libgpg-error
+)
+
+vcpkg_install_make()
+vcpkg_fixup_pkgconfig()
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
+file(INSTALL ${SOURCE_PATH}/COPYING.LIB DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)