# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: Exp $ EAPI="2" WX_GTK_VER="2.8" inherit autotools eutils libtool wxwidgets DESCRIPTION="e-book viewer" HOMEPAGE="http://coolreader.org" SRC_URI="mirror://sourceforge/crengine/cr_${PV}-0ubuntu1.tar.gz mirror://sourceforge/crengine/cr3-win-3-0-16.zip" LICENSE="GPL" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="app-arch/zip media-libs/freetype:2 media-libs/jpeg media-libs/libpng sys-libs/zlib x11-libs/wxGTK:2.8" RDEPEND="${DEPEND} media-fonts/corefonts" S="${WORKDIR}/cr-${PV}" src_prepare() { eautoreconf # fix for amd64 if use amd64; then sed -e 's/unsigned int/unsigned long/g' -i crengine/src/lvdocview.cpp \ || die "sed lvdocview.cpp failed" fi } src_install() { emake DESTDIR="${D}" install || die "emake install failed" dosym ../fonts/corefonts /usr/share/crengine/fonts dodir /usr/share/crengine/hyph cp "${WORKDIR}/Russian_EnUS_hyphen_(Alan).pdb" \ "${D}/usr/share/crengine/hyph" || die "cp hyphen died" dodoc AUTHORS README }