1 |
commit: 6f7cab7b12ddc568b0aa0a9239905517e61478cb |
2 |
Author: Anthony Ryan <anthonyryan1 <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Oct 6 20:59:11 2016 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 14 08:00:12 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f7cab7b |
7 |
|
8 |
net-irc/hexchat: version bump 2.12.2 |
9 |
|
10 |
Gentoo-bug: 582952, 528052, 592568 |
11 |
|
12 |
* EAPI 6 |
13 |
* Removed USE=ipv6 (required by upstream) |
14 |
* Added USE=debug |
15 |
* Removed USE=ntlm (removed by upstream) |
16 |
* Removed USE=plugins (required for simplicity) |
17 |
* Removed eutils & multilib |
18 |
Closes: https://github.com/gentoo/gentoo/pull/2498 |
19 |
|
20 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
21 |
|
22 |
net-irc/hexchat/Manifest | 1 + |
23 |
net-irc/hexchat/hexchat-2.12.2.ebuild | 139 +++++++++++++++++++++++++++++++++ |
24 |
net-irc/hexchat/hexchat-9999.ebuild | 142 +++++++++++----------------------- |
25 |
3 files changed, 187 insertions(+), 95 deletions(-) |
26 |
|
27 |
diff --git a/net-irc/hexchat/Manifest b/net-irc/hexchat/Manifest |
28 |
index 61a199a..515ff8d 100644 |
29 |
--- a/net-irc/hexchat/Manifest |
30 |
+++ b/net-irc/hexchat/Manifest |
31 |
@@ -1 +1,2 @@ |
32 |
DIST hexchat-2.10.2.tar.xz 1529732 SHA256 87ebf365c576656fa3f23f51d319b3a6d279e4a932f2f8961d891dd5a5e1b52c SHA512 799be6ca02d4f7bad98c005e0fb7dba151717b52841d7f2dd3ed86b80a20de934825a1e58aab4621ac751a605103e68e368a95e9709c48f52b9e5333e5e290ab WHIRLPOOL 5d8dcd59941a145544bbde2e761db092e801036d6879a0eb3a8b48ece43c02c78df88c889304ac1b4594e89cd68fccc02cd1239d6b60b4a0c13a5156f28154a7 |
33 |
+DIST hexchat-2.12.2.tar.xz 1600156 SHA256 6dad783f37aac32a8301a12d498af7a74900f011aec4e77bb378ae9797a3ccf6 SHA512 848ce16423e84ce3b019d4f0308eee0593a250a6441c7487ddafdff0b92d95e38de1b9edbcf8710522eef3016ec549a8c338bbe82d1f649523b56f4e81059417 WHIRLPOOL ee0c1ac39f57600a2bb4d08b00d996a0bae12c99e5a1f9a0aa9b02122226d4af35215ab2b4d9f4038afd9b876589331e2e05123b1e9fbf0a2ea29b9a1fd0e667 |
34 |
|
35 |
diff --git a/net-irc/hexchat/hexchat-2.12.2.ebuild b/net-irc/hexchat/hexchat-2.12.2.ebuild |
36 |
new file mode 100644 |
37 |
index 00000000..530b157 |
38 |
--- /dev/null |
39 |
+++ b/net-irc/hexchat/hexchat-2.12.2.ebuild |
40 |
@@ -0,0 +1,139 @@ |
41 |
+# Copyright 1999-2016 Gentoo Foundation |
42 |
+# Distributed under the terms of the GNU General Public License v2 |
43 |
+# $Id$ |
44 |
+ |
45 |
+EAPI=6 |
46 |
+ |
47 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
48 |
+inherit autotools fdo-mime gnome2-utils mono-env python-single-r1 |
49 |
+ |
50 |
+DESCRIPTION="Graphical IRC client based on XChat" |
51 |
+HOMEPAGE="https://hexchat.github.io/" |
52 |
+ |
53 |
+if [[ "${PV}" == "9999" ]] ; then |
54 |
+ inherit git-r3 |
55 |
+ SRC_URI="" |
56 |
+ EGIT_REPO_URI="git://github.com/hexchat/hexchat.git" |
57 |
+else |
58 |
+ SRC_URI="https://dl.hexchat.net/hexchat/${P}.tar.xz" |
59 |
+ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux" |
60 |
+fi |
61 |
+ |
62 |
+LICENSE="GPL-2 plugin-fishlim? ( MIT )" |
63 |
+SLOT="0" |
64 |
+IUSE="dbus debug +gtk libcanberra libnotify libproxy libressl lua nls perl plugin-checksum plugin-doat plugin-fishlim plugin-sysinfo python spell ssl theme-manager" |
65 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
66 |
+ |
67 |
+COMMON_DEPEND="dev-libs/glib:2 |
68 |
+ dbus? ( sys-apps/dbus ) |
69 |
+ gtk? ( x11-libs/gtk+:2 ) |
70 |
+ libcanberra? ( media-libs/libcanberra ) |
71 |
+ libproxy? ( net-libs/libproxy ) |
72 |
+ libnotify? ( x11-libs/libnotify ) |
73 |
+ lua? ( dev-lang/lua:= ) |
74 |
+ nls? ( virtual/libintl ) |
75 |
+ perl? ( dev-lang/perl ) |
76 |
+ plugin-sysinfo? ( sys-apps/pciutils ) |
77 |
+ python? ( ${PYTHON_DEPS} ) |
78 |
+ spell? ( app-text/iso-codes ) |
79 |
+ ssl? ( |
80 |
+ !libressl? ( dev-libs/openssl:0= ) |
81 |
+ libressl? ( dev-libs/libressl:0= ) |
82 |
+ ) |
83 |
+ theme-manager? ( dev-lang/mono )" |
84 |
+RDEPEND="${COMMON_DEPEND} |
85 |
+ spell? ( app-text/enchant )" |
86 |
+DEPEND="${COMMON_DEPEND} |
87 |
+ app-arch/xz-utils |
88 |
+ virtual/pkgconfig |
89 |
+ dev-util/intltool |
90 |
+ theme-manager? ( dev-util/monodevelop )" |
91 |
+ |
92 |
+src_prepare() { |
93 |
+ if [[ ${PV} == "9999" ]]; then |
94 |
+ eautoreconf |
95 |
+ fi |
96 |
+ default |
97 |
+} |
98 |
+ |
99 |
+pkg_setup() { |
100 |
+ use python && python-single-r1_pkg_setup |
101 |
+ if use theme-manager ; then |
102 |
+ mono-env_pkg_setup |
103 |
+ export XDG_CACHE_HOME="${T}/.cache" |
104 |
+ fi |
105 |
+} |
106 |
+ |
107 |
+src_configure() { |
108 |
+ econf \ |
109 |
+ --enable-plugin \ |
110 |
+ $(use_enable nls) \ |
111 |
+ $(use_enable ssl openssl) \ |
112 |
+ $(use_enable gtk gtkfe) \ |
113 |
+ $(use_enable !gtk textfe) \ |
114 |
+ $(use_enable python python "${EPYTHON}") \ |
115 |
+ $(use_enable perl) \ |
116 |
+ $(use_enable plugin-checksum checksum) \ |
117 |
+ $(use_enable plugin-doat doat) \ |
118 |
+ $(use_enable plugin-fishlim fishlim) \ |
119 |
+ $(use_enable plugin-sysinfo sysinfo) \ |
120 |
+ $(use_enable dbus) \ |
121 |
+ $(use_enable lua) \ |
122 |
+ $(use_enable libnotify) \ |
123 |
+ $(use_enable libcanberra) \ |
124 |
+ $(use_enable libproxy) \ |
125 |
+ $(use_enable spell isocodes) \ |
126 |
+ $(use_enable debug) \ |
127 |
+ $(use_with theme-manager) |
128 |
+} |
129 |
+ |
130 |
+src_install() { |
131 |
+ emake DESTDIR="${D}" \ |
132 |
+ UPDATE_ICON_CACHE=true \ |
133 |
+ UPDATE_MIME_DATABASE=true \ |
134 |
+ UPDATE_DESKTOP_DATABASE=true \ |
135 |
+ install |
136 |
+ dodoc readme.md |
137 |
+ find "${D}" -name '*.la' -delete || die |
138 |
+} |
139 |
+ |
140 |
+pkg_preinst() { |
141 |
+ if use gtk ; then |
142 |
+ gnome2_icon_savelist |
143 |
+ fi |
144 |
+} |
145 |
+ |
146 |
+pkg_postinst() { |
147 |
+ if use gtk ; then |
148 |
+ gnome2_icon_cache_update |
149 |
+ else |
150 |
+ elog "You have disabled the gtk USE flag. This means you don't have" |
151 |
+ elog "the GTK-GUI for HexChat but only a text interface called \"hexchat-text\"." |
152 |
+ fi |
153 |
+ |
154 |
+ if use theme-manager ; then |
155 |
+ fdo-mime_desktop_database_update |
156 |
+ fdo-mime_mime_database_update |
157 |
+ elog "Themes are available at:" |
158 |
+ elog " https://hexchat.github.io/themes.html" |
159 |
+ fi |
160 |
+ |
161 |
+ elog |
162 |
+ elog "optional dependencies:" |
163 |
+ elog " media-sound/sox (sound playback if you don't have libcanberra" |
164 |
+ elog " enabled)" |
165 |
+ elog " x11-plugins/hexchat-javascript (javascript support)" |
166 |
+ elog " x11-themes/sound-theme-freedesktop (default BEEP sound," |
167 |
+ elog " needs libcanberra enabled)" |
168 |
+} |
169 |
+ |
170 |
+pkg_postrm() { |
171 |
+ if use gtk ; then |
172 |
+ gnome2_icon_cache_update |
173 |
+ fi |
174 |
+ |
175 |
+ if use theme-manager ; then |
176 |
+ fdo-mime_desktop_database_update |
177 |
+ fdo-mime_mime_database_update |
178 |
+ fi |
179 |
+} |
180 |
|
181 |
diff --git a/net-irc/hexchat/hexchat-9999.ebuild b/net-irc/hexchat/hexchat-9999.ebuild |
182 |
index 3e10703..530b157 100644 |
183 |
--- a/net-irc/hexchat/hexchat-9999.ebuild |
184 |
+++ b/net-irc/hexchat/hexchat-9999.ebuild |
185 |
@@ -1,132 +1,89 @@ |
186 |
-# Copyright 1999-2014 Gentoo Foundation |
187 |
+# Copyright 1999-2016 Gentoo Foundation |
188 |
# Distributed under the terms of the GNU General Public License v2 |
189 |
# $Id$ |
190 |
|
191 |
-EAPI=5 |
192 |
+EAPI=6 |
193 |
|
194 |
-PYTHON_COMPAT=( python2_7 python3_3 python3_4 ) |
195 |
-inherit autotools eutils fdo-mime gnome2-utils mono-env multilib python-single-r1 git-2 |
196 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
197 |
+inherit autotools fdo-mime gnome2-utils mono-env python-single-r1 |
198 |
|
199 |
DESCRIPTION="Graphical IRC client based on XChat" |
200 |
-HOMEPAGE="http://hexchat.github.io/" |
201 |
-SRC_URI="" |
202 |
-EGIT_REPO_URI="git://github.com/hexchat/hexchat.git" |
203 |
+HOMEPAGE="https://hexchat.github.io/" |
204 |
+ |
205 |
+if [[ "${PV}" == "9999" ]] ; then |
206 |
+ inherit git-r3 |
207 |
+ SRC_URI="" |
208 |
+ EGIT_REPO_URI="git://github.com/hexchat/hexchat.git" |
209 |
+else |
210 |
+ SRC_URI="https://dl.hexchat.net/hexchat/${P}.tar.xz" |
211 |
+ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux" |
212 |
+fi |
213 |
|
214 |
LICENSE="GPL-2 plugin-fishlim? ( MIT )" |
215 |
SLOT="0" |
216 |
-KEYWORDS="" |
217 |
-IUSE="dbus +gtk ipv6 libcanberra libnotify libproxy libressl nls ntlm perl +plugins plugin-checksum plugin-doat plugin-fishlim plugin-sysinfo python spell ssl theme-manager" |
218 |
-REQUIRED_USE="plugins? ( python? ( ${PYTHON_REQUIRED_USE} ) )" |
219 |
+IUSE="dbus debug +gtk libcanberra libnotify libproxy libressl lua nls perl plugin-checksum plugin-doat plugin-fishlim plugin-sysinfo python spell ssl theme-manager" |
220 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
221 |
|
222 |
-DEPEND="dev-libs/glib:2 |
223 |
- dbus? ( >=dev-libs/dbus-glib-0.98 ) |
224 |
+COMMON_DEPEND="dev-libs/glib:2 |
225 |
+ dbus? ( sys-apps/dbus ) |
226 |
gtk? ( x11-libs/gtk+:2 ) |
227 |
libcanberra? ( media-libs/libcanberra ) |
228 |
libproxy? ( net-libs/libproxy ) |
229 |
libnotify? ( x11-libs/libnotify ) |
230 |
+ lua? ( dev-lang/lua:= ) |
231 |
nls? ( virtual/libintl ) |
232 |
- ntlm? ( net-libs/libntlm ) |
233 |
- plugins? ( |
234 |
- perl? ( >=dev-lang/perl-5.8.0 ) |
235 |
- plugin-sysinfo? ( sys-apps/pciutils ) |
236 |
- python? ( ${PYTHON_DEPS} ) |
237 |
- ) |
238 |
+ perl? ( dev-lang/perl ) |
239 |
+ plugin-sysinfo? ( sys-apps/pciutils ) |
240 |
+ python? ( ${PYTHON_DEPS} ) |
241 |
spell? ( app-text/iso-codes ) |
242 |
ssl? ( |
243 |
- !libressl? ( dev-libs/openssl:0 ) |
244 |
- libressl? ( dev-libs/libressl ) |
245 |
+ !libressl? ( dev-libs/openssl:0= ) |
246 |
+ libressl? ( dev-libs/libressl:0= ) |
247 |
) |
248 |
theme-manager? ( dev-lang/mono )" |
249 |
-RDEPEND="${DEPEND} |
250 |
+RDEPEND="${COMMON_DEPEND} |
251 |
spell? ( app-text/enchant )" |
252 |
-DEPEND="${DEPEND} |
253 |
+DEPEND="${COMMON_DEPEND} |
254 |
app-arch/xz-utils |
255 |
virtual/pkgconfig |
256 |
- nls? ( dev-util/intltool ) |
257 |
+ dev-util/intltool |
258 |
theme-manager? ( dev-util/monodevelop )" |
259 |
|
260 |
+src_prepare() { |
261 |
+ if [[ ${PV} == "9999" ]]; then |
262 |
+ eautoreconf |
263 |
+ fi |
264 |
+ default |
265 |
+} |
266 |
+ |
267 |
pkg_setup() { |
268 |
- use plugins && use python && python-single-r1_pkg_setup |
269 |
+ use python && python-single-r1_pkg_setup |
270 |
if use theme-manager ; then |
271 |
mono-env_pkg_setup |
272 |
export XDG_CACHE_HOME="${T}/.cache" |
273 |
fi |
274 |
- |
275 |
- if use !plugins ; then |
276 |
- local myplugins |
277 |
- |
278 |
- use perl && myplugins+="perl\n" |
279 |
- use python && myplugins+="python\n" |
280 |
- use plugin-checksum && myplugins+="plugin-checksum\n" |
281 |
- use plugin-doat && myplugins+="plugin-doat\n" |
282 |
- use plugin-fishlim && myplugins+="plugin-fishlim\n" |
283 |
- use plugin-sysinfo && myplugins+="plugin-sysinfo\n" |
284 |
- |
285 |
- if [[ ${myplugins} ]] ; then |
286 |
- ewarn "The following plugins/interfaces have been disabled, because" |
287 |
- ewarn "\"plugins\" USE flag is disabled. Check metadata.xml" |
288 |
- ewarn "to get more information or run \"equery u hexchat\"." |
289 |
- ewarn "\n${myplugins}" |
290 |
- fi |
291 |
- fi |
292 |
-} |
293 |
- |
294 |
-src_prepare() { |
295 |
- sed -i \ |
296 |
- -e "/intl\/Makefile/d" \ |
297 |
- -e "/po\/Makefile.in/d" \ |
298 |
- configure.ac || die |
299 |
- sed -i -e "/SUBDIRS/s/intl//" Makefile.am || die |
300 |
- epatch -p1 \ |
301 |
- "${FILESDIR}"/${PN}-2.9.5-autoconf-missing-macros.patch |
302 |
- epatch_user |
303 |
- cp $(type -p gettextize) "${T}"/ || die |
304 |
- sed -i -e 's:read dummy < /dev/tty::' "${T}/gettextize" || die |
305 |
- einfo "Running gettextize -f --no-changelog..." |
306 |
- "${T}"/gettextize -f --no-changelog > /dev/null || die "gettexize failed" |
307 |
- AT_M4DIR="m4" eautoreconf |
308 |
} |
309 |
|
310 |
src_configure() { |
311 |
econf \ |
312 |
+ --enable-plugin \ |
313 |
$(use_enable nls) \ |
314 |
- $(use_enable libproxy socks) \ |
315 |
- $(use_enable ipv6) \ |
316 |
$(use_enable ssl openssl) \ |
317 |
$(use_enable gtk gtkfe) \ |
318 |
$(use_enable !gtk textfe) \ |
319 |
- $(usex plugins \ |
320 |
- "$(usex python "--enable-python=${EPYTHON}" "--disable-python")" \ |
321 |
- "--disable-python" \ |
322 |
- ) \ |
323 |
- $(usex plugins \ |
324 |
- "$(use_enable perl)" \ |
325 |
- "--disable-perl" \ |
326 |
- ) \ |
327 |
- $(use_enable plugins plugin) \ |
328 |
- $(usex plugins \ |
329 |
- "$(use_enable plugin-checksum checksum)" \ |
330 |
- "--disable-checksum" \ |
331 |
- ) \ |
332 |
- $(usex plugins \ |
333 |
- "$(use_enable plugin-doat doat)" \ |
334 |
- "--disable-doat" \ |
335 |
- ) \ |
336 |
- $(usex plugins \ |
337 |
- "$(use_enable plugin-fishlim fishlim)" \ |
338 |
- "--disable-fishlim" \ |
339 |
- ) \ |
340 |
- $(usex plugins \ |
341 |
- "$(use_enable plugin-sysinfo sysinfo)" \ |
342 |
- "--disable-sysinfo" \ |
343 |
- ) \ |
344 |
+ $(use_enable python python "${EPYTHON}") \ |
345 |
+ $(use_enable perl) \ |
346 |
+ $(use_enable plugin-checksum checksum) \ |
347 |
+ $(use_enable plugin-doat doat) \ |
348 |
+ $(use_enable plugin-fishlim fishlim) \ |
349 |
+ $(use_enable plugin-sysinfo sysinfo) \ |
350 |
$(use_enable dbus) \ |
351 |
+ $(use_enable lua) \ |
352 |
$(use_enable libnotify) \ |
353 |
$(use_enable libcanberra) \ |
354 |
- $(use_enable ntlm) \ |
355 |
$(use_enable libproxy) \ |
356 |
$(use_enable spell isocodes) \ |
357 |
- --enable-minimal-flags \ |
358 |
+ $(use_enable debug) \ |
359 |
$(use_with theme-manager) |
360 |
} |
361 |
|
362 |
@@ -137,7 +94,7 @@ src_install() { |
363 |
UPDATE_DESKTOP_DATABASE=true \ |
364 |
install |
365 |
dodoc readme.md |
366 |
- prune_libtool_files --all |
367 |
+ find "${D}" -name '*.la' -delete || die |
368 |
} |
369 |
|
370 |
pkg_preinst() { |
371 |
@@ -149,30 +106,25 @@ pkg_preinst() { |
372 |
pkg_postinst() { |
373 |
if use gtk ; then |
374 |
gnome2_icon_cache_update |
375 |
- einfo |
376 |
else |
377 |
- einfo |
378 |
elog "You have disabled the gtk USE flag. This means you don't have" |
379 |
elog "the GTK-GUI for HexChat but only a text interface called \"hexchat-text\"." |
380 |
- elog |
381 |
fi |
382 |
|
383 |
if use theme-manager ; then |
384 |
fdo-mime_desktop_database_update |
385 |
fdo-mime_mime_database_update |
386 |
elog "Themes are available at:" |
387 |
- elog " http://hexchat.org/themes.html" |
388 |
- elog |
389 |
+ elog " https://hexchat.github.io/themes.html" |
390 |
fi |
391 |
|
392 |
- einfo |
393 |
+ elog |
394 |
elog "optional dependencies:" |
395 |
elog " media-sound/sox (sound playback if you don't have libcanberra" |
396 |
elog " enabled)" |
397 |
elog " x11-plugins/hexchat-javascript (javascript support)" |
398 |
elog " x11-themes/sound-theme-freedesktop (default BEEP sound," |
399 |
elog " needs libcanberra enabled)" |
400 |
- einfo |
401 |
} |
402 |
|
403 |
pkg_postrm() { |