summaryrefslogtreecommitdiff
path: root/app-crypt/passwordsafe/passwordsafe-0.9_beta.ebuild
blob: 901fddc6480f26c6e83e518d3e3835f0a3060bc7 (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-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

inherit eutils versionator

MY_PV=$(get_version_component_range 1-2)
DESCRIPTION="Popular easy-to-use and secure password manager"
HOMEPAGE="http://sourceforge.net/projects/passwordsafe/"
SRC_URI="http://sourceforge.net/projects/passwordsafe/files/Linux-BETA/${MY_PV}/pwsafe-${MY_PV}BETA-src.tgz"

LICENSE="Artistic-2"
SLOT="0"
KEYWORDS="~x86"

DEPEND="
x11-libs/wxGTK
dev-libs/xerces-c
x11-libs/libXt
x11-libs/libXtst
"
RDEPEND="${DEPEND}"

S="${WORKDIR}/pwsafe-${MY_PV}BETA"

src_prepare() {
	# Address name collisions with app-misc/pwsafe.
	epatch "${FILESDIR}/${PN}-fix-file-collisions.patch"
}

src_compile() {
	# Alas, Password Safe is not an autotools project.
	emake release
	emake help
}

src_install() {
	# Aarrgghh. Makefile has no install target. Doing it manually.
	# This installation info is derived from the suplied Debian package build script.
	# Several new names are used to address name collisions with app-misc/pwsafe.

	newbin  src/ui/wxWidgets/GCCUnicodeRelease/pwsafe ${PN}
	insinto /usr/share/pwsafe/xml
	doins   xml/*
	# Debian package build script lists these but currently the makery doesn't seem to make them.
	# insinto /usr/share/locale
	# doins   src/ui/wxWidgets/I18N/mos/*

	dodoc   README.txt docs/{ReleaseNotes.txt,ChangeLog.txt}
	newman  docs/pwsafe.1 ${PN}.1

	# The upstream Makefile builds this .zip file from html source material for
	# use by the package's internal help system. Must prevent Portage from
	# applying additional compression.
	docompress -x /usr/share/doc/${PN}/help
	insinto /usr/share/doc/${PN}/help
	doins   help/help.zip

	newmenu install/desktop/pwsafe.desktop ${PN}.desktop
	newicon install/graphics/pwsafe.png    ${PN}.png
}