From lioux@uol.com.br  Sat Feb 27 02:38:02 2010
Return-Path: <lioux@uol.com.br>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 9C756106566C
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 27 Feb 2010 02:38:02 +0000 (UTC)
	(envelope-from lioux@uol.com.br)
Received: from goat.gigo.com (ipv6.gigo.com [IPv6:2001:470:1:18::2])
	by mx1.freebsd.org (Postfix) with ESMTP id 853A28FC19
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 27 Feb 2010 02:38:02 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
	by goat.gigo.com (Postfix) with ESMTP id 604995C8A
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 26 Feb 2010 18:38:02 -0800 (PST)
Received: from goat.gigo.com ([127.0.0.1])
	by localhost (vette.gigo.com [127.0.0.1]) (amavisd-new, port 10023)
	with ESMTP id J9KUD9uJDSn3 for <FreeBSD-gnats-submit@freebsd.org>;
	Fri, 26 Feb 2010 18:38:02 -0800 (PST)
Received: from 189.74.42.98 (unknown [189.74.42.98])
	by goat.gigo.com (Postfix) with ESMTPSA id AE3DE5CB7
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 26 Feb 2010 18:37:59 -0800 (PST)
Received: (qmail 83041 invoked by uid 1001); 26 Feb 2010 23:37:45 -0300
Message-Id: <20100227023745.82990.qmail@exxodus.fedaykin.here>
Date: 26 Feb 2010 23:37:45 -0300
From: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: dougb@FreeBSD.org
Subject: [PATCH] net-p2p/libtorrent-rasterbar-14: Build python bindings
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         144337
>Category:       ports
>Synopsis:       [PATCH] net-p2p/libtorrent-rasterbar-14: Build python bindings
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 27 02:40:01 UTC 2010
>Closed-Date:    Thu Jul 01 09:26:46 UTC 2010
>Last-Modified:  Thu Jul 01 09:26:46 UTC 2010
>Originator:     Mario Sergio Fujikawa Ferreira
>Release:        FreeBSD 8.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD exxodus.fedaykin.here 8.0-STABLE FreeBSD 8.0-STABLE #13: Sun Feb 21 11:29:04 BRT 2010
>Description:

- Build python bindings so that I can update net-p2p/deluge port
  to 1.2.0
	- Add patch and post pre.mk information to force python proper detection
- Bump PORTREVISION
- Move Makefile options around a little bit to appease portlint(1)
- Improve boost-libs detection (CONFIGURE_ARGS)
- Build with asio implementation from devel/boost-libs
- Tidy up the port a little bit:
	- Remove patches that are no longer needed (net-p2p/qbittorrent
	  now breaks with them)

	- Both CPPFLAGS and LDFLAGS only need PTHREAD additions

	- Optional documentation files are better handled by PORTDOCS
	  variable rather than PLIST substitutions

	- Since boost detection has been improved, remove post-configure
	  target

	- Identify the egg info with the full PORTNAME following
	  maintainer's intention to properly identify the port with
	  the full distribution name

	- Insure that the installed python binding (libtorrent.so)
	  has the proper permissions. The file was being installed
	  with u=rw,go= on my system due to restrictice umask.
	  Proper installation permissions have to be guaranteed by
	  the port.

- The python bindings build requires a specific devel/boost-libs
  port version so verify that on BUILD_DEPENDS.
	- Furthermore, this update depends upon PR ports/144336 so
	  we have to wait for that one to be committed.

	- Without that PR, we need USE_GCC=4.3+ on FreeBSD 8.x which
	  would force that needless dependency on all ports depending
	  on libtorrent-rasterbar-14

- Sanitize PLIST

- On a side note, net-p2p/qbittorrent still builds fine without a
  change after this update.

- The port is much simpler after this update

Added file(s):
- files/patch-m4__ax_python-fixed.m4

Removed file(s):
- files/patch-include__libtorrent__chained_buffer.hpp
- files/patch-include__libtorrent__error_code.hpp
- files/patch-include__libtorrent__proxy_base.hpp
- files/patch-include__libtorrent__socket.hpp
- files/patch-include__libtorrent__ssl_stream.hpp
- files/patch-include__libtorrent__time.hpp
- files/patch-include__libtorrent__variant_stream.hpp
- files/patch-src__broadcast_socket.cpp
- files/patch-src__enum_net.cpp
- files/patch-src__error_code.cpp
- files/patch-src__file_pool.cpp
- files/patch-src__lsd.cpp
- files/patch-src__natpmp.cpp
- files/patch-src__storage.cpp
- files/patch-src__udp_socket.cpp
- files/patch-src__upnp.cpp

Port maintainer (dougb@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- libtorrent-rasterbar-0.14.8_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/net-p2p/libtorrent-rasterbar-14/Makefile,v
retrieving revision 1.35
diff -d -u -u -r1.35 Makefile
--- Makefile	22 Feb 2010 00:53:08 -0000	1.35
+++ Makefile	27 Feb 2010 01:02:02 -0000
@@ -7,56 +7,78 @@
 
 PORTNAME=	libtorrent-rasterbar
 PORTVERSION=	0.14.8
+PORTREVISION=	1
 CATEGORIES=	net-p2p ipv6
-MASTER_SITES=	http://libtorrent.googlecode.com/files/
+MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
+MASTER_SITE_SUBDIR=
 
 MAINTAINER=	dougb@FreeBSD.org
 COMMENT=	A C++ library implementing a BitTorrent client
 
-MAKE_JOBS_SAFE=	yes
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0.6:${PORTSDIR}/devel/py-setuptools \
+		boost-libs>=1.41.0_1:${PORTSDIR}/devel/boost-libs
+LIB_DEPENDS=	boost_date_time.4:${PORTSDIR}/devel/boost-libs \
+		boost_python.4:${PORTSDIR}/devel/boost-python-libs \
+		GeoIP.5:${PORTSDIR}/net/GeoIP
 
 CONFLICTS=	rblibtorrent-[0-9]* libtorrent-rasterbar*-0.15.*
 
-LIB_DEPENDS=	boost_date_time.4:${PORTSDIR}/devel/boost-libs \
-		GeoIP.5:${PORTSDIR}/net/GeoIP
+MAKE_JOBS_SAFE=	yes
 
 USE_GNOME=	gnomehack
 USE_OPENSSL=	yes
+USE_PYTHON=	2.4+
 USE_AUTOTOOLS=	aclocal:110 automake:110 autoconf:262 libtool:22
 ACLOCAL_ARGS=	-I m4
 CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
 CONFIGURE_ARGS=	--disable-debug \
-		--disable-python-binding \
-		--with-boost-system=boost_system \
+		--enable-python-binding \
+		--with-boost=${LOCALBASE} \
+		--with-boost-asio=boost_system \
 		--with-boost-filesystem=boost_filesystem \
-		--with-boost-thread=boost_thread \
-		--with-boost-regex=boost_regex \
 		--with-boost-program-options=boost_program_options \
-		--with-asio=shipped \
+		--with-boost-python=boost_python \
+		--with-boost-regex=boost_regex \
+		--with-boost-system=boost_system \
+		--with-boost-thread=boost_thread \
 		--with-dht=on \
 		--with-encryption=on \
 		--with-libgeoip \
 		--with-zlib=system
 USE_LDCONFIG=	yes
+INSTALLS_EGGINFO=	yes
+PYDISTUTILS_EGGINFO=	python_libtorrent_rasterbar-${PORTVERSION}-py${PYTHON_VER}.egg-info
 
-CPPFLAGS=	-I${LOCALBASE}/include ${PTHREAD_CFLAGS}
-LDFLAGS=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}
+CPPFLAGS+=	${PTHREAD_CFLAGS}
+LDFLAGS+=	${PTHREAD_LIBS}
+
+.if !defined(NOPORTDOCS)
+PORTDOCS=	*
+.endif
 
 .include <bsd.port.pre.mk>
 
 .if ${OSVERSION} < 700000
-BROKEN=		does not compile on 6.x
+BROKEN=		does not compile on FreeBSD versions prior to 7.x
 .endif
 
+##
+# information available after <bsd.port.pre.mk>
+##
+# insure python paths are correctly identified
+CONFIGURE_ENV+=	PYTHON_INCLUDEDIR="${PYTHON_INCLUDEDIR}" \
+		PYTHON_VERSION="${PYTHON_VERSION}"
+# prefix PKGNAME with python- so that the egg info file is properly named. See post-patch target.
+PYDISTUTILS_PKGNAME=	python-${PORTNAME}
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|libdir)/pkgconfig|prefix)/libdata/pkgconfig|g' \
 		${WRKSRC}/Makefile.am
-	@${REINPLACE_CMD} -e 's|^AM_CFLAGS|AM_CPPFLAGS|g ; \
-		 s|@BOOST_SYSTEM_LIB@||g' ${WRKSRC}/src/Makefile.am
-
-post-configure:
-	@${REINPLACE_CMD} -e 's|@BOOST_SYSTEM_LIB@|-lboost_system|' \
-		${WRKSRC}/libtorrent-rasterbar.pc
+	@${REINPLACE_CMD} -e 's|^AM_CFLAGS|AM_CPPFLAGS|g' \
+		${WRKSRC}/src/Makefile.am
+# add -rasterbar to the python bindings egg info file to insure proper naming
+	@${REINPLACE_CMD} -E -e "s|(name[[:space:]]*=[[:space:]]*'python-libtorrent)'|\1-rasterbar'|" \
+		${WRKSRC}/bindings/python/setup.py.in
 
 post-install:
 .if !defined(NOPORTDOCS)
