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: hexchat-2.9.4-r1.ebuild metadata.xml ChangeLog
Date: Sun, 31 Mar 2013 14:29:30
Message-Id: 20130331142927.40A9A2171D@flycatcher.gentoo.org
1 hasufell 13/03/31 14:29:27
2
3 Modified: metadata.xml ChangeLog
4 Added: hexchat-2.9.4-r1.ebuild
5 Log:
6 revbump: rework, add theme-manager, fix deps, convert to plugin-<..> syntax, use python-single-r1, fix build system instead of sedding it, use eautoreconf rather than autogen.sh, remove obsolete sed, update icon cache and gconf schemas properly
7
8 (Portage version: 2.2.0_alpha170/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
9
10 Revision Changes Path
11 1.4 net-irc/hexchat/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/hexchat/metadata.xml?rev=1.4&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/hexchat/metadata.xml?rev=1.4&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/hexchat/metadata.xml?r1=1.3&r2=1.4
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-irc/hexchat/metadata.xml,v
20 retrieving revision 1.3
21 retrieving revision 1.4
22 diff -u -r1.3 -r1.4
23 --- metadata.xml 31 Mar 2013 02:39:23 -0000 1.3
24 +++ metadata.xml 31 Mar 2013 14:29:27 -0000 1.4
25 @@ -17,5 +17,10 @@
26 <flag name='ntlm'>Enable NTLM authentication</flag>
27 <flag name='libproxy'>Enable proxy support.</flag>
28 <flag name='plugins'>Enable plugin support and installs some built-in plugins</flag>
29 + <flag name='plugin-checksum'>Build Checksum plugin (needs plugins)</flag>
30 + <flag name='plugin-doat'>Build Do At plugin (needs plugins)</flag>
31 + <flag name='plugin-fishlim'>Build FiSHLiM plugin (needs plugins)</flag>
32 + <flag name='plugin-sysinfo'>Build SysInfo plugin (needs plugins)</flag>
33 + <flag name='theme-manager'>Build the theme manager (mono)</flag>
34 </use>
35 </pkgmetadata>
36
37
38
39 1.35 net-irc/hexchat/ChangeLog
40
41 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/hexchat/ChangeLog?rev=1.35&view=markup
42 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/hexchat/ChangeLog?rev=1.35&content-type=text/plain
43 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/hexchat/ChangeLog?r1=1.34&r2=1.35
44
45 Index: ChangeLog
46 ===================================================================
47 RCS file: /var/cvsroot/gentoo-x86/net-irc/hexchat/ChangeLog,v
48 retrieving revision 1.34
49 retrieving revision 1.35
50 diff -u -r1.34 -r1.35
51 --- ChangeLog 31 Mar 2013 02:39:23 -0000 1.34
52 +++ ChangeLog 31 Mar 2013 14:29:27 -0000 1.35
53 @@ -1,6 +1,15 @@
54 # ChangeLog for net-irc/hexchat
55 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
56 -# $Header: /var/cvsroot/gentoo-x86/net-irc/hexchat/ChangeLog,v 1.34 2013/03/31 02:39:23 hasufell Exp $
57 +# $Header: /var/cvsroot/gentoo-x86/net-irc/hexchat/ChangeLog,v 1.35 2013/03/31 14:29:27 hasufell Exp $
58 +
59 +*hexchat-2.9.4-r1 (31 Mar 2013)
60 +
61 + 31 Mar 2013; Julian Ospald <hasufell@g.o> +hexchat-2.9.4-r1.ebuild,
62 + +files/hexchat-2.9.4-build.patch, metadata.xml:
63 + revbump: rework, add theme-manager, fix deps, convert to plugin-<..> syntax,
64 + use python-single-r1, fix build system instead of sedding it, use eautoreconf
65 + rather than autogen.sh, remove obsolete sed, update icon cache and gconf
66 + schemas properly
67
68 31 Mar 2013; Julian Ospald <hasufell@g.o> metadata.xml:
69 add myself to metadata.xml
70
71
72
73 1.1 net-irc/hexchat/hexchat-2.9.4-r1.ebuild
74
75 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/hexchat/hexchat-2.9.4-r1.ebuild?rev=1.1&view=markup
76 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/hexchat/hexchat-2.9.4-r1.ebuild?rev=1.1&content-type=text/plain
77
78 Index: hexchat-2.9.4-r1.ebuild
79 ===================================================================
80 # Copyright 1999-2013 Gentoo Foundation
81 # Distributed under the terms of the GNU General Public License v2
82 # $Header: /var/cvsroot/gentoo-x86/net-irc/hexchat/hexchat-2.9.4-r1.ebuild,v 1.1 2013/03/31 14:29:27 hasufell Exp $
83
84 EAPI=5
85
86 PYTHON_COMPAT=( python2_5 python2_6 python2_7 )
87 inherit autotools eutils gnome2-utils mono multilib flag-o-matic python-single-r1
88
89 DESCRIPTION="Graphical IRC client based on XChat"
90 SRC_URI="mirror://github/${PN}/${PN}/${P}.tar.xz"
91 HOMEPAGE="http://www.hexchat.org/"
92
93 LICENSE="GPL-2"
94 SLOT="0"
95 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux"
96 IUSE="dbus fastscroll +gtk ipv6 libnotify libproxy nls ntlm perl +plugins plugin-checksum plugin-doat plugin-fishlim plugin-sysinfo python spell ssl theme-manager threads"
97 REQUIRED_USE="plugin-checksum? ( plugins )
98 plugin-doat? ( plugins )
99 plugin-fishlim? ( plugins )
100 plugin-sysinfo? ( plugins )"
101
102 RDEPEND="dev-libs/glib:2
103 dbus? ( >=dev-libs/dbus-glib-0.98 )
104 fastscroll? ( x11-libs/libXft )
105 gtk? ( x11-libs/gtk+:2 )
106 libproxy? ( net-libs/libproxy )
107 libnotify? ( x11-libs/libnotify )
108 nls? ( virtual/libintl )
109 ntlm? ( net-libs/libntlm )
110 perl? ( >=dev-lang/perl-5.8.0 )
111 plugin-sysinfo? ( sys-apps/pciutils )
112 python? ( ${PYTHON_DEPS} )
113 spell? ( dev-libs/libxml2 )
114 ssl? ( >=dev-libs/openssl-0.9.8u )
115 theme-manager? ( dev-lang/mono )"
116 DEPEND="${RDEPEND}
117 virtual/pkgconfig
118 nls? ( sys-devel/gettext )
119 theme-manager? ( dev-util/monodevelop )"
120
121 DOCS="share/doc/changelog.md share/doc/readme.md"
122
123 pkg_setup() {
124 python-single-r1_pkg_setup
125
126 # Added for to fix a sparc seg fault issue by Jason Wever <weeve@g.o>
127 if [[ ${ARCH} = sparc ]] ; then
128 replace-flags "-O[3-9]" "-O2"
129 fi
130 }
131
132 src_prepare() {
133 epatch \
134 "${FILESDIR}"/${PN}-2.9.1-input-box.patch \
135 "${FILESDIR}"/${PN}-2.9.3-cflags.patch \
136 "${FILESDIR}"/${PN}-2.9.4-build.patch
137
138 cp $(type -p gettextize) "${T}"/ || die
139 sed -i -e 's:read dummy < /dev/tty::' "${T}/gettextize" || die
140 einfo "Running gettextize -f --no-changelog..."
141 "${T}"/gettextize -f --no-changelog > /dev/null || die "gettexize failed"
142 eautoreconf
143 }
144
145 src_configure() {
146 # tcl is deprecated/unsupported
147 econf \
148 --disable-tcl \
149 --enable-shm \
150 $(use_enable dbus) \
151 $(use_enable ipv6) \
152 $(use_enable nls) \
153 $(use_enable ntlm) \
154 $(use_enable perl) \
155 $(usex python "--enable-python=${EPYTHON}" "--disable-python") \
156 $(use_enable spell spell static) \
157 $(use_enable ssl openssl) \
158 $(use_enable gtk gtkfe) \
159 $(use_enable !gtk textfe) \
160 $(use_enable fastscroll xft) \
161 $(use_enable plugins plugin) \
162 $(use_enable plugin-checksum checksum) \
163 $(use_enable plugin-doat doat) \
164 $(use_enable plugin-fishlim fishlim) \
165 $(use_enable plugin-sysinfo sysinfo) \
166 $(use_enable libproxy) \
167 $(use_enable libproxy socks) \
168 $(use_enable threads)
169 }
170
171 src_compile() {
172 default
173 if use theme-manager ; then
174 export XDG_CACHE_HOME="${T}/.cache"
175 cd src/htm || die
176 mdtool --verbose build htm-mono.csproj || die
177 fi
178 }
179
180 src_install() {
181 default
182 if use theme-manager ; then
183 dobin src/htm/thememan.exe
184 make_wrapper thememan "mono /usr/bin/thememan.exe"
185 fi
186 prune_libtool_files --all
187 }
188
189 pkg_preinst() {
190 if use gtk ; then
191 gnome2_icon_savelist
192 gnome2_gconf_savelist
193 fi
194 }
195
196 pkg_postinst() {
197 if use !gtk ; then
198 einfo
199 elog "You have disabled the gtk USE flag. This means you don't have"
200 elog "the GTK-GUI for HexChat but only a text interface called \"hexchat-text\"."
201 else
202 gnome2_icon_cache_update
203 gnome2_gconf_install
204 fi
205
206 if use theme-manager ; then
207 einfo
208 elog "Themes are available at:"
209 elog " http://hexchat.org/themes.html"
210 fi
211
212 ewarn
213 ewarn "If you're upgrading from hexchat <=2.9.3 remember to rename"
214 ewarn "the xchat.conf file found in ~/.config/hexchat/ to hexchat.conf"
215 ewarn
216 }
217
218 pkg_postrm() {
219 if use gtk ; then
220 gnome2_icon_cache_update
221 fi
222 }