# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-editors/kile/kile-2.1_beta4.ebuild,v 1.3 2010/06/25 04:10:32 reavertm Exp $ EAPI=2 KDE_DOC_DIRS="doc" inherit kde4-base MY_P=${P/_beta/b} DESCRIPTION="A Latex Editor and TeX shell for KDE" HOMEPAGE="http://kile.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2" LICENSE="FDL-1.2 GPL-2" KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" SLOT="4" IUSE="debug handbook +pdf +png" RDEPEND=" || ( >=kde-base/okular-${KDE_MINIMAL}[pdf?,ps] app-text/acroread ) virtual/latex-base virtual/tex-base pdf? ( app-text/dvipdfmx app-text/ghostscript-gpl ) png? ( app-text/dvipng media-gfx/imagemagick[png] ) " S=${WORKDIR}/${MY_P} DOCS=(kile-remote-control.txt) src_prepare() { kde4-base_src_prepare # I know upstream wants to help us but it doesn't work.. sed -e '/INSTALL( FILES AUTHORS/s/^/#DISABLED /' \ -i CMakeLists.txt || die use handbook || rm -fr doc }