[109495] users/devans/GNOME-3/stable/dports/gnome

devans at macports.org devans at macports.org
Fri Aug 16 13:39:49 PDT 2013


Revision: 109495
          https://trac.macports.org/changeset/109495
Author:   devans at macports.org
Date:     2013-08-16 13:39:49 -0700 (Fri, 16 Aug 2013)
Log Message:
-----------
devans/GNOME-3/stable/dports: new port gcr, a GNOME library for displaying security certificates and accessing key stores.

Added Paths:
-----------
    users/devans/GNOME-3/stable/dports/gnome/gcr/
    users/devans/GNOME-3/stable/dports/gnome/gcr/Portfile
    users/devans/GNOME-3/stable/dports/gnome/gcr/files/
    users/devans/GNOME-3/stable/dports/gnome/gcr/files/patch-egg-egg-armor.c.diff
    users/devans/GNOME-3/stable/dports/gnome/gcr/files/patch-egg-egg-asn1x.h.diff
    users/devans/GNOME-3/stable/dports/gnome/gcr/files/patch-ui-gcr-ui.pc.in.diff
    users/devans/GNOME-3/stable/dports/gnome/gcr/files/patch-ui-gcr.pc.in.diff

Added: users/devans/GNOME-3/stable/dports/gnome/gcr/Portfile
===================================================================
--- users/devans/GNOME-3/stable/dports/gnome/gcr/Portfile	                        (rev 0)
+++ users/devans/GNOME-3/stable/dports/gnome/gcr/Portfile	2013-08-16 20:39:49 UTC (rev 109495)
@@ -0,0 +1,58 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem      1.0
+
+name            gcr
+version         3.8.2
+license         LGPL-2
+set branch      [join [lrange [split ${version} .] 0 1] .]
+description     GCR is a library for displaying certificates, and crypto UI, accessing \
+                key stores.
+long_description \
+                ${description} \
+                It also provides the viewer for crypto files on the GNOME \
+                desktop and a library for accessing PKCS#11 modules like smart cards, in a \
+                (G)object oriented way.
+
+maintainers     devans openmaintainer
+categories      gnome security
+platforms       darwin
+homepage        http://live.gnome.org/GnomeKeyring
+master_sites    gnome:sources/${name}/${branch}/
+
+use_xz          yes
+
+checksums       rmd160  98d546a99c031beedbef665ffdb2fe648ceaa73c \
+                sha256  a1e615ce2cfd375f383bbdd289935a8e3e16901c3c6f032780847055e8bec2c1
+
+depends_build   port:pkgconfig \
+                port:intltool
+
+depends_lib     port:desktop-file-utils \
+                path:lib/pkgconfig/glib-2.0.pc:glib2 \
+                port:gtk3 \
+                port:gobject-introspection \
+                port:p11-kit \
+                port:libgcrypt \
+                port:gnupg
+
+patchfiles      patch-egg-egg-asn1x.h.diff \
+                patch-egg-egg-armor.c.diff \
+                patch-ui-gcr.pc.in.diff \
+                patch-ui-gcr-ui.pc.in.diff
+
+configure.args  --enable-introspection=yes \
+                --disable-schemas-compile \
+                --disable-update-mime \
+                --disable-update-icon-cache \
+                --disable-silent-rules
+            
+post-activate {
+    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
+    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
+    system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
+    system "${prefix}/bin/update-mime-database ${prefix}/share/mime"
+}
+
+livecheck.type  gnome


