You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-libs/libgksu/libgksu-2.0.12-r2.ebuild

70 lines
1.7 KiB

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/libgksu/libgksu-2.0.12-r2.ebuild,v 1.8 2014/09/15 08:24:48 ago Exp $
EAPI="5"
GCONF_DEBUG="no"
inherit autotools eutils gnome2
DESCRIPTION="A library for integration of su into applications"
HOMEPAGE="http://www.nongnu.org/gksu/"
SRC_URI="http://people.debian.org/~kov/gksu/${P}.tar.gz"
LICENSE="LGPL-2"
SLOT="2"
KEYWORDS="alpha amd64 ~arm ia64 ~mips ppc ppc64 ~sh sparc x86 ~x86-fbsd"
IUSE="nls static-libs"
COMMON_DEPEND="
>=x11-libs/gtk+-2.12:2
>=gnome-base/gconf-2
gnome-base/libgnome-keyring
x11-libs/startup-notification
>=gnome-base/libgtop-2:2=
nls? ( >=sys-devel/gettext-0.14.1 )
"
DEPEND="${COMMON_DEPEND}
dev-util/gtk-doc-am
>=dev-util/intltool-0.35.5
virtual/pkgconfig
"
RDEPEND="${COMMON_DEPEND}
app-admin/sudo
"
src_prepare() {
# Fix compilation on bsd
epatch "${FILESDIR}"/${PN}-2.0.0-fbsd.patch
# Fix wrong usage of LDFLAGS, bug #226837
epatch "${FILESDIR}/${PN}-2.0.7-libs.patch"
# Use po/LINGUAS
epatch "${FILESDIR}/${PN}-2.0.7-polinguas.patch"
# Don't forkpty; bug #298289
epatch "${FILESDIR}/${P}-revert-forkpty.patch"
# Make this gmake-3.82 compliant, bug #333961
epatch "${FILESDIR}/${P}-fix-make-3.82.patch"
# Do not build test programs that are never executed; also fixes bug
# #367397 (underlinking issues).
epatch "${FILESDIR}/${P}-notests.patch"
# Fix automake-1.11.2 compatibility, bug #397411
epatch "${FILESDIR}/${P}-automake-1.11.2.patch"
sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die #467026
eautoreconf
gnome2_src_prepare
}
src_configure() {
gnome2_src_configure \
$(use_enable nls) \
$(use_enable static-libs static)
}