summaryrefslogtreecommitdiff
path: root/net-p2p/deluge/files/patch-setup.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--net-p2p/deluge/files/patch-setup.py135
1 files changed, 96 insertions, 39 deletions
diff --git a/net-p2p/deluge/files/patch-setup.py b/net-p2p/deluge/files/patch-setup.py
index 2218f1fba390..7f1b9645d435 100644
--- a/net-p2p/deluge/files/patch-setup.py
+++ b/net-p2p/deluge/files/patch-setup.py
@@ -1,40 +1,97 @@
---- setup.py.orig 2008-05-19 17:26:22.000000000 -0500
-+++ setup.py 2008-05-19 17:28:27.000000000 -0500
-@@ -103,13 +103,13 @@
- "-DHAVE_INCLUDE_LIBTORRENT_ASIO_SSL_STREAM_HPP=1",
- "-DHAVE_INCLUDE_LIBTORRENT_ASIO_IP_TCP_HPP=1",
- "-DHAVE_PTHREAD=1", "-DTORRENT_USE_OPENSSL=1", "-DHAVE_SSL=1",
-- "-DNDEBUG=1", "-O2"]
-- if ARCH == "x64":
-- EXTRA_COMPILE_ARGS.append("-DAMD64")
-+ "-DNDEBUG=1"]
-+# if ARCH == "x64":
-+# EXTRA_COMPILE_ARGS.append("-DAMD64")
-
- includedirs = ['./libtorrent', './libtorrent/include',
- './libtorrent/include/libtorrent',
-- '/usr/include/python' + python_version]
-+ '%%LOCALBASE%%/include']
-
- if OS == "linux":
- if os.path.exists(os.path.join(sysconfig.get_config_vars()['LIBDIR'], \
-@@ -148,7 +148,7 @@
- boost_thread = "boost_thread-mt"
-
- librariestype = [boost_filesystem, boost_date_time,
-- boost_thread, 'z', 'pthread', 'ssl', 'crypto']
-+ boost_thread, 'z', 'ssl', 'crypto']
-
- if os == "linux":
- librariestype += ['rt']
-@@ -205,8 +205,10 @@
- sources.remove('libtorrent/src/file_win.cpp')
- deluge_core = Extension('deluge_core',
- include_dirs = includedirs,
-+ library_dirs = ['%%LOCALBASE%%/lib'],
- libraries = librariestype,
- extra_compile_args = EXTRA_COMPILE_ARGS,
-+ extra_link_args = ['%%PTHREAD_LIBS%%'],
- sources = sources)
+--- setup.py.orig 2009-01-10 20:24:16.000000000 -0600
++++ setup.py 2009-01-17 15:02:02.000000000 -0600
+@@ -56,7 +56,6 @@
+ "-D_FILE_OFFSET_BITS=64",
+ "-DNDEBUG",
+ "-DTORRENT_USE_OPENSSL=1",
+- "-O2",
+ ]
+
+ if windows_check():
+@@ -95,12 +94,14 @@
+ sysconfig.get_config_vars()["OPT"] = " ".join(cv_opt.split())
+
+ _library_dirs = [
++ '%%LOCALBASE%%/lib'
+ ]
+
+ _include_dirs = [
+ './libtorrent',
+ './libtorrent/include',
+- './libtorrent/include/libtorrent'
++ './libtorrent/include/libtorrent',
++ '%%LOCALBASE%%/include'
+ ]
+
+ if windows_check():
+@@ -122,11 +123,6 @@
+ 'zlib'
+ ]
else:
- sources.remove('libtorrent\\src\\file.cpp')
+- _include_dirs += [
+- '/usr/include/python' + python_version,
+- sysconfig.get_config_var("INCLUDEDIR")
+- ]
+- _library_dirs += [sysconfig.get_config_var("LIBDIR"), '/opt/local/lib']
+ if osx_check():
+ _include_dirs += [
+ '/opt/local/include/boost-1_35',
+@@ -138,7 +134,6 @@
+ 'boost_iostreams',
+ 'boost_python',
+ 'boost_thread',
+- 'pthread',
+ 'ssl',
+ 'z'
+ ]
+@@ -181,13 +176,6 @@
+
+ # Check for a system libtorrent and if found, then do not build the libtorrent extension
+ build_libtorrent = True
+-try:
+- import libtorrent
+-except ImportError:
+- build_libtorrent = True
+-else:
+- if libtorrent.version_major == 0 and libtorrent.version_minor == 14:
+- build_libtorrent = False
+
+ if build_libtorrent:
+ # There isn't a system libtorrent library, so let's build the one included with deluge
+@@ -197,6 +185,7 @@
+ include_dirs = _include_dirs,
+ libraries = _libraries,
+ library_dirs = _library_dirs,
++ extra_link_args = ['%%PTHREAD_LIBS%%'],
+ sources = _sources
+ )
+
+@@ -310,8 +299,8 @@
+ for cmd_name in self.get_sub_commands():
+ self.run_command(cmd_name)
+ _install.run(self)
+- if not self.root:
+- self.do_egg_install()
++# if not self.root:
++# self.do_egg_install()
+
+ cmdclass = {
+ 'build': build,
+@@ -324,7 +313,7 @@
+
+ # Data files to be installed to the system
+ _data_files = [
+- ('share/icons/scalable/apps', ['deluge/data/icons/scalable/apps/deluge.svg']),
++ ('share/icons/hicolor/scalable/apps', ['deluge/data/icons/scalable/apps/deluge.svg']),
+ ('share/icons/hicolor/128x128/apps', ['deluge/data/icons/hicolor/128x128/apps/deluge.png']),
+ ('share/icons/hicolor/16x16/apps', ['deluge/data/icons/hicolor/16x16/apps/deluge.png']),
+ ('share/icons/hicolor/192x192/apps', ['deluge/data/icons/hicolor/192x192/apps/deluge.png']),
+@@ -339,7 +328,7 @@
+ ('share/icons/hicolor/96x96/apps', ['deluge/data/icons/hicolor/96x96/apps/deluge.png']),
+ ('share/applications', ['deluge/data/share/applications/deluge.desktop']),
+ ('share/pixmaps', ['deluge/data/pixmaps/deluge.png', 'deluge/data/pixmaps/deluge.xpm']),
+- ('share/man/man1', ['deluge/docs/man/deluge.1', 'deluge/docs/man/deluged.1'])
++ ('man/man1', ['deluge/docs/man/deluge.1', 'deluge/docs/man/deluged.1'])
+ ]
+
+ # Main setup