[132606] trunk/dports/devel/openssl/Portfile

larryv at macports.org larryv at macports.org
Thu Feb 5 12:51:25 PST 2015


Revision: 132606
          https://trac.macports.org/changeset/132606
Author:   larryv at macports.org
Date:     2015-02-05 12:51:25 -0800 (Thu, 05 Feb 2015)
Log Message:
-----------
openssl: Add modeline, rearrange, reformat

Might as well make myself at home.

Modified Paths:
--------------
    trunk/dports/devel/openssl/Portfile

Modified: trunk/dports/devel/openssl/Portfile
===================================================================
--- trunk/dports/devel/openssl/Portfile	2015-02-05 20:51:21 UTC (rev 132605)
+++ trunk/dports/devel/openssl/Portfile	2015-02-05 20:51:25 UTC (rev 132606)
@@ -1,11 +1,12 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
-PortSystem 1.0
-PortGroup  muniversal 1.0
+PortSystem          1.0
+PortGroup           muniversal 1.0
 
 name                openssl
+epoch               1
 version             1.0.1k
-epoch               1
 
 # At least the following ports statically link OpenSSL and need to be revbumped
 # for every update of OpenSSL:
@@ -16,19 +17,22 @@
 #  - tor
 # These lists aren't exhaustive. Feel free to add more entries as you find them.
 
+categories          devel security
 platforms           darwin
-categories          devel security
+license             OpenSSL SSLeay
 maintainers         larryv openmaintainer
+
+description         OpenSSL SSL/TLS cryptography library
+long_description    The OpenSSL Project is a collaborative effort to \
+                    develop a robust, commercial-grade, full-featured, \
+                    and Open Source toolkit implementing the Secure \
+                    Sockets Layer (SSL v2/v3) and Transport Layer \
+                    Security (TLS v1) protocols as well as \
+                    a full-strength general purpose cryptography \
+                    library.
 homepage            http://www.openssl.org/
-license             OpenSSL SSLeay
-description         OpenSSL SSL/TLS cryptography library
 
-long_description \
-    The OpenSSL Project is a collaborative effort to develop a robust, \
-    commercial-grade, full-featured, and Open Source toolkit implementing \
-    the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security \
-    (TLS v1) protocols as well as a full-strength general purpose \
-    cryptography library.
+depends_lib         port:zlib
 
 master_sites        http://www.openssl.org/source/
 checksums           md5     d4f002bd22a56881340105028842ae1f \
@@ -36,27 +40,33 @@
                     rmd160  e22c085189c6ce640378f0cc67faa512b4b873f2 \
                     sha256  8f9faeaebad088e772f4ef5e38252d472be4d878c6b3a2718c10a4fcebe7a41c
 
-depends_lib         port:zlib
-
-patchfiles          patch-Makefile.org.diff patch-crypto-Makefile.diff \
+patchfiles          patch-bn_internal.pod.diff \
+                    patch-Configure.diff \
+                    patch-crypto-Makefile.diff \
                     patch-Makefile.org-parallel.diff \
-                    patch-bn_internal.pod.diff patch-Configure.diff
-
+                    patch-Makefile.org.diff
 post-patch {
     # Ensure that the correct compiler is used
     reinplace "s|cc:|${configure.cc}:|" ${worksrcpath}/Configure
     # use SDK if necessary
-    if {${configure.sdkroot} != ""} {
+    if {${configure.sdkroot} ne ""} {
         reinplace "s|\\(-arch \[_a-zA-Z0-9\]*\\)|\\1 -isysroot ${configure.sdkroot}|" ${worksrcpath}/Configure
     }
 }
 
+configure.ccache    no
 configure.cmd       ./Configure
-configure.args      -L${prefix}/lib --openssldir=${prefix}/etc/openssl zlib no-krb5 shared
-configure.ccache    no
+configure.args      -L${prefix}/lib \
+                    no-krb5 \
+                    --openssldir=${prefix}/etc/openssl \
+                    shared \
+                    zlib
+platform darwin 8 i386 {
+    configure.args-append   no-asm
+}
 
+destroot.args       MANDIR=${prefix}/share/man MANSUFFIX=ssl
 destroot.destdir    INSTALL_PREFIX=${destroot}
-destroot.args       MANDIR=${prefix}/share/man MANSUFFIX=ssl
 
 test.run            yes
 test.dir            ${worksrcpath}/test
@@ -66,41 +76,37 @@
 livecheck.url       ${master_sites}
 livecheck.regex     ${name}-(\[0-9.\]+\[a-z\]?)\\.tar\\.gz
 
-variant rfc3779 description {enable RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers} {
-    configure.args-append    enable-rfc3779
-}
-
 # code for universal build
 array set merger_configure_args {
-    ppc    darwin-ppc-cc
-    i386   darwin-i386-cc
-    ppc64  darwin64-ppc-cc
-    x86_64 darwin64-x86_64-cc
+    ppc     darwin-ppc-cc
+    i386    darwin-i386-cc
+    ppc64   darwin64-ppc-cc
+    x86_64  darwin64-x86_64-cc
 }
 
-if { [variant_isset universal] } {
+if {[variant_isset universal]} {
     set merger_arch_compiler "no"
 
     configure.universal_args-delete --disable-dependency-tracking
 
     pre-destroot {
         global merger_dont_diff
-        if { [llength ${universal_archs_to_use}] > 2 } {
+        if {[llength ${universal_archs_to_use}] > 2} {
             lappend merger_dont_diff ${prefix}/include/openssl/opensslconf.h
         }
     }
 
     # Do not set --host.
     array set merger_host {
-        ppc    ""
-        i386   ""
-        ppc64  ""
-        x86_64 ""
+        ppc     {}
+        i386    {}
+        ppc64   {}
+        x86_64  {}
     }
 } elseif {[info exists merger_configure_args($build_arch)]} {
     configure.args-append   $merger_configure_args($build_arch)
 }
 
-platform darwin 8 i386 {
-    configure.args-append no-asm
+variant rfc3779 description {enable RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers} {
+    configure.args-append   enable-rfc3779
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150205/c8a1dd1a/attachment-0001.html>


More information about the macports-changes mailing list