diff options
Diffstat (limited to 'ftp-libs')
-rw-r--r-- | ftp-libs/rb-libtorrent/HISTORY | 1 | ||||
-rwxr-xr-x | ftp-libs/rb-libtorrent/PRE_SUB_DEPENDS | 6 | ||||
-rwxr-xr-x | ftp-libs/rb-libtorrent/SUB_DEPENDS | 12 |
3 files changed, 19 insertions, 0 deletions
diff --git a/ftp-libs/rb-libtorrent/HISTORY b/ftp-libs/rb-libtorrent/HISTORY index f83e89cdff..317ad35040 100644 --- a/ftp-libs/rb-libtorrent/HISTORY +++ b/ftp-libs/rb-libtorrent/HISTORY @@ -1,5 +1,6 @@ 2009-11-30 Finn Haedicke <finn@sourcemage.org> * CONFIGURE, BUILD, DEPENDS: query for python bindings + * {PRE_,}SUB_DEPENDS: added for python bindings 2009-11-19 Bor Kraljič <pyrobor@ver.si> * DETAILS: updated spell to 0.14.7 diff --git a/ftp-libs/rb-libtorrent/PRE_SUB_DEPENDS b/ftp-libs/rb-libtorrent/PRE_SUB_DEPENDS new file mode 100755 index 0000000000..ba56605920 --- /dev/null +++ b/ftp-libs/rb-libtorrent/PRE_SUB_DEPENDS @@ -0,0 +1,6 @@ +case $THIS_SUB_DEPENDS in + PYTHON) list_find "$RB_LIBTORRENT_OPTS" "--enable-python-binding" && return 0;; + *) message "${PROBLEM_COLOR}bogus sub_depends: $SPELL $THIS_SUB_DEPENDS${DEFAULT_COLOR}" + return 1;; +esac +return 1 diff --git a/ftp-libs/rb-libtorrent/SUB_DEPENDS b/ftp-libs/rb-libtorrent/SUB_DEPENDS new file mode 100755 index 0000000000..e1e4a49919 --- /dev/null +++ b/ftp-libs/rb-libtorrent/SUB_DEPENDS @@ -0,0 +1,12 @@ +# On branch devel-miro +# Changed but not updated: +case $THIS_SUB_DEPENDS in + PYTHON) + message "$SPELL with Python requested, forcing boost python dependency" && + RB_LIBTORRENT_OPTS="--enable-python-binding" + sub_depends boost PYTHON + ;; + *) message "${PROBLEM_COLOR}bogus sub_depends: $SPELL $THIS_SUB_DEPENDS${DEFAULT_COLOR}" + return 1;; +esac + |