# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-tex/crosstex/crosstex-0.5.6.ebuild,v 1.2 2008/02/27 11:46:22 opfer Exp $ inherit python DESCRIPTION="CrossTeX - object orientated BibTeX replacement" HOMEPAGE="http://www.cs.cornell.edu/people/egs/crosstex/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="examples" RDEPEND="dev-lang/python dev-python/ply" DEPEND="${RDEPEND}" src_install() { python_version cd "${S}" emake \ ROOT="${D}" \ PREFIX="/usr" \ LIBDIR="/$(get_libdir)/python${PYVER}/site-packages" \ install || die "make install failed" dodoc "${PN}".pdf if use examples; then insinto /usr/share/doc/${PF}/examples doins tests/* fi } pkg_postinst() { python_version python_mod_optimize "${ROOT}usr/$(get_libdir)/python${PYVER}/site-packages/${PN}" } pkg_postrm() { python_version python_mod_cleanup "${ROOT}usr/$(get_libdir)/python${PYVER}/site-packages/${PN}" }