# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit distutils DESCRIPTION="PyGTK-based book reader for plain text, fb2 and other books" HOMEPAGE="http://odin.sourceforge.net/" SLOT="0" LICENSE="GPL-2" KEYWORDS="~alpha ~amd64 ~ia64 ~x86" SRC_URI="mirror://sourceforge/odin/${P}.tar.bz2" IUSE="ms-doc pdf fb2" DEPEND=">=virtual/python-2.2 >=dev-python/pygtk-2.2 >=gnome-base/libglade-2.0 fb2? ( dev-libs/libxml2 )" RDEPEND="${DEPEND} ms-doc? ( app-text/catdoc ) pdf? ( virtual/poppler )" src_compile() { epatch ${FILESDIR}/odin-0.1.3-zipfix.patch # FIXME:It doesn't work :( . Fix it please, if you know how distutils work... if use fb2 then python setup.py build --enable-fb2 || die else python setup.py build --disable-fb2 || die fi } src_install() { DOCS="README INSTALL" distutils_src_install }