Ticket #52476: Portfile.diff

File Portfile.diff, 2.3 KB (added by 3add3287 (3add3287), 8 years ago)
  • Portfile

    old new  
    55
    66name                libtorrent
    77conflicts           libtorrent-devel
    8 version             0.13.2
    9 revision            1
     8version             0.13.6
    109categories          net
    1110platforms           darwin
    1211maintainers         gmail.com:stuartwesterman openmaintainer
     
    1817                    *nix. It is designed to avoid redundant copying and \
    1918                    storing of data that other clients and libraries suffer from.
    2019
    21 homepage            http://libtorrent.rakshasa.no/
    22 master_sites        ${homepage}downloads/
     20homepage            https://github.com/rakshasa/rtorrent/wiki
     21master_sites        http://rtorrent.net/downloads/
    2322
    24 checksums           rmd160  090e6af9b4318a6176064159f6a8f70ab708c7fe \
    25                     sha256  ed2f2dea16c29cac63fa2724f6658786d955f975861fa6811bcf1597ff8a5e4f
     23checksums           rmd160  a143a0ef9e86cf989c2c7dff6c86a41d23ddc244 \
     24                    sha256  2838a08c96edfd936aff8fbf99ecbb930c2bfca3337dd1482eb5fccdb80d5a04
    2625
    2726depends_build       port:pkgconfig
    2827
     
    3231configure.args      --disable-debug \
    3332                    --enable-ipv6 \
    3433                    --with-kqueue
     34configure.cxxflags-append -std=c++11
    3535
     36patchfiles-append   extra-clang.patch src_net_socket_set.patch src_torrent_connection_manager.patch
    3637compiler.blacklist  gcc-4.0
    3738
    3839post-destroot {
     
    4142    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
    4243        ${destroot}${docdir}
    4344}
     45post-patch {
     46    system "find ${worksrcpath} \\( -name '*.h' -or -name '*.cc' \\) -type f -print0 | xargs -0 sed -i '' -e 's/tr1::/std::/g'"
     47    system "find ${worksrcpath} \\( -name '*.h' -or -name '*.cc' \\) -type f -print0 | xargs -0 sed -i '' -e 's/std::std::/std::/g'"
     48    system "find ${worksrcpath} \\( -name '*.h' -or -name '*.cc' \\) -type f -print0 | xargs -0 sed -i '' -e '/namespace tr1/d'"
     49    system "find ${worksrcpath} \\( -name '*.h' -or -name '*.cc' \\) -type f -print0 | xargs -0 sed -i '' -e '/include/s,tr1/,,'"
     50    reinplace "s/\.assign/.fill/" ${worksrcpath}/src/torrent/utils/extents.h ${worksrcpath}/src/torrent/utils/log.cc
     51}
    4452
    4553if {${os.platform} eq "darwin" && ${os.major} <= 9} {
    4654    # currently broken, ticket #27289