# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Xournal is an application for notetaking, sketching, keeping a journal using a stylus. It is similar to Microsoft Windows Journal or to other alternatives such as Jarnal, Gournal, and NoteLab." HOMEPAGE="http://xournal.sourceforge.net/" SRC_URI="http://downloads.sourceforge.net/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="pdf doc" DEPEND=">=x11-libs/gtk+-2.6 >=gnome-base/libgnomecanvas-2.4 >=gnome-base/libgnomeprint-2.2 >=gnome-base/libgnomeprintui-2.2" RDEPEND="${DEPEND} pdf? (app-text/poppler virtual/ghostscript)" src_unpack() { unpack ${A} cd ${S} if [[ ! -e configure ]] ; then NOCONFIGURE=1 ./autogen.sh - || die "autogen failed" fi } src_compile() { econf || die "configure failed" emake || die } src_install() { emake DESTDIR="${D}" install || die "install failed" emake DESTDIR="${D}" desktop-install || die if use doc ; then dohtml -r html-doc/* fi }