summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-irc/quassel/quassel-9999.ebuild')
-rw-r--r--net-irc/quassel/quassel-9999.ebuild51
1 files changed, 30 insertions, 21 deletions
diff --git a/net-irc/quassel/quassel-9999.ebuild b/net-irc/quassel/quassel-9999.ebuild
index d7e81041d35c..350673a42a1b 100644
--- a/net-irc/quassel/quassel-9999.ebuild
+++ b/net-irc/quassel/quassel-9999.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-irc/quassel/quassel-9999.ebuild,v 1.10 2008/10/07 20:37:45 jokey Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-irc/quassel/quassel-9999.ebuild,v 1.11 2008/11/25 00:24:42 darkside Exp $
EAPI=1
@@ -17,7 +17,7 @@ KEYWORDS=""
SLOT="0"
IUSE="+dbus debug +server +ssl +X"
-LANGS="nb_NO da de fr"
+LANGS="nb_NO da de fr ru"
for l in ${LANGS}; do
IUSE="${IUSE} linguas_${l}"
done
@@ -56,25 +56,34 @@ pkg_setup() {
}
src_compile() {
- local MY_LANGUAGES=""
- for ling in ${LINGUAS}; do
- if has $ling ${LANGS}; then
- MY_LANGUAGES="${ling} ${MY_LANGUAGES}"
- fi
- done
-
- local mycmakeargs="
- $(cmake-utils_use_want server CORE)
- $(cmake-utils_use_want X QTCLIENT)
- $(cmake-utils_use_with X WEBKIT)
- $(cmake-utils_use_with dbus DBUS)
- $(cmake-utils_use_with ssl OPENSSL)
- -DLINGUAS="${MY_LANGUAGES}"
- -DOXYGEN_ICONS=Builtin
- -DQUASSEL_ICONS=Builtin
- -DWANT_MONO=OFF"
-
- cmake-utils_src_compile
+# Comment this out and invoke _common_configure_code, cmake and cmake-utils_src_make
+# manually until cmake-utils.eclass supports space separated strings as arguments for cmake
+# options. Until now multiple languages are not passed to -DLINGUAS and only the first
+# language is considered.
+#
+# local mycmakeargs=(
+# "$(cmake-utils_use_want server CORE)"
+# "$(cmake-utils_use_want X QTCLIENT)"
+# "$(cmake-utils_use_with X WEBKIT)"
+# "$(cmake-utils_use_with dbus DBUS)"
+# "$(cmake-utils_use_with ssl OPENSSL)"
+# "-DLINGUAS=\"${LINGUAS}\""
+# '-DOXYGEN_ICONS=Builtin'
+# '-DQUASSEL_ICONS=Builtin'
+# '-DWANT_MONO=OFF' )
+#
+# cmake-utils_src_compile
+
+ _common_configure_code
+
+ cmake -C "${TMPDIR}/gentoo_common_config.cmake" \
+ $(cmake-utils_use_want server CORE) $(cmake-utils_use_want X QTCLIENT) \
+ $(cmake-utils_use_with X WEBKIT) $(cmake-utils_use_with dbus DBUS) \
+ $(cmake-utils_use_with ssl OPENSSL) -DLINGUAS="${LINGUAS}" \
+ -DOXYGEN_ICONS=Builtin -DQUASSEL_ICONS=Builtin -DWANT_MONO=OFF \
+ "${S}" || die "Cmake failed"
+
+ cmake-utils_src_make
}
src_install() {