[25243] trunk/dports/net/curl/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Wed May 16 05:08:12 PDT 2007


Revision: 25243
          http://trac.macosforge.org/projects/macports/changeset/25243
Author:   yeled at macports.org
Date:     2007-05-16 05:08:12 -0700 (Wed, 16 May 2007)

Log Message:
-----------
update and reorder/add variants. thanks to n.oxyde at gmail.com

Modified Paths:
--------------
    trunk/dports/net/curl/Portfile

Modified: trunk/dports/net/curl/Portfile
===================================================================
--- trunk/dports/net/curl/Portfile	2007-05-16 10:40:15 UTC (rev 25242)
+++ trunk/dports/net/curl/Portfile	2007-05-16 12:08:12 UTC (rev 25243)
@@ -2,7 +2,7 @@
 
 PortSystem 1.0
 name            curl
-version         7.16.1
+version         7.16.2
 categories      net www
 maintainers     yeled at macports.org
 description     Tool for transferring files with URL syntax
@@ -18,26 +18,38 @@
                 http://cool.haxx.se/curl/ \
                 ftp://gd.tuwien.ac.at/utils/archivers/curl/ \
                 http://gd.tuwien.ac.at/utils/archivers/curl/ \
-                http://www.execve.net/curl/
-checksums       md5 acdab0b0467c55e10ed02d2afed80575 \
-                sha1 645f87f63d29f71dced74869450d52f84a75c2b6 \
-                rmd160 8251efba8f4bde512b7cf68ad0acb5efb4302d9b
+                http://www.execve.net/curl/ \
+                sourceforge
+checksums       md5 37a1de15c4300ca9413d39d2bcea9b36 \
+                sha1 b23d35b5af7b75e53c6632cd4c9d0cb0c08cafe5 \
+                rmd160 28edfab5659d410bf00725a0ac7228583fc171b6
+
 use_bzip2       yes
 
 configure.args  --disable-ipv6 \
                 --without-libidn \
                 --without-libssh2 \
+                --without-ssl \
+                --disable-ldap \
                 --with-zlib=${prefix} \
                 --mandir=${prefix}/share/man
 configure.env   PKG_CONFIG_PATH=${prefix}
 
 depends_build   port:pkgconfig
-depends_lib     port:openssl \
-                port:zlib 
+depends_lib     port:zlib 
 
 test.run        yes
 test.target     test-full
 
+set docdir      ${prefix}/share/doc/${name}
+
+post-destroot {
+    xinstall -m 0755 -d ${destroot}${docdir}
+    xinstall -m 0644 -W ${worksrcpath} CHANGES COPYING README RELEASE-NOTES ${destroot}${docdir}
+    xinstall -m 0644 -W ${worksrcpath}/docs BUGS CONTRIBUTE FAQ FEATURES HISTORY INTERNALS \
+        KNOWN_BUGS MANUAL RESOURCES THANKS TODO VERSIONS ${destroot}${docdir}
+}
+
 platform darwin 6 {
     depends_lib-append      lib:libdl:dlcompat
 }
@@ -48,6 +60,11 @@
                             CXX=/usr/bin/g++-4.0
 }
 
+variant ssl {
+    depends_lib-append      port:openssl
+    configure.args-delete   --without-ssl
+}
+
 variant ipv6 {
     configure.args-delete   --disable-ipv6
     configure.args-append   --enable-ipv6
@@ -67,6 +84,39 @@
 
 variant spnego {
     # enables SPNEGO authentication support
+    # kind of broken?
     depends_lib-append      port:fbopenssl
     configure.args-append   --with-spnego=${prefix}
 }
+
+variant gnutls conflicts ssl {
+    depends_lib-append      port:gnutls
+    configure.args-append   --with-gnutls
+}
+
+variant gss {
+    depends_lib-append      port:gss
+    configure.args-append   --with-gssapi=${prefix}
+}
+
+variant openldap {
+    depends_lib-append      port:openldap
+    configure.args-delete   --disable-ldap
+}
+
+variant doc {
+    post-destroot {
+        xinstall -m 0755 -d ${destroot}${docdir}/html/libcurl
+        xinstall -m 0644 -W ${worksrcpath}/docs TheArtOfHttpScripting ${destroot}${docdir}/html
+        eval xinstall -m 0644 [glob ${worksrcpath}/docs/*.html] ${destroot}${docdir}/html
+        eval xinstall -m 0644 [glob ${worksrcpath}/docs/libcurl/*.html] \
+            ${destroot}${docdir}/html/libcurl
+
+        xinstall -m 0755 -d ${destroot}${docdir}/pdf/libcurl
+        xinstall -m 0644 -W ${worksrcpath}/docs curl-config.pdf curl.pdf ${destroot}${docdir}/pdf
+        eval xinstall -m 0644 [glob ${worksrcpath}/docs/libcurl/*.pdf] ${destroot}${docdir}/pdf/libcurl
+    }
+}
+
+livecheck.check             freshmeat
+

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070516/71309c82/attachment.html


More information about the macports-changes mailing list