summaryrefslogtreecommitdiff
blob: 6d6a73be2cbab1064fd8ab4d2610d45109e18f5d (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-crypt/gorilla/gorilla-1.4.ebuild,v 1.1 2009/02/28 20:50:22 patrick Exp $

inherit eutils

DESCRIPTION="Password Safe clone for Linux. Stores passwords in secure way with
GUI interface."
HOMEPAGE="http://www.fpx.de/fp/Software/Gorilla/"
SRC_URI="http://www.fpx.de/fp/Software/Gorilla/download/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""

DEPEND="dev-lang/tcl
	dev-lang/tk
	dev-tcltk/iwidgets
	dev-tcltk/bwidget"
RDEPEND=${DEPEND}

src_unpack() {
	unpack ${A}
	cd "${S}"

	epatch "${FILESDIR}"/${PN}-script-destdir.patch
}

src_compile() {
	./configure || die "econf failed"
}

src_install() {
	PREFIX="/opt/${P}"

	dodir ${PREFIX}
	insinto ${PREFIX}
	doins gorilla.tcl isaac.tcl

	dodir ${PREFIX}/twofish
	insinto ${PREFIX}/twofish
	doins twofish/*

	dodir ${PREFIX}/sha1
	insinto ${PREFIX}/sha1
	doins sha1/*

	dodir ${PREFIX}/blowfish
	insinto ${PREFIX}/blowfish
	doins blowfish/*

	dodir ${PREFIX}/pwsafe
	insinto ${PREFIX}/pwsafe
	doins pwsafe/*

	dodir ${PREFIX}/pics
	insinto ${PREFIX}/pics
	doins pics/*

	exeinto /usr/bin
	doexe gorilla
}