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