# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=2 inherit eutils toolchain-funcs DESCRIPTION="Program for printing one or more image files with a user-defined page layout" HOMEPAGE="http://kornelix.squarespace.com/printoxx" SRC_URI="http://kornelix.squarespace.com/storage/downloads/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND=">=x11-libs/gtk+-2.8" RDEPEND="${DEPEND}" src_prepare() { epatch "${FILESDIR}"/${P}-Makefile-ldflags-fix.diff } src_compile() { # provide real PREFIX here as it is used in zfuncs.cc # provide HTML-dir for DOCDIR as it used only to display the userguide emake CXX="$(tc-getCXX)" PREFIX=/usr DOCDIR=/usr/share/doc/${PF}/html || die } src_install() { # emake install installs many junk-files (including the manpage) into DOCDIR # emake menu creates .desktop entry with DESTDIR-paths inside # emake manpage compresses the manpage # and they fail together with parallel make # - thus we call only install and pass a nice DOCDIR for easy removal emake DESTDIR="${D}" PREFIX=/usr DOCDIR=/tmp/${P}-doc install || die make_desktop_entry ${PN} "Printoxx" /usr/share/${PN}/icons/${PN}.png "Application;Graphics;2DGraphics;" newman doc/${PN}.man ${PN}.1 || die rm -rf "${D}"/tmp || die dodoc doc/{CHANGES,TRANSLATIONS} || die dohtml -r doc/*.html doc/images || die }