From 69b4b1beae32f1cf5798625066005bbf340533f4 Mon Sep 17 00:00:00 2001 From: sebastia Date: Sun, 5 Nov 2017 21:49:09 +0000 Subject: [PATCH] import ruby-gpgme: Ruby-GPGME is a Ruby language binding of GPGME (GnuPG Made Easy). GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG easier for applications. It provides a High-Level Crypto API for encryption, decryption, signing, signature verification and key management. it's a requirement for the hiera-eyaml-gpg backend. Quite some help from and OK jeremy@ --- security/ruby-gpgme/Makefile | 23 +++++++++++ security/ruby-gpgme/distinfo | 2 + security/ruby-gpgme/patches/patch-_metadata | 17 ++++++++ security/ruby-gpgme/pkg/DESCR | 4 ++ security/ruby-gpgme/pkg/PLIST | 45 +++++++++++++++++++++ 5 files changed, 91 insertions(+) create mode 100644 security/ruby-gpgme/Makefile create mode 100644 security/ruby-gpgme/distinfo create mode 100644 security/ruby-gpgme/patches/patch-_metadata create mode 100644 security/ruby-gpgme/pkg/DESCR create mode 100644 security/ruby-gpgme/pkg/PLIST diff --git a/security/ruby-gpgme/Makefile b/security/ruby-gpgme/Makefile new file mode 100644 index 00000000000..9ed680ebec0 --- /dev/null +++ b/security/ruby-gpgme/Makefile @@ -0,0 +1,23 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2017/11/05 21:49:09 sebastia Exp $ + +COMMENT = Ruby language binding for gpgme + +DISTNAME = gpgme-2.0.14 +CATEGORIES = security + +HOMEPAGE = http://github.com/ueno/ruby-gpgme +MAINTAINER = Sebastian Reitenbach + +# LGPL-2.1+ +PERMIT_PACKAGE_CDROM = Yes + +MODULES = lang/ruby + +WANTLIB += assuan gpg-error gpgme + +LIB_DEPENDS += security/gpgme + +CONFIGURE_STYLE = ruby gem ext +CONFIGURE_ARGS += --use-system-libraries + +.include diff --git a/security/ruby-gpgme/distinfo b/security/ruby-gpgme/distinfo new file mode 100644 index 00000000000..3084f602acd --- /dev/null +++ b/security/ruby-gpgme/distinfo @@ -0,0 +1,2 @@ +SHA256 (gpgme-2.0.14.gem) = dzvoINcMKrnyLR8Qv1/esYv7gRSxu37MJxmufA/k0yM= +SIZE (gpgme-2.0.14.gem) = 2785280 diff --git a/security/ruby-gpgme/patches/patch-_metadata b/security/ruby-gpgme/patches/patch-_metadata new file mode 100644 index 00000000000..782329cc2a8 --- /dev/null +++ b/security/ruby-gpgme/patches/patch-_metadata @@ -0,0 +1,17 @@ +$OpenBSD: patch-_metadata,v 1.1.1.1 2017/11/05 21:49:09 sebastia Exp $ + +Switch mini-portile2 to a development depedency, it is only needed for +building, and not even needed there when using --use-system-libraries. + +Index: .metadata +--- .metadata.orig ++++ .metadata +@@ -18,7 +18,7 @@ dependencies: + - - "~>" + - !ruby/object:Gem::Version + version: '2.1' +- type: :runtime ++ type: :development + prerelease: false + version_requirements: !ruby/object:Gem::Requirement + requirements: diff --git a/security/ruby-gpgme/pkg/DESCR b/security/ruby-gpgme/pkg/DESCR new file mode 100644 index 00000000000..1e286ae2d06 --- /dev/null +++ b/security/ruby-gpgme/pkg/DESCR @@ -0,0 +1,4 @@ +Ruby-GPGME is a Ruby language binding of GPGME (GnuPG Made Easy). GnuPG +Made Easy (GPGME) is a library designed to make access to GnuPG easier +for applications. It provides a High-Level Crypto API for encryption, +decryption, signing, signature verification and key management. diff --git a/security/ruby-gpgme/pkg/PLIST b/security/ruby-gpgme/pkg/PLIST new file mode 100644 index 00000000000..d9c9a94ef9e --- /dev/null +++ b/security/ruby-gpgme/pkg/PLIST @@ -0,0 +1,45 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2017/11/05 21:49:09 sebastia Exp $ +${GEM_LIB}/cache/${DISTNAME}.gem +${GEM_LIB}/gems/${DISTNAME}/ +${GEM_LIB}/gems/${DISTNAME}/examples/ +${GEM_LIB}/gems/${DISTNAME}/examples/edit.rb +${GEM_LIB}/gems/${DISTNAME}/examples/genkey.rb +${GEM_LIB}/gems/${DISTNAME}/examples/keylist.rb +${GEM_LIB}/gems/${DISTNAME}/examples/roundtrip.rb +${GEM_LIB}/gems/${DISTNAME}/examples/sign.rb +${GEM_LIB}/gems/${DISTNAME}/examples/verify.rb +${GEM_LIB}/gems/${DISTNAME}/lib/ +${GEM_LIB}/gems/${DISTNAME}/lib/gpgme/ +${GEM_LIB}/gems/${DISTNAME}/lib/gpgme.rb +${GEM_LIB}/gems/${DISTNAME}/lib/gpgme/compat.rb +${GEM_LIB}/gems/${DISTNAME}/lib/gpgme/constants.rb +${GEM_LIB}/gems/${DISTNAME}/lib/gpgme/crypto.rb +${GEM_LIB}/gems/${DISTNAME}/lib/gpgme/ctx.rb +${GEM_LIB}/gems/${DISTNAME}/lib/gpgme/data.rb +${GEM_LIB}/gems/${DISTNAME}/lib/gpgme/engine.rb +${GEM_LIB}/gems/${DISTNAME}/lib/gpgme/error.rb +${GEM_LIB}/gems/${DISTNAME}/lib/gpgme/io_callbacks.rb +${GEM_LIB}/gems/${DISTNAME}/lib/gpgme/key.rb +${GEM_LIB}/gems/${DISTNAME}/lib/gpgme/key_common.rb +${GEM_LIB}/gems/${DISTNAME}/lib/gpgme/key_sig.rb +${GEM_LIB}/gems/${DISTNAME}/lib/gpgme/misc.rb +${GEM_LIB}/gems/${DISTNAME}/lib/gpgme/signature.rb +${GEM_LIB}/gems/${DISTNAME}/lib/gpgme/sub_key.rb +${GEM_LIB}/gems/${DISTNAME}/lib/gpgme/user_id.rb +${GEM_LIB}/gems/${DISTNAME}/lib/gpgme/version.rb +${GEM_LIB}/gems/${DISTNAME}/lib/gpgme_n.so +${GEM_LIB}/gems/${DISTNAME}/test/ +${GEM_LIB}/gems/${DISTNAME}/test/crypto_test.rb +${GEM_LIB}/gems/${DISTNAME}/test/ctx_test.rb +${GEM_LIB}/gems/${DISTNAME}/test/data_test.rb +${GEM_LIB}/gems/${DISTNAME}/test/files/ +${GEM_LIB}/gems/${DISTNAME}/test/files/testkey_pub.gpg +${GEM_LIB}/gems/${DISTNAME}/test/files/testkey_sec.gpg +${GEM_LIB}/gems/${DISTNAME}/test/gpgme_test.rb +${GEM_LIB}/gems/${DISTNAME}/test/key_test.rb +${GEM_LIB}/gems/${DISTNAME}/test/signature_test.rb +${GEM_LIB}/gems/${DISTNAME}/test/sub_key_test.rb +${GEM_LIB}/gems/${DISTNAME}/test/support/ +${GEM_LIB}/gems/${DISTNAME}/test/support/resources.rb +${GEM_LIB}/gems/${DISTNAME}/test/test_helper.rb +${GEM_LIB}/specifications/${DISTNAME}.gemspec