@@ -11,10 +11,10 @@ class LibtorrentRecipe(Recipe):
1111 url = 'https://github.com/arvidn/libtorrent/archive/libtorrent-1_0_9.tar.gz'
1212 depends = ['boost' , 'python2' ]
1313 opt_depends = ['openssl' ]
14- patches = ['disable-so-version.patch' , 'use-soname-python.patch' ]
14+ patches = ['disable-so-version.patch' , 'use-soname-python.patch' , 'setup-lib-name.patch' ]
1515
1616 def should_build (self , arch ):
17- return not ( self .has_libs (arch , 'libboost_python.so' , 'libboost_system.so' , 'libtorrent .so' )
17+ return not ( self .has_libs (arch , 'libboost_python.so' , 'libboost_system.so' , 'libtorrent_rasterbar .so' )
1818 and self .ctx .has_package ('libtorrent' , arch .arch ) )
1919
2020 def prebuild_arch (self , arch ):
@@ -55,8 +55,8 @@ def build_arch(self, arch):
5555 if 'openssl' in recipe .ctx .recipe_build_order :
5656 shutil .copyfile (join (env ['BOOST_BUILD_PATH' ], 'bin.v2/libs/date_time/build' , build_subdirs , 'libboost_date_time.so' ),
5757 join (self .ctx .get_libs_dir (arch .arch ), 'libboost_date_time.so' ))
58- shutil .copyfile (join (self .get_build_dir (arch .arch ), 'bin' , build_subdirs , 'libtorrent .so' ),
59- join (self .ctx .get_libs_dir (arch .arch ), 'libtorrent .so' ))
58+ shutil .copyfile (join (self .get_build_dir (arch .arch ), 'bin' , build_subdirs , 'libtorrent_rasterbar .so' ),
59+ join (self .ctx .get_libs_dir (arch .arch ), 'libtorrent_rasterbar .so' ))
6060 shutil .copyfile (join (self .get_build_dir (arch .arch ), 'bindings/python/bin' , build_subdirs , 'libtorrent.so' ),
6161 join (self .ctx .get_site_packages_dir (arch .arch ), 'libtorrent.so' ))
6262
0 commit comments