Gentoo Archives: gentoo-commits

From: "Alexandre Rostovtsev (tetromino)" <tetromino@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-libs/gksu: gksu-2.0.2-r1.ebuild ChangeLog gksu-2.0.2.ebuild
Date: Sat, 07 Apr 2012 23:55:50
Message-Id: 20120407235539.BBDDA2004B@flycatcher.gentoo.org
1 tetromino 12/04/07 23:55:39
2
3 Modified: ChangeLog gksu-2.0.2.ebuild
4 Added: gksu-2.0.2-r1.ebuild
5 Log:
6 Fix nautilus extension directoryfor nautilus-3. Add patch for building with >=glib-2.31 (thanks to biohazrd for reporting in bug #401437 comment #1). Add some missing dependencies.
7
8 (Portage version: 2.2.0_alpha99/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.63 x11-libs/gksu/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gksu/ChangeLog?rev=1.63&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gksu/ChangeLog?rev=1.63&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gksu/ChangeLog?r1=1.62&r2=1.63
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/x11-libs/gksu/ChangeLog,v
20 retrieving revision 1.62
21 retrieving revision 1.63
22 diff -u -r1.62 -r1.63
23 --- ChangeLog 6 Jan 2011 21:27:29 -0000 1.62
24 +++ ChangeLog 7 Apr 2012 23:55:39 -0000 1.63
25 @@ -1,6 +1,15 @@
26 # ChangeLog for x11-libs/gksu
27 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/gksu/ChangeLog,v 1.62 2011/01/06 21:27:29 dang Exp $
29 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/gksu/ChangeLog,v 1.63 2012/04/07 23:55:39 tetromino Exp $
31 +
32 +*gksu-2.0.2-r1 (07 Apr 2012)
33 +
34 + 07 Apr 2012; Alexandre Rostovtsev <tetromino@g.o> gksu-2.0.2.ebuild,
35 + +gksu-2.0.2-r1.ebuild, +files/gksu-2.0.2-glib-2.31.patch,
36 + +files/gksu-2.0.2-nautilus-dir.patch:
37 + Fix nautilus extension directoryfor nautilus-3. Add patch for building with
38 + >=glib-2.31 (thanks to biohazrd for reporting in bug #401437 comment #1). Add
39 + some missing dependencies.
40
41 06 Jan 2011; Daniel Gryniewicz <dang@g.o>
42 -files/gksu-2.0.0-gnome-2.22.patch:
43
44
45
46 1.13 x11-libs/gksu/gksu-2.0.2.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gksu/gksu-2.0.2.ebuild?rev=1.13&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gksu/gksu-2.0.2.ebuild?rev=1.13&content-type=text/plain
50 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gksu/gksu-2.0.2.ebuild?r1=1.12&r2=1.13
51
52 Index: gksu-2.0.2.ebuild
53 ===================================================================
54 RCS file: /var/cvsroot/gentoo-x86/x11-libs/gksu/gksu-2.0.2.ebuild,v
55 retrieving revision 1.12
56 retrieving revision 1.13
57 diff -u -r1.12 -r1.13
58 --- gksu-2.0.2.ebuild 6 Jan 2011 15:28:15 -0000 1.12
59 +++ gksu-2.0.2.ebuild 7 Apr 2012 23:55:39 -0000 1.13
60 @@ -1,11 +1,11 @@
61 -# Copyright 1999-2011 Gentoo Foundation
62 +# Copyright 1999-2012 Gentoo Foundation
63 # Distributed under the terms of the GNU General Public License v2
64 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/gksu/gksu-2.0.2.ebuild,v 1.12 2011/01/06 15:28:15 eva Exp $
65 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/gksu/gksu-2.0.2.ebuild,v 1.13 2012/04/07 23:55:39 tetromino Exp $
66
67 EAPI="2"
68 GCONF_DEBUG="no"
69
70 -inherit gnome2 fixheadtails
71 +inherit eutils gnome2 fixheadtails
72
73 DESCRIPTION="A gtk+ frontend for libgksu"
74 HOMEPAGE="http://www.nongnu.org/gksu/"
75 @@ -23,6 +23,8 @@
76 >=gnome-base/nautilus-2
77 x11-terms/gnome-terminal )"
78 DEPEND="${RDEPEND}
79 + dev-util/intltool
80 + dev-util/pkgconfig
81 doc? ( dev-util/gtk-doc )"
82
83 pkg_setup() {
84 @@ -37,6 +39,9 @@
85
86 ht_fix_file "${S}/gksu-migrate-conf.sh"
87
88 + # https://savannah.nongnu.org/bugs/index.php?36127
89 + epatch "${FILESDIR}/${PN}-2.0.2-glib-2.31.patch"
90 +
91 if use gnome ; then
92 sed 's/x-terminal-emulator/gnome-terminal/' \
93 -i gksu.desktop || die "sed 1 failed"
94
95
96
97 1.1 x11-libs/gksu/gksu-2.0.2-r1.ebuild
98
99 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gksu/gksu-2.0.2-r1.ebuild?rev=1.1&view=markup
100 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gksu/gksu-2.0.2-r1.ebuild?rev=1.1&content-type=text/plain
101
102 Index: gksu-2.0.2-r1.ebuild
103 ===================================================================
104 # Copyright 1999-2012 Gentoo Foundation
105 # Distributed under the terms of the GNU General Public License v2
106 # $Header: /var/cvsroot/gentoo-x86/x11-libs/gksu/gksu-2.0.2-r1.ebuild,v 1.1 2012/04/07 23:55:39 tetromino Exp $
107
108 EAPI="4"
109 GCONF_DEBUG="no"
110 GNOME2_LA_PUNT="yes"
111
112 inherit autotools eutils gnome2 fixheadtails
113
114 DESCRIPTION="A gtk+ frontend for libgksu"
115 HOMEPAGE="http://www.nongnu.org/gksu/"
116 SRC_URI="http://people.debian.org/~kov/gksu/${P}.tar.gz"
117
118 LICENSE="GPL-2"
119 SLOT="0"
120 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
121 IUSE="doc gnome"
122
123 RDEPEND=">=x11-libs/libgksu-2.0.8
124 >=x11-libs/gtk+-2.4:2
125 >=gnome-base/gconf-2
126 gnome? (
127 >=gnome-base/nautilus-2
128 x11-terms/gnome-terminal )"
129 DEPEND="${RDEPEND}
130 dev-util/intltool
131 dev-util/pkgconfig
132 doc? ( dev-util/gtk-doc )"
133
134 pkg_setup() {
135 DOCS="AUTHORS ChangeLog NEWS README"
136 G2CONF="${G2CONF}
137 --disable-static
138 $(use_enable gnome nautilus-extension)"
139 }
140
141 src_prepare() {
142 ht_fix_file "${S}/gksu-migrate-conf.sh"
143
144 # https://savannah.nongnu.org/bugs/index.php?36127
145 epatch "${FILESDIR}/${PN}-2.0.2-glib-2.31.patch"
146
147 if use gnome ; then
148 sed 's/x-terminal-emulator/gnome-terminal/' \
149 -i gksu.desktop || die "sed 1 failed"
150
151 # Conditional patch to avoid eautoreconf
152 # https://savannah.nongnu.org/bugs/index.php?36129
153 epatch "${FILESDIR}/${PN}-2.0.2-nautilus-dir.patch"
154 eautoreconf
155 else
156 sed 's/dist_desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)/dist_desktop_DATA =/' \
157 -i Makefile.am Makefile.in || die "sed 2 failed"
158 fi
159
160 gnome2_src_prepare
161 }
162
163 src_install() {
164 gnome2_src_install
165 chmod +x "${D}/usr/share/gksu/gksu-migrate-conf.sh"
166 }
167
168 pkg_postinst() {
169 gnome2_pkg_postinst
170 einfo 'updating configuration'
171 "${ROOT}"/usr/share/gksu/gksu-migrate-conf.sh
172 einfo ""
173 einfo "A note on gksudo: It actually runs sudo to get it's work done"
174 einfo "However, by default, Gentoo's sudo wipes your environment."
175 einfo "This means that gksudo will fail to run any X-based programs."
176 einfo "You need to either add yourself to wheel and uncomment this line"
177 einfo "in your /etc/sudoers:"
178 einfo "Defaults:%wheel !env_reset"
179 einfo "Or remove the env_reset line entirely. This can cause security"
180 einfo "problems; if you don't trust your users, don't do this, use gksu"
181 einfo "instead."
182 }