[97740] trunk/dports/devel/libunwind-headers/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Thu Sep 13 18:51:00 PDT 2012
Revision: 97740
http://trac.macports.org//changeset/97740
Author: jeremyhu at macports.org
Date: 2012-09-13 18:51:00 -0700 (Thu, 13 Sep 2012)
Log Message:
-----------
libunwind-headers: Bump to 35.1
Modified Paths:
--------------
trunk/dports/devel/libunwind-headers/Portfile
Modified: trunk/dports/devel/libunwind-headers/Portfile
===================================================================
--- trunk/dports/devel/libunwind-headers/Portfile 2012-09-13 22:21:01 UTC (rev 97739)
+++ trunk/dports/devel/libunwind-headers/Portfile 2012-09-14 01:51:00 UTC (rev 97740)
@@ -1,13 +1,9 @@
# $Id$
PortSystem 1.0
-PortGroup xcode 1.0
-PortGroup xcodeversion 1.0
-minimum_xcodeversions {10 3.2.3}
name libunwind-headers
-version 30
-revision 4
+version 35.1
categories devel
maintainers mfeiri openmaintainer
homepage http://opensource.apple.com/source/libunwind/
@@ -22,11 +18,10 @@
library is included in the base operating system.
distname libunwind-${version}
-checksums rmd160 3e288379a63a78b566df7d185b0677f214b37e56 \
- sha256 6ac97d18cc2b05e6de1269bf5af03b81948bd2200dae827527f3dc618b82bd41
+checksums sha1 86908428aaa0ae6cec5038dc6eeb8b64dbb6cd63 \
+ rmd160 6debb7f1a69d53ecb4512d5c9fa374ef34c4db0e \
+ sha256 d88ecd5c37f0c0c4d18feb9be52e7b2363ef2709cd2eb36e2e205f3226110de1
-xcode.target libunwind-ld
-
post-patch {
reinplace "s|/usr/local|${prefix}|g" \
${worksrcpath}/libunwind.xcodeproj/project.pbxproj
@@ -34,6 +29,11 @@
${worksrcpath}/libunwind.xcodeproj/project.pbxproj
foreach header [glob ${worksrcpath}/*/{,*/}*.h{,pp}] {
+ if {${os.major} < 12} {
+ reinplace "s|__MAC_10_8|__MAC_NA|g" ${header}
+ reinplace "s|AVAILABLE_MAC_OS_X_VERSION_10_\\(.\\)_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_8|AVAILABLE_MAC_OS_X_VERSION_10_\\1_AND_LATER|" ${header}
+ reinplace "s|AVAILABLE_MAC_OS_X_VERSION_10_8_AND_LATER|__attribute__((unavailable))|g" ${header}
+ }
if {${os.major} < 11} {
reinplace "s|__MAC_10_7|__MAC_NA|g" ${header}
reinplace "s|AVAILABLE_MAC_OS_X_VERSION_10_\\(.\\)_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_7|AVAILABLE_MAC_OS_X_VERSION_10_\\1_AND_LATER|" ${header}
@@ -65,5 +65,16 @@
}
}
+use_configure no
+build {}
+
+destroot {
+ system "ditto ${worksrcpath}/include ${destroot}${prefix}/include"
+ xinstall -d ${destroot}${prefix}/include/libunwind
+ eval xinstall [glob ${worksrcpath}/src/*.h{,pp}] ${destroot}${prefix}/include/libunwind
+
+ file delete ${destroot}${prefix}/include/libunwind/libunwind_priv.h
+}
+
livecheck.type regex
livecheck.regex "libunwind-(\[\\d.\]+)"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120913/e9bb9acd/attachment.html>
More information about the macports-changes
mailing list