unitas/app-admin/passwordsafe/passwordsafe-3.33.ebuild

60 lines
1.6 KiB
Bash

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=4
WX_GTK_VER="2.8"
inherit wxwidgets autotools
DESCRIPTION="Password manager with yubikey support"
HOMEPAGE="http://passwordsafe.sourceforge.net/"
SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/pwsafe-${PV}-src.zip"
KEYWORDS="~amd64 ~x86"
LICENSE="GPL-2"
SLOT="0"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
RDEPEND=">=sys-auth/ykpers-1.11
dev-libs/xerces-c"
DEPEND="${RDEPEND}"
S=${WORKDIR}/pwsafe-${PV}-src
src_prepare() {
sed -i -e "s/\r//" src/ui/wxWidgets/version.in \
|| die "sed remove CR from version.in failed"
sed -i -e "s:/usr/local/include/ykpers-1:/usr/include/ykpers-1:" src/os/linux/Makefile \
|| die "sed ykpers include failed"
sed -i -e "s:/usr/share/doc/passwordsafe/help/:/usr/share/pwsafe/help/:" src/os/linux/dir.cpp \
|| die "sed helpdir failed"
}
src_compile() {
emake I18N release || die "emake I18N release failed"
emake -C help || die "emake help failed"
}
src_install() {
dobin src/ui/wxWidgets/GCCUnicodeRelease/pwsafe
insinto /usr/share/locale
doins -r src/ui/wxWidgets/I18N/mos/*
insinto /usr/share/pwsafe/xml
doins xml/pwsafe.xsd xml/pwsafe_filter.xsd xml/pwsafe.xsl xml/KPV1_to_PWS.xslt xml/KPV2_to_PWS.xslt
insinto /usr/share/pwsafe/help
doins help/help.zip
domenu install/desktop/pwsafe.desktop
doicon install/graphics/pwsafe.png
doman docs/pwsafe.1
dodoc README.txt docs/ReleaseNotes.txt docs/ChangeLog.txt
}