summaryrefslogtreecommitdiff
blob: ebeb1cab7394658c3eb3a870c0d1919b333fb10c (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
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5

inherit eutils gnome2-utils

DESCRIPTION="Password Safe in secure way with GUI interface"
HOMEPAGE="https://github.com/zdia/gorilla/wiki"
SRC_URI="https://github.com/zdia/gorilla/archive/v${PV}.tar.gz -> ${P}.tar.gz"

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

DEPEND="
	>=dev-lang/tcl-8.5:*
	>=dev-lang/tk-8.5:*
	dev-tcltk/iwidgets
	dev-tcltk/bwidget
	dev-tcltk/tcllib"
RDEPEND=${DEPEND}

src_prepare() {
	sed -i 's:tclsh8.5:tclsh:' sources/gorilla.tcl || die 'Shebang fix sed failed'
}

src_configure() { :; }
src_compile() { :; }

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

	insinto ${PREFIX}
	dodoc README sources/CHANGES.txt sources/LICENSE.txt sources/README.how-to-compile-extension.txt sources/README.install-from-source sources/README.translators sources/downloads.txt
	doins -r sources/msgs sources/pwsafe sources/twofish sources/blowfish sources/isaac.tcl sources/modules sources/pics sources/viewhelp.tcl help.txt
	newicon -s 16 ${PREFIX}/pics/gorilla-16x16.gif gorilla.gif
	newicon -s 32 ${PREFIX}/pics/gorilla-32x32.gif gorilla.gif
	newicon -s 48 ${PREFIX}/pics/gorilla-48x48.gif gorilla.gif
	newicon -s scalable ${PREFIX}/pics/vector-logo/gorilla-logo.svg gorilla.svg
	exeinto ${PREFIX}
	doexe sources/gorilla.tcl
	make_desktop_entry "${PREFIX}/gorilla.tcl" "Gorilla" "${PN}" "Security;Utility;"
	domenu gorilla
}
pkg_preinst() {
	gnome2_icon_savelist
}

pkg_postinst() {
	gnome2_icon_cache_update

}

pkg_postrm() {
	gnome2_icon_cache_update
}