From f8b89a60bc10a833ea398ed9fee03f21e6b8c610 Mon Sep 17 00:00:00 2001 From: Finn Haedicke Date: Mon, 30 Nov 2009 13:12:45 +0100 Subject: rb-libtorrent: aded (PRE_)SUB_DEPENDS for PYTHON bindings --- ftp-libs/rb-libtorrent/HISTORY | 1 + ftp-libs/rb-libtorrent/PRE_SUB_DEPENDS | 6 ++++++ ftp-libs/rb-libtorrent/SUB_DEPENDS | 12 ++++++++++++ 3 files changed, 19 insertions(+) create mode 100755 ftp-libs/rb-libtorrent/PRE_SUB_DEPENDS create mode 100755 ftp-libs/rb-libtorrent/SUB_DEPENDS (limited to 'ftp-libs') 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 * CONFIGURE, BUILD, DEPENDS: query for python bindings + * {PRE_,}SUB_DEPENDS: added for python bindings 2009-11-19 Bor Kraljič * 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 + -- cgit v1.2.3