[142848] trunk/dports/devel/libssh2

jeremyhu at macports.org jeremyhu at macports.org
Sat Dec 12 07:29:33 PST 2015


Revision: 142848
          https://trac.macports.org/changeset/142848
Author:   jeremyhu at macports.org
Date:     2015-11-24 14:14:46 -0800 (Tue, 24 Nov 2015)
Log Message:
-----------
libssh2: Fix build failures due to bad pkg-config data

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

Added Paths:
-----------
    trunk/dports/devel/libssh2/files/
    trunk/dports/devel/libssh2/files/libssh2.pc.patch

Modified: trunk/dports/devel/libssh2/Portfile
===================================================================
--- trunk/dports/devel/libssh2/Portfile	2015-11-24 22:09:53 UTC (rev 142847)
+++ trunk/dports/devel/libssh2/Portfile	2015-11-24 22:14:46 UTC (rev 142848)
@@ -7,6 +7,7 @@
 
 name		  libssh2
 version		  1.4.3
+revision          1
 categories	  devel net
 platforms	  darwin
 maintainers	  wohner.eu:normen
@@ -32,20 +33,14 @@
     lib/libcrypto.dylib \
     lib/libz.dylib
 
+patchfiles \
+    libssh2.pc.patch
+
 variant debug description {Enable debug mode including tracing support} {
     configure.args-append \
             --enable-debug
 }
 
-post-build {
-    if {[variant_isset universal]} {
-        foreach arch ${universal_archs_to_use} {
-            reinplace "s|[muniversal_get_arch_flag ${arch}]||" \
-                ${worksrcpath}-${arch}/libssh2.pc
-        }
-    }
-}
-
 livecheck.type  regex
 livecheck.url   http://www.libssh2.org/download
 livecheck.regex libssh2-(\\d(?:\\.\\d)+)${extract.suffix}

Added: trunk/dports/devel/libssh2/files/libssh2.pc.patch
===================================================================
--- trunk/dports/devel/libssh2/files/libssh2.pc.patch	                        (rev 0)
+++ trunk/dports/devel/libssh2/files/libssh2.pc.patch	2015-11-24 22:14:46 UTC (rev 142848)
@@ -0,0 +1,10 @@
+--- libssh2.pc.in.orig	2012-04-25 02:29:11.000000000 -0400
++++ libssh2.pc.in	2015-11-24 17:11:08.000000000 -0500
+@@ -12,6 +12,6 @@ URL: http://www.libssh2.org/
+ Description: Library for SSH-based communication
+ Version: @LIBSSH2VER@
+ Requires.private: @LIBSREQUIRED@
+-Libs: -L${libdir} -lssh2 @LDFLAGS@ @LIBS@
++Libs: -L${libdir} -lssh2
+ Libs.private: @LIBS@
+ Cflags: -I${includedir}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/e573a5df/attachment.html>


More information about the macports-changes mailing list