summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFinn Haedicke2009-11-30 13:12:45 +0100
committerFinn Haedicke2009-11-30 13:16:37 +0100
commitf8b89a60bc10a833ea398ed9fee03f21e6b8c610 (patch)
treed8c635dbfbeeb0634ceddad2be40525479496042
parent56109fdf267f3bc1c4ac2292b8d58ef85961d4a5 (diff)
rb-libtorrent: aded (PRE_)SUB_DEPENDS for PYTHON bindings
-rw-r--r--ftp-libs/rb-libtorrent/HISTORY1
-rwxr-xr-xftp-libs/rb-libtorrent/PRE_SUB_DEPENDS6
-rwxr-xr-xftp-libs/rb-libtorrent/SUB_DEPENDS12
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
+