summaryrefslogtreecommitdiffstats
path: root/chat-irc/hexchat/DEPENDS
diff options
context:
space:
mode:
Diffstat (limited to 'chat-irc/hexchat/DEPENDS')
-rwxr-xr-xchat-irc/hexchat/DEPENDS122
1 files changed, 71 insertions, 51 deletions
diff --git a/chat-irc/hexchat/DEPENDS b/chat-irc/hexchat/DEPENDS
index e10f03d11d..c9be841ff6 100755
--- a/chat-irc/hexchat/DEPENDS
+++ b/chat-irc/hexchat/DEPENDS
@@ -1,51 +1,71 @@
-depends glib2 &&
-
-optional_depends gettext \
- "" \
- "--disable-nls" \
- "Enable gettext for i18n?" &&
-
-optional_depends openssl \
- "--enable-openssl=/usr/bin/openssl" \
- "" \
- "Enable use of openSSL?" &&
-
-optional_depends gtk+2 \
- "--enable-gtkfe" \
- "--disable-gtkfe --enable-textfe" \
- "Enable building the gtk frontend" &&
-
-optional_depends python \
- "" \
- "--disable-python" \
- "for Python scripting support" &&
-
-optional_depends perl \
- "" \
- "--disable-perl" \
- "for perl scripting support" &&
-
-optional_depends tcl \
- "--enable-tcl=/usr/lib" \
- "" \
- "for tcl scripting support" &&
-
-optional_depends dbus \
- "" \
- "--disable-dbus" \
- "Enable DBUS support?" &&
-
-optional_depends libnotify \
- "" \
- "--disable-libnotify" \
- "Enable libnotify support?" &&
-
-optional_depends gtkspell \
- "--enable-spell=gtkspell" \
- "" \
- "for spell checker support" &&
-
-optional_depends libsexy \
- "--enable-spell=libsexy" \
- "" \
- "for spell checker support"
+depends glib2 &&
+
+optional_depends gettext \
+ "--enable-nls" \
+ "--disable-nls" \
+ "for Native Language Support" &&
+
+optional_depends openssl \
+ "--enable-openssl=/usr/bin/openssl" \
+ "--disable-openssl" \
+ "to enable use of openSSL" &&
+
+optional_depends gtk+2 \
+ "--enable-gtkfe" \
+ "--disable-gtkfe" \
+ "for building gtk frontend" &&
+
+if list_find "$HEXCHAT_OPTS" "--disable-textfe" && ! is_depends_enabled $SPELL gtk+2; then
+ message "${PROBLEM_COLOR}No frontend selected, aborting...${DEFAULT_COLOR}" &&
+ return 1
+fi &&
+
+if list_find "$HEXCHAT_OPTS" "--enable-plugin"; then
+ optional_depends python \
+ "--enable-python=python2" \
+ "--disable-python" \
+ "for Python scripting support" &&
+
+ optional_depends perl \
+ "--enable-perl" \
+ "--disable-perl" \
+ "for Perl scripting support"
+else
+ list_add HEXCHAT_OPTS '--disable-python' &&
+ list_add HEXCHAT_OPTS '--disable-perl'
+fi &&
+
+optional_depends dbus \
+ "--enable-dbus" \
+ "--disable-dbus" \
+ "to enable DBUS support" &&
+
+optional_depends libnotify \
+ "--enable-libnotify" \
+ "--disable-libnotify" \
+ "to enable libnotify support" &&
+
+optional_depends iso-codes \
+ "--enable-isocodes" \
+ "--disable-isocodes" \
+ "for iso-codes with spell-check" &&
+
+optional_depends libcanberra \
+ "--enable-libcanberra" \
+ "--disable-libcanberra" \
+ "for libcanberra support" &&
+
+optional_depends libntlm \
+ "--enable-ntlm" \
+ "--disable-ntlm" \
+ "for Microsoft's NTLM auth library support" &&
+
+optional_depends libproxy \
+ "--enable-libproxy" \
+ "--disable-libproxy" \
+ "for libproxy support" &&
+
+optional_depends monodevelop \
+ "--with-theme-manager" \
+ "--without-theme-manager" \
+ "to compile theme manager"