summaryrefslogtreecommitdiff
blob: c4a77c5ae0339ff2b142711bbb07672fd809bd93 (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
36
37
38
39
40
41
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/ssh-askpass-fullscreen/ssh-askpass-fullscreen-0.4-r1.ebuild,v 1.7 2009/01/23 12:00:02 armin76 Exp $

inherit toolchain-funcs

DESCRIPTION="A small SSH Askpass replacement written with GTK2."
HOMEPAGE="https://www.cgabriel.org/software/wiki/SshAskpassFullscreen"
SRC_URI="http://www.cgabriel.org/download/${PN}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 ia64 ppc sparc x86 ~x86-fbsd"
IUSE=""

RDEPEND=">=x11-libs/gtk+-2.0
	!net-misc/gtk2-ssh-askpass"
DEPEND="${RDEPEND}
	dev-util/pkgconfig"

src_unpack() {
	unpack ${A}
	cd "${S}"
	sed -i -e '2 s/$/$\(LDFLAGS\)/' Makefile
}

src_compile() {

	sed "s:gcc:$(tc-getCC) ${CFLAGS}:g" \
	-i Makefile

	emake LDFLAGS="${LDFLAGS}" || \
	die "compile failed"
}

src_install() {
	dobin ssh-askpass-fullscreen || die "dobin failed"
	doenvd "${FILESDIR}"/99ssh_askpass || die "doenvd failed"
	dodoc README AUTHORS
	#doman debian/gtk2-ssh-askpass.1
}