if is_depends_enabled $SPELL python3; then
- depends -sub PYTHON swig '--enable-swig'
+ depends -sub PYTHON3 swig '--enable-swig' &&
+
+ if spell_ok swig && is_version_less $(installed_version swig) 2.0.4; then
+ force_depends swig
+ fi
fi &&
optional_depends tcl \
diff --git a/chat-irc/znc/HISTORY b/chat-irc/znc/HISTORY
index e650c12..3890177 100644
--- a/chat-irc/znc/HISTORY
+++ b/chat-irc/znc/HISTORY
@@ -1,6 +1,7 @@
2011-08-22 Vlad Glagolev <stealth AT sourcemage.org>
* DETAILS: updated spell to 0.200
- * DEPENDS: python3 is the only branch of Python supported
+ * DEPENDS: python3 is the only branch of Python supported; added swig
+ version check
2011-07-30 Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
* DEPENDS: changed dependency on g++ to dependency on gcc with
diff --git a/devel/swig/DEPENDS b/devel/swig/DEPENDS
index 02d6d6c..33032ad 100755
--- a/devel/swig/DEPENDS
+++ b/devel/swig/DEPENDS
@@ -18,7 +18,12 @@ optional_depends ocaml \
optional_depends python \
"--with-python=$INSTALL_ROOT/usr/bin/python" \
"--without-python" \
- "to include Python support" &&
+ "to include Python 2 support" &&
+
+optional_depends python3 \
+ "--with-python3=$INSTALL_ROOT/usr/bin/python3" \
+ "--without-python3" \
+ "to include Python 3 support" &&