[MacPorts] #52477: rtorrent: Update to 0.9.6 w/ patches for macOS 10.12

MacPorts noreply at macports.org
Thu Mar 22 13:05:54 UTC 2018


#52477: rtorrent: Update to 0.9.6 w/ patches for macOS 10.12
-------------------------+-----------------------------
  Reporter:  torstenb@…  |      Owner:
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.3.4
Resolution:              |   Keywords:  sierra haspatch
      Port:  rtorrent    |
-------------------------+-----------------------------

Comment (by tsjk):

 Indeed. The following seems to also be a working solution (at least it
 compiles, seeemingly with clang):

 {{{
 ---
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/net/libtorrent/Portfile
 2017-08-22 23:13:23.000000000 +0200
 +++ /usr/local/macports/ports/net/libtorrent/Portfile   2018-03-22
 14:00:36.000000000 +0100
 @@ -4,8 +4,7 @@

  name                libtorrent
  conflicts           libtorrent-devel
 -version             0.13.2
 -revision            1
 +version             0.13.6
  categories          net
  platforms           darwin
  maintainers         nomaintainer
 @@ -17,11 +16,11 @@
                      *nix. It is designed to avoid redundant copying and \
                      storing of data that other clients and libraries
 suffer from.

 -homepage            http://libtorrent.rakshasa.no/
 +homepage            http://rtorrent.net/
  master_sites        ${homepage}downloads/

 -checksums           rmd160  090e6af9b4318a6176064159f6a8f70ab708c7fe \
 -                    sha256
 ed2f2dea16c29cac63fa2724f6658786d955f975861fa6811bcf1597ff8a5e4f
 +checksums           rmd160  a143a0ef9e86cf989c2c7dff6c86a41d23ddc244 \
 +                    sha256
 2838a08c96edfd936aff8fbf99ecbb930c2bfca3337dd1482eb5fccdb80d5a04

  depends_build       port:pkgconfig

 @@ -34,6 +33,20 @@

  compiler.blacklist  gcc-4.0

 +if {[string match "*clang*" ${configure.compiler}]} {
 +    # Build fails using libc++
 +
 +    build.args-delete \
 +        CXXFLAGS="${configure.cxxflags} -pipe -Os -stdlib=libc++"
 +    build.args-append \
 +        CXXFLAGS="${configure.cxxflags} -pipe -Os -stdlib=libstdc++"
 +
 +    build.args-delete \
 +        OBJCXXFLAGS="${configure.cxxflags} -pipe -Os -stdlib=libc++"
 +    build.args-append \
 +        OBJCXXFLAGS="${configure.cxxflags} -pipe -Os -stdlib=libstdc++"
 +}
 +
  post-destroot {
      set docdir ${prefix}/share/doc/${name}
      xinstall -d ${destroot}${docdir}

 }}}

 {{{
 ---
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/net/rtorrent/Portfile
 2017-11-17 14:52:13.000000000 +0100
 +++ /usr/local/macports/ports/net/rtorrent/Portfile     2018-03-22
 14:00:40.000000000 +0100
 @@ -6,8 +6,7 @@
  name                rtorrent
  conflicts           rtorrent-devel
  set real_name       rtorrent
 -version             0.9.2
 -revision            2
 +version             0.9.6
  categories          net
  platforms           darwin
  maintainers         nomaintainer
 @@ -20,12 +19,12 @@
                      run in the background using screen. It supports fast-
 resume \
                      and session management.

 -homepage            http://libtorrent.rakshasa.no/
 +homepage            http://rtorrent.net/
  master_sites        ${homepage}downloads/
  distname            ${real_name}-${version}

 -checksums           rmd160  130a4c7f3bd018f7247d4561170d6878ab7a120f \
 -                    sha256
 5c8f8c780bee376afce3c1cde2f5ecb928f40bac23b2b8171deed5cf3c888c3d
 +checksums           rmd160  8ac9730ccd5544ee0f64628538a892d4f1d86081 \
 +                    sha256
 1e69c24f1f26f8f07d58d673480dc392bfc4317818c1115265b08a7813ff5b0e

  depends_build       port:pkgconfig

 @@ -42,11 +41,27 @@
                      --disable-debug \
                      --enable-ipv6

 +compiler.blacklist  gcc-4.0
 +
  variant xmlrpc description {Enable XMLRPC interface} {
      configure.args-append   --with-xmlrpc-c
      depends_lib-append      port:xmlrpc-c
  }

 +if {[string match "*clang*" ${configure.compiler}]} {
 +    # Build fails using libc++
 +
 +    build.args-delete \
 +        CXXFLAGS="${configure.cxxflags} -pipe -Os -stdlib=libc++"
 +    build.args-append \
 +        CXXFLAGS="${configure.cxxflags} -pipe -Os -stdlib=libstdc++"
 +
 +    build.args-delete \
 +        OBJCXXFLAGS="${configure.cxxflags} -pipe -Os -stdlib=libc++"
 +    build.args-append \
 +        OBJCXXFLAGS="${configure.cxxflags} -pipe -Os -stdlib=libstdc++"
 +}
 +
  livecheck.type      regex
  livecheck.name      ${real_name}
  livecheck.url       ${master_sites}

 }}}

 I'm on El Capitain by the way, mostly due to lazyness now, but previously
 because I use OpenZFS and macports, which often prohibits instant
 upgrades. :)

--
Ticket URL: <https://trac.macports.org/ticket/52477#comment:12>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list