Version 7 (modified by Cas, 9 years ago) (diff)

--

Deluge.app for OSX

Manual Steps (Tested on Yosemite VM)

  1. Install XCode
  2. Jhbuild install and update Python:
    wget https://git.gnome.org/browse/gtk-osx/plain/gtk-osx-build-setup.sh
    sh gtk-osx-build-setup.sh
    export PATH=~/.local/bin:~/gtk/inst/bin:$PATH
    jhbuild build bootstrap
    jhbuild build python
    
  3. GTK OSX Build:
    jhbuild build meta-gtk-osx-bootstrap
    
    1. PyGTK (Includes meta-gtk-osx-core)
      jhbuild build libglade
      jhbuild build meta-gtk-osx-python
      
    2. GTK OSX Themes:
      jhbuild build meta-gtk-osx-themes
      jhbuild build gtk-quartz-engine
      
  4. Bundler for Packaging Deluge.
    wget http://ftp.gnome.org/pub/gnome/sources/gtk-mac-bundler/0.7/gtk-mac-bundler-0.7.4.tar.xz
    tar xf gtk-mac-bundler-0.7.4.tar.xz
    cd gtk-mac-bundler-0.7.4
    make install
    
  5. Build libtorrent and deps using libtorrent.modules:
    wget https://gist.githubusercontent.com/cas--/d1df3758d6e794c0ca4e/raw/libtorrent.modules
    jhbuild -m libtorrent.modules build libtorrent 
    
    Currently need to run build and install commands manually from jhbuild shell
  • Notes
    • OpenSSL Error: 'libcrypto is a fat file' is due to mixing arch types (i386, x64) in build process.
    • OpenSSL Error: 'too many levels of symbolic links' installing man pages so use make install_sw, much quicker too.
    • Boost install dir issue.
    • libtorrent branch line not quite correct either.
  1. Install Python pip and Deluge dependencies:
    jhbuild shell
    wget https://bootstrap.pypa.io/get-pip.py
    python get-pip.py
    pip install twisted[tls] chardet mako pyxdg setproctitle pillow py2app
    
    • Need to patch MachOGraph.py error dyld_find() got an unexpected keyword argument 'loader': https://bitbucket.org/ronaldoussoren/macholib/pull-requests/10/
    • Need to check whether building as 'wheel' affects packaging for previous OSX versions.
    • Remove optional pillow for now due to py2app error 'dyld_find() got an unexpected keyword argument 'loader, using version 2.4 might be an option.
  2. Follow Build Deluge.app steps below, will require setup.cfg file and osx directory from git repo.

Previous Semi-Automated Guide

Error while retrieving file
HTTP Error 404: Not found