ports/contrib (3.3): gpgme-python: initial import
commit 33577ba4db50602476a79b82cb8a849438785534 Author: Danny Rawlins <monster.romster@gmail.com> Date: Sat Dec 17 23:40:28 2016 +1100 gpgme-python: initial import diff --git a/gpgme-python/.footprint b/gpgme-python/.footprint new file mode 100644 index 0000000..0f7a006 --- /dev/null +++ b/gpgme-python/.footprint @@ -0,0 +1,67 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +drwxr-xr-x root/root usr/etc/ +drwxr-xr-x root/root usr/etc/gpgme/ +-rw-r--r-- root/root usr/etc/gpgme/python +drwxr-xr-x root/root usr/include/ +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/python2.7/ +drwxr-xr-x root/root usr/lib/python2.7/site-packages/ +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg-1.8.0-py2.7.egg-info +drwxr-xr-x root/root usr/lib/python2.7/site-packages/gpg/ +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/__init__.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/__init__.pyc +-rwxr-xr-x root/root usr/lib/python2.7/site-packages/gpg/_gpgme.so +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/callbacks.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/callbacks.pyc +drwxr-xr-x root/root usr/lib/python2.7/site-packages/gpg/constants/ +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/__init__.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/__init__.pyc +drwxr-xr-x root/root usr/lib/python2.7/site-packages/gpg/constants/data/ +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/data/__init__.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/data/__init__.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/data/encoding.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/data/encoding.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/event.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/event.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/import.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/import.pyc +drwxr-xr-x root/root usr/lib/python2.7/site-packages/gpg/constants/keylist/ +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/keylist/__init__.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/keylist/__init__.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/keylist/mode.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/keylist/mode.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/md.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/md.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/pk.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/pk.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/protocol.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/protocol.pyc +drwxr-xr-x root/root usr/lib/python2.7/site-packages/gpg/constants/sig/ +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/sig/__init__.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/sig/__init__.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/sig/mode.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/sig/mode.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/sig/notation.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/sig/notation.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/sigsum.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/sigsum.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/status.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/status.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/validity.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/constants/validity.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/core.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/core.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/errors.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/errors.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/gpgme.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/gpgme.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/install_files.txt +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/results.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/results.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/util.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/util.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/version.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/gpg/version.pyc +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/aclocal/ diff --git a/gpgme-python/.md5sum b/gpgme-python/.md5sum new file mode 100644 index 0000000..8890335 --- /dev/null +++ b/gpgme-python/.md5sum @@ -0,0 +1,3 @@ +34078cb2ce4b6e9e89c3cd444556826e gpgme-1.1.8-et_EE.patch +e7f9eec6d2dde8d9cf03cd8596a1f6aa gpgme-1.8.0-cmake.patch +722a4153904b9b5dc15485a22d29263b gpgme-1.8.0.tar.bz2 diff --git a/gpgme-python/Pkgfile b/gpgme-python/Pkgfile new file mode 100644 index 0000000..61ecde7 --- /dev/null +++ b/gpgme-python/Pkgfile @@ -0,0 +1,37 @@ +# Description: gpgme bindings for python. +# URL: http://www.gnupg.org/gpgme.html +# Maintainer: Danny Rawlins, crux at romster dot me +# Packager: Danny Rawlins, crux at romster dot me +# Depends on: gpgme swig python + +name=gpgme-python +version=1.8.0 +release=1 +source=(https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-$version.tar.bz2 + gpgme-1.1.8-et_EE.patch + gpgme-1.8.0-cmake.patch) + +build() { + cd gpgme-$version + + patch -p1 -i $SRC/gpgme-1.1.8-et_EE.patch + patch -p1 -i $SRC/gpgme-1.8.0-cmake.patch + + ./configure \ + --prefix=/usr \ + --enable-languages='python2' + + make + make DESTDIR=$PKG install + + install -d $PKG/usr/etc/gpgme + echo python > $PKG/usr/etc/gpgme/python + + rm \ + $PKG/usr/bin/{gpgme-config,gpgme-tool} \ + $PKG/usr/include/gpgme.h \ + $PKG/usr/lib/libgpgme.* \ + $PKG/usr/share/aclocal/gpgme.m4 + + rm -r $PKG/usr/share/info +} diff --git a/gpgme-python/gpgme-1.1.8-et_EE.patch b/gpgme-python/gpgme-1.1.8-et_EE.patch new file mode 100644 index 0000000..293debb --- /dev/null +++ b/gpgme-python/gpgme-1.1.8-et_EE.patch @@ -0,0 +1,11 @@ +--- gpgme-1.1.8/src/gpgme-config.in 2009-03-08 10:25:48.000000000 +1100 ++++ gpgme-1.1.8/src/gpgme-config.in 2009-03-08 10:35:53.000000000 +1100 +@@ -64,7 +64,7 @@ + while test $# -gt 0; do + case "$1" in + -*=*) +- optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ++ optarg=`echo "$1" | sed 's/[-_[:alnum:]]*=//'` + ;; + *) + optarg= diff --git a/gpgme-python/gpgme-1.8.0-cmake.patch b/gpgme-python/gpgme-1.8.0-cmake.patch new file mode 100644 index 0000000..09775b8 --- /dev/null +++ b/gpgme-python/gpgme-1.8.0-cmake.patch @@ -0,0 +1,33 @@ +From 572c1aac107125ce62230251713349348373db5a Mon Sep 17 00:00:00 2001 +From: Heiko Becker <heirecka@exherbo.org> +Date: Wed, 16 Nov 2016 23:09:45 +0100 +Subject: [PATCH] Remove a forgotten instance of @libsuffix@ + +* lang/cpp/src/GpgmeppConfig.cmake.in.in: Remove a forgotten +instance of @libsuffix@. +-- + +b2c07bd47bd608afa5cc819b60a7b5bb8c9dd96a removed @libsuffix@ from +cmake config files, but missed one instance. + +Signed-off-by: Heiko Becker <heirecka@exherbo.org> +--- + lang/cpp/src/GpgmeppConfig.cmake.in.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lang/cpp/src/GpgmeppConfig.cmake.in.in b/lang/cpp/src/GpgmeppConfig.cmake.in.in +index 928d19f..cbe9713 100644 +--- a/lang/cpp/src/GpgmeppConfig.cmake.in.in ++++ b/lang/cpp/src/GpgmeppConfig.cmake.in.in +@@ -63,7 +63,7 @@ add_library(Gpgmepp SHARED IMPORTED) + + set_target_properties(Gpgmepp PROPERTIES + INTERFACE_INCLUDE_DIRECTORIES "@resolved_includedir@/gpgme++;@resolved_includedir@" +- INTERFACE_LINK_LIBRARIES "pthread;@resolved_libdir@/libgpgme@libsuffix@;@LIBASSUAN_LIBS@" ++ INTERFACE_LINK_LIBRARIES "pthread;@resolved_libdir@/libgpgme.so;@LIBASSUAN_LIBS@" + IMPORTED_LOCATION "@resolved_libdir@/libgpgmepp.so" + ) + +-- +2.8.0.rc3 +
participants (1)
-
crux@crux.nu