Changeset 144545


Ignore:
Timestamp:
Jan 12, 2016, 7:34:47 AM (23 months ago)
Author:
jeremyhu@…
Message:

dyld-headers: Obsolete port. It is no longer relevant.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/dyld-headers/Portfile

    r128436 r144545  
    22
    33PortSystem              1.0
    4 
    54name                    dyld-headers
    65version                 239.3
     6revision                1
    77categories              devel
    88maintainers             jeremyhu openmaintainer
    9 homepage                http://opensource.apple.com/source/dyld/
    10 master_sites            http://opensource.apple.com/tarballs/dyld/
    119platforms               darwin
    1210license                 APSL-2
    13 description             Header files for the dynamic linker
    14 long_description        Provides header files for the dynamic \
    15                         linking and loading facilities in Mac OS X and Darwin
    1611
    17 distname                dyld-${version}
    18 checksums               sha1    f87003f34b4acf822e3c945ec8730035c603b647 \
    19                         rmd160  67d647a0500869f248ae6a3c02712e52ca581120 \
    20                         sha256  ceaff156a0d61ceb2f155a5d93651045481b28d4ff8a92208922cf88a53aa413
    21 
    22 post-patch {
    23     reinplace "s|/usr/local|${prefix}|g" \
    24             ${worksrcpath}/dyld.xcodeproj/project.pbxproj
    25     reinplace "s|/usr|${prefix}|g" \
    26             ${worksrcpath}/dyld.xcodeproj/project.pbxproj
    27 
    28     foreach header [glob ${worksrcpath}/include/{,*/}*.h] {
    29         if {${os.major} < 13} {
    30             reinplace "s|__MAC_10_9|__MAC_NA|g" ${header}
    31             reinplace "s|AVAILABLE_MAC_OS_X_VERSION_10_\\(.\\)_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_9|AVAILABLE_MAC_OS_X_VERSION_10_\\1_AND_LATER|" ${header}
    32             reinplace "s|AVAILABLE_MAC_OS_X_VERSION_10_9_AND_LATER|__attribute__((unavailable))|g" ${header}
    33         }
    34         if {${os.major} < 12} {
    35             reinplace "s|__MAC_10_8|__MAC_NA|g" ${header}
    36             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}
    37             reinplace "s|AVAILABLE_MAC_OS_X_VERSION_10_8_AND_LATER|__attribute__((unavailable))|g" ${header}
    38         }
    39         if {${os.major} < 11} {
    40             reinplace "s|__MAC_10_7|__MAC_NA|g" ${header}
    41             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}
    42             reinplace "s|AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER|__attribute__((unavailable))|g" ${header}
    43         }
    44         if {${os.major} < 10} {
    45             reinplace "s|__MAC_10_6|__MAC_NA|g" ${header}
    46             reinplace "s|AVAILABLE_MAC_OS_X_VERSION_10_\\(.\\)_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6|AVAILABLE_MAC_OS_X_VERSION_10_\\1_AND_LATER|" ${header}
    47             reinplace "s|AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER|__attribute__((unavailable))|g" ${header}
    48         }
    49         if {${os.major} < 9} {
    50             reinplace "s|__MAC_10_5|__MAC_NA|g" ${header}
    51             reinplace "s|AVAILABLE_MAC_OS_X_VERSION_10_\\(.\\)_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5|AVAILABLE_MAC_OS_X_VERSION_10_\\1_AND_LATER|" ${header}
    52             reinplace "s|AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER|__attribute__((unavailable))|g" ${header}
    53 
    54             reinplace "s|Availability.h|AvailabilityMacros.h|g" ${header}
    55             reinplace "s|__OSX_AVAILABLE_STARTING(__MAC_NA,.*)|__attribute__((unavailable))|g" ${header}
    56             reinplace "s|__OSX_AVAILABLE_BUT_DEPRECATED(__MAC_NA,.*)|__attribute__((unavailable))|g" ${header}
    57             reinplace "s|__OSX_AVAILABLE_STARTING(__MAC_10_\\(\[^,\]*\\),.*)|AVAILABLE_MAC_OS_X_VERSION_10_\\1_AND_LATER|g" ${header}
    58             reinplace "s|__OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_\\(\[^,\]*\\),__MAC_NA,.*)|AVAILABLE_MAC_OS_X_VERSION_10_\\1_AND_LATER|g" ${header}
    59             reinplace "s|__OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_\\(\[^,\]*\\),__MAC_10_\\(\[^,\]*\\),.*)|AVAILABLE_MAC_OS_X_VERSION_10_\\1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_\\2|g" ${header}
    60         }
    61     }
    62 }
    63 
    64 supported_archs         noarch
    65 use_configure no
    66 build {}
    67 
    68 destroot {
    69     system "ditto ${worksrcpath}/include ${destroot}${prefix}/include"
    70     #system "ditto ${worksrcpath}/doc/man ${destroot}${prefix}/share/man"
    71 }
    72 
    73 livecheck.type          regex
    74 livecheck.regex         "dyld-(\[\\d.\]+)"
     12PortGroup               obsolete 1.0
Note: See TracChangeset for help on using the changeset viewer.