Lines 1-6
Link Here
|
1 |
# Copyright 1999-2008 Gentoo Foundation |
1 |
# Copyright 1999-2008 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-irc/quassel/quassel-0.3.0.3.ebuild,v 1.1 2008/10/26 13:22:39 jokey Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-irc/quassel/quassel-9999.ebuild,v 1.10 2008/10/07 20:37:45 jokey Exp $ |
4 |
|
4 |
|
5 |
EAPI=1 |
5 |
EAPI=1 |
6 |
|
6 |
|
Lines 13-23
Link Here
|
13 |
SRC_URI="http://quassel-irc.org/pub/${MY_P}.tar.bz2" |
13 |
SRC_URI="http://quassel-irc.org/pub/${MY_P}.tar.bz2" |
14 |
|
14 |
|
15 |
LICENSE="GPL-3" |
15 |
LICENSE="GPL-3" |
16 |
KEYWORDS="~amd64 ~sparc ~x86" |
16 |
KEYWORDS="~x86" |
17 |
SLOT="0" |
17 |
SLOT="0" |
18 |
IUSE="+dbus debug +server +ssl +X" |
18 |
IUSE="+dbus debug +server +ssl +X" |
19 |
|
19 |
|
20 |
LANGS="nb_NO da de fr" |
20 |
LANGS="nb_NO da de fr ru" |
21 |
for l in ${LANGS}; do |
21 |
for l in ${LANGS}; do |
22 |
IUSE="${IUSE} linguas_${l}" |
22 |
IUSE="${IUSE} linguas_${l}" |
23 |
done |
23 |
done |
Lines 27-39
Link Here
|
27 |
x11-libs/qt-sql:4 |
27 |
x11-libs/qt-sql:4 |
28 |
x11-libs/qt-script:4 |
28 |
x11-libs/qt-script:4 |
29 |
) |
29 |
) |
30 |
X? ( x11-libs/qt-gui:4 ) |
30 |
X? ( |
31 |
dbus? ( x11-libs/qt-dbus ) |
31 |
x11-libs/qt-gui:4 |
|
|
32 |
x11-libs/qt-webkit:4 |
33 |
) |
34 |
dbus? ( x11-libs/qt-dbus:4 ) |
32 |
ssl? ( dev-libs/openssl )" |
35 |
ssl? ( dev-libs/openssl )" |
33 |
DEPEND="${RDEPEND} |
36 |
DEPEND="${RDEPEND} |
34 |
>=dev-util/cmake-2.4.7" |
37 |
>=dev-util/cmake-2.6" |
35 |
|
38 |
|
36 |
DOCS="AUTHORS ChangeLog README README.Qtopia" |
39 |
DOCS="AUTHORS ChangeLog README" |
37 |
|
40 |
|
38 |
S=${WORKDIR}/${MY_P} |
41 |
S=${WORKDIR}/${MY_P} |
39 |
|
42 |
|
Lines 55-88
Link Here
|
55 |
} |
58 |
} |
56 |
|
59 |
|
57 |
src_compile() { |
60 |
src_compile() { |
58 |
local MY_LANGUAGES="" |
61 |
# Comment this out and invoke _common_configure_code, cmake and cmake-utils_src_make |
59 |
for ling in ${LINGUAS}; do |
62 |
# manually until cmake-utils.eclass supports space separated strings as arguments for cmake |
60 |
if has $ling ${LANGS}; then |
63 |
# options. Until now multiple languages are not passed to -DLINGUAS and only the first |
61 |
MY_LANGUAGES="${ling} ${MY_LANGUAGES}" |
64 |
# language is considered. |
62 |
fi |
65 |
# |
63 |
done |
66 |
# local mycmakeargs=( |
64 |
|
67 |
# "$(cmake-utils_use_want server CORE)" |
65 |
local mycmakeargs=" |
68 |
# "$(cmake-utils_use_want X QTCLIENT)" |
66 |
$(cmake-utils_use_want server CORE) |
69 |
# "$(cmake-utils_use_with X WEBKIT)" |
67 |
$(cmake-utils_use_want X QTCLIENT) |
70 |
# "$(cmake-utils_use_with dbus DBUS)" |
68 |
$(cmake-utils_use_with dbus DBUS) |
71 |
# "$(cmake-utils_use_with ssl OPENSSL)" |
69 |
$(cmake-utils_use_with ssl OPENSSL) |
72 |
# "-DLINGUAS=\"${LINGUAS}\"" |
70 |
-DLINGUAS="${MY_LANGUAGES}" |
73 |
# '-DOXYGEN_ICONS=Builtin' |
71 |
-DWANT_MONO=OFF" |
74 |
# '-DQUASSEL_ICONS=Builtin' |
|
|
75 |
# '-DWANT_MONO=OFF' ) |
76 |
# |
77 |
# cmake-utils_src_compile |
78 |
|
79 |
_common_configure_code |
80 |
|
81 |
cmake -C "${TMPDIR}/gentoo_common_config.cmake" \ |
82 |
$(cmake-utils_use_want server CORE) $(cmake-utils_use_want X QTCLIENT) \ |
83 |
$(cmake-utils_use_with X WEBKIT) $(cmake-utils_use_with dbus DBUS) \ |
84 |
$(cmake-utils_use_with ssl OPENSSL) -DLINGUAS="${LINGUAS}" \ |
85 |
-DOXYGEN_ICONS=Builtin -DQUASSEL_ICONS=Builtin -DWANT_MONO=OFF \ |
86 |
"${S}" || die "Cmake failed" |
72 |
|
87 |
|
73 |
cmake-utils_src_compile |
88 |
cmake-utils_src_make |
74 |
} |
89 |
} |
75 |
|
90 |
|
76 |
src_install() { |
91 |
src_install() { |
77 |
cmake-utils_src_install |
92 |
cmake-utils_src_install |
78 |
|
93 |
|
79 |
# Only install the icons if the X client was installed |
|
|
80 |
if use X ; then |
81 |
insinto /usr/share/icons/hicolor |
82 |
# avoid the connected/ directory, get only the ${size}x${size} |
83 |
doins -r "${S}"/src/icons/quassel/*x* || die "installing quassel icons failed" |
84 |
fi |
85 |
|
86 |
if use server ; then |
94 |
if use server ; then |
87 |
newinitd "${FILESDIR}"/quasselcore.init quasselcore || die "newinitd failed" |
95 |
newinitd "${FILESDIR}"/quasselcore.init quasselcore || die "newinitd failed" |
88 |
newconfd "${FILESDIR}"/quasselcore.conf quasselcore || die "newconfd failed" |
96 |
newconfd "${FILESDIR}"/quasselcore.conf quasselcore || die "newconfd failed" |