# 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.4 2008/05/29 16:41:40 hawking Exp $ inherit python DESCRIPTION="CrossTeX - object oriented 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 /usr/$(get_libdir)/python${PYVER}/site-packages/${PN} } pkg_postrm() { python_mod_cleanup }