Property changes on: users/devans/GNOME-3/stable/dports/gnome/gcr/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: users/devans/GNOME-3/stable/dports/gnome/gcr/files/patch-egg-egg-armor.c.diff
===================================================================
--- users/devans/GNOME-3/stable/dports/gnome/gcr/files/patch-egg-egg-armor.c.diff	                        (rev 0)
+++ users/devans/GNOME-3/stable/dports/gnome/gcr/files/patch-egg-egg-armor.c.diff	2013-08-16 20:39:49 UTC (rev 109495)
@@ -0,0 +1,30 @@
+--- egg/egg-armor.c.orig	2013-08-15 13:10:37.000000000 -0700
++++ egg/egg-armor.c	2013-08-15 13:12:47.000000000 -0700
+@@ -60,6 +60,27 @@
+ #define ARMOR_PREF_END      "-----END "
+ #define ARMOR_PREF_END_L    9
+ 
++#ifdef __APPLE__
++/*
++ * Reverse memchr()
++ * Find the last occurrence of 'c' in the buffer 's' of size 'n'.
++ */
++static void *
++memrchr(const void *s, int c, size_t n)
++{
++        const unsigned char *cp;
++
++        if (n != 0) {
++                cp = (const unsigned char *)s + n;
++                do {
++                        if (*(--cp) == (unsigned char)c)
++                                return((void *)cp);
++                } while (--n != 0);
++        }
++        return(NULL);
++}
++#endif
++
+ static void
+ parse_header_lines (const gchar *hbeg,
+                     const gchar *hend,

Added: users/devans/GNOME-3/stable/dports/gnome/gcr/files/patch-egg-egg-asn1x.h.diff
===================================================================
--- users/devans/GNOME-3/stable/dports/gnome/gcr/files/patch-egg-egg-asn1x.h.diff	                        (rev 0)
+++ users/devans/GNOME-3/stable/dports/gnome/gcr/files/patch-egg-egg-asn1x.h.diff	2013-08-16 20:39:49 UTC (rev 109495)
@@ -0,0 +1,11 @@
+--- egg/egg-asn1x.h.orig	2013-08-15 13:26:41.000000000 -0700
++++ egg/egg-asn1x.h	2013-08-15 13:26:56.000000000 -0700
+@@ -68,7 +68,7 @@
+ 	EGG_ASN1X_GENERALIZED_TIME = 37,
+ } EggAsn1xType;
+ 
+-enum {
++static enum {
+ 	EGG_ASN1X_NO_STRICT = 0x01,
+ } EggAsn1xFlags;
+ 

Added: users/devans/GNOME-3/stable/dports/gnome/gcr/files/patch-ui-gcr-ui.pc.in.diff
===================================================================
--- users/devans/GNOME-3/stable/dports/gnome/gcr/files/patch-ui-gcr-ui.pc.in.diff	                        (rev 0)
+++ users/devans/GNOME-3/stable/dports/gnome/gcr/files/patch-ui-gcr-ui.pc.in.diff	2013-08-16 20:39:49 UTC (rev 109495)
@@ -0,0 +1,9 @@
+--- ui/gcr-ui.pc.in.orig	2013-08-15 15:37:58.000000000 -0700
++++ ui/gcr-ui.pc.in	2013-08-15 15:39:12.000000000 -0700
+@@ -11,5 +11,5 @@
+ Version: @VERSION@
+ Requires: glib-2.0 gobject-2.0 gio-2.0 gtk+-3.0 gcr-base- at GCR_MAJOR@ gck- at GCK_MAJOR@
+ Requires.private: p11-kit-1
+-Libs: -L${libdir} -lgcr- at GCR_MAJOR@
++Libs: -L${libdir} -lgcr-ui- at GCR_MAJOR@
+ Cflags: -I${includedir}/gcr- at GCR_MAJOR@

Added: users/devans/GNOME-3/stable/dports/gnome/gcr/files/patch-ui-gcr.pc.in.diff
===================================================================
--- users/devans/GNOME-3/stable/dports/gnome/gcr/files/patch-ui-gcr.pc.in.diff	                        (rev 0)
+++ users/devans/GNOME-3/stable/dports/gnome/gcr/files/patch-ui-gcr.pc.in.diff	2013-08-16 20:39:49 UTC (rev 109495)
@@ -0,0 +1,8 @@
+--- ui/gcr.pc.in.orig	2013-08-15 15:24:56.000000000 -0700
++++ ui/gcr.pc.in	2013-08-15 15:25:13.000000000 -0700
+@@ -9,4 +9,4 @@
+ Name: gcr- at GCR_MAJOR@
+ Description: GObject and GUI library for high level crypto parsing and display
+ Version: @VERSION@
+-Requires: gck- at GCK_MAJOR@ gcr-ui- at GCR_MAJOR@ gcr-base- at GCR_MAJOR@
++Requires: gcr-ui- at GCR_MAJOR@ gcr-base- at GCR_MAJOR@
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130816/d332d3bc/attachment.html>


More information about the macports-changes mailing list