Gentoo Archives: gentoo-commits

From: "Julian Ospald (hasufell)" <hasufell@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-irc/hexchat: ChangeLog hexchat-9999.ebuild hexchat-2.10.0.ebuild
Date: Mon, 02 Jun 2014 18:06:10
Message-Id: 20140602180606.09B582004F@flycatcher.gentoo.org
1 hasufell 14/06/02 18:06:05
2
3 Modified: ChangeLog hexchat-9999.ebuild
4 Added: hexchat-2.10.0.ebuild
5 Log:
6 version bump wrt #512130, update live ebuild
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key BDEED020)
9
10 Revision Changes Path
11 1.99 net-irc/hexchat/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/hexchat/ChangeLog?rev=1.99&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/hexchat/ChangeLog?rev=1.99&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/hexchat/ChangeLog?r1=1.98&r2=1.99
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-irc/hexchat/ChangeLog,v
20 retrieving revision 1.98
21 retrieving revision 1.99
22 diff -u -r1.98 -r1.99
23 --- ChangeLog 17 May 2014 14:05:18 -0000 1.98
24 +++ ChangeLog 2 Jun 2014 18:06:05 -0000 1.99
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-irc/hexchat
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-irc/hexchat/ChangeLog,v 1.98 2014/05/17 14:05:18 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-irc/hexchat/ChangeLog,v 1.99 2014/06/02 18:06:05 hasufell Exp $
30 +
31 +*hexchat-2.10.0 (02 Jun 2014)
32 +
33 + 02 Jun 2014; Julian Ospald <hasufell@g.o> +hexchat-2.10.0.ebuild,
34 + hexchat-9999.ebuild, +files/hexchat-2.10.0-plugins.patch:
35 + version bump wrt #512130, update live ebuild
36
37 17 May 2014; Agostino Sarubbo <ago@g.o> hexchat-2.9.6.1-r2.ebuild:
38 Stable for alpha, wrt bug #499844
39
40
41
42 1.13 net-irc/hexchat/hexchat-9999.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/hexchat/hexchat-9999.ebuild?rev=1.13&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/hexchat/hexchat-9999.ebuild?rev=1.13&content-type=text/plain
46 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/hexchat/hexchat-9999.ebuild?r1=1.12&r2=1.13
47
48 Index: hexchat-9999.ebuild
49 ===================================================================
50 RCS file: /var/cvsroot/gentoo-x86/net-irc/hexchat/hexchat-9999.ebuild,v
51 retrieving revision 1.12
52 retrieving revision 1.13
53 diff -u -r1.12 -r1.13
54 --- hexchat-9999.ebuild 3 Feb 2014 02:25:40 -0000 1.12
55 +++ hexchat-9999.ebuild 2 Jun 2014 18:06:05 -0000 1.13
56 @@ -1,10 +1,10 @@
57 # Copyright 1999-2014 Gentoo Foundation
58 # Distributed under the terms of the GNU General Public License v2
59 -# $Header: /var/cvsroot/gentoo-x86/net-irc/hexchat/hexchat-9999.ebuild,v 1.12 2014/02/03 02:25:40 hasufell Exp $
60 +# $Header: /var/cvsroot/gentoo-x86/net-irc/hexchat/hexchat-9999.ebuild,v 1.13 2014/06/02 18:06:05 hasufell Exp $
61
62 EAPI=5
63
64 -PYTHON_COMPAT=( python2_7 python3_3 )
65 +PYTHON_COMPAT=( python2_7 python3_3 python3_4 )
66 inherit autotools eutils fdo-mime gnome2-utils mono-env multilib python-single-r1 git-2
67
68 DESCRIPTION="Graphical IRC client based on XChat"
69 @@ -12,15 +12,11 @@
70 SRC_URI=""
71 EGIT_REPO_URI="git://github.com/hexchat/hexchat.git"
72
73 -LICENSE="GPL-2"
74 +LICENSE="GPL-2 plugin-fishlim? ( MIT )"
75 SLOT="0"
76 KEYWORDS=""
77 IUSE="dbus +gtk ipv6 libcanberra libnotify libproxy nls ntlm perl +plugins plugin-checksum plugin-doat plugin-fishlim plugin-sysinfo python spell ssl theme-manager"
78 -REQUIRED_USE="plugin-checksum? ( plugins )
79 - plugin-doat? ( plugins )
80 - plugin-fishlim? ( plugins )
81 - plugin-sysinfo? ( plugins )
82 - python? ( ${PYTHON_REQUIRED_USE} )"
83 +REQUIRED_USE="plugins? ( python? ( ${PYTHON_REQUIRED_USE} ) )"
84
85 DEPEND="dev-libs/glib:2
86 dbus? ( >=dev-libs/dbus-glib-0.98 )
87 @@ -30,25 +26,44 @@
88 libnotify? ( x11-libs/libnotify )
89 nls? ( virtual/libintl )
90 ntlm? ( net-libs/libntlm )
91 - perl? ( >=dev-lang/perl-5.8.0 )
92 - plugin-sysinfo? ( sys-apps/pciutils )
93 - python? ( ${PYTHON_DEPS} )
94 + plugins? (
95 + perl? ( >=dev-lang/perl-5.8.0 )
96 + plugin-sysinfo? ( sys-apps/pciutils )
97 + python? ( ${PYTHON_DEPS} )
98 + )
99 spell? ( app-text/iso-codes )
100 ssl? ( dev-libs/openssl:0 )
101 theme-manager? ( dev-lang/mono )"
102 RDEPEND="${DEPEND}
103 spell? ( app-text/enchant )"
104 DEPEND="${DEPEND}
105 + app-arch/xz-utils
106 virtual/pkgconfig
107 nls? ( sys-devel/gettext )
108 theme-manager? ( dev-util/monodevelop )"
109
110 pkg_setup() {
111 - use python && python-single-r1_pkg_setup
112 + use plugins && use python && python-single-r1_pkg_setup
113 if use theme-manager ; then
114 mono-env_pkg_setup
115 export XDG_CACHE_HOME="${T}/.cache"
116 fi
117 +
118 + if use !plugins ; then
119 + local myplugins
120 +
121 + use perl && myplugins+="perl\n"
122 + use python && myplugins+="python\n"
123 + use plugin-checksum && myplugins+="plugin-checksum\n"
124 + use plugin-doat && myplugins+="plugin-doat\n"
125 + use plugin-fishlim && myplugins+="plugin-fishlim\n"
126 + use plugin-sysinfo && myplugins+="plugin-sysinfo\n"
127 +
128 + ewarn "The following plugins/interfaces have been disabled, because"
129 + ewarn "\"plugins\" USE flag is disabled. Check metadata.xml"
130 + ewarn "to get more information or run \"equery u hexchat\"."
131 + ewarn "\n${myplugins}"
132 + fi
133 }
134
135 src_prepare() {
136 @@ -75,17 +90,34 @@
137 $(use_enable ssl openssl) \
138 $(use_enable gtk gtkfe) \
139 $(use_enable !gtk textfe) \
140 - $(usex python "--enable-python=${EPYTHON}" "--disable-python") \
141 - $(use_enable perl) \
142 + $(usex plugins \
143 + "$(usex python "--enable-python=${EPYTHON}" "--disable-python")" \
144 + "--disable-python" \
145 + ) \
146 + $(usex plugins \
147 + "$(use_enable perl)" \
148 + "--disable-perl" \
149 + ) \
150 $(use_enable plugins plugin) \
151 - $(use_enable plugin-checksum checksum) \
152 - $(use_enable plugin-doat doat) \
153 - $(use_enable plugin-fishlim fishlim) \
154 - $(use_enable plugin-sysinfo sysinfo) \
155 + $(usex plugins \
156 + "$(use_enable plugin-checksum checksum)" \
157 + "--disable-checksum" \
158 + ) \
159 + $(usex plugins \
160 + "$(use_enable plugin-doat doat)" \
161 + "--disable-doat" \
162 + ) \
163 + $(usex plugins \
164 + "$(use_enable plugin-fishlim fishlim)" \
165 + "--disable-fishlim" \
166 + ) \
167 + $(usex plugins \
168 + "$(use_enable plugin-sysinfo sysinfo)" \
169 + "--disable-sysinfo" \
170 + ) \
171 $(use_enable dbus) \
172 $(use_enable libnotify) \
173 $(use_enable libcanberra) \
174 - ${myspellconf} \
175 $(use_enable ntlm) \
176 $(use_enable libproxy) \
177 $(use_enable spell isocodes) \
178 @@ -128,15 +160,6 @@
179 elog
180 fi
181
182 - elog "If you're upgrading from hexchat <=2.9.3 remember to rename"
183 - elog "the xchat.conf file found in ~/.config/hexchat/ to hexchat.conf"
184 - elog
185 - elog "If you're upgrading from hexchat <=2.9.5 you will have to fix"
186 - elog "your auto-join channel settings, see:"
187 - elog " https://bugs.gentoo.org/show_bug.cgi?id=473514#c1"
188 - elog "Also, some internal hotkeys such as \"Ctrl+l\" (clear screen)"
189 - elog "have been removed, but you can add them yourself via:"
190 - elog " Settings -> Keyboard Shortcuts"
191 einfo
192 elog "optional dependencies:"
193 elog " media-sound/sox (sound playback if you don't have libcanberra"
194
195
196
197 1.1 net-irc/hexchat/hexchat-2.10.0.ebuild
198
199 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/hexchat/hexchat-2.10.0.ebuild?rev=1.1&view=markup
200 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/hexchat/hexchat-2.10.0.ebuild?rev=1.1&content-type=text/plain
201
202 Index: hexchat-2.10.0.ebuild
203 ===================================================================
204 # Copyright 1999-2014 Gentoo Foundation
205 # Distributed under the terms of the GNU General Public License v2
206 # $Header: /var/cvsroot/gentoo-x86/net-irc/hexchat/hexchat-2.10.0.ebuild,v 1.1 2014/06/02 18:06:05 hasufell Exp $
207
208 EAPI=5
209
210 PYTHON_COMPAT=( python2_7 python3_3 python3_4 )
211 inherit eutils fdo-mime gnome2-utils mono-env multilib python-single-r1
212
213 DESCRIPTION="Graphical IRC client based on XChat"
214 HOMEPAGE="http://hexchat.github.io/"
215 SRC_URI="http://dl.hexchat.org/hexchat/${P}.tar.xz"
216
217 LICENSE="GPL-2 plugin-fishlim? ( MIT )"
218 SLOT="0"
219 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux"
220 IUSE="dbus +gtk ipv6 libcanberra libnotify libproxy nls ntlm perl +plugins plugin-checksum plugin-doat plugin-fishlim plugin-sysinfo python spell ssl theme-manager"
221 REQUIRED_USE="plugins? ( python? ( ${PYTHON_REQUIRED_USE} ) )"
222
223 DEPEND="dev-libs/glib:2
224 dbus? ( >=dev-libs/dbus-glib-0.98 )
225 gtk? ( x11-libs/gtk+:2 )
226 libcanberra? ( media-libs/libcanberra )
227 libproxy? ( net-libs/libproxy )
228 libnotify? ( x11-libs/libnotify )
229 nls? ( virtual/libintl )
230 ntlm? ( net-libs/libntlm )
231 plugins? (
232 perl? ( >=dev-lang/perl-5.8.0 )
233 plugin-sysinfo? ( sys-apps/pciutils )
234 python? ( ${PYTHON_DEPS} )
235 )
236 spell? ( app-text/iso-codes )
237 ssl? ( dev-libs/openssl:0 )
238 theme-manager? ( dev-lang/mono )"
239 RDEPEND="${DEPEND}
240 spell? ( app-text/enchant )"
241 DEPEND="${DEPEND}
242 app-arch/xz-utils
243 virtual/pkgconfig
244 nls? ( sys-devel/gettext )
245 theme-manager? ( dev-util/monodevelop )"
246
247 pkg_setup() {
248 use plugins && use python && python-single-r1_pkg_setup
249 if use theme-manager ; then
250 mono-env_pkg_setup
251 export XDG_CACHE_HOME="${T}/.cache"
252 fi
253
254 if use !plugins ; then
255 local myplugins
256
257 use perl && myplugins+="perl\n"
258 use python && myplugins+="python\n"
259 use plugin-checksum && myplugins+="plugin-checksum\n"
260 use plugin-doat && myplugins+="plugin-doat\n"
261 use plugin-fishlim && myplugins+="plugin-fishlim\n"
262 use plugin-sysinfo && myplugins+="plugin-sysinfo\n"
263
264 ewarn "The following plugins/interfaces have been disabled, because"
265 ewarn "\"plugins\" USE flag is disabled. Check metadata.xml"
266 ewarn "to get more information or run \"equery u hexchat\"."
267 ewarn "\n${myplugins}"
268 fi
269 }
270
271 src_prepare() {
272 epatch "${FILESDIR}"/${P}-plugins.patch
273 epatch_user
274 }
275
276 src_configure() {
277 econf \
278 $(use_enable nls) \
279 $(use_enable libproxy socks) \
280 $(use_enable ipv6) \
281 $(use_enable ssl openssl) \
282 $(use_enable gtk gtkfe) \
283 $(use_enable !gtk textfe) \
284 $(usex plugins \
285 "$(usex python "--enable-python=${EPYTHON}" "--disable-python")" \
286 "--disable-python" \
287 ) \
288 $(usex plugins \
289 "$(use_enable perl)" \
290 "--disable-perl" \
291 ) \
292 $(use_enable plugins plugin) \
293 $(usex plugins \
294 "$(use_enable plugin-checksum checksum)" \
295 "--disable-checksum" \
296 ) \
297 $(usex plugins \
298 "$(use_enable plugin-doat doat)" \
299 "--disable-doat" \
300 ) \
301 $(usex plugins \
302 "$(use_enable plugin-fishlim fishlim)" \
303 "--disable-fishlim" \
304 ) \
305 $(usex plugins \
306 "$(use_enable plugin-sysinfo sysinfo)" \
307 "--disable-sysinfo" \
308 ) \
309 $(use_enable dbus) \
310 $(use_enable libnotify) \
311 $(use_enable libcanberra) \
312 $(use_enable ntlm) \
313 $(use_enable libproxy) \
314 $(use_enable spell isocodes) \
315 --enable-minimal-flags \
316 $(use_with theme-manager)
317 }
318
319 src_install() {
320 emake DESTDIR="${D}" \
321 UPDATE_ICON_CACHE=true \
322 UPDATE_MIME_DATABASE=true \
323 UPDATE_DESKTOP_DATABASE=true \
324 install
325 dodoc readme.md
326 prune_libtool_files --all
327 }
328
329 pkg_preinst() {
330 if use gtk ; then
331 gnome2_icon_savelist
332 fi
333 }
334
335 pkg_postinst() {
336 if use gtk ; then
337 gnome2_icon_cache_update
338 einfo
339 else
340 einfo
341 elog "You have disabled the gtk USE flag. This means you don't have"
342 elog "the GTK-GUI for HexChat but only a text interface called \"hexchat-text\"."
343 elog
344 fi
345
346 if use theme-manager ; then
347 fdo-mime_desktop_database_update
348 fdo-mime_mime_database_update
349 elog "Themes are available at:"
350 elog " http://hexchat.org/themes.html"
351 elog
352 fi
353
354 einfo
355 elog "optional dependencies:"
356 elog " media-sound/sox (sound playback if you don't have libcanberra"
357 elog " enabled)"
358 elog " x11-plugins/hexchat-javascript (javascript support)"
359 elog " x11-themes/sound-theme-freedesktop (default BEEP sound,"
360 elog " needs libcanberra enabled)"
361 einfo
362 }
363
364 pkg_postrm() {
365 if use gtk ; then
366 gnome2_icon_cache_update
367 fi
368
369 if use theme-manager ; then
370 fdo-mime_desktop_database_update
371 fdo-mime_mime_database_update
372 fi
373 }