@@ -67,5 +89,7 @@
 	${INSTALL_DATA} ${WRKSRC}/docs/*.jpg ${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/docs/*.png ${DOCSDIR}
 .endif
+# fix installation permissions
+	@${CHMOD} ${SHAREMODE} ${PYTHONPREFIX_SITELIBDIR}/libtorrent.so
 
 .include <bsd.port.post.mk>
Index: pkg-plist
===================================================================
RCS file: /home/pcvs/ports/net-p2p/libtorrent-rasterbar-14/pkg-plist,v
retrieving revision 1.20
diff -d -u -u -r1.20 pkg-plist
--- pkg-plist	21 Feb 2010 23:30:19 -0000	1.20
+++ pkg-plist	27 Feb 2010 01:02:02 -0000
@@ -1,194 +1,5 @@
 include/libtorrent/alert.hpp
 include/libtorrent/alert_types.hpp
-include/libtorrent/asio/basic_datagram_socket.hpp
-include/libtorrent/asio/basic_deadline_timer.hpp
-include/libtorrent/asio/basic_io_object.hpp
-include/libtorrent/asio/basic_raw_socket.hpp
-include/libtorrent/asio/basic_serial_port.hpp
-include/libtorrent/asio/basic_socket.hpp
-include/libtorrent/asio/basic_socket_acceptor.hpp
-include/libtorrent/asio/basic_socket_iostream.hpp
-include/libtorrent/asio/basic_socket_streambuf.hpp
-include/libtorrent/asio/basic_stream_socket.hpp
-include/libtorrent/asio/basic_streambuf.hpp
-include/libtorrent/asio/buffer.hpp
-include/libtorrent/asio/buffered_read_stream.hpp
-include/libtorrent/asio/buffered_read_stream_fwd.hpp
-include/libtorrent/asio/buffered_stream.hpp
-include/libtorrent/asio/buffered_stream_fwd.hpp
-include/libtorrent/asio/buffered_write_stream.hpp
-include/libtorrent/asio/buffered_write_stream_fwd.hpp
-include/libtorrent/asio/buffers_iterator.hpp
-include/libtorrent/asio/completion_condition.hpp
-include/libtorrent/asio/datagram_socket_service.hpp
-include/libtorrent/asio/deadline_timer.hpp
-include/libtorrent/asio/deadline_timer_service.hpp
-include/libtorrent/asio/detail/bind_handler.hpp
-include/libtorrent/asio/detail/buffer_resize_guard.hpp
-include/libtorrent/asio/detail/buffered_stream_storage.hpp
-include/libtorrent/asio/detail/call_stack.hpp
-include/libtorrent/asio/detail/const_buffers_iterator.hpp
-include/libtorrent/asio/detail/consuming_buffers.hpp
-include/libtorrent/asio/detail/deadline_timer_service.hpp
-include/libtorrent/asio/detail/descriptor_ops.hpp
-include/libtorrent/asio/detail/dev_poll_reactor.hpp
-include/libtorrent/asio/detail/dev_poll_reactor_fwd.hpp
-include/libtorrent/asio/detail/epoll_reactor.hpp
-include/libtorrent/asio/detail/epoll_reactor_fwd.hpp
-include/libtorrent/asio/detail/event.hpp
-include/libtorrent/asio/detail/fd_set_adapter.hpp
-include/libtorrent/asio/detail/handler_alloc_helpers.hpp
-include/libtorrent/asio/detail/handler_base_from_member.hpp
-include/libtorrent/asio/detail/handler_invoke_helpers.hpp
-include/libtorrent/asio/detail/handler_queue.hpp
-include/libtorrent/asio/detail/hash_map.hpp
-include/libtorrent/asio/detail/indirect_handler_queue.hpp
-include/libtorrent/asio/detail/io_control.hpp
-include/libtorrent/asio/detail/kqueue_reactor.hpp
-include/libtorrent/asio/detail/kqueue_reactor_fwd.hpp
-include/libtorrent/asio/detail/local_free_on_block_exit.hpp
-include/libtorrent/asio/detail/mutex.hpp
-include/libtorrent/asio/detail/noncopyable.hpp
-include/libtorrent/asio/detail/null_event.hpp
-include/libtorrent/asio/detail/null_mutex.hpp
-include/libtorrent/asio/detail/null_signal_blocker.hpp
-include/libtorrent/asio/detail/null_thread.hpp
-include/libtorrent/asio/detail/null_tss_ptr.hpp
-include/libtorrent/asio/detail/old_win_sdk_compat.hpp
-include/libtorrent/asio/detail/pipe_select_interrupter.hpp
-include/libtorrent/asio/detail/pop_options.hpp
-include/libtorrent/asio/detail/posix_event.hpp
-include/libtorrent/asio/detail/posix_fd_set_adapter.hpp
-include/libtorrent/asio/detail/posix_mutex.hpp
-include/libtorrent/asio/detail/posix_signal_blocker.hpp
-include/libtorrent/asio/detail/posix_thread.hpp
-include/libtorrent/asio/detail/posix_tss_ptr.hpp
-include/libtorrent/asio/detail/push_options.hpp
-include/libtorrent/asio/detail/reactive_descriptor_service.hpp
-include/libtorrent/asio/detail/reactive_serial_port_service.hpp
-include/libtorrent/asio/detail/reactive_socket_service.hpp
-include/libtorrent/asio/detail/reactor_op_queue.hpp
-include/libtorrent/asio/detail/resolver_service.hpp
-include/libtorrent/asio/detail/scoped_lock.hpp
-include/libtorrent/asio/detail/select_interrupter.hpp
-include/libtorrent/asio/detail/select_reactor.hpp
-include/libtorrent/asio/detail/select_reactor_fwd.hpp
-include/libtorrent/asio/detail/service_base.hpp
-include/libtorrent/asio/detail/service_id.hpp
-include/libtorrent/asio/detail/service_registry.hpp
-include/libtorrent/asio/detail/service_registry_fwd.hpp
-include/libtorrent/asio/detail/signal_blocker.hpp
-include/libtorrent/asio/detail/signal_init.hpp
-include/libtorrent/asio/detail/socket_holder.hpp
-include/libtorrent/asio/detail/socket_ops.hpp
-include/libtorrent/asio/detail/socket_option.hpp
-include/libtorrent/asio/detail/socket_select_interrupter.hpp
-include/libtorrent/asio/detail/socket_types.hpp
-include/libtorrent/asio/detail/strand_service.hpp
-include/libtorrent/asio/detail/task_io_service.hpp
-include/libtorrent/asio/detail/task_io_service_2lock.hpp
-include/libtorrent/asio/detail/task_io_service_fwd.hpp
-include/libtorrent/asio/detail/thread.hpp
-include/libtorrent/asio/detail/throw_error.hpp
-include/libtorrent/asio/detail/timer_queue.hpp
-include/libtorrent/asio/detail/timer_queue_base.hpp
-include/libtorrent/asio/detail/tss_ptr.hpp
-include/libtorrent/asio/detail/win_event.hpp
-include/libtorrent/asio/detail/win_fd_set_adapter.hpp
-include/libtorrent/asio/detail/win_iocp_handle_service.hpp
-include/libtorrent/asio/detail/win_iocp_io_service.hpp
-include/libtorrent/asio/detail/win_iocp_io_service_fwd.hpp
-include/libtorrent/asio/detail/win_iocp_serial_port_service.hpp
-include/libtorrent/asio/detail/win_iocp_socket_service.hpp
-include/libtorrent/asio/detail/win_mutex.hpp
-include/libtorrent/asio/detail/win_signal_blocker.hpp
-include/libtorrent/asio/detail/win_thread.hpp
-include/libtorrent/asio/detail/win_tss_ptr.hpp
-include/libtorrent/asio/detail/wince_thread.hpp
-include/libtorrent/asio/detail/winsock_init.hpp
-include/libtorrent/asio/detail/wrapped_handler.hpp
-include/libtorrent/asio/error.hpp
-include/libtorrent/asio/error_code.hpp
-include/libtorrent/asio/handler_alloc_hook.hpp
-include/libtorrent/asio/handler_invoke_hook.hpp
-include/libtorrent/asio/impl/error_code.ipp
-include/libtorrent/asio/impl/io_service.ipp
-include/libtorrent/asio/impl/read.ipp
-include/libtorrent/asio/impl/read_at.ipp
-include/libtorrent/asio/impl/read_until.ipp
-include/libtorrent/asio/impl/serial_port_base.ipp
-include/libtorrent/asio/impl/write.ipp
-include/libtorrent/asio/impl/write_at.ipp
-include/libtorrent/asio/io_service.hpp
-include/libtorrent/asio/ip/address.hpp
-include/libtorrent/asio/ip/address_v4.hpp
-include/libtorrent/asio/ip/address_v6.hpp
-include/libtorrent/asio/ip/basic_endpoint.hpp
-include/libtorrent/asio/ip/basic_resolver.hpp
-include/libtorrent/asio/ip/basic_resolver_entry.hpp
-include/libtorrent/asio/ip/basic_resolver_iterator.hpp
-include/libtorrent/asio/ip/basic_resolver_query.hpp
-include/libtorrent/asio/ip/detail/socket_option.hpp
-include/libtorrent/asio/ip/host_name.hpp
-include/libtorrent/asio/ip/icmp.hpp
-include/libtorrent/asio/ip/multicast.hpp
-include/libtorrent/asio/ip/resolver_query_base.hpp
-include/libtorrent/asio/ip/resolver_service.hpp
-include/libtorrent/asio/ip/tcp.hpp
-include/libtorrent/asio/ip/udp.hpp
-include/libtorrent/asio/ip/unicast.hpp
-include/libtorrent/asio/ip/v6_only.hpp
-include/libtorrent/asio/is_read_buffered.hpp
-include/libtorrent/asio/is_write_buffered.hpp
-include/libtorrent/asio/local/basic_endpoint.hpp
-include/libtorrent/asio/local/connect_pair.hpp
-include/libtorrent/asio/local/datagram_protocol.hpp
-include/libtorrent/asio/local/stream_protocol.hpp
-include/libtorrent/asio/placeholders.hpp
-include/libtorrent/asio/posix/basic_descriptor.hpp
-include/libtorrent/asio/posix/basic_stream_descriptor.hpp
-include/libtorrent/asio/posix/descriptor_base.hpp
-include/libtorrent/asio/posix/stream_descriptor.hpp
-include/libtorrent/asio/posix/stream_descriptor_service.hpp
-include/libtorrent/asio/raw_socket_service.hpp
-include/libtorrent/asio/read.hpp
-include/libtorrent/asio/read_at.hpp
-include/libtorrent/asio/read_until.hpp
-include/libtorrent/asio/serial_port.hpp
-include/libtorrent/asio/serial_port_base.hpp
-include/libtorrent/asio/serial_port_service.hpp
-include/libtorrent/asio/socket_acceptor_service.hpp
-include/libtorrent/asio/socket_base.hpp
-include/libtorrent/asio/ssl/basic_context.hpp
-include/libtorrent/asio/ssl/context.hpp
-include/libtorrent/asio/ssl/context_base.hpp
-include/libtorrent/asio/ssl/context_service.hpp
-include/libtorrent/asio/ssl/detail/openssl_context_service.hpp
-include/libtorrent/asio/ssl/detail/openssl_init.hpp
-include/libtorrent/asio/ssl/detail/openssl_operation.hpp
-include/libtorrent/asio/ssl/detail/openssl_stream_service.hpp
-include/libtorrent/asio/ssl/detail/openssl_types.hpp
-include/libtorrent/asio/ssl/stream.hpp
-include/libtorrent/asio/ssl/stream_base.hpp
-include/libtorrent/asio/ssl/stream_service.hpp
-include/libtorrent/asio/ssl.hpp
-include/libtorrent/asio/strand.hpp
-include/libtorrent/asio/stream_socket_service.hpp
-include/libtorrent/asio/streambuf.hpp
-include/libtorrent/asio/system_error.hpp
-include/libtorrent/asio/thread.hpp
-include/libtorrent/asio/time_traits.hpp
-include/libtorrent/asio/version.hpp
-include/libtorrent/asio/windows/basic_handle.hpp
-include/libtorrent/asio/windows/basic_random_access_handle.hpp
-include/libtorrent/asio/windows/basic_stream_handle.hpp
-include/libtorrent/asio/windows/random_access_handle.hpp
-include/libtorrent/asio/windows/random_access_handle_service.hpp
-include/libtorrent/asio/windows/stream_handle.hpp
-include/libtorrent/asio/windows/stream_handle_service.hpp
-include/libtorrent/asio/write.hpp
-include/libtorrent/asio/write_at.hpp
-include/libtorrent/asio.hpp
 include/libtorrent/assert.hpp
 include/libtorrent/aux_/session_impl.hpp
 include/libtorrent/bandwidth_limit.hpp
@@ -290,62 +101,9 @@
 lib/libtorrent-rasterbar.la
 lib/libtorrent-rasterbar.so
 lib/libtorrent-rasterbar.so.5
+%%PYTHON_SITELIBDIR%%/libtorrent.so
 libdata/pkgconfig/libtorrent-rasterbar.pc
-%%PORTDOCS%%%%DOCSDIR%%/Linkage.png
-%%PORTDOCS%%%%DOCSDIR%%/acquasition.jpg
-%%PORTDOCS%%%%DOCSDIR%%/arctic_thumb.png
-%%PORTDOCS%%%%DOCSDIR%%/bitbuddy_thumb.jpg
-%%PORTDOCS%%%%DOCSDIR%%/bitfox.png
-%%PORTDOCS%%%%DOCSDIR%%/bitrocket_thumb.png
-%%PORTDOCS%%%%DOCSDIR%%/bitscast_thumb.png
-%%PORTDOCS%%%%DOCSDIR%%/bitslug_thumb.png
-%%PORTDOCS%%%%DOCSDIR%%/btg_thumb.jpg
-%%PORTDOCS%%%%DOCSDIR%%/bubba.png
-%%PORTDOCS%%%%DOCSDIR%%/building.html
-%%PORTDOCS%%%%DOCSDIR%%/client_test.html
-%%PORTDOCS%%%%DOCSDIR%%/client_test.png
-%%PORTDOCS%%%%DOCSDIR%%/deluge.png
-%%PORTDOCS%%%%DOCSDIR%%/dht_extensions.html
-%%PORTDOCS%%%%DOCSDIR%%/electric_sheep_thumb.jpg
-%%PORTDOCS%%%%DOCSDIR%%/examples.html
-%%PORTDOCS%%%%DOCSDIR%%/extension_protocol.html
-%%PORTDOCS%%%%DOCSDIR%%/fatrat.png
-%%PORTDOCS%%%%DOCSDIR%%/fdm.png
-%%PORTDOCS%%%%DOCSDIR%%/features.html
-%%PORTDOCS%%%%DOCSDIR%%/firetorrent.png
-%%PORTDOCS%%%%DOCSDIR%%/flush.jpg
-%%PORTDOCS%%%%DOCSDIR%%/halite_thumb.png
-%%PORTDOCS%%%%DOCSDIR%%/im_thumb.jpg
-%%PORTDOCS%%%%DOCSDIR%%/index.html
-%%PORTDOCS%%%%DOCSDIR%%/leechcraft.png
-%%PORTDOCS%%%%DOCSDIR%%/libtorrent_plugins.html
-%%PORTDOCS%%%%DOCSDIR%%/lince.png
-%%PORTDOCS%%%%DOCSDIR%%/make_torrent.html
-%%PORTDOCS%%%%DOCSDIR%%/manual.html
-%%PORTDOCS%%%%DOCSDIR%%/miro.jpg
-%%PORTDOCS%%%%DOCSDIR%%/moopolice_thumb.gif
-%%PORTDOCS%%%%DOCSDIR%%/projects.html
-%%PORTDOCS%%%%DOCSDIR%%/pump.png
-%%PORTDOCS%%%%DOCSDIR%%/python_binding.html
-%%PORTDOCS%%%%DOCSDIR%%/qbittorrent_thumb.jpg
-%%PORTDOCS%%%%DOCSDIR%%/running_tests.html
-%%PORTDOCS%%%%DOCSDIR%%/style.css
-%%PORTDOCS%%%%DOCSDIR%%/tvitty.jpg
-%%PORTDOCS%%%%DOCSDIR%%/udp_tracker_protocol.html
-%%PORTDOCS%%%%DOCSDIR%%/unicode_support.png
-%%PORTDOCS%%%%DOCSDIR%%/ziptorrent_thumb.gif
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
 @dirrm include/libtorrent/kademlia
 @dirrm include/libtorrent/extensions
 @dirrm include/libtorrent/aux_
-@dirrm include/libtorrent/asio/windows
-@dirrm include/libtorrent/asio/ssl/detail
-@dirrm include/libtorrent/asio/ssl
-@dirrm include/libtorrent/asio/posix
-@dirrm include/libtorrent/asio/local
-@dirrm include/libtorrent/asio/ip/detail
-@dirrm include/libtorrent/asio/ip
-@dirrm include/libtorrent/asio/impl
-@dirrm include/libtorrent/asio/detail
-@dirrm include/libtorrent/asio
 @dirrm include/libtorrent
Index: files/patch-configure.in
===================================================================
RCS file: /home/pcvs/ports/net-p2p/libtorrent-rasterbar-14/files/patch-configure.in,v
retrieving revision 1.3
diff -d -u -u -r1.3 patch-configure.in
--- files/patch-configure.in	21 Feb 2010 23:30:19 -0000	1.3
+++ files/patch-configure.in	27 Feb 2010 01:02:02 -0000
@@ -1,34 +1,6 @@
---- configure.in.orig	2009-08-05 11:29:42.000000000 +0900
-+++ configure.in	2009-08-29 03:28:28.000000000 +0900
-@@ -65,19 +65,6 @@
- AM_CONDITIONAL([ENABLE_SHIPPED_ASIO], false)
- 
- dnl Check for boost libraries.
--AX_BOOST_BASE([1.35],[
--   AX_BOOST_SYSTEM
--   dnl check that Boost.System was found:
--   if test -z "$BOOST_SYSTEM_LIB"; then
--      AC_MSG_ERROR([unable to find Boost.System library, currently this is required.])
--   fi
--
--   AX_BOOST_ASIO
--   dnl check that Boost.Asio was found:
--   if test -z "$BOOST_ASIO_LIB"; then
--      AC_MSG_ERROR([Unable to find Boost.Asio library, currently this is required.])
--   fi
--],[
-    AX_BOOST_BASE([1.34],[
- 
-    dnl the user can choose which Asio library to use
-@@ -121,7 +108,6 @@
-     esac
-     AM_CONDITIONAL([ENABLE_SHIPPED_ASIO], [test x$enable_shipped_asio = "xyes"])
- ])
--])
- 
- AC_MSG_NOTICE([BOOST_CPPFLAGS=$BOOST_CPPFLAGS])
- AC_MSG_NOTICE([BOOST_LDFLAGS=$BOOST_LDFLAGS])
-@@ -351,7 +337,7 @@
+--- configure.in.orig	2010-01-09 12:47:10.000000000 -0200
++++ configure.in	2010-02-26 21:34:51.000000000 -0300
+@@ -419,7 +419,7 @@
  esac
  
  dnl Use possibly specific python install params
@@ -37,7 +9,7 @@
  	PYTHON_INSTALL_PARAMS='--prefix=$(DESTDIR)$(prefix)'
  fi
  AC_SUBST(PYTHON_INSTALL_PARAMS)
-@@ -413,7 +399,7 @@
+@@ -481,7 +481,7 @@
  esac
  
  dnl Set some defines if we are building a shared library
@@ -46,7 +18,7 @@
  	AC_DEFINE(TORRENT_BUILDING_SHARED,,[Make sure the functions and classes are exported.])
  	COMPILETIME_OPTIONS+="-DTORRENT_LINKING_SHARED "
  fi
-@@ -425,7 +411,7 @@
+@@ -496,7 +496,7 @@
  	[case "$enableval" in
  		no)
  			AC_DEFINE(NDEBUG,,[Define to disable debugging])
@@ -55,7 +27,7 @@
  #			COMPILETIME_OPTIONS+="-DNDEBUG "
  			;;
  		yes)
-@@ -438,7 +424,7 @@
+@@ -509,7 +509,7 @@
  			AC_MSG_ERROR([Unknown --enable-debug option "$enableval". Use either "yes" or "no".])
  			;;
  	esac],
Index: files/patch-include__libtorrent__chained_buffer.hpp
===================================================================
RCS file: files/patch-include__libtorrent__chained_buffer.hpp
diff -N files/patch-include__libtorrent__chained_buffer.hpp
--- files/patch-include__libtorrent__chained_buffer.hpp	21 Feb 2010 23:30:19 -0000	1.2
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,20 +0,0 @@
---- include/libtorrent/chained_buffer.hpp.orig	2008-10-05 10:41:54.000000000 +0900
-+++ include/libtorrent/chained_buffer.hpp	2009-04-19 05:13:19.000000000 +0900
-@@ -35,7 +35,7 @@
- 
- #include <boost/function.hpp>
- #include <boost/version.hpp>
--#if BOOST_VERSION < 103500
-+#if 1 // BOOST_VERSION < 103500
- #include <asio/buffer.hpp>
- #else
- #include <boost/asio/buffer.hpp>
-@@ -45,7 +45,7 @@
- 
- namespace libtorrent
- {
--#if BOOST_VERSION >= 103500
-+#if 0 // BOOST_VERSION >= 103500
- 	namespace asio = boost::asio;
- #endif
- 	struct chained_buffer
Index: files/patch-include__libtorrent__error_code.hpp
===================================================================
RCS file: files/patch-include__libtorrent__error_code.hpp
diff -N files/patch-include__libtorrent__error_code.hpp
--- files/patch-include__libtorrent__error_code.hpp	21 Feb 2010 23:30:19 -0000	1.2
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,20 +0,0 @@
---- include/libtorrent/error_code.hpp.orig	2008-10-05 10:41:54.000000000 +0900
-+++ include/libtorrent/error_code.hpp	2009-04-19 05:15:39.000000000 +0900
-@@ -35,7 +35,7 @@
- 
- #include <boost/version.hpp>
- 
--#if BOOST_VERSION < 103500
-+#if 1 // BOOST_VERSION < 103500
- #include <asio/error_code.hpp>
- #else
- #include <boost/system/error_code.hpp>
-@@ -53,7 +53,7 @@
- 		};
- 	}
- 
--#if BOOST_VERSION < 103500
-+#if 1 // BOOST_VERSION < 103500
- 	typedef asio::error_code error_code;
- 	inline asio::error::error_category get_posix_category() { return asio::error::system_category; }
- 	inline asio::error::error_category get_system_category() { return asio::error::system_category; }
Index: files/patch-include__libtorrent__proxy_base.hpp
===================================================================
RCS file: files/patch-include__libtorrent__proxy_base.hpp
diff -N files/patch-include__libtorrent__proxy_base.hpp
--- files/patch-include__libtorrent__proxy_base.hpp	21 Feb 2010 23:30:19 -0000	1.2
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
---- include/libtorrent/proxy_base.hpp.orig	2008-10-05 10:41:54.000000000 +0900
-+++ include/libtorrent/proxy_base.hpp	2009-04-19 05:17:07.000000000 +0900
-@@ -38,7 +38,7 @@
- #include <boost/bind.hpp>
- #include <boost/lexical_cast.hpp>
- #include <boost/function.hpp>
--#if BOOST_VERSION < 103500
-+#if 1 // BOOST_VERSION < 103500
- #include <asio/read.hpp>
- #include <asio/write.hpp>
- #else
Index: files/patch-include__libtorrent__socket.hpp
===================================================================
RCS file: files/patch-include__libtorrent__socket.hpp
diff -N files/patch-include__libtorrent__socket.hpp
--- files/patch-include__libtorrent__socket.hpp	21 Feb 2010 23:30:19 -0000	1.2
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,20 +0,0 @@
---- include/libtorrent/socket.hpp.orig	2009-02-08 17:13:07.000000000 +0900
-+++ include/libtorrent/socket.hpp	2009-04-19 05:18:58.000000000 +0900
-@@ -47,7 +47,7 @@
- 
- #include <boost/version.hpp>
- 
--#if BOOST_VERSION < 103500
-+#if 1 // BOOST_VERSION < 103500
- #include <asio/ip/tcp.hpp>
- #include <asio/ip/udp.hpp>
- #include <asio/io_service.hpp>
-@@ -82,7 +82,7 @@
- namespace libtorrent
- {
- 
--#if BOOST_VERSION < 103500
-+#if 1 // BOOST_VERSION < 103500
- 	using asio::ip::tcp;
- 	using asio::ip::udp;
- 	using asio::async_write;
Index: files/patch-include__libtorrent__ssl_stream.hpp
===================================================================
RCS file: files/patch-include__libtorrent__ssl_stream.hpp
diff -N files/patch-include__libtorrent__ssl_stream.hpp
--- files/patch-include__libtorrent__ssl_stream.hpp	21 Feb 2010 23:30:19 -0000	1.2
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
---- include/libtorrent/ssl_stream.hpp.orig	2008-10-21 17:07:26.000000000 +0900
-+++ include/libtorrent/ssl_stream.hpp	2009-04-19 05:19:42.000000000 +0900
-@@ -34,7 +34,7 @@
- #define TORRENT_SSL_STREAM_HPP_INCLUDED
- 
- #include "libtorrent/socket.hpp"
--#if BOOST_VERSION < 103500
-+#if 1 // BOOST_VERSION < 103500
- #include <asio/ssl.hpp>
- #else
- #include <boost/asio/ssl.hpp>
Index: files/patch-include__libtorrent__time.hpp
===================================================================
RCS file: files/patch-include__libtorrent__time.hpp
diff -N files/patch-include__libtorrent__time.hpp
--- files/patch-include__libtorrent__time.hpp	21 Feb 2010 23:30:19 -0000	1.2
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,29 +0,0 @@
---- include/libtorrent/time.hpp.orig	2008-11-30 04:31:36.000000000 +0900
-+++ include/libtorrent/time.hpp	2009-04-19 23:13:40.000000000 +0900
-@@ -87,7 +87,7 @@
- 
- #else
- 
--#if BOOST_VERSION < 103500
-+#if 1 // BOOST_VERSION < 103500
- #include <asio/time_traits.hpp>
- #else
- #include <boost/asio/time_traits.hpp>
-@@ -159,7 +159,7 @@
- }
- 
- // asio time_traits
--#if BOOST_VERSION >= 103500
-+#if 0 // BOOST_VERSION >= 103500
- namespace boost { 
- #endif
- namespace asio
-@@ -182,7 +182,7 @@
- 		{ return boost::posix_time::microseconds(libtorrent::total_microseconds(d)); }
- 	};
- }
--#if BOOST_VERSION >= 103500
-+#if 0 // BOOST_VERSION >= 103500
- }
- #endif
- 
Index: files/patch-include__libtorrent__variant_stream.hpp
===================================================================
RCS file: files/patch-include__libtorrent__variant_stream.hpp
diff -N files/patch-include__libtorrent__variant_stream.hpp
--- files/patch-include__libtorrent__variant_stream.hpp	21 Feb 2010 23:30:19 -0000	1.2
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
---- include/libtorrent/variant_stream.hpp.orig	2008-10-05 10:41:54.000000000 +0900
-+++ include/libtorrent/variant_stream.hpp	2009-04-19 05:21:46.000000000 +0900
-@@ -21,7 +21,7 @@
- # include <boost/type_traits/add_pointer.hpp>
- # include <boost/noncopyable.hpp>
- 
--#if BOOST_VERSION < 103500
-+#if 1 // BOOST_VERSION < 103500
- #include <asio/io_service.hpp>
- #else
- #include <boost/asio/io_service.hpp>
Index: files/patch-m4__ax_python-fixed.m4
===================================================================
RCS file: files/patch-m4__ax_python-fixed.m4
diff -N files/patch-m4__ax_python-fixed.m4
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-m4__ax_python-fixed.m4	27 Feb 2010 01:02:02 -0000
@@ -0,0 +1,43 @@
+--- m4/ax_python-fixed.m4.orig	2010-02-18 23:49:52.000000000 -0200
++++ m4/ax_python-fixed.m4	2010-02-19 00:17:47.000000000 -0200
+@@ -58,38 +58,10 @@
+ AC_DEFUN([AX_PYTHON],
+ [AC_MSG_CHECKING(for python build information)
+ AC_MSG_RESULT([])
+-for python in python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do
+-# AC_CHECK_PROGS(PYTHON_BIN, [$python])
+-PYTHON_BIN=$python
+-ax_python_bin=$PYTHON_BIN
+-if test x$ax_python_bin != x; then
+-   AC_CHECK_LIB($ax_python_bin, main, ax_python_lib=$ax_python_bin, ax_python_lib=no)
+-   AC_CHECK_HEADER([$ax_python_bin/Python.h], ax_python_header=/usr/include/$ax_python_bin, ax_python_header=no)
+-   if test $ax_python_lib != no; then
+-     if test $ax_python_header != no; then
+-       break;
+-     fi
+-   fi
+-   AC_CHECK_HEADER([$ax_python_bin/Python.h], ax_python_header=/opt/local/include/$ax_python_bin, ax_python_header=no)
+-   if test $ax_python_lib != no; then
+-     if test $ax_python_header != no; then
+-       break;
+-     fi
+-   fi
+-fi
+-done
+-if test x$ax_python_bin = x; then
+-   ax_python_bin=no
+-fi
+-if test x$ax_python_header = x; then
+-   ax_python_header=no
+-fi
+-if test x$ax_python_lib = x; then
+-   ax_python_lib=no
+-fi
++ax_python_header=${PYTHON_INCLUDEDIR}
++ax_python_lib=python${PYTHON_VERSION}
+ 
+ AC_MSG_RESULT([  results of the Python check:])
+-AC_MSG_RESULT([    Binary:      $ax_python_bin])
+ AC_MSG_RESULT([    Library:     $ax_python_lib])
+ AC_MSG_RESULT([    Include Dir: $ax_python_header])
+ 
Index: files/patch-src__broadcast_socket.cpp
===================================================================
RCS file: files/patch-src__broadcast_socket.cpp
diff -N files/patch-src__broadcast_socket.cpp
--- files/patch-src__broadcast_socket.cpp	21 Feb 2010 23:30:19 -0000	1.2
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
---- src/broadcast_socket.cpp.orig	2008-10-22 10:15:07.000000000 +0900
-+++ src/broadcast_socket.cpp	2009-04-19 05:27:08.000000000 +0900
-@@ -32,7 +32,7 @@
- 
- #include <boost/version.hpp>
- 
--#if BOOST_VERSION < 103500
-+#if 1 // BOOST_VERSION < 103500
- #include <asio/ip/host_name.hpp>
- #include <asio/ip/multicast.hpp>
- #else
Index: files/patch-src__enum_net.cpp
===================================================================
RCS file: files/patch-src__enum_net.cpp
diff -N files/patch-src__enum_net.cpp
--- files/patch-src__enum_net.cpp	21 Feb 2010 23:30:19 -0000	1.2
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
---- src/enum_net.cpp.orig	2009-02-08 17:13:04.000000000 +0900
-+++ src/enum_net.cpp	2009-04-19 05:28:22.000000000 +0900
-@@ -35,7 +35,7 @@
- #include <vector>
- #include "libtorrent/enum_net.hpp"
- #include "libtorrent/broadcast_socket.hpp"
--#if BOOST_VERSION < 103500
-+#if 1 // BOOST_VERSION < 103500
- #include <asio/ip/host_name.hpp>
- #else
- #include <boost/asio/ip/host_name.hpp>
Index: files/patch-src__error_code.cpp
===================================================================
RCS file: files/patch-src__error_code.cpp
diff -N files/patch-src__error_code.cpp
--- files/patch-src__error_code.cpp	21 Feb 2010 23:30:19 -0000	1.2
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
---- src/error_code.cpp.orig	2008-10-05 10:41:56.000000000 +0900
-+++ src/error_code.cpp	2009-04-19 05:35:55.000000000 +0900
-@@ -32,7 +32,7 @@
- 
- #include <boost/version.hpp>
- 
--#if BOOST_VERSION >= 103500
-+#if 0 // BOOST_VERSION >= 103500
- 
- #include "libtorrent/error_code.hpp"
- 
Index: files/patch-src__file_pool.cpp
===================================================================
RCS file: files/patch-src__file_pool.cpp
diff -N files/patch-src__file_pool.cpp
--- files/patch-src__file_pool.cpp	21 Feb 2010 23:30:19 -0000	1.2
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
---- src/file_pool.cpp.orig	2009-02-08 17:13:04.000000000 +0900
-+++ src/file_pool.cpp	2009-04-19 05:29:34.000000000 +0900
-@@ -62,7 +62,7 @@
- 			{
- 				// this means that another instance of the storage
- 				// is using the exact same file.
--#if BOOST_VERSION >= 103500
-+#if 0 // BOOST_VERSION >= 103500
- 				ec = error_code(errors::file_collision, libtorrent_category);
- #endif
- 				return boost::shared_ptr<file>();
Index: files/patch-src__lsd.cpp
===================================================================
RCS file: files/patch-src__lsd.cpp
diff -N files/patch-src__lsd.cpp
--- files/patch-src__lsd.cpp	21 Feb 2010 23:30:20 -0000	1.2
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
---- src/lsd.cpp.orig	2009-02-12 03:16:27.000000000 +0900
-+++ src/lsd.cpp	2009-04-19 05:30:17.000000000 +0900
-@@ -41,7 +41,7 @@
- 
- #include <boost/bind.hpp>
- #include <boost/ref.hpp>
--#if BOOST_VERSION < 103500
-+#if 1 // BOOST_VERSION < 103500
- #include <asio/ip/host_name.hpp>
- #include <asio/ip/multicast.hpp>
- #else
Index: files/patch-src__natpmp.cpp
===================================================================
RCS file: files/patch-src__natpmp.cpp
diff -N files/patch-src__natpmp.cpp
--- files/patch-src__natpmp.cpp	21 Feb 2010 23:30:20 -0000	1.2
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
---- src/natpmp.cpp.orig	2009-02-08 17:13:04.000000000 +0900
-+++ src/natpmp.cpp	2009-04-19 05:30:54.000000000 +0900
-@@ -35,7 +35,7 @@
- #include <boost/version.hpp>
- #include <boost/bind.hpp>
- 
--#if BOOST_VERSION < 103500
-+#if 1 // BOOST_VERSION < 103500
- #include <asio/ip/host_name.hpp>
- #else
- #include <boost/asio/ip/host_name.hpp>
Index: files/patch-src__storage.cpp
===================================================================
RCS file: files/patch-src__storage.cpp
diff -N files/patch-src__storage.cpp
--- files/patch-src__storage.cpp	21 Feb 2010 23:30:20 -0000	1.5
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,114 +0,0 @@
---- src/storage.cpp.orig	2009-11-06 09:45:13.000000000 -0800
-+++ src/storage.cpp	2009-11-21 23:12:53.000000000 -0800
-@@ -53,7 +53,7 @@
- #include <boost/multi_index_container.hpp>
- #include <boost/multi_index/member.hpp>
- #include <boost/multi_index/ordered_index.hpp>
--#if BOOST_VERSION >= 103500
-+#if 0 // BOOST_VERSION >= 103500
- #include <boost/system/system_error.hpp>
- #endif
- 
-@@ -185,15 +185,15 @@
- 		}
- #ifndef BOOST_NO_EXCEPTIONS
- 		}
--#if BOOST_VERSION >= 103500
-+#if 0 // BOOST_VERSION >= 103500
- 		catch (boost::system::system_error& e)
- 		{
- 			ec = e.code();
- 		}
- #else
--		catch (boost::filesystem::filesystem_error& e)
-+		catch (std::exception& e)
- 		{
--			ec = error_code(e.system_error(), get_system_category());
-+			ec = error_code(errno, get_posix_category());
- 		}
- #endif // BOOST_VERSION
- #endif // BOOST_NO_EXCEPTIONS
-@@ -460,17 +460,17 @@
- 			}
- #ifndef BOOST_NO_EXCEPTIONS
- 			}
--#if BOOST_VERSION >= 103500
-+#if 0 // BOOST_VERSION >= 103500
- 			catch (boost::system::system_error& e)
- 			{
- 				set_error(m_save_path / file_iter->path, e.code());
- 				return true;
- 			}
- #else
--			catch (boost::filesystem::filesystem_error& e)
-+			catch (std::exception& e)
- 			{
- 				set_error(m_save_path / file_iter->path
--					, error_code(e.system_error(), get_system_category()));
-+					, error_code(errno, get_posix_category()));
- 				return true;
- 			}
- #endif // BOOST_VERSION
-@@ -503,16 +503,16 @@
- #endif
- #ifndef BOOST_NO_EXCEPTIONS
- 			}
--#if BOOST_VERSION >= 103500
-+#if 0 // BOOST_VERSION >= 103500
- 			catch (boost::system::system_error& e)
- 			{
- 				set_error(f, e.code());
- 				return false;
- 			}
- #else
--			catch (boost::filesystem::filesystem_error& e)
-+			catch (std::exception& e)
- 			{
--				set_error(f, error_code(e.system_error(), get_system_category()));
-+				set_error(f, error_code(errno, get_posix_category()));
- 				return false;
- 			}
- #endif // BOOST_VERSION
-@@ -560,17 +560,17 @@
- 			m_mapped_files->rename_file(index, new_filename);
- #ifndef BOOST_NO_EXCEPTIONS
- 		}
--#if BOOST_VERSION >= 103500
-+#if 0 // BOOST_VERSION >= 103500
- 		catch (boost::system::system_error& e)
- 		{
- 			set_error(old_name, e.code());
- 			return true;
- 		}
- #else
--		catch (boost::filesystem::filesystem_error& e)
-+		catch (std::exception& e)
- 		{
--			set_error(old_name, error_code(e.system_error()
--				, get_system_category()));
-+			set_error(old_name, error_code(errno
-+				, get_posix_category()));
- 			return true;
- 		}
- #endif // BOOST_VERSION
-@@ -593,7 +593,7 @@
- #endif
- 		{ fs::remove(safe_convert(p)); }
- #ifndef BOOST_NO_EXCEPTIONS
--#if BOOST_VERSION >= 103500
-+#if 0 // BOOST_VERSION >= 103500
- 		catch (boost::system::system_error& e)
- 		{
- 			// no such file or directory is not an error
-@@ -601,9 +601,9 @@
- 				set_error(p, e.code());
- 		}
- #else
--		catch (boost::filesystem::filesystem_error& e)
-+		catch (std::exception& e)
- 		{
--			set_error(p, error_code(e.system_error(), get_system_category()));
-+			set_error(p, errno, get_posix_category()));
- 		}
- #endif // BOOST_VERSION
- #endif // BOOST_NO_EXCEPTIONS
Index: files/patch-src__udp_socket.cpp
===================================================================
RCS file: files/patch-src__udp_socket.cpp
diff -N files/patch-src__udp_socket.cpp
--- files/patch-src__udp_socket.cpp	21 Feb 2010 23:30:20 -0000	1.2
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
---- src/udp_socket.cpp.orig	2009-02-08 17:13:04.000000000 +0900
-+++ src/udp_socket.cpp	2009-04-19 05:33:12.000000000 +0900
-@@ -36,7 +36,7 @@
- #include <stdlib.h>
- #include <boost/bind.hpp>
- #include <boost/array.hpp>
--#if BOOST_VERSION < 103500
-+#if 1 // BOOST_VERSION < 103500
- #include <asio/read.hpp>
- #else
- #include <boost/asio/read.hpp>
Index: files/patch-src__upnp.cpp
===================================================================
RCS file: files/patch-src__upnp.cpp
diff -N files/patch-src__upnp.cpp
--- files/patch-src__upnp.cpp	21 Feb 2010 23:30:20 -0000	1.2
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
---- src/upnp.cpp.orig	2009-02-18 17:42:16.000000000 +0900
-+++ src/upnp.cpp	2009-04-19 05:33:50.000000000 +0900
-@@ -43,7 +43,7 @@
- 
- #include <boost/bind.hpp>
- #include <boost/ref.hpp>
--#if BOOST_VERSION < 103500
-+#if 1 // BOOST_VERSION < 103500
- #include <asio/ip/host_name.hpp>
- #include <asio/ip/multicast.hpp>
- #else
--- libtorrent-rasterbar-0.14.8_1.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->dougb 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Feb 27 02:40:12 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144337 
State-Changed-From-To: open->analyzed 
State-Changed-By: dougb 
State-Changed-When: Sat Feb 27 03:06:04 UTC 2010 
State-Changed-Why:  

I like most of what you've included, and I will be taking a more in-depth 
look at it. However, I will not include the python bindings unconditionally, 
can you please resubmit this patch (as a followup to the same PR) with 
the python stuff as an OPTION? 

Also, why do you have boost-libs under build_depends along with the (already 
existing) lib_depends? 


Thanks, 

Doug 


http://www.freebsd.org/cgi/query-pr.cgi?pr=144337 

From: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
To: dougb@FreeBSD.org
Cc: bug-followup@freebsd.org
Subject: Re: ports/144337: [PATCH] net-p2p/libtorrent-rasterbar-14: Build
 python bindings
Date: Sat, 27 Feb 2010 00:40:36 -0300

 On 27/02/2010 00:09, dougb@FreeBSD.org wrote:
 [snip]
 
 > I like most of what you've included, and I will be taking a more in-depth
 > look at it. However, I will not include the python bindings unconditionally,
 > can you please resubmit this patch (as a followup to the same PR) with
 > the python stuff as an OPTION?
 
 	Unfortunately, I cannot update net-p2p/deluge to 1.2.0 without python 
 bindings and I cannot depend upon net-p2p/libtorrent-rasterbar-14 if 
 python bindings are optional.
 
 	The most desirable solution would be to create a
 net-p2p/libtorrent-rasterbar-14-python port. However, the rasterbar's 
 distfile Makefile/configure structure is not modular enough for me 
 tostrip build only the python bindings (linking against a LOCALBASE 
 installed net-p2p/libtorrent-rasterbar-14 port at the same time).
 
 	Any ideas on how to circumvent that?
 
 	I took a look around and it seems that the only "porting" system 
 following our ideas is gentoo's. They are going for the rasterbar port 
 building it all. I was hoping someone had done the library vs python 
 port split already.
 
 > Also, why do you have boost-libs under build_depends along with the (already
 > existing) lib_depends?
 
 	I know that is ugly but I wanted to make sure we had both "the exact 
 port version >= 0.14.0_1" (PR 144336) and "the exact library version". 
 Only the BUILD_DEPENDS plus a RUN_DEPENDS replacing the LIB_DEPENDS 
 entry could do it.
 
 	I will be waiting for your input before proceeding any further with 
 patch changes.
 
 	Regards,
 		Mario Ferreira

From: Doug Barton <dougb@FreeBSD.org>
To: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
Cc: bug-followup@freebsd.org
Subject: Re: ports/144337: [PATCH] net-p2p/libtorrent-rasterbar-14: Build
 python bindings
Date: Fri, 26 Feb 2010 20:14:46 -0800

 On 02/26/10 19:40, Mario Sergio Fujikawa Ferreira wrote:
 > On 27/02/2010 00:09, dougb@FreeBSD.org wrote:
 > [snip]
 > 
 >> I like most of what you've included, and I will be taking a more in-depth
 >> look at it. However, I will not include the python bindings
 >> unconditionally,
 >> can you please resubmit this patch (as a followup to the same PR) with
 >> the python stuff as an OPTION?
 > 
 >     Unfortunately, I cannot update net-p2p/deluge to 1.2.0 without
 > python bindings and I cannot depend upon net-p2p/libtorrent-rasterbar-14
 > if python bindings are optional.
 > 
 >     The most desirable solution would be to create a
 > net-p2p/libtorrent-rasterbar-14-python port. However, the rasterbar's
 > distfile Makefile/configure structure is not modular enough for me
 > tostrip build only the python bindings (linking against a LOCALBASE
 > installed net-p2p/libtorrent-rasterbar-14 port at the same time).
 > 
 >     Any ideas on how to circumvent that?
 
 Make a slave port with the additional stuff for the python bindings.
 You'll have to modify some stuff in the master of course, but I'm
 supportive of that.
 
 
 Doug
 
 -- 
 
 	... and that's just a little bit of history repeating.
 			-- Propellerheads
 
 	Improve the effectiveness of your Internet presence with
 	a domain name makeover!    http://SupersetSolutions.com/
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/144337: commit references a PR
Date: Sun, 28 Feb 2010 03:36:28 +0000 (UTC)

 dougb       2010-02-28 03:36:14 UTC
 
   FreeBSD ports repository
 
   Modified files:
     net-p2p/libtorrent-rasterbar-14 Makefile distinfo pkg-plist 
     net-p2p/libtorrent-rasterbar-14/files patch-configure.in 
   Removed files:
     net-p2p/libtorrent-rasterbar-14/files 
                                           patch-include__libtorrent__chained_buffer.hpp 
                                           patch-include__libtorrent__error_code.hpp 
                                           patch-include__libtorrent__proxy_base.hpp 
                                           patch-include__libtorrent__socket.hpp 
                                           patch-include__libtorrent__ssl_stream.hpp 
                                           patch-include__libtorrent__time.hpp 
                                           patch-include__libtorrent__variant_stream.hpp 
                                           patch-src__broadcast_socket.cpp 
                                           patch-src__enum_net.cpp 
                                           patch-src__error_code.cpp 
                                           patch-src__file_pool.cpp 
                                           patch-src__lsd.cpp 
                                           patch-src__natpmp.cpp 
                                           patch-src__storage.cpp 
                                           patch-src__udp_socket.cpp 
                                           patch-src__upnp.cpp 
   Log:
   Update to version 0.14.9, which has the following:
    disabled feature to drop requests after having been skipped too many times
    fixed range request bug for files larger than 2 GB in web seeds
    don't crash when trying to create torrents with 0 files
    fixed optimistic unchoke timer
    fixed bug where torrents with incorrectly formatted web seed URLs
      would be connected multiple times
    fixed DHT bootstrapping issue
    fixed UDP over SOCKS5 issue
    added support for "corrupt" tracker announce
    made end-game mode less aggressive
   
   From the PR (with some tweaks/modifications, and many thanks!):
    Use MASTER_SITE_GOOGLE_CODE
    Sort MAKE_JOBS_SAFE and CONFLICTS for portlint
    Switch to using the boost_system asio which allows some major
      simplification, removal of lots of patches, etc.
    Simplify CPPFLAGS/LDFLAGS
    Use PORTDOCS macro (thus simplifying plist too)
    Update BROKEN message to be more accurate
    Simplify patches to Makefile.am
   
   PR:             ports/144337
   Submitted by:   lioux
   Feature safe:   yes
   
   Revision  Changes    Path
   1.36      +17 -15    ports/net-p2p/libtorrent-rasterbar-14/Makefile
   1.18      +3 -3      ports/net-p2p/libtorrent-rasterbar-14/distinfo
   1.4       +6 -34     ports/net-p2p/libtorrent-rasterbar-14/files/patch-configure.in
   1.3       +0 -20     ports/net-p2p/libtorrent-rasterbar-14/files/patch-include__libtorrent__chained_buffer.hpp (dead)
   1.3       +0 -20     ports/net-p2p/libtorrent-rasterbar-14/files/patch-include__libtorrent__error_code.hpp (dead)
   1.3       +0 -11     ports/net-p2p/libtorrent-rasterbar-14/files/patch-include__libtorrent__proxy_base.hpp (dead)
   1.3       +0 -20     ports/net-p2p/libtorrent-rasterbar-14/files/patch-include__libtorrent__socket.hpp (dead)
   1.3       +0 -11     ports/net-p2p/libtorrent-rasterbar-14/files/patch-include__libtorrent__ssl_stream.hpp (dead)
   1.3       +0 -29     ports/net-p2p/libtorrent-rasterbar-14/files/patch-include__libtorrent__time.hpp (dead)
   1.3       +0 -11     ports/net-p2p/libtorrent-rasterbar-14/files/patch-include__libtorrent__variant_stream.hpp (dead)
   1.3       +0 -11     ports/net-p2p/libtorrent-rasterbar-14/files/patch-src__broadcast_socket.cpp (dead)
   1.3       +0 -11     ports/net-p2p/libtorrent-rasterbar-14/files/patch-src__enum_net.cpp (dead)
   1.3       +0 -11     ports/net-p2p/libtorrent-rasterbar-14/files/patch-src__error_code.cpp (dead)
   1.3       +0 -11     ports/net-p2p/libtorrent-rasterbar-14/files/patch-src__file_pool.cpp (dead)
   1.3       +0 -11     ports/net-p2p/libtorrent-rasterbar-14/files/patch-src__lsd.cpp (dead)
   1.3       +0 -11     ports/net-p2p/libtorrent-rasterbar-14/files/patch-src__natpmp.cpp (dead)
   1.6       +0 -114    ports/net-p2p/libtorrent-rasterbar-14/files/patch-src__storage.cpp (dead)
   1.3       +0 -11     ports/net-p2p/libtorrent-rasterbar-14/files/patch-src__udp_socket.cpp (dead)
   1.3       +0 -11     ports/net-p2p/libtorrent-rasterbar-14/files/patch-src__upnp.cpp (dead)
   1.21      +0 -243    ports/net-p2p/libtorrent-rasterbar-14/pkg-plist
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
To: Doug Barton <dougb@FreeBSD.org>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/144337: [PATCH] net-p2p/libtorrent-rasterbar-14: Build
 python bindings
Date: Tue, 15 Jun 2010 07:24:38 -0300

 --FCuugMFkClbJLl1L
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 	I am attaching the final version of my
 net-p2p/libtorrent-rasterbar-14 patch.
 
 	The only odd thing about the patch is the dual {BUILD,LIB}_DEPENDS
 on boost. I added the extra BUILD_DEPENDS to make sure we have the
 proper version of boost port installed. Anything lower than that
 and rasterbar should not work correctly.
 
 	With this patch we can have a
 net-p2p/libtorrent-rasterbar-14-python slave port that enables me
 add an up to date net-p2p/deluge port. A shar archive of the slave
 port is attached.
 
 	You can grab the files at
 
 http://people.freebsd.org/~lioux/libtorrent-rasterbar-14-python.shar
 http://people.freebsd.org/~lioux/patch-libtorrent-rasterbar-14
 
 in case something is wrong with the attachements.
 
 	The sample updated deluge port depending on this PR can be
 found at
 
 http://people.freebsd.org/~lioux/deluge.tbz
 
 	Regards,
 
 -- 
 Mario S F Ferreira - DF - Brazil - "I guess this is a signature."
 feature, n: a documented bug | bug, n: an undocumented feature
 
 --FCuugMFkClbJLl1L
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename=patch-libtorrent-rasterbar-14
 
 Index: Makefile
 ===================================================================
 RCS file: /home/pcvs/ports/net-p2p/libtorrent-rasterbar-14/Makefile,v
 retrieving revision 1.37
 diff -d -u -u -r1.37 Makefile
 --- Makefile	21 Mar 2010 00:02:47 -0000	1.37
 +++ Makefile	15 Jun 2010 10:13:27 -0000
 @@ -12,22 +12,22 @@
  PROJECTHOST=	libtorrent
  
  MAINTAINER=	dougb@FreeBSD.org
 -COMMENT=	A C++ library implementing a BitTorrent client
 +COMMENT?=	A C++ library implementing a BitTorrent client
  
 -LIB_DEPENDS=	boost_date_time.4:${PORTSDIR}/devel/boost-libs \
 +BUILD_DEPENDS+=	boost-libs>=1.41_1:${PORTSDIR}/devel/boost-libs
 +LIB_DEPENDS+=	boost_date_time.4:${PORTSDIR}/devel/boost-libs \
  		GeoIP.5:${PORTSDIR}/net/GeoIP
  
  MAKE_JOBS_SAFE=	yes
  
 -CONFLICTS=	rblibtorrent-[0-9]* libtorrent-rasterbar*-0.15.*
 +CONFLICTS+=	rblibtorrent-[0-9]* libtorrent-rasterbar*-0.15.*
  
  USE_GNOME=	gnomehack
  USE_OPENSSL=	yes
  USE_AUTOTOOLS=	aclocal:110 automake:110 autoconf:262 libtool:22
  ACLOCAL_ARGS=	-I m4
 -CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
 -CONFIGURE_ARGS=	--disable-debug \
 -		--disable-python-binding \
 +CONFIGURE_ENV+=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
 +CONFIGURE_ARGS+=	--disable-debug \
  		--with-boost=${LOCALBASE} \
  		--with-boost-asio=boost_system \
  		--with-boost-system=boost_system \
 @@ -41,8 +41,8 @@
  		--with-zlib=system
  USE_LDCONFIG=	yes
  
 -CPPFLAGS=	${PTHREAD_CFLAGS}
 -LDFLAGS=	${PTHREAD_LIBS}
 +CPPFLAGS+=	${PTHREAD_CFLAGS}
 +LDFLAGS+=	${PTHREAD_LIBS}
  
  .if !defined(NOPORTDOCS)
  PORTDOCS=	*
 @@ -50,17 +50,32 @@
  
  .include <bsd.port.pre.mk>
  
 +.if defined(SLAVE_PORT) && ${SLAVE_PORT:L}=="yes" && defined(USE_PYTHON)
 +CONFIGURE_ARGS+=	--enable-python-binding \
 +			--with-boost-python=boost_python
 +.else
 +CONFIGURE_ARGS+=	--disable-python-binding
 +.endif
 +
  .if ${OSVERSION} < 700000
  BROKEN=		does not compile on FreeBSD versions prior to 7.x
  .endif
  
 +.if defined(SLAVE_PORT) && ${SLAVE_PORT:L}=="yes"
 +post-patch: slave-post-patch
 +.else
  post-patch:
 +.endif
  	@${REINPLACE_CMD} -e 's|libdir)/pkgconfig|prefix)/libdata/pkgconfig|g' \
  		${WRKSRC}/Makefile.am
  	@${REINPLACE_CMD} -e 's|^AM_CFLAGS|AM_CPPFLAGS|g' \
  		 ${WRKSRC}/src/Makefile.am
  
 +.if defined(SLAVE_PORT) && ${SLAVE_PORT:L}=="yes"
 +post-install: slave-post-install
 +.else
  post-install:
 +.endif
  .if !defined(NOPORTDOCS)
  	${MKDIR} ${DOCSDIR}
  	${INSTALL_DATA} ${WRKSRC}/docs/*.html ${DOCSDIR}
 
 --FCuugMFkClbJLl1L
 Content-Type: application/x-shar
 Content-Disposition: attachment; filename="libtorrent-rasterbar-14-python.shar"
 Content-Transfer-Encoding: quoted-printable
 
 # This is a shell archive.  Save it in a file, remove anything before=0A# t=
 his line, and then unpack it by entering "sh file".  Note, it may=0A# creat=
 e directories; files and directories will be owned by you and=0A# have defa=
 ult permissions.=0A#=0A# This archive contains:=0A#=0A#	libtorrent-rasterba=
 r-14-python=0A#	libtorrent-rasterbar-14-python/files=0A#	libtorrent-rasterb=
 ar-14-python/files/extra-patch-m4__ax_python-fixed.m4=0A#	libtorrent-raster=
 bar-14-python/files/extra-patch-bindings__python__setup.py.in=0A#	libtorren=
 t-rasterbar-14-python/Makefile=0A#	libtorrent-rasterbar-14-python/pkg-plist=
 =0A#=0Aecho c - libtorrent-rasterbar-14-python=0Amkdir -p libtorrent-raster=
 bar-14-python > /dev/null 2>&1=0Aecho c - libtorrent-rasterbar-14-python/fi=
 les=0Amkdir -p libtorrent-rasterbar-14-python/files > /dev/null 2>&1=0Aecho=
  x - libtorrent-rasterbar-14-python/files/extra-patch-m4__ax_python-fixed.m=
 4=0Ased 's/^X//' >libtorrent-rasterbar-14-python/files/extra-patch-m4__ax_p=
 ython-fixed.m4 << '17b42206d26cca065eb3cb1ac5d0c343'=0AX--- m4/ax_python-fi=
 xed.m4.orig	2010-02-18 23:49:52.000000000 -0200=0AX+++ m4/ax_python-fixed.m=
 4	2010-02-19 00:17:47.000000000 -0200=0AX@@ -58,38 +58,10 @@=0AX AC_DEFUN([=
 AX_PYTHON],=0AX [AC_MSG_CHECKING(for python build information)=0AX AC_MSG_R=
 ESULT([])=0AX-for python in python2.6 python2.5 python2.4 python2.3 python2=
 =2E2 python2.1 python; do=0AX-# AC_CHECK_PROGS(PYTHON_BIN, [$python])=0AX-P=
 YTHON_BIN=3D$python=0AX-ax_python_bin=3D$PYTHON_BIN=0AX-if test x$ax_python=
 _bin !=3D x; then=0AX-   AC_CHECK_LIB($ax_python_bin, main, ax_python_lib=
 =3D$ax_python_bin, ax_python_lib=3Dno)=0AX-   AC_CHECK_HEADER([$ax_python_b=
 in/Python.h], ax_python_header=3D/usr/include/$ax_python_bin, ax_python_hea=
 der=3Dno)=0AX-   if test $ax_python_lib !=3D no; then=0AX-     if test $ax_=
 python_header !=3D no; then=0AX-       break;=0AX-     fi=0AX-   fi=0AX-   =
 AC_CHECK_HEADER([$ax_python_bin/Python.h], ax_python_header=3D/opt/local/in=
 clude/$ax_python_bin, ax_python_header=3Dno)=0AX-   if test $ax_python_lib =
 !=3D no; then=0AX-     if test $ax_python_header !=3D no; then=0AX-       b=
 reak;=0AX-     fi=0AX-   fi=0AX-fi=0AX-done=0AX-if test x$ax_python_bin =3D=
  x; then=0AX-   ax_python_bin=3Dno=0AX-fi=0AX-if test x$ax_python_header =
 =3D x; then=0AX-   ax_python_header=3Dno=0AX-fi=0AX-if test x$ax_python_lib=
  =3D x; then=0AX-   ax_python_lib=3Dno=0AX-fi=0AX+ax_python_header=3D${PYTH=
 ON_INCLUDEDIR}=0AX+ax_python_lib=3Dpython${PYTHON_VERSION}=0AX =0AX AC_MSG_=
 RESULT([  results of the Python check:])=0AX-AC_MSG_RESULT([    Binary:    =
   $ax_python_bin])=0AX AC_MSG_RESULT([    Library:     $ax_python_lib])=0AX=
  AC_MSG_RESULT([    Include Dir: $ax_python_header])=0AX =0A17b42206d26cca0=
 65eb3cb1ac5d0c343=0Aecho x - libtorrent-rasterbar-14-python/files/extra-pat=
 ch-bindings__python__setup.py.in=0Ased 's/^X//' >libtorrent-rasterbar-14-py=
 thon/files/extra-patch-bindings__python__setup.py.in << 'b243528880516637f3=
 f44f749922040c'=0AX--- bindings/python/setup.py.in.orig	2010-03-01 00:09:26=
 =2E000000000 -0300=0AX+++ bindings/python/setup.py.in	2010-03-01 00:02:53.0=
 00000000 -0300=0AX@@ -40,7 +40,7 @@=0AX 	try: os.mkdir(r'libtorrent')=0AX 	=
 except: pass=0AX 	shutil.copyfile(r'bin\msvc-7.1\release\boost-source\geoip=
 -static\link-static\optimization-space\threading-multi\libtorrent.pyd', r'.=
 \build\lib\libtorrent.pyd')=0AX-	setup( name=3D'python-libtorrent',=0AX+	se=
 tup( name=3D'python-libtorrent-rasterbar',=0AX 		version=3D'@PACKAGE_VERSIO=
 N@',=0AX 		author =3D 'Arvid Norberg',=0AX 		author_email=3D'@PACKAGE_BUGRE=
 PORT@',=0AX@@ -64,7 +64,7 @@=0AX =0AX extra_cmd =3D '@COMPILETIME_OPTIONS@ =
 @CPPFLAGS@ @LIBS@ @BOOST_FILESYSTEM_LIB@ @BOOST_THREAD_LIB@ @PTHREAD_LIBS@ =
 @SSL_LIBS@ @BOOST_SYSTEM_LIB@ @SSL_LDFLAGS@ @SSL_CXXFLAGS@'=0AX =0AX-setup(=
  name=3D'python-libtorrent',=0AX+setup( name=3D'python-libtorrent-rasterbar=
 ',=0AX 	version=3D'@PACKAGE_VERSION@',=0AX 	author =3D 'Arvid Norberg',=0AX=
  	author_email=3D'@PACKAGE_BUGREPORT@',=0AX@@ -76,8 +76,8 @@=0AX 	ext_modul=
 es =3D [Extension('libtorrent',=0AX 		sources =3D source_list,=0AX 		langua=
 ge=3D'c++',=0AX-		include_dirs =3D ['@top_srcdir@/include','@top_srcdir@/in=
 clude/libtorrent'] + parse_cmd(extra_cmd, '-I'),=0AX-		library_dirs =3D ['@=
 top_builddir@/src/.libs'] + parse_cmd(extra_cmd, '-L'),=0AX+		include_dirs =
 =3D ['%%LOCALBASE%%/include','%%LOCALBASE%%/include/libtorrent'] + parse_cm=
 d(extra_cmd, '-I'),=0AX+		library_dirs =3D ['%%LOCALBASE%%/lib'] + parse_cm=
 d(extra_cmd, '-L'),=0AX 		extra_link_args =3D '@LDFLAGS@'.split() + arch(),=
 =0AX 		extra_compile_args =3D parse_cmd(extra_cmd, '-D', True) + arch() + [=
 '-DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION'],=0AX 		libraries =3D ['torrent=
 -rasterbar','@BOOST_PYTHON_LIB@'] + parse_cmd(extra_cmd, '-l'))],=0Ab243528=
 880516637f3f44f749922040c=0Aecho x - libtorrent-rasterbar-14-python/Makefil=
 e=0Ased 's/^X//' >libtorrent-rasterbar-14-python/Makefile << 'e2da91a73b095=
 943caf454c6b75a07bf'=0AX# New ports collection makefile for:	libtorrent-ras=
 terbar-14-python=0AX# Date created:		Mon Mar  1 02:37:03 UTC 2010=0AX# Whom=
 :			Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>=0AX#=0AX#=0AX# $Free=
 BSD$=0AX#=0AX=0AXPKGNAMESUFFIX=3D	${PYTHON_PKGNAMESUFFIX}=0AX=0AXCOMMENT=3D=
 	Python bindings for libtorrent-rasterbar-14=0AX=0AXCONFLICTS+=3D	libtorren=
 t-rasterbar-py*-0.15.*=0AX=0AXUSE_PYTHON=3D	2.4+=0AXEXTRA_PATCHES=3D	${.CUR=
 DIR}/files/extra-patch-bindings__python__setup.py.in \=0AX		${.CURDIR}/file=
 s/extra-patch-m4__ax_python-fixed.m4=0AX=0AXBUILD_DEPENDS+=3D	${PYTHON_PKGN=
 AMEPREFIX}setuptools>=3D0.6:${PORTSDIR}/devel/py-setuptools \=0AX		${PORTNA=
 ME}>=3D${DISTVERSION}:${PORTSDIR}/net-p2p/libtorrent-rasterbar-14=0AXLIB_DE=
 PENDS+=3D	boost_python.4:${PORTSDIR}/devel/boost-python-libs \=0AX		torrent=
 -rasterbar.5:${PORTSDIR}/net-p2p/libtorrent-rasterbar-14=0AX=0AXBUILD_WRKSR=
 C=3D	${WRKSRC}/bindings/python=0AXINSTALL_WRKSRC=3D	${BUILD_WRKSRC}=0AXPLIS=
 T=3D		${.CURDIR}/pkg-plist=0AX=0AXINSTALLS_EGGINFO=3D	yes=0AXPYDISTUTILS_EG=
 GINFO=3D	python_libtorrent_rasterbar-${PORTVERSION}-py${PYTHON_VER}.egg-inf=
 o=0AX=0AXNOPORTDOCS=3D	yes=0AX=0AXslave-post-patch:=0AX	@${REINPLACE_CMD} -=
 E -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \=0AX		${WRKSRC}/bindings/python/setu=
 p.py.in=0AX=0AXslave-post-install:=0AX# fix installation permissions=0AX	@$=
 {CHMOD} ${SHAREMODE} ${PYTHONPREFIX_SITELIBDIR}/libtorrent.so=0AX=0AXMASTER=
 DIR=3D      ${.CURDIR}/../libtorrent-rasterbar-14=0AX#MASTERDIR=3D      ${P=
 ORTSDIR}/net-p2p/libtorrent-rasterbar-14=0AX.include "${MASTERDIR}/Makefile=
 "=0AX=0AX##=0AX# information available after <bsd.port.pre.mk>=0AX##=0AX# i=
 nsure python paths are correctly identified=0AXCONFIGURE_ENV+=3D	PYTHON_INC=
 LUDEDIR=3D"${PYTHON_INCLUDEDIR}" \=0AX		PYTHON_VERSION=3D"${PYTHON_VERSION}=
 "=0AX# prefix PKGNAME with python- so that the egg info file is properly na=
 med.=0AXPYDISTUTILS_PKGNAME=3D	python-${PORTNAME}=0Ae2da91a73b095943caf454c=
 6b75a07bf=0Aecho x - libtorrent-rasterbar-14-python/pkg-plist=0Ased 's/^X//=
 ' >libtorrent-rasterbar-14-python/pkg-plist << '3d1eb0b10efefafea0550ddd3e3=
 3b5be'=0AX%%PYTHON_SITELIBDIR%%/libtorrent.so=0A3d1eb0b10efefafea0550ddd3e3=
 3b5be=0Aexit=0A=0A
 --FCuugMFkClbJLl1L--

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/144337: commit references a PR
Date: Thu,  1 Jul 2010 07:16:17 +0000 (UTC)

 dougb       2010-07-01 07:16:03 UTC
 
   FreeBSD ports repository
 
   Modified files:
     net-p2p/libtorrent-rasterbar-15 Makefile distinfo pkg-plist 
   Removed files:
     net-p2p/libtorrent-rasterbar-15/files 
                                           patch-include_libtorrent_bitfield.hpp 
   Log:
   Update to version 0.15.1, with numerous bug fixes:
   
    * fixed rare crash when purging the peer list
    * fixed race condition around m_abort in session_impl
    * fixed bug in web_peer_connection which could cause a hang when
      downloading
      from web servers
    * fixed bug in metadata extensions combined with encryption
    * refactored socket reading code to not use async. operations
      unnecessarily
    * some timer optimizations
    * removed the reuse-address flag on the listen socket
    * fixed bug where local peer discovery and DHT wouldn't be announced to
      without trackers
    * fixed bug in bdecoder when decoding invalid messages
    * added build warning when building with UNICODE but the standard library
      doesn't provide std::wstring
    * fixed add_node python binding
    * fixed issue where trackers wouldn't tried immediately when the previous
      one failed
    * fixed synchronization issue between download queue and piece picker
    * fixed bug in udp tracker scrape response parsing
    * fixed bug in the disk thread that could get triggered under heavy load
    * fixed bug in add_piece() that would trigger asserts
    * fixed vs 2010 build
    * recognizes more clients in identify_client()
    * fixed bug where trackers wouldn't be retried if they failed
    * slight performance fix in disk elevator algorithm
    * fixed potential issue where a piece could be checked twice
    * fixed build issue on windows related to GetCompressedSize()
    * fixed deadlock when starting torrents with certain invalid tracker URLs
    * fixed iterator bug in disk I/O thread
    * fixed FIEMAP support on linux
    * fixed strict aliasing warning on gcc
    * fixed inconsistency when creating torrents with symlinks
    * properly detect windows version to initialize half-open connection limit
    * fixed bug in url encoder where $ would not be encoded
   
   For the port:
   
    * Prepare for -python slave port for the python binding (In part from)[1]
    * Make LOCALBASE safe [2]
    * Python bindings require --enable-deprecated-functions
    * Stop building the static library
    * Patch is now incorporated into the distribution
   
   PR:             ports/144337 [1]
   Submitted by:   lioux [1]
   Submitted by:   swell.k@gmail.com [2]
   Feature safe:   yes
   
   Revision  Changes    Path
   1.6       +29 -11    ports/net-p2p/libtorrent-rasterbar-15/Makefile
   1.3       +3 -3      ports/net-p2p/libtorrent-rasterbar-15/distinfo
   1.2       +0 -10     ports/net-p2p/libtorrent-rasterbar-15/files/patch-include_libtorrent_bitfield.hpp (dead)
   1.3       +0 -2      ports/net-p2p/libtorrent-rasterbar-15/pkg-plist
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/144337: commit references a PR
Date: Thu,  1 Jul 2010 07:19:52 +0000 (UTC)

 dougb       2010-07-01 07:19:45 UTC
 
   FreeBSD ports repository
 
   Modified files:
     net-p2p              Makefile 
   Added files:
     net-p2p/libtorrent-rasterbar-15-python Makefile pkg-plist 
   Log:
   Add a slave port for the python binding
   
   Major effort from the PR, tweaks and bugs from me
   
   PR:             ports/144337
   Submitted by:   lioux
   
   Feature safe:   yes
   
   Revision  Changes    Path
   1.84      +1 -0      ports/net-p2p/Makefile
   1.1       +48 -0     ports/net-p2p/libtorrent-rasterbar-15-python/Makefile (new)
   1.1       +1 -0      ports/net-p2p/libtorrent-rasterbar-15-python/pkg-plist (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: analyzed->closed 
State-Changed-By: dougb 
State-Changed-When: Thu Jul 1 09:25:51 UTC 2010 
State-Changed-Why:  

Thanks again for your patience on this, while it took a different route 
than expected, I think the end result is a good one. :) 


Doug 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144337 
>Unformatted:
