Line 0
Link Here
|
|
|
1 |
# Copyright 1999-2017 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
4 |
EAPI=6 |
5 |
GNOME2_EAUTORECONF="yes" |
6 |
|
7 |
inherit gnome2 |
8 |
|
9 |
DESCRIPTION="A library for integration of su into applications" |
10 |
HOMEPAGE="http://www.nongnu.org/gksu/" |
11 |
SRC_URI="https://people.debian.org/~kov/gksu/${P}.tar.gz" |
12 |
|
13 |
LICENSE="LGPL-2" |
14 |
SLOT="2" |
15 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
16 |
IUSE="nls static-libs" |
17 |
|
18 |
COMMON_DEPEND=" |
19 |
>=x11-libs/gtk+-2.12:2 |
20 |
x11-libs/libX11 |
21 |
>=gnome-base/gconf-2 |
22 |
gnome-base/libgnome-keyring |
23 |
x11-libs/startup-notification |
24 |
>=gnome-base/libgtop-2:2= |
25 |
nls? ( >=sys-devel/gettext-0.14.1 ) |
26 |
" |
27 |
DEPEND="${COMMON_DEPEND} |
28 |
dev-util/gtk-doc-am |
29 |
>=dev-util/intltool-0.35.5 |
30 |
virtual/pkgconfig |
31 |
" |
32 |
RDEPEND="${COMMON_DEPEND} |
33 |
app-admin/sudo |
34 |
" |
35 |
|
36 |
PATCHES=( |
37 |
# Fix compilation on bsd |
38 |
"${FILESDIR}"/${PN}-2.0.0-fbsd.patch |
39 |
|
40 |
# Fix wrong usage of LDFLAGS, bug #226837 |
41 |
"${FILESDIR}"/${PN}-2.0.7-libs.patch |
42 |
|
43 |
# Use po/LINGUAS |
44 |
"${FILESDIR}"/${PN}-2.0.7-polinguas.patch |
45 |
|
46 |
# Don't forkpty; bug #298289 |
47 |
"${FILESDIR}"/${P}-revert-forkpty.patch |
48 |
|
49 |
# Make this gmake-3.82 compliant, bug #333961 |
50 |
"${FILESDIR}"/${P}-fix-make-3.82.patch |
51 |
|
52 |
# Do not build test programs that are never executed; also fixes bug |
53 |
# #367397 (underlinking issues). |
54 |
"${FILESDIR}"/${P}-notests.patch |
55 |
|
56 |
# Fix automake-1.11.2 compatibility, bug #397411 |
57 |
"${FILESDIR}"/${P}-automake-1.11.2-v2.patch |
58 |
"${FILESDIR}"/${P}-missing-libs.patch |
59 |
|
60 |
# Fix build with format-security, bug #517614 |
61 |
"${FILESDIR}"/${P}-format_security.patch |
62 |
|
63 |
# Fix .desktop file validation, bug #512364 |
64 |
"${FILESDIR}"/${P}-desktop-validation.patch |
65 |
|
66 |
# Collection of patches from Debian |
67 |
"${FILESDIR}"/${P}-g_markup_escape_text_for_command.patch |
68 |
"${FILESDIR}"/${P}-sudo_keep_env.patch |
69 |
"${FILESDIR}"/${P}-correct_colormap_get.patch |
70 |
) |
71 |
|
72 |
src_prepare() { |
73 |
sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die #467026 |
74 |
gnome2_src_prepare |
75 |
} |
76 |
|
77 |
src_configure() { |
78 |
gnome2_src_configure \ |
79 |
--libexecdir="${EPREFIX}"/usr/lib \ |
80 |
$(use_enable nls) \ |
81 |
$(use_enable static-libs static) |
82 |
} |