summaryrefslogtreecommitdiff
blob: b4f5bce810b0d223a67d1ea5dbe75bb05b81b9b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/xsu/xsu-0.2.3.ebuild,v 1.14 2005/09/14 10:17:59 obz Exp $

inherit toolchain-funcs

DESCRIPTION="Interface for 'su - username -c command' in GNOME."
HOMEPAGE="http://xsu.freax.eu.org/"
SRC_URI="http://xsu.freax.eu.org/files/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc sparc"
IUSE=""

DEPEND="=gnome-base/gnome-libs-1.4*
	=x11-libs/gtk+-1.2*
	=dev-libs/glib-1.2*"
RDEPEND=""

src_compile() {
	# xsu uses its own custom configure script with unflexible Makefiles
	./configure \
		--prefix=/usr \
		--man-base=/usr/share/man \
		--doc-path=/usr/share/doc || die
	make CC="$(tc-getCC) ${CFLAGS}" || die
}

src_install() {
	dobin bin/xsu || die
	doman doc/man/xsu.8
	dodoc AUTHORS CHANGELOG INSTALL README
	dohtml -r doc
}