for OSX

Manual Steps (Tested on Yosemite VM)

  1. Install XCode
  2. Jhbuild install and update Python:
    export PATH=~/.local/bin:~/gtk/inst/bin:$PATH
    jhbuild build bootstrap
    jhbuild build python
    • Uncomment _gtk_osx_use_jhbuild_python = True in .jhbuildrc-custom.
  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.
    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:
    jhbuild -m libtorrent.modules build meta_libtorrent 
    • OpenSSL requires "Skip Module (2)" when install stage fails as unable to use DESTDIR path. See patch.
    • Note on potential OpenSSL Error: 'libcrypto is a fat file' is due to mixing arch types (i386, x64) in build process.
  6. Install Deluge dependencies using pip:
    jhbuild shell
    pip install twisted[tls] chardet mako pyxdg setproctitle pillow py2app cython
    pip install rencode
    pip install setuptools==19.2
    • Note1: pygame for Notifications plugin need installed separately.
    • Note2: rencode requires cython before attempting pip install. (rencode issue)
    • Note3: Due to bug in setuptools require version 19.2 (setuptools issue)
  7. Install and package Deluge:
    1. If using release tarball download required setup.cfg and osx directory from git, run commands in deluge source directory:
      wget --content-disposition
      wget -rnd -np -e robots=off --reject "index.html*" --content-disposition -P osx
    • Note: In setup.cfg need to remove 'dev' line and set arch to 'x86_64'.
    1. Build and install Deluge using py2app:
      jhbuild shell
      python py2app
      python install
      • For error dyld_find() got an unexpected keyword argument 'loader' either uninstall pillow or patch
    2. Package Deluge into app in osx/app/ using gtk-mac-bundler script:
      jhbuild shell
      cd osx
  8. Optionally create dmg image:
    hdiutil create -format UDBZ -srcfolder -volname deluge-1.3.13-osx-x64-0 deluge-1.3.13-osx-x64-0.dmg

Old Semi-Automated Guide

Error while retrieving file
HTTP Error 404: Not found

Last modified 7 years ago Last modified on 07/22/2016 12:27:54 PM