aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
Diffstat (limited to 'security')
-rw-r--r--security/ruby-gpgme/Makefile11
-rw-r--r--security/ruby-gpgme/distinfo5
-rw-r--r--security/ruby-gpgme/files/patch-extconf.rb9
-rw-r--r--security/ruby-gpgme/files/patch-gpgme_n.c20
-rw-r--r--security/ruby-gpgme/pkg-descr6
-rw-r--r--security/ruby-gpgme/pkg-plist5
6 files changed, 28 insertions, 28 deletions
diff --git a/security/ruby-gpgme/Makefile b/security/ruby-gpgme/Makefile
index cb67e3928a73..0dc505296520 100644
--- a/security/ruby-gpgme/Makefile
+++ b/security/ruby-gpgme/Makefile
@@ -6,10 +6,10 @@
#
PORTNAME= gpgme
-PORTVERSION= 0.2
-PORTREVISION= 1
+PORTVERSION= 1.0.8
CATEGORIES= security ruby
-MASTER_SITES= http://deisui.org/~ueno/ruby/ruby-gpgme/
+MASTER_SITES= ${MASTER_SITE_RUBYFORGE}
+MASTER_SITE_SUBDIR= ruby-gpgme
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
DIST_SUBDIR= ruby
@@ -17,7 +17,7 @@ DIST_SUBDIR= ruby
MAINTAINER= ruby@FreeBSD.org
COMMENT= A Ruby interface to GnuPG Made Easy (GPGME)
-LIB_DEPENDS= gpgme03.9:${PORTSDIR}/security/gpgme03
+LIB_DEPENDS= gpgme.18:${PORTSDIR}/security/gpgme
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
@@ -28,6 +28,9 @@ INSTALL_TARGET= site-install
DOCS= doc
EXAMPLES= examples/*
+LICENSE= LGPL21
+LICENSE_FILE= ${WRKSRC}/COPYING.LESSER
+
post-build:
.if !defined(NOPORTDOCS)
cd ${BUILD_WRKSRC}; ${RUBY_RDOC} lib
diff --git a/security/ruby-gpgme/distinfo b/security/ruby-gpgme/distinfo
index 9393123663de..dde48ed93caf 100644
--- a/security/ruby-gpgme/distinfo
+++ b/security/ruby-gpgme/distinfo
@@ -1,3 +1,2 @@
-MD5 (ruby/ruby-gpgme-0.2.tar.gz) = 93c2765ef4c74329524ad781163e9f3e
-SHA256 (ruby/ruby-gpgme-0.2.tar.gz) = a73cea0b7c1b3859a6ef6526e0dbcd9a82b0853c5c9303858407fbd62dc7ed5b
-SIZE (ruby/ruby-gpgme-0.2.tar.gz) = 18518
+SHA256 (ruby/ruby-gpgme-1.0.8.tar.gz) = d67532d8cfc469810af4a412c91b90141d2c9871e32fd3fb321e48ca1262fe10
+SIZE (ruby/ruby-gpgme-1.0.8.tar.gz) = 43676
diff --git a/security/ruby-gpgme/files/patch-extconf.rb b/security/ruby-gpgme/files/patch-extconf.rb
deleted file mode 100644
index cb44912b92f3..000000000000
--- a/security/ruby-gpgme/files/patch-extconf.rb
+++ /dev/null
@@ -1,9 +0,0 @@
---- extconf.rb.orig Mon Dec 20 21:35:54 2004
-+++ extconf.rb Mon Dec 20 21:36:21 2004
-@@ -1,5 +1,5 @@
- require 'mkmf'
-
--if have_library('gpgme', 'gpgme_check_version') and have_header('gpgme.h')
-+if have_library('gpgme03', 'gpgme_check_version') and have_header('gpgme03/gpgme.h')
- create_makefile ('gpgme_n')
- end
diff --git a/security/ruby-gpgme/files/patch-gpgme_n.c b/security/ruby-gpgme/files/patch-gpgme_n.c
index 43b3f82a055e..635ebd2479dc 100644
--- a/security/ruby-gpgme/files/patch-gpgme_n.c
+++ b/security/ruby-gpgme/files/patch-gpgme_n.c
@@ -1,11 +1,11 @@
---- gpgme_n.c.orig Mon Dec 20 21:38:14 2004
-+++ gpgme_n.c Mon Sep 29 21:35:59 2003
-@@ -34,7 +34,7 @@
- this purpose. */
+--- ./gpgme_n.c.orig 2009-09-16 00:00:05.000000000 -0400
++++ ./gpgme_n.c 2010-10-13 08:09:19.000000000 -0400
+@@ -411,6 +411,8 @@
+ static VALUE
+ rb_s_gpgme_new (VALUE dummy, VALUE rctx)
+ {
++ gpgme_check_version(NULL);
++
+ gpgme_ctx_t ctx;
+ gpgme_error_t err = gpgme_new (&ctx);
- #include "ruby.h"
--#include "gpgme.h"
-+#include "gpgme03/gpgme.h"
-
- /* StringValuePtr is not available in 1.6. */
- #ifndef StringValuePtr
diff --git a/security/ruby-gpgme/pkg-descr b/security/ruby-gpgme/pkg-descr
index 9936d07af44c..3883d831eae0 100644
--- a/security/ruby-gpgme/pkg-descr
+++ b/security/ruby-gpgme/pkg-descr
@@ -1,12 +1,14 @@
Ruby-GPGME is a ruby interface to GnuPG Made Easy (GPGME).
-- Provides high-level and low-level API.
+- Provides three levels of API.
- The low-level API allows direct access to about 94% of C functions
provided by GPGME.
+- The mid-level API looks object-oriented (or rubyish).
+
- The high-level API provides a convenient class-based interface to
frequently used GPGME functions.
-WWW: http://deisui.org/~ueno/ruby/ruby-gpgme/index.html.en
+WWW: http://ruby-gpgme.rubyforge.org/
Author: Daiki Ueno
diff --git a/security/ruby-gpgme/pkg-plist b/security/ruby-gpgme/pkg-plist
index 42d904200662..230e6511ea15 100644
--- a/security/ruby-gpgme/pkg-plist
+++ b/security/ruby-gpgme/pkg-plist
@@ -1,7 +1,12 @@
%%RUBY_SITEARCHLIBDIR%%/gpgme_n.so
%%RUBY_SITELIBDIR%%/gpgme.rb
+%%RUBY_SITELIBDIR%%/gpgme/compat.rb
+%%RUBY_SITELIBDIR%%/gpgme/constants.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/edit.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/genkey.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/keylist.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/roundtrip.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/sign.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/verify.rb
%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%
+@dirrm %%RUBY_SITELIBDIR%%/gpgme