# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils flag-o-matic

DESCRIPTION="Encrypt private journal"
HOMEPAGE="http://www.public.iastate.edu/~chris129/code/ejourn/"
SRC_URI="http://www.public.iastate.edu/~chris129/code/ejourn/${P}.tar.bz2"

LICENSE="GPL"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND=">=x11-libs/gtk+-2.5
        >=dev-libs/libgcrypt-1.2.1"
RDEPEND="${DEPEND}"

src_unpack() {
	unpack ${A}
	cd /var/tmp/portage/ejourn-0.4.1/work/eJourn
	#cd "${W}/eJourn"
}

src_compile() {
	cd /var/tmp/portage/ejourn-0.4.1/work/eJourn
	./configure --prefix=/usr || die
	make || die
}

src_install() {
	cd /var/tmp/portage/ejourn-0.4.1/work/eJourn
	make install DESTDIR="${D}"
}