[62375] trunk/dports/mail/cclient/Portfile

nox at macports.org nox at macports.org
Tue Jan 5 08:59:56 PST 2010


Revision: 62375
          http://trac.macports.org/changeset/62375
Author:   nox at macports.org
Date:     2010-01-05 08:59:55 -0800 (Tue, 05 Jan 2010)
Log Message:
-----------
Update cclient to 2007e (#18061, #20214)

There is no longer a darwin_10 variant as the applied patch is just a
include path fix. The documentation is now installed.

Modified Paths:
--------------
    trunk/dports/mail/cclient/Portfile

Modified: trunk/dports/mail/cclient/Portfile
===================================================================
--- trunk/dports/mail/cclient/Portfile	2010-01-05 16:59:40 UTC (rev 62374)
+++ trunk/dports/mail/cclient/Portfile	2010-01-05 16:59:55 UTC (rev 62375)
@@ -1,11 +1,13 @@
 # $Id$
 
 PortSystem      1.0
+PortGroup       archcheck 1.0
 
 name            cclient
-version         2007d
+version         2007e
+license         Apache-2
 platforms       darwin
-categories      mail
+categories      mail devel
 maintainers     nomaintainer
 description     UW IMAP c-client library
 
@@ -15,36 +17,39 @@
     IMAP server.
 
 homepage        http://www.washington.edu/imap/
-master_sites    ftp://ftp.cac.washington.edu/imap/ \
-                ftp://ftp.cac.washington.edu/imap/old/ \
-                macports:pguyot
+master_sites    ftp://ftp.cac.washington.edu/imap/
 distname        imap-${version}
 dist_subdir     imap-uw
 
-checksums       md5     ec27cd4c5972b981bb96e9da0430af53 \
-                sha1    c77a3feaa68fa8a73eea85718e66eba9ae3e222c \
-                rmd160  d403678f83e761237cbdf62b4bcde466cdf85123
+checksums       md5     7903800dc2604000016de070e0c55840 \
+                sha1    ab8bd27de41926acb257b813a95c10d2ab04c6e8 \
+                rmd160  6a392f3ebf5b72686a0a232333a5670c76c173d6
 
 depends_lib     port:openssl \
-                lib:libz:zlib \
+                port:zlib \
                 lib:libgssapi_krb5:kerberos5
 
 worksrcdir      imap-${version}
 
 post-patch {
-    reinplace "s|/System/Library/OpenSSL SSLINCLUDE=/usr/include/openssl SSLLIB=/usr/lib|${prefix}/etc/openssl SSLINCLUDE=${prefix}/include SSLLIB=${prefix}/lib|g" ${worksrcpath}/Makefile
-    reinplace "s| -Wno-pointer-sign||g" ${worksrcpath}/src/osdep/unix/Makefile
+    reinplace -E /SSLLIB/s|/usr|${prefix}|g ${worksrcpath}/Makefile
+    reinplace -E /SSLLIB/s|/System/Library/OpenSSL|${prefix}/etc/openssl|g \
+        ${worksrcpath}/Makefile
 }
 
+archcheck.files \
+    lib/libssl.dylib \
+    lib/libz.dylib
+
 use_configure   no
 
 build.target    oxp
-build.args      EXTRACFLAGS=-fno-common CC=${configure.cc}
+build.args      CC=${configure.cc}
 
 use_parallel_build no
 
 destroot {
-    xinstall -m 755 -d ${destroot}${prefix}/include/c-client
+    xinstall -d ${destroot}${prefix}/include/c-client
     xinstall -m 644 -W ${worksrcpath}/c-client \
         c-client.h dummy.h env.h env_unix.h fdstring.h flockcyg.h flocksim.h \
         flstring.h fs.h ftl.h imap4r1.h linkage.c linkage.h mail.h \
@@ -54,10 +59,16 @@
         ${destroot}${prefix}/include/c-client
     xinstall -m 644 ${worksrcpath}/c-client/c-client.a \
         ${destroot}${prefix}/lib/libc-client4.a
-    system "cd ${destroot}${prefix}/lib/ && ranlib libc-client4.a"
+    system "ranlib ${destroot}${prefix}/lib/libc-client4.a"
+
+    set docdir ${prefix}/share/doc/${name}
+    xinstall -d ${destroot}${docdir}
+    xinstall -m 644 -W ${worksrcpath} LICENSE.txt NOTICE SUPPORT \
+        ${destroot}${docdir}
+    copy ${worksrcpath}/docs ${destroot}${docdir}
 }
 
-platform darwin 10 {
+if {[rpm-vercomp ${os.version} 10] >= 0} {
     patchfiles-append patch-Makefile-fixpam
 }
 
@@ -67,7 +78,6 @@
 }
 
 variant universal {
-    build.args-delete EXTRACFLAGS="-fno-common"
     build.args-append EXTRACFLAGS="${configure.universal_cflags}" EXTRALDFLAGS="${configure.universal_ldflags}"
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100105/5901d602/attachment.html>


More information about the macports-changes mailing list