# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" WANT_AUTOCONF="latest" WANT_AUTOMAKE="latest" AT_NOELIBTOOLIZE="yes" inherit eutils autotools DESCRIPTION="YAPET is a curses (text) based password encryption tool using the Blowfish encryption algorithm to store password records encrypted on disk" HOMEPAGE="http://www.guengel.ch/myapps/yapet/" URI_PREFIX="http://www.guengel.ch/myapps/yapet/downloads/" SRC_URI="${URI_PREFIX}${P}.tar.bz2 ${URI_PREFIX}patches/yapet_csv2yapet-0.4.diff ${URI_PREFIX}patches/yapet_cfgfile-0.4.diff ${URI_PREFIX}patches/yapet_vikeys-0.4.diff" LICENSE="GPL-3" KEYWORDS="~x86" SLOT="0" IUSE="ssl ncurses nls" RDEPEND="nls? ( sys-devel/gettext ) >=sys-libs/ncurses-5.6 >=dev-libs/openssl-0.9.7" DEPEND="${DEPEND} ${RDEPEND}" src_unpack() { unpack ${P}.tar.bz2 epatch ${DISTDIR}/yapet_csv2yapet-0.4.diff epatch ${DISTDIR}/yapet_cfgfile-0.4.diff epatch ${DISTDIR}/yapet_vikeys-0.4.diff } src_prepare() { # Beacause yapet_csv2yapet-0.4.diff alters csv2yapet/Makefile.am eautoreconf } src_configure() { econf --enable-terminal-title \ --enable-csv2yapet \ --disable-source-doc \ --disable-build-doc \ $(use_enable nls) } src_compile() { emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" }