# $Id: Portfile 81954 2011-08-06 17:09:55Z jmr@macports.org $

PortSystem		1.0

name			gksu
version			1.3.7
revision                1
platforms		darwin
categories		x11 sysutils
maintainers		nomaintainer
description		Graphical frontend to su and sudo
long_description \
	Gtk+ frontend to su and sudo. It supports login shells and preserving \
	environment when acting as a su frontend. It is useful to menu items or \
	other graphical programs that need to ask a user's password to run another \
	program as another user.

homepage		http://www.nongnu.org/gksu/
master_sites		http://people.debian.org/~kov/gksu/old_stuff/gksu/
checksums		md5 15031e06ebb482f8aa1515499212eeaf

depends_lib		port:gtk2 \
			port:libgnome-keyring port:gconf \
			port:libgksu12 port:libgksuui10
depends_build		port:pkgconfig port:intltool

patchfiles		patch-gksu.diff

configure.args		--infodir=${prefix}/share/info \
			--mandir=${prefix}/share/man \
			--disable-gtk-doc

variant docs {
	depends_build-append port:gtk-doc
	configure.args-delete --disable-gtk-doc
	configure.args-append --enable-gtk-doc
}
