[84123] trunk/dports/net
devans at macports.org
devans at macports.org
Sun Sep 18 12:17:39 PDT 2011
Revision: 84123
http://trac.macports.org/changeset/84123
Author: devans at macports.org
Date: 2011-09-18 12:17:34 -0700 (Sun, 18 Sep 2011)
Log Message:
-----------
libtorrent-rasterbar-devel: new port
* based on latest svn trunk (pre 0.16.0)
* fixes problems with ssl trackers, #31277
* conflicts with libtorrent-rasterbar
Added Paths:
-----------
trunk/dports/net/libtorrent-rasterbar-devel/
trunk/dports/net/libtorrent-rasterbar-devel/Portfile
trunk/dports/net/libtorrent-rasterbar-devel/files/
trunk/dports/net/libtorrent-rasterbar-devel/files/patch-bindings-python-setup.py.in.diff
Added: trunk/dports/net/libtorrent-rasterbar-devel/Portfile
===================================================================
--- trunk/dports/net/libtorrent-rasterbar-devel/Portfile (rev 0)
+++ trunk/dports/net/libtorrent-rasterbar-devel/Portfile 2011-09-18 19:17:34 UTC (rev 84123)
@@ -0,0 +1,74 @@
+# -*- 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
+# $Id$
+
+PortSystem 1.0
+
+name libtorrent-rasterbar-devel
+conflicts libtorrent-rasterbar
+set svn_rev 6004
+version 0.15.99.${svn_rev}
+categories net
+maintainers devans openmaintainer
+platforms darwin
+homepage http://www.rasterbar.com/products/libtorrent/
+
+description \
+ A C++ bittorrent library (not the same as port libtorrent)
+
+long_description \
+ A C++ bittorrent library designed to run on anything from embedded systems to large scale \
+ seed servers. It comes with python bindings and detailed documentation.
+
+universal_variant no
+use_parallel_build no
+
+fetch.type svn
+svn.url https://libtorrent.svn.sourceforge.net/svnroot/libtorrent/trunk
+svn.revision ${svn_rev}
+
+worksrcdir trunk
+
+use_autoreconf yes
+autoreconf.args -fvi
+
+depends_build port:pkgconfig
+
+depends_lib port:python26 \
+ port:boost \
+ port:libgeoip \
+ port:openssl
+
+if {![file exists ${prefix}/lib/libboost_python-mt.dylib]} {
+ depends_lib-delete port:boost
+ pre-configure {
+ ui_error "
+****
+**** ${name} requires port boost installed with variant +python26.
+**** Please do the following then try installing ${name} again:
+****
+**** sudo port install boost +python26
+****
+
+"
+ return -code error "incompatible boost installation"
+ }
+}
+
+patchfiles patch-bindings-python-setup.py.in.diff
+
+post-patch {
+ reinplace "s|__MP_BUILD_ARCH__|${build_arch}|" ${worksrcpath}/bindings/python/setup.py.in
+ }
+
+configure.env-append \
+ "PYTHON_INSTALL_PARAMS=--prefix=${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.6"
+
+configure.args --disable-silent-rules \
+ --enable-python-binding \
+ --enable-geoip \
+ --with-libgeoip \
+ --with-boost-libdir="${prefix}/lib"
+
+configure.python ${prefix}/bin/python2.6
+
+livecheck.type none
Property changes on: trunk/dports/net/libtorrent-rasterbar-devel/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/net/libtorrent-rasterbar-devel/files/patch-bindings-python-setup.py.in.diff
===================================================================
--- trunk/dports/net/libtorrent-rasterbar-devel/files/patch-bindings-python-setup.py.in.diff (rev 0)
+++ trunk/dports/net/libtorrent-rasterbar-devel/files/patch-bindings-python-setup.py.in.diff 2011-09-18 19:17:34 UTC (rev 84123)
@@ -0,0 +1,21 @@
+--- bindings/python/setup.py.in.orig 2010-08-08 01:41:52.000000000 -0700
++++ bindings/python/setup.py.in 2010-08-25 08:51:55.000000000 -0700
+@@ -23,8 +23,7 @@
+
+ def arch():
+ if platform.system() != 'Darwin': return []
+- a = os.uname()[4]
+- if a == 'Power Macintosh': a = 'ppc'
++ a = '__MP_BUILD_ARCH__'
+ return ['-arch', a]
+
+ if platform.system() == 'Windows':
+@@ -80,7 +79,7 @@
+ language='c++',
+ include_dirs = ['@top_srcdir@/include'] + parse_cmd(extra_cmd, '-I'),
+ library_dirs = ['@top_builddir@/src/.libs'] + parse_cmd(extra_cmd, '-L'),
+- extra_link_args = '@LDFLAGS@'.split() + arch(),
++ extra_link_args = '@LDFLAGS@'.split(),
+ extra_compile_args = parse_cmd(extra_cmd, '-D', True) + arch(),
+ libraries = ['torrent-rasterbar'] + parse_cmd(extra_cmd, '-l'))],
+ )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110918/53cf03c5/attachment.html>
More information about the macports-changes
mailing list