Ticket #14699: patch-Portfile2.2.diff

File patch-Portfile2.2.diff, 3.0 KB (added by kurthindenburg (Kurt Hindenburg), 10 years ago)

This should work for 4.4.0

  • Portfile

    old new  
     1# -*- 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
    12# $Id: Portfile 93048 2012-05-14 13:32:10Z jmr@macports.org $
    23
    3 PortSystem 1.0
     4PortSystem          1.0
    45
    5 name                    spread
    6 version                 3.17.3
    7 categories              devel
    8 license                 Restrictive
    9 platforms               darwin
    10 maintainers             nomaintainer
    11 description             configurable logging for C++
    12 long_description        Spread is a toolkit that provides a high performance \
    13                                 messaging service that is resilient to faults across external \
    14                                 or internal networks.
    15 
    16 homepage                http://www.spread.org/
    17 master_sites    http://www.cnds.jhu.edu/download/noformdown/
    18 distname                spread-src-${version}
    19 checksums               md5 2eec25b5adc96fd840aa251e44325f9f
    20 patchfiles              patch-Makefile.in
     6name                spread
     7version             4.4.0
     8categories          devel
     9license             Restrictive
     10platforms           darwin
     11maintainers         khindenburg openmaintainer
     12
     13description         A Reliable Multicast and Group Communication Toolkit
     14long_description    Spread is a toolkit that provides a high performance \
     15                    messaging service that is resilient to faults across \
     16                    external or internal networks. Spread currently has \
     17                    programming API's for C/C++, C#, Java, Perl, Python \
     18                    and Ruby.
     19
     20homepage            http://www.spread.org
     21master_sites        http://www.spread.org/download/
     22distname            spread-src-${version}
     23
     24depends_fetch-append    port:curl
     25depends_build-append    port:cctools
     26
     27fetch {
     28    system "cd ${distpath} && curl --location --remote-name [lindex ${master_sites} 0]/[lindex ${distfiles} 0] --data FILE=[lindex ${distfiles} 0] --data name=MacPorts --data company=MacPorts --data email=[lindex ${maintainers} 0]@macports.org --data Stage=Download"
     29}
     30
     31checksums           rmd160  f05cbca46efdd9dd1a4219188f4a5483188bb109 \
     32                    sha256  5beb09fe27cdb8332075847af0b9288e58ba8cdcf5c7cc685fd57c6b65680f4d
     33
     34configure.args      --mandir=${prefix}/share/man \
     35                    --with-pid-dir=${prefix}/var/run
     36
     37post-patch {
     38    set LIBFULLVERSION ${version}
     39    set LIBCOMPATVERSION [join [lrange [split ${version} .] 0 2] .]
     40    set LIBVERSION [join [lrange [split ${version} .] 0 1] .]
     41    reinplace "s|^LIBFULLVERSION=3.0.0\$|LIBFULLVERSION=${LIBFULLVERSION}|" \
     42               ${worksrcpath}/libspread/Makefile.in
     43    reinplace "s|^LIBVERSION=3\$|LIBVERSION=${LIBVERSION}|" \
     44               ${worksrcpath}/libspread/Makefile.in
     45}
     46
     47post-destroot {
     48    foreach dylib [glob -nocomplain -directory ${destroot}${prefix}/lib -tails *${version}.dylib] {
     49        system "install_name_tool -id ${prefix}/lib/${dylib} ${destroot}${prefix}/lib/${dylib}"
     50    }
     51}
    2152
    22 configure.args  --mandir=${prefix}/share/man \
    23                                 --with-pid-dir=${prefix}/var/run