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/files: hexchat-2.9.4-build.patch
Date: Sun, 31 Mar 2013 14:29:30
Message-Id: 20130331142927.5DEC02171E@flycatcher.gentoo.org
1 hasufell 13/03/31 14:29:27
2
3 Added: hexchat-2.9.4-build.patch
4 Log:
5 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
6
7 (Portage version: 2.2.0_alpha170/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
8
9 Revision Changes Path
10 1.1 net-irc/hexchat/files/hexchat-2.9.4-build.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/hexchat/files/hexchat-2.9.4-build.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/hexchat/files/hexchat-2.9.4-build.patch?rev=1.1&content-type=text/plain
14
15 Index: hexchat-2.9.4-build.patch
16 ===================================================================
17 * not having gtk installed will lead to undefined macro
18 * not an intltool package, remove references
19 * po/Makefile.in will be generated by gettextize
20 * use modern icon destination
21 * don't install icons when gtk is disabled
22 * disable gconf when gtk is disabled
23 * install plugin header
24 * allow to pass specific python version
25
26 --- hexchat-2.9.4/configure.ac
27 +++ hexchat-2.9.4/configure.ac
28 @@ -115,8 +115,8 @@
29 xlib=$enableval, xlib=yes)
30
31 AC_ARG_ENABLE(python,
32 - [AS_HELP_STRING([--disable-python],[don't build the python plugin])],
33 - python=$enableval, python=yes)
34 + [AS_HELP_STRING([--enable-python=pythonversion],[build the python plugin (default on, python2)])],
35 + python=$enableval, python=python2)
36
37 AC_ARG_ENABLE(perl,
38 [AS_HELP_STRING([--disable-perl],[don't build the perl plugin])],
39 @@ -200,13 +200,16 @@
40 dnl ** GTK **************************************************************
41 dnl *********************************************************************
42
43 -AM_PATH_GTK_2_0(2.10.0, havegtk=yes, havegtk=no)
44 -
45 -if test "$havegtk" = no; then
46 - gtkfe=no
47 - echo
48 - echo Cannot find GTK\! Not building GTK FrontEnd.
49 - echo
50 +# we might get undefined macro without this test
51 +if test "$gtkfe" = yes ; then
52 + AM_PATH_GTK_2_0(2.10.0, havegtk=yes, havegtk=no)
53 +
54 + if test "$havegtk" = no; then
55 + gtkfe=no
56 + echo
57 + echo Cannot find GTK\! Not building GTK FrontEnd.
58 + echo
59 + fi
60 fi
61
62 if test "$gtkfe" != yes; then
63 @@ -222,7 +225,6 @@
64 GUI_LIBS="$GUI_LIBS $GTK_LIBS"
65 GUI_CFLAGS="$GUI_CFLAGS $GTK_CFLAGS"
66
67 -gnome=no
68 #if test "$gnome" = yes; then
69 # AC_PATH_PROG(pkgconfigpath, pkg-config)
70 # AC_MSG_CHECKING(Gnome2 compile flags)
71 @@ -240,7 +242,11 @@
72 #fi
73
74 # GConf
75 -AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
76 +if test "$gnome" != no ; then
77 + AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
78 +else
79 + GCONFTOOL=no
80 +fi
81
82 dnl *********************************************************************
83 dnl ** XFT **************************************************************
84 @@ -329,9 +335,13 @@
85 dnl ** PYTHON ***********************************************************
86 dnl *********************************************************************
87
88 -if test "$python" = yes; then
89 - AC_PATH_PROG(pythonpath, python2)
90 - if test "_$pythonpath" = _ ; then
91 +if test "x$python" != xno ; then
92 + if test "$python" = yes ; then
93 + # default
94 + python="python2"
95 + fi
96 + AC_PATH_PROG(pythonpath, $python)
97 + if test "_$pythonpath" = _ ; then
98 AC_PATH_PROG(pythonpath, python)
99 fi
100 if test "_$pythonpath" = _ ; then
101 @@ -358,7 +368,7 @@
102 AC_MSG_RESULT([Can't find Python.h])
103 fi
104 else
105 - echo "Python too old. Only 2.2 or above is supported."
106 + echo "Python is too old or too new. Only 2.2-2.7 are supported."
107 python=no
108 fi
109 fi
110 @@ -691,7 +701,7 @@
111 AM_CONDITIONAL(DO_TEXT, test "x$textfe" = "xyes")
112 AM_CONDITIONAL(DO_GTK, test "x$gtkfe" = "xyes")
113 AM_CONDITIONAL(DO_PERL, test "x$perl" = "xyes")
114 -AM_CONDITIONAL(DO_PYTHON, test "x$python" = "xyes")
115 +AM_CONDITIONAL(DO_PYTHON, test "x$python" != "xno")
116 AM_CONDITIONAL(DO_TCL, test "x$tcl" = "xyes")
117 AM_CONDITIONAL(DO_PLUGIN, test "x$plugin" = "xyes")
118 AM_CONDITIONAL(DO_CHECKSUM, test "x$checksum" = "xyes")
119 @@ -964,8 +974,6 @@
120 plugins/doat/Makefile
121 plugins/fishlim/Makefile
122 plugins/sysinfo/Makefile
123 -intl/Makefile
124 -po/Makefile.in
125 man/Makefile
126 ])
127 dnl plugins/sasl/Makefile
128 --- hexchat-2.9.4/Makefile.am
129 +++ hexchat-2.9.4/Makefile.am
130 @@ -1,13 +1,15 @@
131 ## Process this file with automake to produce Makefile.in
132
133 -SUBDIRS = po intl src plugins man
134 +SUBDIRS = po src plugins man
135
136 EXTRA_DIST = autogen.sh
137
138 +if DO_GTK
139 icon_DATA = src/pixmaps/hexchat.png
140 -icondir = $(datadir)/pixmaps
141 +icondir = $(datadir)/icons/hicolor/48x48/apps
142
143 util_DATA = share/misc/hexchat.desktop
144 utildir = $(datadir)/applications
145 +endif
146
147 ACLOCAL_AMFLAGS = -I m4
148 --- hexchat-2.9.4/src/common/Makefile.am
149 +++ hexchat-2.9.4/src/common/Makefile.am
150 @@ -52,6 +52,8 @@
151 endif
152 SUBDIRS = $(dbusdir) .
153
154 +include_HEADERS = hexchat-plugin.h
155 +
156 libhexchatcommon_a_SOURCES = cfgfiles.c chanopt.c ctcp.c dcc.c hexchat.c \
157 history.c ignore.c inbound.c modes.c msproxy.c network.c notify.c \
158 outbound.c plugin.c plugin-timer.c proto-irc.c server.c servlist.c \