ports/154640: [UPDATE] security/ruby-gpgme: Update to 1.0.8

Jason E. Hale bsdkaffee at gmail.com
Thu Feb 10 07:50:09 UTC 2011


>Number:         154640
>Category:       ports
>Synopsis:       [UPDATE] security/ruby-gpgme: Update to 1.0.8
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 10 07:50:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Jason E. Hale
>Release:        FreeBSD 8.1-RELEASE-p1 i386
>Organization:
none 
>Environment:
System: FreeBSD mocha.verizon.net 8.1-RELEASE-p1 FreeBSD 8.1-RELEASE-p1 #0: Wed Oct 6 21:42:52 EDT 2010 root at mocha.verizon.net:/usr/obj/usr/src/sys/MOCHA8 i386
Ruby 1.8.7.302
GPGME 1.3.0
	
>Description:
- Update security/ruby-gpgme to 1.0.8
- This uses the newest GPGME library instead of the ancient security/gpgme03
- Add LICENSE
- Update pkg-descr
	
>How-To-Repeat:
Use attached diff.

Removed patches:
files/patch-extconf.rb (used for old version of gpgme, no longer required)

Added patches:
files/patch-gpgme_n.c (gpgme >= 1.2.0 requires that gpgme_check_version() is called first)
	
>Fix:

	

--- 2011-02-08-ruby-gpgme.diff begins here ---
diff -ruN ruby-gpgme.orig/Makefile ruby-gpgme/Makefile
--- ruby-gpgme.orig/Makefile	2011-02-08 07:14:19.000000000 -0500
+++ ruby-gpgme/Makefile	2011-02-08 07:24:29.000000000 -0500
@@ -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 @@
 MAINTAINER=	ruby at 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 @@
 DOCS=		doc
 EXAMPLES=	examples/*
 
+LICENSE=	LGPL21
+LICENSE_FILE=	${WRKSRC}/COPYING.LESSER
+
 post-build:
 .if !defined(NOPORTDOCS)
 	cd ${BUILD_WRKSRC}; ${RUBY_RDOC} lib
diff -ruN ruby-gpgme.orig/distinfo ruby-gpgme/distinfo
--- ruby-gpgme.orig/distinfo	2011-02-08 07:14:19.000000000 -0500
+++ ruby-gpgme/distinfo	2011-02-08 07:16:19.000000000 -0500
@@ -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 -ruN ruby-gpgme.orig/files/patch-extconf.rb ruby-gpgme/files/patch-extconf.rb
--- ruby-gpgme.orig/files/patch-extconf.rb	2011-02-08 07:14:19.000000000 -0500
+++ ruby-gpgme/files/patch-extconf.rb	1969-12-31 19:00:00.000000000 -0500
@@ -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 -ruN ruby-gpgme.orig/files/patch-gpgme_n.c ruby-gpgme/files/patch-gpgme_n.c
--- ruby-gpgme.orig/files/patch-gpgme_n.c	2011-02-08 07:14:19.000000000 -0500
+++ ruby-gpgme/files/patch-gpgme_n.c	2011-02-08 07:14:34.000000000 -0500
@@ -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 -ruN ruby-gpgme.orig/pkg-descr ruby-gpgme/pkg-descr
--- ruby-gpgme.orig/pkg-descr	2011-02-08 07:14:19.000000000 -0500
+++ ruby-gpgme/pkg-descr	2011-02-08 07:14:34.000000000 -0500
@@ -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 -ruN ruby-gpgme.orig/pkg-plist ruby-gpgme/pkg-plist
--- ruby-gpgme.orig/pkg-plist	2011-02-08 07:14:19.000000000 -0500
+++ ruby-gpgme/pkg-plist	2011-02-08 07:14:34.000000000 -0500
@@ -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%%
+ at dirrm %%RUBY_SITELIBDIR%%/gpgme
--- 2011-02-08-ruby-gpgme.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list