Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-irc/quassel: ChangeLog quassel-0.3.1-r2.ebuild
Date: Fri, 28 Nov 2008 22:14:05
Message-Id: E1L6Bb8-0000RB-OT@stork.gentoo.org
1 patrick 08/11/28 22:14:02
2
3 Modified: ChangeLog
4 Added: quassel-0.3.1-r2.ebuild
5 Log:
6 Small fixes to make things actually work. Again.
7 (Portage version: 2.2_rc16/cvs/Linux 2.6.26.5 x86_64)
8
9 Revision Changes Path
10 1.37 net-irc/quassel/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/quassel/ChangeLog?rev=1.37&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/quassel/ChangeLog?rev=1.37&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/quassel/ChangeLog?r1=1.36&r2=1.37
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-irc/quassel/ChangeLog,v
19 retrieving revision 1.36
20 retrieving revision 1.37
21 diff -u -r1.36 -r1.37
22 --- ChangeLog 28 Nov 2008 21:11:49 -0000 1.36
23 +++ ChangeLog 28 Nov 2008 22:14:02 -0000 1.37
24 @@ -1,6 +1,11 @@
25 # ChangeLog for net-irc/quassel
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-irc/quassel/ChangeLog,v 1.36 2008/11/28 21:11:49 patrick Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-irc/quassel/ChangeLog,v 1.37 2008/11/28 22:14:02 patrick Exp $
29 +
30 +*quassel-0.3.1-r2 (28 Nov 2008)
31 +
32 + 28 Nov 2008; Patrick Lauer <patrick@g.o> +quassel-0.3.1-r2.ebuild:
33 + Oh dear. Small fixes to make Daniel happy.
34
35 *quassel-0.3.1-r1 (28 Nov 2008)
36
37
38
39
40 1.1 net-irc/quassel/quassel-0.3.1-r2.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/quassel/quassel-0.3.1-r2.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/quassel/quassel-0.3.1-r2.ebuild?rev=1.1&content-type=text/plain
44
45 Index: quassel-0.3.1-r2.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/net-irc/quassel/quassel-0.3.1-r2.ebuild,v 1.1 2008/11/28 22:14:02 patrick Exp $
50
51 EAPI=1
52
53 inherit cmake-utils eutils
54
55 MY_P="${P/_/-}"
56
57 DESCRIPTION="Core/client IRC client."
58 HOMEPAGE="http://quassel-irc.org/"
59 SRC_URI="http://quassel-irc.org/pub/${MY_P}.tar.bz2"
60
61 LICENSE="GPL-3"
62 KEYWORDS="~amd64 ~x86"
63 SLOT="0"
64 IUSE="+dbus debug +server +ssl +X"
65
66 LANGS="nb_NO da de fr ru"
67 for l in ${LANGS}; do
68 IUSE="${IUSE} linguas_${l}"
69 done
70
71 RDEPEND="x11-libs/qt-core:4
72 server? (
73 x11-libs/qt-sql:4
74 x11-libs/qt-script:4
75 )
76 X? (
77 x11-libs/qt-gui:4
78 x11-libs/qt-webkit:4 )
79 dbus? ( x11-libs/qt-dbus:4 )
80 ssl? ( dev-libs/openssl )"
81 DEPEND="${RDEPEND}
82 >=dev-util/cmake-2.6"
83
84 DOCS="AUTHORS ChangeLog README"
85
86 S=${WORKDIR}/${MY_P}
87
88 pkg_setup() {
89 if ! use server && ! use X ; then
90 eerror "You have to build one or both of quassel client or server."
91 die "Both server and X USE flags unset."
92 fi
93
94 if use server && ! built_with_use x11-libs/qt-sql sqlite ; then
95 eerror "Please rebuild x11-libs/qt-sql:4 with sqlite USE flag enabled."
96 die "Missing sqlite support in x11-libs/qt-sql:4"
97 fi
98
99 if use ssl && ! built_with_use x11-libs/qt-core ssl ; then
100 eerror "Please rebuild x11-libs/qt-core:4 with ssl USE flag enabled."
101 die "Missing ssl support in x11-libs/qt-core:4"
102 fi
103 }
104
105 src_compile() {
106 # Comment this out and invoke _common_configure_code, cmake and cmake-utils_src_make
107 # manually until cmake-utils.eclass supports space separated strings as arguments for cmake
108 # options. Until now multiple languages are not passed to -DLINGUAS and only the first
109 # language is considered.
110 #
111 # local mycmakeargs=(
112 # "$(cmake-utils_use_want server CORE)"
113 # "$(cmake-utils_use_want X QTCLIENT)"
114 # "$(cmake-utils_use_with X WEBKIT)"
115 # "$(cmake-utils_use_with dbus DBUS)"
116 # "$(cmake-utils_use_with ssl OPENSSL)"
117 # "-DLINGUAS=\"${LINGUAS}\""
118 # '-DOXYGEN_ICONS=Builtin'
119 # '-DQUASSEL_ICONS=Builtin'
120 # '-DWANT_MONO=OFF' )
121 #
122 # cmake-utils_src_compile
123
124 _common_configure_code
125
126 cmake -C "${TMPDIR}/gentoo_common_config.cmake" \
127 $(cmake-utils_use_want server CORE) $(cmake-utils_use_want X QTCLIENT) \
128 $(cmake-utils_use_with X WEBKIT) $(cmake-utils_use_with dbus DBUS) \
129 $(cmake-utils_use_with ssl OPENSSL) -DLINGUAS="${LINGUAS}" \
130 -DOXYGEN_ICONS=Builtin -DQUASSEL_ICONS=Builtin -DWANT_MONO=OFF \
131 "${S}" || die "Cmake failed"
132
133 cmake-utils_src_make
134 }
135
136 src_install() {
137 cmake-utils_src_install
138 if use server ; then
139 newinitd "${FILESDIR}"/quasselcore.init quasselcore || die "newinitd failed"
140 newconfd "${FILESDIR}"/quasselcore.conf quasselcore || die "newconfd failed"
141
142 insinto /usr/share/doc/${PF}
143 doins "${S}"/scripts/manageusers.py || die "installing manageusers.py failed"
144 fi
145 }
146
147 pkg_postinst() {
148 if use server ; then
149 ewarn
150 ewarn "In order to use the quassel init script you must set the"
151 ewarn "QUASSEL_USER variable in /etc/conf.d/quasselcore to your username."
152 ewarn "Note: This is the user who runs the quasselcore and is independent"
153 ewarn "from the users you set up in the quasselclient."
154 elog
155 elog "Adding more than one user or changing username/password is not"
156 elog "possible via the quasselclient yet. If you need to do these things"
157 elog "you have to use the manageusers.py script, which has been installed in"
158 elog "/usr/share/doc/${PF}".
159 elog "Please make sure that the quasselcore is stopped before adding more users."
160 fi
161
162 if use server && use ssl ; then
163 elog
164 elog "To enable SSL support for client/core connections the quasselcore needs"
165 elog "a PEM certificate which needs to be stored in ~/.quassel/quasselCert.pem."
166 elog "To create the certificate use the following command:"
167 elog "openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout ~/.quassel/quasselCert.pem -out ~/.quassel/quasselCert.pem"
168 fi
169 }