Ticket #17279: gpgme-objc-1.0.2_4.diff

File gpgme-objc-1.0.2_4.diff, 4.7 KB (added by nox@…, 15 years ago)
  • files/patch-GPGME.xcode-project.pbxproj.diff

     
     1--- GPGME.xcode/project.pbxproj.orig    2008-11-16 23:03:53.000000000 +0100
     2+++ GPGME.xcode/project.pbxproj 2008-11-16 23:44:08.000000000 +0100
     3@@ -363,7 +363,7 @@
     4                        isa = PBXFileReference;
     5                        lastKnownFileType = sourcecode.c.h;
     6                        name = gpgme.h;
     7-                       path = /usr/local/include/gpgme.h;
     8+                       path = @PREFIX@/include/gpgme.h;
     9                        refType = 0;
     10                        sourceTree = "<absolute>";
     11                };
     12@@ -420,7 +420,7 @@
     13                        isa = PBXFileReference;
     14                        lastKnownFileType = sourcecode.c.h;
     15                        name = "gpg-error.h";
     16-                       path = "/usr/local/include/gpg-error.h";
     17+                       path = "@PREFIX@/include/gpg-error.h";
     18                        refType = 0;
     19                        sourceTree = "<absolute>";
     20                };
     21@@ -537,7 +537,7 @@
     22                                FRAMEWORK_SEARCH_PATHS = "";
     23                                FRAMEWORK_VERSION = 1.0.2;
     24                                GCC_PRECOMPILE_PREFIX_HEADER = YES;
     25-                               GCC_PREFIX_HEADER = /usr/local/include/gpgme.h;
     26+                               GCC_PREFIX_HEADER = @PREFIX@/include/gpgme.h;
     27                                GCC_PREPROCESSOR_DEFINITIONS = BUILDINGGPGME;
     28                                HEADER_SEARCH_PATHS = "";
     29                                INFOPLIST_FILE = "Info-GPGME.plist";
     30@@ -1102,16 +1102,16 @@
     31                555E7F6D07A3114C00B1F725 = {
     32                        isa = PBXFileReference;
     33                        lastKnownFileType = archive.ar;
     34-                       name = "libgpg-error.a";
     35-                       path = "/usr/local/lib/libgpg-error.a";
     36+                       name = "libgpg-error.dylib";
     37+                       path = "@PREFIX@/lib/libgpg-error.dylib";
     38                        refType = 0;
     39                        sourceTree = "<absolute>";
     40                };
     41                555E7F6E07A3114C00B1F725 = {
     42                        isa = PBXFileReference;
     43                        lastKnownFileType = archive.ar;
     44-                       name = "libgpgme-pthread.a";
     45-                       path = "/usr/local/lib/libgpgme-pthread.a";
     46+                       name = "libgpgme-pthread.dylib";
     47+                       path = "@PREFIX@/lib/libgpgme-pthread.dylib";
     48                        refType = 0;
     49                        sourceTree = "<absolute>";
     50                };
     51@@ -1282,9 +1282,7 @@
     52                F550BC470201F10201A80016 = {
     53                        buildSettings = {
     54                                COPY_PHASE_STRIP = NO;
     55-                               INSTALL_PATH = "@executable_path/../Frameworks";
     56                                OPTIMIZATION_CFLAGS = "-O0";
     57-                               SKIP_INSTALL = YES;
     58                        };
     59                        isa = PBXBuildStyle;
     60                        name = EmbDevelopment;
     61@@ -1293,9 +1291,7 @@
     62                        buildSettings = {
     63                                COPY_PHASE_STRIP = YES;
     64                                DEBUGGING_SYMBOLS = NO;
     65-                               INSTALL_PATH = "@executable_path/../Frameworks";
     66                                OPTIMIZATION_CFLAGS = "-Os";
     67-                               SKIP_INSTALL = YES;
     68                        };
     69                        isa = PBXBuildStyle;
     70                        name = EmbDeployment;
  • Portfile

     
    11# $Id$
    22
    33PortSystem 1.0
     4PortGroup xcode 1.0
     5
    46name            gpgme-objc
    57set rname       GPGME
    68version         1.0.2
    7 revision        3
     9revision        4
    810categories      devel security
    911maintainers     waqar@macports.org
    1012description     GnuPG Made Easy is an Objective-C framework wrapping libgpgme
    1113long_description        \
    12         GnuPG Made Easy (GPGME) is an Objective-C framework wrapping    \
    13         libgpgme, a C language library, that allows to add support      \
    14         for cryptography to a program. It is designed to make access    \
    15         to crypto engines like GnuPG or GpgSM easier for applications.  \
    16         GPGME provides a high-level crypto API for encryption,          \
     14        GnuPG Made Easy (GPGME) is an Objective-C framework wrapping    \
     15        libgpgme, a C language library, that allows to add support      \
     16        for cryptography to a program. It is designed to make access    \
     17        to crypto engines like GnuPG or GpgSM easier for applications.  \
     18        GPGME provides a high-level crypto API for encryption,          \
    1719        decryption, signing, signature verification and key management.
    1820homepage        http://macgpg.sourceforge.net
    19 platforms       macosx
    2021master_sites    sourceforge:macgpg
    2122extract.suffix  .tgz
    2223distname        ${rname}-${version}
    2324dist_subdir     macgpg
    2425checksums       md5 9f6fc9eb6d36c298c045178703041314                    \
    2526                sha1 ff02efeac01253c9df797ec314ef0e4fc537964e
    26 depends_lib     port:gpgme
    27 patch   {
    28         cd ${worksrcpath}
    29         reinplace "s|/usr/local|${prefix}|g"    \
    30                 ${rname}.xcode/project.pbxproj  \
    31                 ${rname}.pbproj/project.pbxproj
    32 }
    33 use_configure   no
    34 build.type      pbx
    35 build.target    -target ${rname}
    36 build.args      build -project ${rname}.xcode -buildstyle EmbDevelopment
    3727
    38 destroot        {
    39         cd ${worksrcpath}
    40         system "${build.cmd} install INSTALL_MODE_FLAG=go-w,a+rX        \
    41                 INSTALL_PATH=${prefix}/Library/Frameworks               \
    42                 DSTROOT=${destroot} ${build.target}                     \
    43                 -project ${rname}.xcode"
     28patchfiles      patch-GPGME.xcode-project.pbxproj.diff
     29
     30post-patch {
     31        reinplace s|@PREFIX@|${prefix}|g ${worksrcpath}/GPGME.xcode/project.pbxproj
    4432}
     33
     34depends_lib     port:gpgme \
     35                        port:libgpg-error
     36
     37xcode.project           ${rname}.xcode
     38xcode.target            ${rname}
     39xcode.configuration     EmbDeployment
     40xcode.destroot.type     framework