# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/x11-apps/whyteboard/whyteboard-0.41.1.ebuild,v 1.1 2011/01/20 18:07:22 lxnay Exp $ EAPI="3" PYTHON_DEPEND="2" # Upstream doesn't support Python 3.x inherit eutils python multilib DESCRIPTION="A simple image, PDF and postscript file annotator." LICENSE="ISC" SLOT="0" IUSE="" HOMEPAGE="http://code.google.com/p/whyteboard" SRC_URI="http://whyteboard.googlecode.com/files/${P}.tar.gz" KEYWORDS="~amd64 ~x86" RDEPEND="${DEPEND} dev-python/wxpython media-gfx/imagemagick" src_install() { dodir /usr/bin dodir /usr/share/applications dodir /usr/share/pixmaps insinto /usr/share/pixmaps doins "${FILESDIR}/${PN}.png" || die insinto /usr/share/applications doins "${FILESDIR}/${PN}.desktop" || die dodoc CHANGELOG.txt DEVELOPING.txt README.txt TODO.txt || die local appdir="$(python_get_sitedir)/${PN}" dodir "${appdir}" insinto "${appdir}" doins -r images 'locale' "${PN}" "${PN}-help" "${PN}.py" || die cat >> "${T}/${PN}" <<- EOF #!/bin/sh exec $(PYTHON) -O "$(python_get_sitedir)/${PN}/${PN}.py" EOF exeinto /usr/bin doexe "${T}/${PN}" || die } pkg_preinst() { echo elog "This application is very experimental and some features" elog "are not yet implemented, however you can live with it" echo }