# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=3 inherit eutils gnome2-utils MY_PN="KeePass" MY_P="${MY_PN}-${PV}" DESCRIPTION="KeePass is a free, open source, light-weight and easy-to-use password manager." HOMEPAGE="http://keepass.info/" SRC_URI="mirror://sourceforge/${PN/-bin/}/${MY_P}.zip" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" RESTRICT="nomirror" LICENSE="GPL-2" RDEPEND=">=dev-lang/mono-2.6 dev-dotnet/libgdiplus[cairo]" src_install() { INSTDIR="/opt/${MY_PN}" dodir ${INSTDIR} mv "${WORKDIR}"/* "${D}"/${INSTDIR} || die newbin "${FILESDIR}"/${PN/-bin/}.sh ${PN/-bin/} insinto /usr/share/pixmaps doins "${FILESDIR}"/${MY_PN}.png make_desktop_entry ${PN/-bin/} ${MY_PN} ${MY_PN} Utility } pkg_preinst() { gnome2_icon_savelist; } pkg_postinst() { gnome2_icon_cache_update; } pkg_postrm() { gnome2_icon_cache_update; }