Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/xnee/files/, x11-misc/xnee/
Date: Thu, 02 Jul 2020 07:21:43
Message-Id: 1593674487.b21df8152057a2405a47fcbd23c68723839bb033.asturm@gentoo
1 commit: b21df8152057a2405a47fcbd23c68723839bb033
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 2 07:20:50 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 2 07:21:27 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b21df815
7
8 x11-misc/xnee: Disable libgnomeui dependency
9
10 Thanks to Debian for the patch.
11
12 Closes: https://bugs.gentoo.org/644342
13 Package-Manager: Portage-2.3.103, Repoman-2.3.23
14 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
15
16 .../xnee-3.19-libgnomeui-only-for-applets.patch | 117 +++++++++++++++++++++
17 x11-misc/xnee/xnee-3.19-r2.ebuild | 77 ++++++++++++++
18 2 files changed, 194 insertions(+)
19
20 diff --git a/x11-misc/xnee/files/xnee-3.19-libgnomeui-only-for-applets.patch b/x11-misc/xnee/files/xnee-3.19-libgnomeui-only-for-applets.patch
21 new file mode 100644
22 index 00000000000..4e80dacd20b
23 --- /dev/null
24 +++ b/x11-misc/xnee/files/xnee-3.19-libgnomeui-only-for-applets.patch
25 @@ -0,0 +1,117 @@
26 +--- a/configure.in 2014/05/06 14:13:59 1.134
27 ++++ b/configure.in 2018/01/01 23:06:56 1.135
28 +@@ -382,62 +382,63 @@
29 + fi
30 +
31 +
32 +- GNOMEUI2_MODULE="libgnomeui-2.0"
33 +- GNOMEUI2_VERSION="2.0.0"
34 +-
35 +-
36 +- if `$PKGCFG --exists $GNOMEUI2_MODULE >= $GNOMEUI2_VERSION`
37 +- then
38 +- GTK_MODULES="$GTK_MODULES $GNOMEUI2_MODULE"
39 +- GTK_ERR=1
40 +- fi
41 +-
42 +- libgnomeui_CFLAGS=`$PKGCFG --cflags $GNOMEUI2_MODULE `
43 +- libgnomeui_LIBS=`$PKGCFG --libs $GNOMEUI2_MODULE `
44 +-
45 +-
46 +- AC_SUBST(libgnomeui_CFLAGS)
47 +- AC_SUBST(libgnomeui_LIBS)
48 +-
49 + PIXMAP_DIR=pixmap
50 +
51 +-
52 +- if test x$buildgapplet = xtrue ;
53 ++ if test x$buildgapplet = xtrue;
54 + then
55 +-
56 +- if test x$GTKCONF = x ;
57 +- then
58 +- echo " **************************************** "
59 +- echo " * WARNING, missing program: gtk-config *"
60 +- echo " **************************************** "
61 +- echo ""
62 +- echo " On Debian based distros, install sth like: libgtk2.0-dev"
63 +- echo ""
64 +- echo "However, I will try my best to continue without gtk-config. "
65 +- echo "Will not be able to check for gtk/gnome header files properly"
66 +- echo "On most platforms this implies no problem"
67 +- echo ""
68 +- else
69 +- GTK_PREFIX=`$GTKCONF --prefix`
70 +- GTK_INC_PATH=$GTK_PREFIX/include/$GNOMEUI2_MODULE/
71 +- GNOME_H_FILE=$GTK_INC_PATH/gnome.h
72 +-
73 +- ls -l $GNOME_H_FILE 2>/dev/null >/dev/null
74 +-
75 +- MISSING_GNOME_H=$?
76 +
77 +- if test x$MISSING_GNOME_H != x0 ;
78 ++ GNOMEUI2_MODULE="libgnomeui-2.0"
79 ++ GNOMEUI2_VERSION="2.0.0"
80 ++
81 ++
82 ++ if `$PKGCFG --exists $GNOMEUI2_MODULE >= $GNOMEUI2_VERSION`
83 ++ then
84 ++ GTK_MODULES="$GTK_MODULES $GNOMEUI2_MODULE"
85 ++ GTK_ERR=1
86 ++ fi
87 ++
88 ++ libgnomeui_CFLAGS=`$PKGCFG --cflags $GNOMEUI2_MODULE `
89 ++ libgnomeui_LIBS=`$PKGCFG --libs $GNOMEUI2_MODULE `
90 ++
91 ++
92 ++ AC_SUBST(libgnomeui_CFLAGS)
93 ++ AC_SUBST(libgnomeui_LIBS)
94 ++
95 ++
96 ++
97 ++ if test x$GTKCONF = x ;
98 + then
99 +- echo "Missing GNOME header file (gnome.h), you need to install development packages"
100 +- echo "On a Debian based distro system do:"
101 +- echo ""
102 +- echo " sudo apt-get install libgnome2-dev"
103 +- echo ""
104 +-echo exit 1
105 +- fi
106 +- fi
107 +-
108 +- fi
109 ++ echo " **************************************** "
110 ++ echo " * WARNING, missing program: gtk-config *"
111 ++ echo " **************************************** "
112 ++ echo ""
113 ++ echo " On Debian based distros, install sth like: libgtk2.0-dev"
114 ++ echo ""
115 ++ echo "However, I will try my best to continue without gtk-config. "
116 ++ echo "Will not be able to check for gtk/gnome header files properly"
117 ++ echo "On most platforms this implies no problem"
118 ++ echo ""
119 ++ else
120 ++ GTK_PREFIX=`$GTKCONF --prefix`
121 ++ GTK_INC_PATH=$GTK_PREFIX/include/$GNOMEUI2_MODULE/
122 ++ GNOME_H_FILE=$GTK_INC_PATH/gnome.h
123 ++
124 ++ ls -l $GNOME_H_FILE 2>/dev/null >/dev/null
125 ++
126 ++ MISSING_GNOME_H=$?
127 ++
128 ++ if test x$MISSING_GNOME_H != x0 ;
129 ++ then
130 ++ echo "Missing GNOME header file (gnome.h), you need to install development packages"
131 ++ echo "On a Debian based distro system do:"
132 ++ echo ""
133 ++ echo " sudo apt-get install libgnome2-dev"
134 ++ echo ""
135 ++ echo exit 1
136 ++ fi
137 ++ fi
138 ++
139 ++ fi
140 + fi
141 +
142 +
143
144 diff --git a/x11-misc/xnee/xnee-3.19-r2.ebuild b/x11-misc/xnee/xnee-3.19-r2.ebuild
145 new file mode 100644
146 index 00000000000..0a3540a531d
147 --- /dev/null
148 +++ b/x11-misc/xnee/xnee-3.19-r2.ebuild
149 @@ -0,0 +1,77 @@
150 +# Copyright 1999-2020 Gentoo Authors
151 +# Distributed under the terms of the GNU General Public License v2
152 +
153 +EAPI=7
154 +
155 +inherit autotools desktop flag-o-matic
156 +
157 +DESCRIPTION="Program suite to record, replay and distribute user actions"
158 +HOMEPAGE="https://xnee.wordpress.com/"
159 +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
160 +
161 +LICENSE="GPL-3"
162 +SLOT="0"
163 +KEYWORDS="~amd64 ~x86"
164 +IUSE="gnome xosd"
165 +
166 +RDEPEND="
167 + x11-libs/libX11
168 + x11-libs/libXau
169 + x11-libs/libXdmcp
170 + x11-libs/libXext
171 + x11-libs/libXi
172 + x11-libs/libXtst
173 + x11-libs/libxcb
174 + gnome? (
175 + >=gnome-base/gconf-2
176 + x11-libs/gtk+:2
177 + )
178 +"
179 +DEPEND="${RDEPEND}
180 + x11-base/xorg-proto
181 +"
182 +BDEPEND="
183 + virtual/pkgconfig
184 + sys-devel/gettext
185 + gnome? ( virtual/imagemagick-tools[jpeg,png] )
186 +"
187 +
188 +# This needs RECORD extension from X.org server which isn't necessarily
189 +# enabled. Xlib: extension "RECORD" missing on display ":0.0".
190 +RESTRICT="test"
191 +
192 +DOCS=( AUTHORS BUGS ChangeLog FAQ NEWS README TODO )
193 +
194 +PATCHES=(
195 + "${FILESDIR}"/${PN}-3.18-linker.patch
196 + "${FILESDIR}"/${P}-libgnomeui-only-for-applets.patch
197 +)
198 +
199 +src_prepare() {
200 + default
201 + eautoreconf
202 +}
203 +
204 +src_configure() {
205 + append-cflags -fcommon
206 + econf \
207 + $(use_enable gnome gui) \
208 + $(use_enable xosd buffer_verbose) \
209 + $(use_enable xosd verbose) \
210 + $(use_enable xosd) \
211 + --disable-gnome-applet \
212 + --disable-static \
213 + --disable-static-programs \
214 + --enable-cli \
215 + --enable-lib
216 +}
217 +
218 +src_test() {
219 + virtx emake check
220 +}
221 +
222 +src_install() {
223 + default
224 + use gnome && make_desktop_entry gnee Gnee ${PN} "Utility;GTK"
225 + find "${ED}" -name '*.la' -delete || die
226 +}