# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="1" inherit eutils qt4 DESCRIPTION="A KDE editor for the TikZ language." HOMEPAGE="http://www.hackenberger.at/blog/ktikz-editor-for-the-tikz-language" SRC_URI="http://www.hackenberger.at/ktikz/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="debug" DEPEND="x11-libs/qt:4 app-text/poppler-bindings virtual/latex-base dev-texlive/texlive-latexextra dev-tex/pgf" RDEPEND="${DEPEND}" pkg_setup() { if ! built_with_use app-text/poppler-bindings qt4; then einfo "Please re-emerge app-text/poppler-bindings with the qt4 USE flag set" die "poppler-bindings needs qt4 flag set" fi } src_compile() { # don't install desktop icon (and cause sandbox violation) sed -i -e '59,66d' src/src.pro eqmake4 ${PN}.pro PREFIX=${D}/usr || die "eqmake4 failed" emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die 'emake install failed' newicon src/images/${PN}-128.png ${PN}.png make_desktop_entry ${PN} KtikZ ${PN} Graphics }