# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortGroup active_variants 1.1
categories net gnome python
license {GPL-3+ OpenSSLException}
maintainers {devans @dbevans} openmaintainer
description A GNOME BitTorrent client.
long_description Deluge is a GNOME client for the BitTorrent network written in python.
homepage http://www.deluge-torrent.org
master_sites http://download.deluge-torrent.org/source/
checksums rmd160 42bce46edd8f21c4fe1c00bbc1ccb49f89582f38 \
sha256 dcf823131be56c2180814e8def11496aaaf700710b5694867ba9f057615ac790
depends_lib-append port:libtorrent-rasterbar \
patchfiles patch-remove-osx-native-menus.diff
build.env PYTHON_CFLAGS="-I${prefix}/include -I${prefix}/include/boost" \
PYTHON_LDFLAGS=-L${prefix}/lib \
CFLAGS="-I${prefix}/include -I${prefix}/include/boost" \
CC=${configure.cc} CXX=${configure.cxx} CPP=${configure.cpp}
variant python27 description {Build for Python 2.7} {
require_active_variants libtorrent-rasterbar python27
python.default_version 27
port:py27-service_identity \
default_variants +python27
foreach bin [glob -nocomplain -tails -directory "${destroot}${python.prefix}/bin" *] {
ln -s "${python.prefix}/bin/${bin}" "${destroot}${prefix}/bin/${bin}${python.link_binaries_suffix}"
livecheck.url http://download.deluge-torrent.org/source/
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"