Gentoo Archives: gentoo-commits

From: "Tomas Chvatal (scarabeus)" <scarabeus@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-irc/quassel: ChangeLog quassel-0.7_rc1.ebuild
Date: Fri, 27 Aug 2010 10:26:36
Message-Id: 20100827102629.3553620051@flycatcher.gentoo.org
1 scarabeus 10/08/27 10:26:29
2
3 Modified: ChangeLog
4 Added: quassel-0.7_rc1.ebuild
5 Log:
6 Version bump to latest rc.
7
8 (Portage version: 2.2_rc68/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.103 net-irc/quassel/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/quassel/ChangeLog?rev=1.103&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/quassel/ChangeLog?rev=1.103&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/quassel/ChangeLog?r1=1.102&r2=1.103
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-irc/quassel/ChangeLog,v
20 retrieving revision 1.102
21 retrieving revision 1.103
22 diff -u -r1.102 -r1.103
23 --- ChangeLog 27 Aug 2010 10:20:48 -0000 1.102
24 +++ ChangeLog 27 Aug 2010 10:26:29 -0000 1.103
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-irc/quassel
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-irc/quassel/ChangeLog,v 1.102 2010/08/27 10:20:48 scarabeus Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-irc/quassel/ChangeLog,v 1.103 2010/08/27 10:26:29 scarabeus Exp $
30 +
31 +*quassel-0.7_rc1 (27 Aug 2010)
32 +
33 + 27 Aug 2010; Tomáš Chvátal <scarabeus@g.o>
34 + +quassel-0.7_rc1.ebuild:
35 + Version bump to latest rc.
36
37 27 Aug 2010; Tomáš Chvátal <scarabeus@g.o> quassel-9999.ebuild:
38 Forgot to specify the src_uri too.
39
40
41
42 1.1 net-irc/quassel/quassel-0.7_rc1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/quassel/quassel-0.7_rc1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/quassel/quassel-0.7_rc1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: quassel-0.7_rc1.ebuild
48 ===================================================================
49 # Copyright 1999-2010 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-irc/quassel/quassel-0.7_rc1.ebuild,v 1.1 2010/08/27 10:26:29 scarabeus Exp $
52
53 EAPI=3
54
55 EGIT_REPO_URI="git://git.quassel-irc.org/quassel.git"
56 EGIT_BRANCH="master"
57 [[ "${PV}" == "9999" ]] && GIT_ECLASS="git"
58
59 QT_MINIMAL="4.6.0"
60 KDE_MINIMAL="4.4"
61
62 inherit cmake-utils eutils ${GIT_ECLASS}
63
64 DESCRIPTION="Qt4/KDE4 IRC client suppporting a remote daemon for 24/7 connectivity."
65 HOMEPAGE="http://quassel-irc.org/"
66 [[ "${PV}" == "9999" ]] || SRC_URI="http://quassel-irc.org/pub/${P/_/-}.tar.bz2"
67
68 LICENSE="GPL-3"
69 KEYWORDS="~amd64 ~x86 ~amd64-linux"
70 SLOT="0"
71 IUSE="ayatana crypt dbus debug kde monolithic phonon postgres +server +ssl webkit X"
72
73 SERVER_RDEPEND="
74 crypt? ( app-crypt/qca:2 )
75 !postgres? ( >=x11-libs/qt-sql-${QT_MINIMAL}:4[sqlite] dev-db/sqlite[threadsafe] )
76 postgres? ( >=x11-libs/qt-sql-${QT_MINIMAL}:4[postgres] )
77 x11-libs/qt-script:4
78 "
79
80 GUI_RDEPEND="
81 >=x11-libs/qt-gui-${QT_MINIMAL}:4
82 ayatana? ( dev-libs/libindicate-qt )
83 dbus? (
84 >=x11-libs/qt-dbus-${QT_MINIMAL}:4
85 dev-libs/libdbusmenu-qt
86 )
87 kde? (
88 >=kde-base/kdelibs-${KDE_MINIMAL}
89 >=kde-base/oxygen-icons-${KDE_MINIMAL}
90 ayatana? ( kde-misc/plasma-widget-message-indicator )
91 )
92 phonon? ( || ( media-sound/phonon >=x11-libs/qt-phonon-${QT_MINIMAL} ) )
93 webkit? ( >=x11-libs/qt-webkit-${QT_MINIMAL}:4 )
94 "
95
96 RDEPEND="
97 monolithic? (
98 ${SERVER_RDEPEND}
99 ${GUI_RDEPEND}
100 )
101 !monolithic? (
102 server? ( ${SERVER_RDEPEND} )
103 X? ( ${GUI_RDEPEND} )
104 )
105 ssl? ( x11-libs/qt-core:4[ssl] )
106 !monolithic? (
107 !server? (
108 !X? (
109 ${SERVER_RDEPEND}
110 ${GUI_RDEPEND}
111 )
112 )
113 )
114 "
115 DEPEND="${RDEPEND}"
116
117 DOCS="AUTHORS ChangeLog README"
118
119 pkg_setup() {
120 if ! use monolithic && ! use server && ! use X ; then
121 ewarn "You have to build at least one of the monolithic client (USE=monolithic),"
122 ewarn "the quasselclient (USE=X) or the quasselcore (USE=server)."
123 echo
124 ewarn "Enabling monolithic by default."
125 FORCED_MONO="yes"
126 fi
127
128 if use server; then
129 QUASSEL_DIR=/var/lib/${PN}
130 QUASSEL_USER=${PN}
131 # create quassel:quassel user
132 enewgroup "${QUASSEL_USER}"
133 enewuser "${QUASSEL_USER}" -1 -1 "${QUASSEL_DIR}" "${QUASSEL_USER}"
134 fi
135 }
136
137 src_configure() {
138 local mycmakeargs=(
139 $(cmake-utils_use_with ayatana LIBINDICATE)
140 $(cmake-utils_use_want X QTCLIENT)
141 $(cmake-utils_use_want server CORE)
142 $(cmake-utils_use_want monolithic MONO)
143 $(cmake-utils_use_with webkit)
144 $(cmake-utils_use_with phonon)
145 $(cmake-utils_use_with kde)
146 $(cmake-utils_use_with dbus)
147 $(cmake-utils_use_with ssl OPENSSL)
148 $(cmake-utils_use_with !kde OXYGEN)
149 $(cmake-utils_use_with crypt)
150 "-DEMBED_DATA=OFF"
151 )
152
153 [[ ${FORCED_MONO} == "yes" ]] && mycmakeargs+=( '-DWANT_MONO=ON' )
154
155 cmake-utils_src_configure
156 }
157
158 src_install() {
159 cmake-utils_src_install
160
161 if use server ; then
162 # prepare folders in /var/
163 keepdir "${QUASSEL_DIR}"
164 fowners "${QUASSEL_USER}":"${QUASSEL_USER}" "${QUASSEL_DIR}"
165
166 # init scripts
167 newinitd "${FILESDIR}"/quasselcore.init quasselcore || die "newinitd failed"
168 newconfd "${FILESDIR}"/quasselcore.conf quasselcore || die "newconfd failed"
169
170 # logrotate
171 insinto /etc/logrotate.d
172 newins "${FILESDIR}/quassel.logrotate" quassel || die "newins failed"
173 fi
174 }
175
176 pkg_postinst() {
177 if ( use monolithic || [[ "${FORCED_MONO}" == "yes" ]] ) && use ssl ; then
178 elog "Information on how to enable SSL support for client/core connections"
179 elog "is available at http://bugs.quassel-irc.org/wiki/quassel-irc."
180 fi
181
182 if use server; then
183 einfo "If you want to generate SSL certificate remember to run:"
184 einfo " emerge --config =${CATEGORY}/${PF}"
185 fi
186
187 # temporary info mesage
188 if use server; then
189 echo
190 ewarn "Please note that all configuration moved from"
191 ewarn "/home/\${QUASSEL_USER}/.config/quassel-irc.org/"
192 ewarn "to: ${QUASSEL_DIR}."
193 echo
194 ewarn "For migration, stop the core, move quasselcore files (pretty much"
195 ewarn "everything apart from quasselclient.conf and settings.qss) into"
196 ewarn "new location and then start server again."
197 fi
198 }
199
200 pkg_config() {
201 if use server && use ssl; then
202 # generate the pem file only when it does not already exist
203 if [ ! -f "${QUASSEL_DIR}/quasselCert.pem" ]; then
204 einfo "Generating QUASSEL SSL certificate to: \"${QUASSEL_DIR}/quasselCert.pem\""
205 openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
206 -keyout "${QUASSEL_DIR}/quasselCert.pem" \
207 -out "${QUASSEL_DIR}/quasselCert.pem"
208 # permissions for the key
209 chown ${QUASSEL_USER}:${QUASSEL_USER} "${QUASSEL_DIR}/quasselCert.pem"
210 chmod 400 "${QUASSEL_DIR}/quasselCert.pem"
211 else
212 einfo "Certificate \"${QUASSEL_DIR}/quasselCert.pem\" already exists."
213 einfo "Remove it if you want to create new one."
214 fi
215 fi
216 }