blob: c2e8a25363db51c261dc38bde431de493c00735f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# 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.6.ebuild,v 1.1 2008/08/07 22:41:27 aballier 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"
insinto /usr/share/doc/${PF}
doins "${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
}
|